From: Joerg K. W. <we...@in...> - 2003-08-14 21:48:07
|
Hi, eventually you could use: line 72: if(config!=null) { moleculeCanvas = new Canvas3D(config); mScene = new MolecularScene(moleculeCanvas); add(moleculeCanvas, BorderLayout.CENTER); } and for all other methods you should add if(mScene!=null) { ... } else { logger.error(...) } or if(moleculeCanvas!=null) { ... } else { logger.error(...) } If this works i recommend to add these changes to CVS directly to avoid this problem for other users ! Unfortunately the Java3D API for other platform is often not really up-to-date ... Regards, Joerg > ************************************************************************ > *** ERROR: Canvas3D constructed with a null GraphicsConfiguration *** > This will cause a NullPointerException in a subsequent release > ************************************************************************ > java.lang.NullPointerException: > Canvas3D: null GraphicsConfiguration at > javax.media.j3d.Canvas3D.<init>(Canvas3D.java:1100) at > javax.media.j3d.Canvas3D.<init>(Canvas3D.java:1065) at > joelib.gui.molviewer.java3d.graphics3D.JPanel3D.<init>(JPanel3D.java:72) at > joelib.gui.molviewer.java3d.ViewerFrame.jbInit(ViewerFrame.java:154) > > > I am using "Java 3DTM v.1.2.1_01 API for IRIX" on a SGI Indigo2 (I know > it's an old beast, but still it should work). The graphics board > is listed as "IMPACTPC". > > In accordance with advice in some newsgroups I tried to change the > DepthSize of the GraphicsConfigTemplate3D, but to no avail. > > Anybody else solved this same problem? > > Greetings, > Gert > > PS: on the Linux PC it works smoothly > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 > _______________________________________________ > Joelib-help mailing list > Joe...@li... > https://lists.sourceforge.net/lists/listinfo/joelib-help > -- Dipl. Chem. Joerg K. Wegner Center of Bioinformatics Tuebingen (ZBIT) Department of Computer Architecture Univ. Tuebingen, Sand 1, D-72076 Tuebingen, Germany Phone: (+49/0) 7071 29 78970 Fax: (+49/0) 7071 29 5091 E-Mail: mailto:we...@in... WWW: http://www-ra.informatik.uni-tuebingen.de -- Never mistake motion for action. E. Hemingway |