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: [idvusers] IDV with isl; headless; by user apache ; gets Canvas3D: null GraphicsConfiguration

  • To: Stuart Wier <wier@xxxxxxxxxx>
  • Subject: Re: [idvusers] IDV with isl; headless; by user apache ; gets Canvas3D: null GraphicsConfiguration
  • From: John Caron <caron@xxxxxxxxxxxxxxxx>
  • Date: Tue, 08 Dec 2009 15:15:10 -0700
Stuart Wier wrote:
Running the IDV on Linux with an isl file, as user apache, on a headless web server, to make an image file of display gets this error:

ERROR: Creating display master
Canvas3D: null GraphicsConfiguration
java.lang.NullPointerException: Canvas3D: null GraphicsConfiguration
at javax.media.j3d.Canvas3D.checkForValidGraphicsConfig(Canvas3D.java:982)
        at javax.media.j3d.Canvas3D.<init>(Canvas3D.java:1051)
        at visad.java3d.VisADCanvasJ3D.<init>(VisADCanvasJ3D.java:211)
        at visad.java3d.DisplayImplJ3D.initialize(DisplayImplJ3D.java:405)

The process's non-error output is:
Tue Dec 08 11:14:13 MST 2009: Loading bundle: /state/partition1/unavco/tomoserver/MITP_generic_plan_display.xidv
Tue Dec 08 11:14:16 MST 2009: Waiting for displays to render
Tue Dec 08 11:14:17 MST 2009: Done waiting for displays to render

The command is
/state/partition1/unavco/idv27/jre/bin/java -Xmx1200m -Didv.enableStereo=false -jar /state/partition1/unavco/idv27/idv.jar -userpath /state/partition1/unavco/tomoserver/IDV/DefaultIdv /state/partition1/unavco/tomoserver/working_apache.isl >> isloutput 2>islerrors

Running exactly the same command in the same directory by a regular user, not apache, makes the image with no error.

Looks like apache and java3D don't get along somehow.

Any ideas will be appreciated.

Stuart

_______________________________________________
idvusers mailing list
idvusers@xxxxxxxxxxxxxxxx
For list information, to unsubscribe, visit: http://www.unidata.ucar.edu/mailing_lists/

did you try giving -Djava.awt.headless=true to the JVM ?



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