Hi Boris,

This is a bug in the beta1 version of the API, this has been fixed in beta
2 which should be on the web any day.

The bug was that BehaviorState should not be abstract, to fix the problem
in your build the easiest thing is to remove abstract keyword from
BehaviorState.

Rgds

Paul

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

>MIME-Version: 1.0
>Date: Sun, 13 May 2001 20:15:50 -0700
>From: Boris Zeldin <[EMAIL PROTECTED]>
>Subject: [JAVA3D] j3dfly "serialization"
>To: [EMAIL PROTECTED]
>
>Paul,
>
>I ran into troubles while "serializing" my custom
>BranchGroup. I got the following exception:
>
>
>
> java.lang.RuntimeException: 4 Broken State class for
>com.sun.j3d.demos.utils.scenegraph.io.state.javax.medi.j3d.BehaviorState
> at
>com.sun.j3d.demos.utils.scenegraph.io.retained.Controller.constructStateObj(Con
troller.java:196)
> at
>com.sun.j3d.demos.utils.scenegraph.io.retained.Controler.checkSuperClasses(Cont
roller.java:232)
> at
>com.sun.j3d.demos.utils.scenegraph.io.retained.Controler.createState(Controller
.java:158)
> at
>com.sun.j3d.demos.utils.scenegraph.io.retained.Controler.createState
>
>.....
>
>
>I checked the source code and found that exception was
>thrown when we try to instantiate an abstract class. I
>followed the chain and found that the following
>classes were abstract
>
>public class abstract SceneGraphObjectState
>public class abstract NodeState extends
>SceneGraphObjectState
>public abstract class LeafState extends NodeState
>public abstract class BehaviorState extends LeafState
>
>I saw in your previous posting that we could ran into
>problem since SceneGraphObjectState should not be
>abstract. Appearantly, there is a bunch of other
>classes that must not be abstract. It is difficult for
>me to judge how many of those files decleared absract
>in
>com.sun.j3d.demos.utils.scenegraph.io.state.javax.medi.j3d
>must be corrected.
>
>Is it possible to get a corrected source code or a
>corresponding jar library?
>
>Another question. Does j3dfly "serialization" takes
>care of nested inheretance of custom
>SceneGraphObjects. That is while taking care of
>references in a child, should I excplicitely call
>createSceneGraphObjectReferences()for the parent.
>
>
>Thank you for bringing us this exciting library.
>
>Boris
>
>__________________________________________________
>Do You Yahoo!?
>Yahoo! Auctions - buy the things you want at great prices
>http://auctions.yahoo.com/
>
>===========================================================================
>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".

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