Runtime error...
I’m getting the following runtime error when instantiating a one of my objects that contains 2 uart VPs:
[noparse][[/noparse]Error IDE-0028] Unhandled exception in JVM: java.lang.NullPointerException
Exception thrown in file ‘C:\...\VirtualPreipheral.java’ at line 15
It appears that the error is occurring when the first of·the uart VPs is created. The uarts would be the 4th and 5th VPs created. Any clues there I should be looking for the problem?
Thanks
[noparse][[/noparse]Error IDE-0028] Unhandled exception in JVM: java.lang.NullPointerException
Exception thrown in file ‘C:\...\VirtualPreipheral.java’ at line 15
It appears that the error is occurring when the first of·the uart VPs is created. The uarts would be the 4th and 5th VPs created. Any clues there I should be looking for the problem?
Thanks
Comments
regards peter
·
regards peter
my email was rejected by your mail server
The original message was received at Sat, 4 Nov 2006 10:37:01 -0800
from adsl-68-122-0-169.dsl.pltn13.pacbell.net [noparse][[/noparse]68.122.0.169]
·
The following addresses had permanent fatal errors
<verkaik6@zonnet.nl>
··· (reason: 553 We do not accept mail from IP addresses without reverse DNS. See http://wikipedia.org/wiki/reverse_dns)
I'll figure out the runtime error myself...
Thanks anyway
Steve
For example, if you define
Uart myUarts[noparse]/noparse = new Uart[noparse][[/noparse]2]; //define array of 2 uarts
Then you must still initialize the array elements.
myUarts[noparse][[/noparse]0] = new Uart(...);
myUarts[noparse][[/noparse]1] = new Uart(...);
before using those elements.
regards peter
I was consistantly able to fix the issue by doing one of two thing:
1. Replace the Javelin Module with another then·reload the code. This worked most of the time.
2. Load a completely different piece of code, run it, then reload the original code. This worked every time.
Another observation is the problem completely went away after I switched from using my ThinkPad laptop to a desk top machine as the host of the IDE.
It's entirely possible that I had NULL pointers in my code that I subconsciously fixed when I moved from the ThinkPad to the desk top machine. I guess we'll never know.
Another interesting nugget of information: A seemingly random "out of memory" error that I was experiencing also went away when I switched computers...
Steve