|
Hello all,
i am trying to play with tossim and tinyviz, as
suggested in lesson5 but i encounter the following problem. i 've set DBG=usr1
and i made a hard link to my bin directory for tinyviz script . I 've already
compiled TestTinyViz app using the make pc command but when i try to execute the
command.. (look below...)
[EMAIL PROTECTED]@spoon /opt/tinyos-1.x/apps/TestTinyViz $ tinyviz -run build/pc/main.exe 30 java -Dpython.cachedir=/tmp/jython.cache -DDBG=usr1 -DSIMDBG= -jar C:/tinyos/cyg win/opt/tinyos-1.x/tools/java/net/tinyos/sim/simdriver.jar -gui -run build/pc/ma in.exe 30 Starting SimDriver... Simulation random seed 129807983 Initializing simulator objects... 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:122) at net.tinyos.message.MessageFactory.createTOSMsg(MessageFactory.java:44 ) at net.tinyos.sim.SimCommands.<init>(SimCommands.java:64) at net.tinyos.sim.SimDriver.<init>(SimDriver.java:244) at net.tinyos.sim.SimDriver.main(SimDriver.java:539) Loading simulator plugins... Creating TinyViz GUI... Welcome to Tython. Type 'quit' to exit. ESC on a line by itself will pause/resume the simulator. >>> AUTORUN: Initializing simulation.
AUTORUN: Running simulation: build/pc/main.exe -gui -r=lossy -seed=129807983 -no dbgout 30 AUTORUN: Connecting... SF enabled, 0 clients, 0 packets read, 0 packets written Could not find a platfo SF enabled, 0 clients, 0 packets read, 0 packets written 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. the gui of tinyviz opens but i get a simulator connection failed 2
times...and then a msg simulation paused...
what is the problem ? why i can not run the TestTinyViz properly?
thx a lot!
____________________________________________________________________ http://www.freemail.gr - δωρεάν υπηρεσία ηλεκτρονικού ταχυδρομείου. http://www.freemail.gr - free email service for the Greek-speaking. |
_______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
