Hm....
That seems to fix the error...and make an other one;p
i added "net/tinyos/message/avrmote/*.class " line to my
tools/java/net/tinyos/sim/Makefile and then recompiled everything under the
directory tools/java/ (executed make there). I know execute the command but
have a different message...
[EMAIL PROTECTED]@spoon /opt/tinyos-1.x/apps/TestTinyViz
$ tinyviz -run build/pc/main.exe 30
java -Dpython.cachedir=/tmp/jython.cache -DDBG= -DSIMDBG= -jar
C:/tinyos/cygwin/
opt/tinyos-1.x/tools/java/net/tinyos/sim/simdriver.jar -gui -run
build/pc/main.e
xe 30
Starting SimDriver...
Simulation random seed 1978419393
Initializing simulator objects...
Loading simulator plugins...
Creating TinyViz GUI...
*sys-package-mgr*: processing modified jar,
'C:\tinyos\cygwin\opt\tinyos-1.x\too
ls\java\net\tinyos\sim\simdriver.jar'
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=1978419393 -n
odbgout 30
AUTORUN: Connecting...
SF enabled, 0 clients, 0 packets read, 0 packets written SimComm:
TossimInitEven
t received (30 motes)... initializing system.
SimComm: Pausing system for TossimInitEvent
AUTORUN: Simulation running.
my tinyviz still refuses to connect (2 times) and goes to "simulation
paused" state...
anything else to fix that problem?
thx
[EMAIL PROTECTED]
----- Original Message -----
From: "Dave Tucker" <[EMAIL PROTECTED]>
To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
Cc: <[email protected]>
Sent: Wednesday, November 23, 2005 8:10 PM
Subject: Re: [Tinyos-help] problem starting TinyViz
Try this fix:
https://mail.millennium.berkeley.edu/pipermail/tinyos-help/2005-January/007390.html
Dave
On Wed, Nov 23, 2005 at 07:22:27PM +0200, [EMAIL PROTECTED] wrote:
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!
[EMAIL PROTECTED]
____________________________________________________________________
http://www.freemail.gr - dwrea'n upyresi'a ylektronikou%
taxudro΅ei'ou.
http://www.freemail.gr - free email service for the Greek-speaking.
References
1. mailto:[EMAIL PROTECTED]@spoon
2. mailto:[EMAIL PROTECTED]
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
____________________________________________________________________
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