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