Asset import error. Used to work

Hey I used jME a few months ago with Blender and I could import models but I decided to start up a game again but I can’t import models.



This is the error I get in the jMe import manager when I try and import a model



[xml]Error in scene!

(java.lang.NoSuchMethodError: com.jme3.gde.core.assets.ProjectAssetManager$DummyProject.<init>(Lcom/jme3/gde/core/assets/ProjectAssetManager;Lcom/jme3/gde/core/assets/ProjectAssetManager;Lorg/openide/filesystems/FileObject;)V)[/xml]



I first tried it with a model that had a material with one texture and I got that error and then I tried it with a basic circle with no material on it (just the circle.mesh.xml) and got the same error.



I export the object from Blender with the ogre exporter and the xml file looks fine.



Any ideas would be great thanks.

Did you use the nightly version at some point? Do you have all stable updates installed? Did you change the blender version?

What do you mean by the nightly version? Well since the last time it worked Ive formatted my computer. jMonkey and Blender are fully updated.



When I import the object in the actual code in the simpleInitApp() function I get piles of warnings but the thing that stops it is this severe error:



SEVERE: Uncaught exception thrown in Thread[LWJGL Renderer Thread,5,main]

java.lang.NullPointerException

at com.jme3.scene.plugins.ogre.MeshLoader.applyMaterial(MeshLoader.java:200)

at com.jme3.scene.plugins.ogre.MeshLoader.startSubMesh(MeshLoader.java:255)

at com.jme3.scene.plugins.ogre.MeshLoader.startElement(MeshLoader.java:593)

at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:506)

at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:376)

at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2715)

at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:607)

at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:116)

at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:488)

at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:835)

at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)

at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:123)

at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1210)

at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:568)

at com.jme3.scene.plugins.ogre.MeshLoader.load(MeshLoader.java:821)

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

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

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

at mygame.Main.simpleInitApp(Main.java:28)

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

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

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

at java.lang.Thread.run(Thread.java:722)



The window then closes.

SDK → Tools → plugins → Settings → JME SDK Nightly

and update.

Nononono! Don’t use nightly, its causing issues, not solving them… So you say you use the latest version of blender? Rather use 2.62.

oh, my fail, i thought that you want him to try nightly :stuck_out_tongue:



sometimes i should really shut up :roll:



edit:

after thinking about that, btw: i never tried(in blender) to add a material slot to model and do not apply material to that slot.

but it could be issue too.

theres a reason its broke :slight_smile:



cough normen cough

@wezrule said:
theres a reason its broke :)

*cough* normen *cough*

:?

nothing :slight_smile: <3

@wezrule said:
nothing ^_^ <3

My problem is that I predict breaking stuff all the time but nobody listens ;)
1 Like

Ive just downloaded the blender 2.61 there and now when I try and export from it with the ogre exporter it creates a material file and gives an error and no mesh.xml file.

The ogre exporter that comes with the engine (Tools->OgreXML) should work with 2.61