Re: NullPointerException

Bryan Armstrong <bryan.armstrong-6tN4nzCoH/[email protected]>
Newsgroups gmane.comp.hardware.microcontrollers.tini
Message-ID <[email protected]>
Wes Stupar wrote:
> My TINI400 program has a nasty bug that causes the NullPointerException. 
> Here is an example of the stack trace:
> java.lang.NullPointerException
>   in com.iqstor.IQcom.unitInformationMessage.<init>(@JPC=43)
>   in com.iqstor.IQcom.r1200InformationBroadcastMessage.<init>(@JPC=2)
>   in com.iQstor.esp2r12.UDPCom.sendR1200InfoMessage(@JPC=35003a)
>   in com.iQstor.esp2r12.Monitor.run(@JPC=22029a)
>   in java.lang.Thread.run(@JPC=22001a)
>   in com.iQstor.esp2r12.TCPCom.run(@JPC=
> Can someone help me interpret this trace? It was truncated, presumeably 
> due to the crash. It seems to have been in the TCPCom thread (there are 
> 6 threads running plus slush) and the Monitor thread. Is this a normal 
> trace, to show two threads? Does the <init> mean that it is in the 
> constructor of the class? The class r1200InformationBroadcastMessage 
> extends unitInformationMessage.
> 
> I have not been able to spot a place in the constructor for 
> unitInformationMessage that could give rise to a null pointer. Any ideas 
> would be appreciated.

This looks like a dump from the Monitor thread, see the run() method. 
Then, the function sendR1200InfoMessage was called.  Then two 
constructors were called.

What TINI version are you using?

-- 
--
Bryan Armstrong
bryan.armstrong-6tN4nzCoH/[email protected]


_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/[email protected]
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.