java.nio.BufferUnderflowException with ogreloader. How to fix it?

Hi, i havent been able to get my skeleton animation to work with ogreloader. I'm getting the following Exception:




14.04.2009 0:24:35 class test.MyTestOgreXML start()
SEVERE: Exception in game loop
java.nio.BufferUnderflowException
   at java.nio.Buffer.nextGetIndex(Unknown Source)
   at java.nio.DirectFloatBufferU.get(Unknown Source)
   at com.radakan.jme.mxml.anim.MeshAnimationController.softwareSkinUpdate(MeshAnimationController.java:312)
   at com.radakan.jme.mxml.anim.MeshAnimationController.update(MeshAnimationController.java:419)
   at com.jme.scene.Spatial.updateWorldData(Spatial.java:541)
   at com.jme.scene.Node.updateWorldData(Node.java:383)
   at com.jme.scene.Spatial.updateGeometricState(Spatial.java:517)
   at com.jme.scene.Node.updateWorldData(Node.java:395)
   at com.jme.scene.Spatial.updateGeometricState(Spatial.java:517)
   at test.MyTestOgreXML.simpleInitGame(MyTestOgreXML.java:202)
   at com.jme.app.BaseSimpleGame.initGame(BaseSimpleGame.java:544)
   at com.jme.app.BaseGame.start(BaseGame.java:74)
   at test.MyTestOgreXML.main(MyTestOgreXML.java:70)



I have uploaded the troublesome animation to:

http://betwixt.kirves.pri.ee/Stuff/Laskja/Laskja.mesh.xml
http://betwixt.kirves.pri.ee/Stuff/Laskja/Laskja_mesh.skeleton.xml
http://betwixt.kirves.pri.ee/Stuff/Laskja/LaskjaScene.material

What causes this Exception and how can I fix it?

Well,…that is the question! That exception drove me crazy… As soon as my skeleton got to

complex this occurs with me as well. Just loading the model was ok, starting the animation–>BANG



You modelled in blender? Did you try md5 and md5importer? That seems to be a bit more stable.



Importer: http://code.google.com/p/md5importer/

Exporter: http://www.katsbits.com/files/md5/blender2md5_v0.94_02sept06.zip