Hello everyone,
  I have problem with the power profiling tab in tinyViz. Tinyviz.jar file is 
missing in the file
opt/tinyos-1.x/tools/java/net/tinyos/sim. I tried to create it by typing
'make' but still tinyviz.jar file is not being created.When i clicked the 
tinyviz for power profiling. I got the following errors
$ java net.tinyos.sim.SimDriver -seed 1 -gui -script nodes.py
Simulation random seed 807516354
Initializing simulator objects...
Loading simulator plugins...
Creating TinyViz GUI...
DRIVER: creating interpreter for script: nodes.py...
Welcome to Tython. Type 'quit' to exit.
ESC on a line by itself will pause/resume the simulator.
>>> SimComm: TossimInitEvent received (36 motes)... initializing system.
SimComm: Pausing system for TossimInitEvent
SF enabled, 0 clients, 0 packets read, 0 packets written Exception in thread "AW
T-EventQueue-0" java.lang.NullPointerException
        at 
com.oyoaha.swing.plaf.oyoaha.ui.OyoahaScrollButton.isEnabled(OyoahaScrollButton.java:57)
        at javax.swing.JComponent.setEnabled(Unknown Source)
        at javax.swing.AbstractButton.setModel(Unknown Source)
        at javax.swing.JButton.<init>(Unknown Source)
        at javax.swing.JButton.<init>(Unknown Source)
        at javax.swing.plaf.basic.BasicArrowButton.<init>(Unknown Source)
        at javax.swing.plaf.basic.BasicArrowButton.<init>(Unknown Source)
        at javax.swing.plaf.metal.MetalScrollButton.<init>(Unknown Source)
        at 
com.oyoaha.swing.plaf.oyoaha.ui.OyoahaScrollButton.<init>(OyoahaScrollButton.java:38)
        at 
com.oyoaha.swing.plaf.oyoaha.ui.OyoahaScrollBarUI.createIncreaseButton(OyoahaScrollBarUI.java:49)
        at javax.swing.plaf.basic.BasicScrollBarUI.installComponents(Unknown 
Source)
        at javax.swing.plaf.basic.BasicScrollBarUI.installUI(Unknown Source)
        at 
com.oyoaha.swing.plaf.oyoaha.ui.OyoahaScrollBarUI.installUI(OyoahaScrollBarUI.java:29)
        at javax.swing.JComponent.setUI(Unknown Source)
        at javax.swing.JScrollBar.setUI(Unknown Source)
        at javax.swing.JScrollBar.updateUI(Unknown Source)
        at javax.swing.JScrollBar.<init>(Unknown Source)
        at javax.swing.JScrollBar.<init>(Unknown Source)
        at javax.swing.JScrollPane$ScrollBar.<init>(Unknown Source)
        at javax.swing.JScrollPane.createVerticalScrollBar(Unknown Source)
        at javax.swing.JScrollPane.<init>(Unknown Source)
        at javax.swing.JScrollPane.<init>(Unknown Source)
        at 
net.tinyos.sim.plugins.PowerProfilePlugin.register(PowerProfilePlugin.java:409)
        at net.tinyos.sim.PluginManager.register(PluginManager.java:80)
        at net.tinyos.sim.PluginPanel$PluginInfo.register(PluginPanel.java:78)
        at 
net.tinyos.sim.PluginPanel$cbListener.itemStateChanged(PluginPanel.java:277)
        at javax.swing.AbstractButton.fireItemStateChanged(Unknown Source)
        at javax.swing.AbstractButton$Handler.itemStateChanged(Unknown Source)
        at javax.swing.DefaultButtonModel.fireItemStateChanged(Unknown Source)
        at javax.swing.JToggleButton$ToggleButtonModel.setSelected(Unknown 
Source)
        at javax.swing.JToggleButton$ToggleButtonModel.setPressed(Unknown 
Source)
        at javax.swing.AbstractButton.doClick(Unknown Source)
        at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
        at 
javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(UnknownSource)
        at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
        at java.awt.Component.processMouseEvent(Unknown Source)
        at javax.swing.JComponent.processMouseEvent(Unknown Source)
        at java.awt.Component.processEvent(Unknown Source)
        at java.awt.Container.processEvent(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Window.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)

I would be happy if anyone could help me out in this issue.

Thanks,
Swetha.


      
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to