Hi Ping,

This looks like the same problem you reported last week, it is currently
being investigated.

Rgds

Paul

----------------------------------------------------------
Paul Byrne                      Email : [EMAIL PROTECTED]
Sun Microsystems                Phone : (650) 786 9926
Visualization Software Group    Fax   : (650) 786 5852
----------------------------------------------------------


>MIME-Version: 1.0
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700
>Date: Mon, 22 May 2000 21:06:43 +0800
>From: ping <[EMAIL PROTECTED]>
>Subject: [JAVA3D] sun help: an exception of j3d's SceneGraphStreamReader/Writer
>To: [EMAIL PROTECTED]
>
>Hi all,
>I encountered an exceptin when I tried to use sun j3d's
SceneGraphStreamReader/Writer.The following is the stacktrace at the exception:
>java.lang.RuntimeException:No Such Class
>    at
com.sun.j3d.demos.utils.scenegraph.io.state.javax.media.j3d.SceneGraphObjectStat
e.createNode<SceneGraphObjectState.java:245>
>    at
com.sun.j3d.demos.utils.scenegraph.io.state.javax.media.j3d.SceneGraphObjectStat
e.readObject<SceneGraphObjectState.java:101>
>    at
com.sun.j3d.demos.utils.scenegraph.io.state.javax.media.j3d.NodeState.readObject
<NodeState.java:37>
>    at
com.sun.j3d.demos.utils.scenegraph.io.state.javax.media.j3d.GroupState.readObjec
t<GroupState.java:45>
>    at
com.sun.j3d.demos.utils.scenegraph.io.retained.Controller.readObject<Controller.
java:293>
>    at
com.sun.j3d.demos.utils.scenegraph.io.retained.StreamControl.readBranchGraph<Str
eamControl.java:81>
>    at
com.sun.j3d.demos.utils.scenegraph.io.SceneGraphStreamReader.readBranchGraph<Sce
neGraphStreamReader.java:49>
>
>Here is my program(load-->save-->reload):
>-------------------------------------------------------------------------------
>      FileOutputStream os=new FileOutputStream("xxyy.bg");
>      SceneGraphStreamWriter sgsw=new SceneGraphStreamWriter(os);
>      ObjectFile of=new ObjectFile(); // use sun's .obj loader
>      Scene scene=of.load("..\\minimart.obj");// it's ok
>      BranchGroup bg=scene.getSceneGroup();
>      System.out.println("before: "+bg.getBounds());//it's ok
>      HashMap p0=new HashMap();
>      sgsw.writeBranchGraph(bg,p0);
>
>      FileInputStream is=new FileInputStream("xxyy.bg");
>      SceneGraphStreamReader sgsr=new SceneGraphStreamReader(is);
>      HashMap p1=new HashMap();
>      bg=sgsr.readBranchGraph(p1);//////
>/*Here throws exception : java.lang.RuntimeException:No Such Class*/
>-------------------------------------------------------------------------------
---------------
>I know j3d's SceneGraphFileReader/Writer is ok, but how to use
StreamReader/Writer?
>            best regards
>                              ping
>
>

===========================================================================
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".

Reply via email to