Hi:

Following these instructions and using the attached patch should correct your problem.  It stems from the fact that the avrmote class is excluded from the jar file by the makefile.

 

cd to $TOSROOT/tools/java/net/tinyos/sim/

patch < Makefile.patch

 

make clean && make

 

These should rebuild the files for you.  However, if the patch fails, just add the line

net/tinyos/message/avrmote/*.class \ in the Makefile in $TOSROOT/tools/java/net/tinyos/sim/ between

net//tinyos/message/*.class \ and org/apache/oro/text/regex/*.class \

 

Note: the \ are needed to keep the line continuations. 

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Hua Yue
Sent: Friday, June 23, 2006 10:45
To: tinyos-help@Millennium.Berkeley.EDU
Subject: [Tinyos-help] TinyViz: Trouble Finding Platform Specific Version ofTOSMsg

 

Hello, guys. I get the following error when trying to start TinyViz. Does anyone have an idea what might be the cause?

Also the simulation would not run, even after i disable the pause button. (Sim Time stays at 0.00000 sec)

 

Any help would be greatly appreciated.

Thanks

 

AUTORUN: Connecting...
SF enabled, 0 clients, 0 packets read, 0 packets written Could not find a platfo
rm specific version of TOSMsg

java.lang.ClassNotFoundException: net.tinyos.message.avrmote.TOSMsg
java.lang.ClassNotFoundException: net.tinyos.message.avrmote.TOSMsg
        at java.net.URLClassLoader$1.run(URLClassLoader.java:198)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
        at java.lang.ClassLoader.loadClass (ClassLoader.java:255)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:140)
        at net.tinyos.message.MessageFactory.instantiateTOSMsg(MessageFactory.ja
va:122)
        at net.tinyos.message.MessageFactory.createTOSMsg(MessageFactory.java:36
)
        at net.tinyos.packet.BrokenPacketizer.<init>( BrokenPacketizer.java:58)
        at net.tinyos.sim.packet.TossimSource.<init>(TossimSource.java:44)
        at net.tinyos.sim.packet.TossimSerialSource.<init>(TossimSerialSource.ja
va:32)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java :27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
        at net.tinyos.packet.BuildSource.makeTossimSource(BuildSource.java:503)
        at net.tinyos.packet.BuildSource.makeTossimSerial (BuildSource.java:472)
        at net.tinyos.packet.BuildSource.makeArgsTossimSerial(BuildSource.java:4
63)
        at net.tinyos.packet.BuildSource.makePacketSource(BuildSource.java:151)
        at net.tinyos.packet.BuildSource.makePhoenix (BuildSource.java:87)
        at net.tinyos.sf.SFListen.run(SFListen.java:84)
SimComm: TossimInitEvent received (30 motes)... initializing system.
SimComm: Pausing system for TossimInitEvent
Could not find a platform specific version of TOSMsg
java.lang.ClassNotFoundException: net.tinyos.message.avrmote.TOSMsg
java.lang.ClassNotFoundException: net.tinyos.message.avrmote.TOSMsg
        at java.net.URLClassLoader$1.run(URLClassLoader.java:198)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
        at java.lang.Class.forName0 (Native Method)
        at java.lang.Class.forName(Class.java:140)
        at net.tinyos.message.MessageFactory.instantiateTOSMsg(MessageFactory.ja
va:118)
        at net.tinyos.message.MessageFactory.createTOSMsg (MessageFactory.java:44
)
        at net.tinyos.packet.AbstractSource.open(AbstractSource.java:81)
        at net.tinyos.packet.PhoenixSource.run(PhoenixSource.java:167)
java.lang.NullPointerException
        at net.tinyos.packet.AbstractSource.open(AbstractSource.java:82)
        at net.tinyos.packet.PhoenixSource.run(PhoenixSource.java:167)
AUTORUN: Simulation running.

Attachment: Makefile.patch
Description: Binary data

_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to