Re: visad 2-d successfully installed,

Hi Victor,

The error is unrelated to the XFree86-DRI message (I get the same message--it's just a warning about hardware acceleration I think, and can be safely ignored).

The exception dump indicates the problem is being caused via reflection of a Java3D method: javax.media.j3d.VirtualUniverse.removeAllLocales(). Unfortunately, the stack trace was truncated before the root cause of the problem was printed.

I was unable to duplicate this problem on my Linux machine with JDK 1.4.2 and Java3D 1.3.1 installed. Are there any particular actions you need to take with the SpreadSheet to make the error happen, or does it happen immediately upon startup?

If you wish to pursue this bug further, I have made a small modification to visad/UniverseBuilderJ3D.java for determining more information about this bug. Specifically, line 128 throws a new RuntimeException without preserving the original InvocationTargetException, so the original exception's cause gets lost. To remedy this, I added the statement "ex.printStackTrace();" just before line 128. I have put the modified UniverseBuilderJ3D source and class files into a jar file and placed it online at:
   http://skyking.microscopy.wisc.edu/curtis/ubj3d.jar

You should be able to prepend this file to your CLASSPATH as follows:
   export CLASSPATH=/opt/ubj3d.jar:/opt/visad.jar:.
Be sure it appears *before* visad.jar or else the UniverseBuilderJ3D.class within visad.jar will take precedence over the modified one.

Then try running the SpreadSheet again, and hopefully a bunch of additional stack trace information will be printed.

Thanks,
-Curtis

Victor Shum wrote:

Thanks Curtis!

Now with your guidance I can run the java DisplayTest
part ( previously I missed the :. in the classpath),
However I still have errors when running the
ss.SpreadSheet, error being (I think mostly with the
XFree86-DRI as follows, though the icon and cells came
up with the clickable 2D or 3D buttons):
[root@sbc]#java visad.ss.SpreadSheet
Xlib:  extension "XFree86-DRI" missing on display
":0.0".
java.lang.reflect.InvocationTargetException
       at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
       at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at
java.lang.reflect.Method.invoke(Method.java:585)
       at
visad.util.GUIFrame.actionPerformed(GUIFrame.java:161)
       at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
       at
javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
       at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
       at
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
       at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
       at
java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
       at
java.awt.Component.processMouseEvent(Component.java:5488)
       at
javax.swing.JComponent.processMouseEvent(JComponent.java:3093)
       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:1766)
       at
java.awt.Component.dispatchEvent(Component.java:3803)
       at
java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
       at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
       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)
Caused by: java.lang.RuntimeException: Assertion
failure: java.lang.reflect.InvocationTargetException
       at
visad.java3d.UniverseBuilderJ3D.destroy(UniverseBuilderJ3D.java:128)
       at
visad.java3d.DisplayPanelJ3D.destroy(DisplayPanelJ3D.java:81)
       at
visad.java3d.VisADCanvasJ3D.stop(VisADCanvasJ3D.java:320)
       at
visad.java3d.DisplayRendererJ3D.destroy(DisplayRendererJ3D.java:158)
       at
visad.java3d.DefaultDisplayRendererJ3D.destroy(DefaultDisplayRendererJ3D.java:103)
       at
visad.java3d.DisplayImplJ3D.destroy(DisplayImplJ3D.java:720)
       at
visad.ss.BasicSSCell.constructDisplay(BasicSSCell.java:1566)
       at
visad.ss.BasicSSCell.setDimension(BasicSSCell.java:1823)
       at
visad.ss.SpreadSheet.setDim(SpreadSheet.java:2041)
       at
visad.ss.SpreadSheet.setDim2D(SpreadSheet.java:2033)
       ... 30 more

  • 2005 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: