Scene error

Hello @all,

im just switched to jme3 A3 and getting an error by trying to load a Scene (.j3o file).





[java]java.lang.NullPointerException

at com.jme3.export.binary.BinaryImporter.readObject(BinaryImporter.java:269)

at com.jme3.export.binary.BinaryImporter.load(BinaryImporter.java:200)

at com.jme3.export.binary.BinaryImporter.load(BinaryImporter.java:122)

at com.jme3.export.binary.BinaryImporter.load(BinaryImporter.java:112)

at com.jme3.asset.DesktopAssetManager.loadAsset(DesktopAssetManager.java:224)

at com.jme3.asset.DesktopAssetManager.loadModel(DesktopAssetManager.java:346)

at com.jme3.asset.DesktopAssetManager.loadModel(DesktopAssetManager.java:356)

at com.iBoat.ShipSimulation.ShipSimulation.loadScene(ShipSimulation.java:476)

at com.iBoat.ShipSimulation.ShipSimulation.simpleInitApp(ShipSimulation.java:162)

at com.jme3.app.SimpleApplication.initialize(SimpleApplication.java:186)

at com.jme3.app.SimpleBulletApplication.initialize(SimpleBulletApplication.java:52)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:134)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:183)

at java.lang.Thread.run(Thread.java:662)[/java]



And i cant either view the Scene in the SceneViewer.

An error dialog is shown with “Error opening Scene.j3o”

Can you please post the j3o file?

Solved, was my stupid failure.

The SceneViewer could not convert the ogremesh because of the extension xml.

After i renamed the file to scene.scene he converted the file to an .jo3 file an than it worked in code either.