Share 
Follow 
AboutDownloadsDocumentsForumsSource CodeIssuesNews
Date:
2009-09-03 20:22
Priority:
3
State:
Closed
Submitted by:
davide mazzaro (davidem)
Assigned to:
Nobody (None)
Summary:
A java.lang.NullPointerException exception has occurred.

Detailed description
My problem that when I open a model I do not see anything and gives me this exception. How can I fix this?




A java.lang.NullPointerException exception has occurred.
Click Show Details or see the messages.log file located in your C:\Documents and Settings\Utente\Dati applicazioni\.opensim\1.9.1\var\log folder.


java.lang.NullPointerException
at org.opensim.view.pub.ViewDB.getDisplayStatus(ViewDB.java:535)
at org.opensim.view.ObjectDisplayShowHideBaseAction.isEnabled(ObjectDisplayShowHideBaseAction.java:65)
at javax.swing.AbstractButton.configurePropertiesFromAction(AbstractButton.java:1133)
at javax.swing.AbstractButton.configurePropertiesFromAction(AbstractButton.java:1063)
at javax.swing.JMenuItem.configurePropertiesFromAction(JMenuItem.java:340)
at javax.swing.AbstractButton.setAction(AbstractButton.java:997)
at javax.swing.JMenuItem.<init>(JMenuItem.java:108)
at org.opensim.view.ModelDisplayMenuAction.getPopupPresenter(ModelDisplayMenuAction.java:67)
at org.openide.util.Utilities.actionsToPopup(Utilities.java:2622)
at org.openide.util.Utilities.actionsToPopup(Utilities.java:2696)
at org.openide.explorer.view.TreeView.createPopup(TreeView.java:875)
at org.openide.explorer.view.TreeView$PopupAdapter.showPopup(TreeView.java:1323)
at org.openide.awt.MouseUtils$PopupMouseAdapter.maybePopup(MouseUtils.java:158)
at org.openide.awt.MouseUtils$PopupMouseAdapter.mouseReleased(MouseUtils.java:153)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:232)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
at java.awt.Component.processMouseEvent(Component.java:5488)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
at java.awt.Component.processEvent(Component.java:5253)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1774)
at java.awt.Component.dispatchEvent(Component.java:3803)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

Add A Comment: Notepad

Message  ↓
Date: 2009-09-04 17:05
Sender: Ayman Habib

Davide,

The persistent part in OpenSim that stay across installations are:
1. the folder .opensim (somewhere under your C:\Documents and Settings\$your_user_name\ on WindowsXP)
2. Entries in the registry regarding your preferences.
KEY_CURRENT_USER/Software/JavaSoft/Prefs/org/opensim

If you remove both then the machine is virgin for all our purposes and a fresh install should work today if it worked at any day in the past.

Could this be a Locale Issue? Can you switch your machine to English mode and retry.

-Ayman

Date: 2009-09-04 15:13
Sender: davide mazzaro

I have done the procedure many times you told me. But in
the istallation successive,I load a model and the program
returns the same errore.I don't know how to remove the
exception. Have any other ideas? Thank you for your help

Date: 2009-09-03 22:16
Sender: Ayman Habib


The candidate then would be some preference change you made that caused OpenSim problems (maybe all black or all white background or whatever). Try removing the folder .opensim/ as in
C:\Documents and Settings\{user}\Application Data\.opensim
And see if that works or reinstalling the application from the downloaded executable if you still have it around.

Date: 2009-09-03 21:40
Sender: davide mazzaro

Yesterday ran correctly in my computer.Today I started
giving this error. When loading the model does not crash
but it shows a model on navigator.I tried with all files
osim but it makes me all the same error. What should I do?

Date: 2009-09-03 21:13
Sender: Ayman Habib

Did you run OpenSim (earlier version) on this machine? Could be something to do with the graphics card since it looks like the model was never added to the display but the copde is trying to find out its display status. What happens after that? Does it crash, or show you a model in the navigator? And does that happen to models in our distribution/examples?

Date: 2009-09-03 20:58
Sender: davide mazzaro

I have made as it said. I have removed any
file "AppState.xml" but I have not resolved the problem.
Every time that I loaded a model gives again me the same
error. How I can make?

Date: 2009-09-03 20:34
Sender: Ayman Habib

Is this model specific? If this happens trying to open the application then it could be due to trying to restore a "problematic" model on entry. Remove any file "AppState.xml" from the installation folder and relaunch.

If that works, I'd appreciate if you attach the model (last one you were using and specified in the AppState.xml file) to this bug report so that we can find out why the exception.

Best,

Attachments:
Size Name Date By Download
12 KiBmessages.log2009-09-03 20:22davidemmessages.log
Field Old Value Date By
status_idOpen2012-03-28 18:50jenhicks
resolution_id1002012-03-28 18:50jenhicks
close_date2012-03-28 18:502012-03-28 18:50jenhicks
File Added132: messages.log2009-09-03 20:22davidem
Feedback