Import Collada File with jme3dae.jar

Hi all,

i’m trying to import a collada file with jme3dae.jar but i’ve obtained this exception:

java.lang.NoSuchFieldError: Identity

at jme3dae.collada14.transformers.TransformationElementTransformer.transform(

at jme3dae.collada14.transformers.SceneTransformer.parseNode(

at jme3dae.collada14.transformers.SceneTransformer.parseVisualScene(

at jme3dae.collada14.transformers.SceneTransformer.parseInstanceVisualScene(

at jme3dae.collada14.transformers.SceneTransformer.transform(

at jme3dae.collada14.ColladaDocumentV14.transform(

at jme3dae.collada14.ColladaDocumentV14.transform(

at jme3dae.ColladaLoader.load(

at jme3dae.ColladaLoader.load(

at com.jme3.asset.DesktopAssetManager.loadAsset(

at com.jme3.asset.DesktopAssetManager.loadModel(

at com.jme3.asset.DesktopAssetManager.loadModel(

at codiceGoogle.Main.simpleInitApp(


at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(


at Source)

this is my code:

public void simpleInitApp() {





assetManager.registerLocator("", FileLocator.class.getName());

assetManager.registerLoader(jme3dae.ColladaLoader.class.getName(), “dae”);

Spatial gameLevel = assetManager.loadModel(“kitchen.dae”);

Material mat_default = new Material(





is there a problem with jme3 or there is some errore in my code?

thank you very much for any help


It sounds like a bug in the COLLADA contribution. Your best bet is likely to grab the source code and follow the stack trace… The project’s original author left the project some time ago.

Thank you for your help, i have already seen that link, but it doesn’t solve my problem. so i’ve tryed to use the old versione of jme, and i’ve used the code at this link:

but code works only with this model: “jmetest/data/model/collada/man.dae”

When i try it with an other collada file it doesn’t work; it can load file collada but it throws an exception at line 89. (java.lang.nullPointerException)

is it possible that there is a bug also in this case or i make a mistake?

thank you very much.

So you’re saying you went back to jME2 for Collada support? That’s kind of a big step backward!

The reason you’re seeing that NPE is probably that you don’t have a rig in your model. If you look at the source, you’ll see that it tries to get multiple parts of the COLLADA file. The dae parser for jME2 does work… We use it in production currently, though only for static assets.