Richard Figura
2009-02-27 15:03:05 UTC
Hello,
I try to start a saved test via bash without using the gui (or even better
without the appearance of the gui).
I am very new to contiki and cooja, so perhaps I made a basic mistake.
I have created a new cooja-plugin that implements "plugin" and that has the
PluginType:
@PluginType(PluginType.COOJA_STANDARD_PLUGIN)
In the Plugin-Constructor I call:
gui.doLoadConfig(false, true, file);
As a result I get the following error:
run:
[java] INFO [AWT-EventQueue-0] (GUI.java:2824) - Loading external tools
user settings from: /external_tools_linux_64.config
[java] INFO [AWT-EventQueue-0] (Simulation.java:354) - Simulation random
seed: 123456
[java] INFO [AWT-EventQueue-0] (AutostarterPlugin.java:115) - Plugin
getGui
[java] Exception in thread "AWT-EventQueue-0"
java.util.ConcurrentModificationException
[java] at
java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372)
[java] at java.util.AbstractList$Itr.next(AbstractList.java:343)
[java] at se.sics.cooja.GUI.<init>(GUI.java:408)
[java] at se.sics.cooja.GUI$21.run(GUI.java:3433)
[java] at
java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
[java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
[java] at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
[java] at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
[java] at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
[java] at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
[java] at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
[java] at
java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Of course the plugin is added to the cooja_default.config, cooja is
recompiled and the file exists.
Can anybody help me with this?
Is this the right way for non-gui testing?
Thanks,
Richard Figura
I try to start a saved test via bash without using the gui (or even better
without the appearance of the gui).
I am very new to contiki and cooja, so perhaps I made a basic mistake.
I have created a new cooja-plugin that implements "plugin" and that has the
PluginType:
@PluginType(PluginType.COOJA_STANDARD_PLUGIN)
In the Plugin-Constructor I call:
gui.doLoadConfig(false, true, file);
As a result I get the following error:
run:
[java] INFO [AWT-EventQueue-0] (GUI.java:2824) - Loading external tools
user settings from: /external_tools_linux_64.config
[java] INFO [AWT-EventQueue-0] (Simulation.java:354) - Simulation random
seed: 123456
[java] INFO [AWT-EventQueue-0] (AutostarterPlugin.java:115) - Plugin
getGui
[java] Exception in thread "AWT-EventQueue-0"
java.util.ConcurrentModificationException
[java] at
java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372)
[java] at java.util.AbstractList$Itr.next(AbstractList.java:343)
[java] at se.sics.cooja.GUI.<init>(GUI.java:408)
[java] at se.sics.cooja.GUI$21.run(GUI.java:3433)
[java] at
java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
[java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
[java] at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
[java] at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
[java] at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
[java] at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
[java] at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
[java] at
java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Of course the plugin is added to the cooja_default.config, cooja is
recompiled and the file exists.
Can anybody help me with this?
Is this the right way for non-gui testing?
Thanks,
Richard Figura