Help ASE loader

I testing the tutorial 7 on xith.org.
When i compile no error, but when i run, i have this error :

java.lang.NullPointerException
at Ase.CrudeTank.loadGeom(CrudeTank.java:84)
at Ase.CrudeTank.(CrudeTank.java:64)
at Ase.AseTest.(AseTest.java:85)
at Ase.AseTest.main(AseTest.java:69)
java.lang.NullPointerException
at com.xith3d.scenegraph.Group.addChild(Group.java:91)
at Ase.AseTest.(AseTest.java:89)
at Ase.AseTest.main(AseTest.java:69)
Exception in thread “main”

Thanks for help :slight_smile:

can you please post the command line you use to run it?

It can’t read the .ASE file - so make sure it’s in the correct place.

Will.

I use SUN ONE STUDIO.
For launch the AseTest, i click on execute.

If u can say a good command line for launch?

Other example works fine.1-6 with this method

New error

com.xith3d.scenegraph.IllegalSceneGraphOperation: Illegal attempt to set the parent of this Node (name: ‘’, com.xith3d.scenegraph.TransformGroup@1ac1fe4) as it already has a parent (existing parent name: ‘Root’, com.xith3d.scenegraph.TransformGroup@161d36b) and this would violate the directed acyclic graph constraint of the scenegraph.
at com.xith3d.scenegraph.Node.setParent(Node.java:274)
at com.xith3d.scenegraph.Group.addChild(Group.java:96)
at CrudeTank.loadGeom(CrudeTank.java:97)
at CrudeTank.(CrudeTank.java:64)
at AseTest.(AseTest.java:85)
at AseTest.main(AseTest.java:69)
Exception in thread “main”

Im not sure, but is not a path to ase file?
I ve all file in same folder:
AseTest.jaja
CrudeTank.java
crudetank_mod.ASE
all image too and max file

OK work fine now !!!

can you tell how you fixed it?

I was going to suggest that you need to call removeChild on the parent first.

I should add this to the tutorial.

Will.

I use the 3ds model loader now.

are you rewritte the tut 7 ?

Bye,

I think it needs correcting :slight_smile:

Will.