NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

RE: error description

Hi Bill,

Unfortunately, when I re-compiled the package with your new
DisplayImpl.java, there are no null pointer exceptions, but I still have
the java.lang.InternalError's that I had before. When I try to run the
spreadsheet with 12 columns and 4 rows, I still only see mappings in the
first 12 cells and the rest are just plain black squares with not even
the white outline of a cube that blank mappings would at least show. 

C:\gvs>java -mx512m src.GVSSpreadSheet  1>temp.txt 
visad.BadMappingException: Display.addMap: two RealTypes are mapped to
Animation
        at visad.DisplayImpl.addMap(DisplayImpl.java:1928)
        at visad.DisplayImpl.addMap(DisplayImpl.java:1844)
        at visad.ss.BasicSSCell.setMaps(BasicSSCell.java:1629)
        at visad.ss.FancySSCell.setMaps(FancySSCell.java:503)
        at src.VisadAPI.setCellMapping(VisadAPI.java:179)
        at src.VisadAPI.setAllMappings(VisadAPI.java:198)
        at src.VisadAPI.updateGeneticCells(VisadAPI.java:226)
        at
src.GVSSpreadSheet.updateGeneticCells(GVSSpreadSheet.java:290)
        at src.GVSSpreadSheet.initGeneticSystem(GVSSpreadSheet.java:273)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at visad.util.GUIFrame.actionPerformed(GUIFrame.java:161)
        at javax.swing.AbstractButton.fireActionPerformed(Unknown
Source)
        at
javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown
Source)
        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown
Source)
        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
        at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
        at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
        at java.awt.Component.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.pumpOneEventForHierarchy(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)

java.lang.InternalError
        at
javax.media.j3d.MasterControl.getCanvasBit(MasterControl.java:1049)
        at javax.media.j3d.Canvas3D.addNotify(Canvas3D.java:1324)
        at java.awt.Container.addNotify(Unknown Source)
        at javax.swing.JComponent.addNotify(Unknown Source)
        at java.awt.Container.addImpl(Unknown Source)
        at java.awt.Container.add(Unknown Source)
        at visad.ss.BasicSSCell$7.run(BasicSSCell.java:2728)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(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)

This same error shows up when I run the program at my old computer which
can run a 4x4 SS just fine. Problems occur on that computer when I try
to use a 12x4 SS.

Let me know if you need my files,
Thanks,
Michelle

-----Original Message-----
From: Bill Hibbard [mailto:billh@xxxxxxxxxxxxx] 
Sent: Tuesday, August 05, 2003 12:39 PM
To: Kam, Michelle C
Subject: RE: error description

Hi Michelle,

Thanks for the information. This problem is hopefully fixed by:

  ftp://ftp.ssec.wisc.edu/pub/visad-2.0/untested/DisplayImpl.java

Please let me know whether this fixes the problem.

Cheers,
Bill

On Tue, 5 Aug 2003, Kam, Michelle C wrote:

> Hi Bill,
>
> From DisplayImpl.doAction(), this is the code around line 1602:
>
>         // clear tickFlag-s in Control-s
>         maps = tmap.elements();
>         while(maps.hasMoreElements()) {
>           ScalarMap map = (ScalarMap) maps.nextElement();
>           map.resetTicks();
>         }
>       } finally {
> // System.out.println("DisplayImpl call setWaitFlag(false)");
>        displayRenderer.setWaitFlag(false);  //line 1602
>       }
>     } // end synchronized (mapslock)
>   }
>
>
> line 1602 is displayRenderer.setWaitFlag(false);
> I am compiling visad from source and running the spreadsheet after
> compiling it. (but visad.jar is needed on my classpath).
>
> Thanks,
> Michelle
>
> Michelle Kam           (408) 742-2881
> Lockheed Martin Space Systems Co. SSM/ATC/MSIS
> B/153 O/L922
> 1111 Lockheed Martin Way, Sunnyvale, CA 94089
>
>
>
>
> -----Original Message-----
> From: Bill Hibbard [mailto:billh@xxxxxxxxxxxxx]
> Sent: Tuesday, August 05, 2003 3:15 AM
> To: Kam, Michelle C
> Cc: visad-list@xxxxxxxxxxxxx
> Subject: Re: error description
>
>
> Hi Michelle,
>
> Unpacking the current visad_src-2.0.jar from the VisAD ftp
> server, line 1602 of DisplayImpl.java is:
>
>     } // end synchronized (mapslock)
>
> Its hard to imagine this line of code as the source of a
> NullPointerException.
>
> Please send me a small section of code around line 1602
> of your DisplayImpl.java, and clearly label which line is
> 1602. Make sure the source you are looking at is consistent
> with the classes you are running (best is to compile VisAD
> from source and run from the compiled classes, rather than
> from visad.jar.
>
> Thanks,
> Bill
>
> > Here are the details of the null pointer exception:
> >
> > java.lang.NullPointerException
> >
> >             at visad.DisplayImpl.doAction(DisplayImpl.java:1602)
> >
> >             at
> > visad.java2d.DisplayImplJ2D.doAction(DisplayImplJ2D.java:306)
> >
> >             at visad.ActionImpl.run(ActionImpl.java:303)
> >
> >             at
> > visad.util.ThreadPool$ThreadMinnow.run(ThreadPool.java:95)
> >
> >
> >
> > Is this a problem with j3d?
>
>


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