I need to ask the following question but I would like to AVOID starting yet another flame war between the pro and anti VRML97.jar factions - so let me explain first:
In my application I use both XJ3D and VRML97.jar loaders. I do this because the XJ3D loader will load some things that VRML97 will not load, however the VRML97.jar loader is about 4 times faster and will load 95% of the simple (CAD output) data that I am involved with. Probably when the XJ3D loader fully meets the VRML97 spec (M5?) then we can look forward to some performance improvements. Anyway until then I need to use both loaders to get the performance that I need, with the breadth of data supported. Now the question.... My application is working fine when the VRML data is available as a file. (or URL file://...) When the VRML stream is read from an HTTP server (URL http://...) then the VRML97.jar loader crashes with the traceback java.lang.NegativeArraySizeException at com.sun.j3d.loaders.vrml97.impl.ContentNegotiator.startLoading(ContentNegoti ator.java:88) at com.sun.j3d.loaders.vrml97.impl.ContentNegotiator.run(ContentNegotiator.java :63) Exception loading URL: java.lang.NullPointerException java.lang.NullPointerException at java.io.ByteArrayInputStream.<init>(Unknown Source) at com.sun.j3d.loaders.vrml97.impl.Loader.openURL(Loader.java:276) at com.sun.j3d.loaders.vrml97.impl.Loader.load(Loader.java:293) at com.sun.j3d.loaders.vrml97.VrmlLoader.doLoad(VrmlLoader.java:112) at com.sun.j3d.loaders.vrml97.VrmlLoader.load(VrmlLoader.java:106) Can anybody tell me anything about this error Possibly the MIME header that I am using doesn't appeal to the VRML97 loader but if so, then does anybody know what it wants? The header that I am giving it is something like out.print("HTTP/1.0 200 \n"); out.print("Content-Type: model/vrml\n\n"); out.flush(); Which XJ3D seems perfectly happy with. Can anybody tell me where I can get the source of the VRML97.jar loader so that I can debug it myself. This last question is a particular issue. In searching back through the last 10,000 posts (I keep them to search) to this interest group, I note that the question "where is the VRML97.jar source" has been asked several times but not answered once. Reference has been made to using to source as documentation - fine if you've got it. Please, someone must know where the source to VRML97.jar can be obtained. I understand that Sun handed it over to the XJ3D so maybe there is even some obligation - at least moral - to continue to make it available unsupported until XJ3D can fully replace it. Thanks in anticipation Alex Bowden [EMAIL PROTECTED] =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".