[Tinyos-help] TinyOS 1.1.15 upgrade resulting in Null Pointer Exception

Anuradha Eragani aeragani at uno.edu
Tue Oct 3 11:40:25 PDT 2006


Hi All,

 

I recently upgraded TinyOS on my machine from 1.1.0 to 1.1.15 and since
then, I'm encountering the following message when I'm trying to compile an
application. I noticed that all of them are warnings but was wondering if I
need to change anything while compiling. All I'm doing is type "make pc" to
generate TOSSIM specific files.

 

C:\tinyos\cygwin\opt\tinyos-1.x\tos\system\ADCM.nc: In function
`ADCM$startGet':

C:\tinyos\cygwin\opt\tinyos-1.x\tos\system\ADCM.nc:136: warning: comparison
is always false due to limited range of data type

C:\tinyos\cygwin\opt\tinyos-1.x\tos\platform\pc\PowerStateM.nc: In function
`__nesc_nido_initialise':

C:\tinyos\cygwin\opt\tinyos-1.x\tos\platform\pc\PowerStateM.nc:770: warning:
passing arg 1 of `memset' discards qualifiers from pointer target type

C:\tinyos\cygwin\opt\tinyos-1.x\tos\platform\pc\PowerStateM.nc:824: warning:
passing arg 1 of `memset' discards qualifiers from pointer target type

    compiled SendReceive to build/pc/main.exe

 

 

Inspite of this compile error, (since they r a bunch of warnings) I went
ahead and ran the application in the TOSSIM simulator using TinyViz and I'm
getting NullPointerException. Does the above compile error have anything to
do with this exception??

 

SIM: Random seed is 125000

java -Dpython.cachedir=/tmp/jython.cache -DDBG=temp,usr1,am,led -DSIMDBG=
net.tinyos.sim.SimDriver -gui

Starting SimDriver...

Simulation random seed 571874632

Initializing simulator objects...

Loading simulator plugins...

Exception in thread "main" java.lang.NullPointerException

        at net.tinyos.sim.PluginManager.register(PluginManager.java:77)

        at net.tinyos.sim.SimDriver.<init>(SimDriver.java:258)

        at net.tinyos.sim.SimDriver.main(SimDriver.java:539)

 

Commands used to run the application in TOSSIM:

 

export DBG=temp,usr1,am,led

/home/Anu/research/SendReceive/build/pc/main.exe -t=60 -gui 2 &

./tinyviz

 

I'd really appreciate if anyone can clarify this issue.

 

Thanks in advance,

Anu

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20061003/edf3d7f5/attachment-0001.htm


More information about the Tinyos-help mailing list