Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error #2

Open
5y opened this issue Sep 26, 2014 · 6 comments
Open

Error #2

5y opened this issue Sep 26, 2014 · 6 comments

Comments

@5y
Copy link

5y commented Sep 26, 2014

Hi,When i using Processing collada loader lib and import .dae animation file i have error

java.lang.RuntimeException: cooladaLoader.ColladaLoaderException:
A ColladaLoaderException is thrown: at Line 38 on cooladaLoader.xmlMapping.Effect

How i can fix? @Pro
Thank you.

@Pro
Copy link
Owner

Pro commented Sep 26, 2014

Unfortunately I don't maintain this library anymore. But I can try to help you fix the problem.

Are you sure that the Exception is thrown at line 38? This line is a comment... https://github.com/Pro/processing-collada-loader/blob/master/src/colladaLoader/xmlMapping/Effect.java#L38

What's the exact error message from the Exception?
When you found the correct line for the Exception, you can open the collada file in a text editor and check if the required XML nodes are there, which are accessed within the code.

@5y
Copy link
Author

5y commented Sep 26, 2014

@Pro Thank you for reply.
its all of things:

java.lang.NoClassDefFoundError: processing/xml/XMLElement

java.lang.RuntimeException: java.lang.NoClassDefFoundError: processing/xml/XMLElement
    at com.jogamp.common.util.awt.AWTEDTExecutor.invoke(AWTEDTExecutor.java:58)
    at jogamp.opengl.awt.AWTThreadingPlugin.invokeOnOpenGLThread(AWTThreadingPlugin.java:103)
    at jogamp.opengl.ThreadingImpl.invokeOnOpenGLThread(ThreadingImpl.java:206)
    at javax.media.opengl.Threading.invokeOnOpenGLThread(Threading.java:172)
    at javax.media.opengl.Threading.invoke(Threading.java:191)
    at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:541)
    at processing.opengl.PJOGL.requestDraw(PJOGL.java:688)
    at processing.opengl.PGraphicsOpenGL.requestDraw(PGraphicsOpenGL.java:1651)
    at processing.core.PApplet.run(PApplet.java:2256)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NoClassDefFoundError: processing/xml/XMLElement
    at colladaLoader.xmlMapping.ColladaRawLoader.startXmlMapping(ColladaRawLoader.java:62)
    at colladaLoader.xmlMapping.ColladaRawLoader.<init>(ColladaRawLoader.java:49)
    at colladaLoader.LoadingHelper.<init>(LoadingHelper.java:52)
    at colladaLoader.LoadingHelper.<init>(LoadingHelper.java:67)
    at colladaLoader.ColladaLoader.<init>(ColladaLoader.java:36)
    at colladaLoader.ColladaLoader.getInstance(ColladaLoader.java:51)
    at truckexample2.setup(truckexample2.java:36)
    at processing.core.PApplet.handleDraw(PApplet.java:2361)
    at processing.opengl.PJOGL$PGLListener.display(PJOGL.java:862)
    at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:665)
    at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:649)
    at javax.media.opengl.awt.GLCanvas$10.run(GLCanvas.java:1289)
    at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1119)
    at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:994)
    at javax.media.opengl.awt.GLCanvas$11.run(GLCanvas.java:1300)
    at java.awt.event.InvocationEvent.dispatch(Unknown Source)
    at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
    at java.awt.EventQueue.access$200(Unknown Source)
    at java.awt.EventQueue$3.run(Unknown Source)

In fact i can't load even sample library!!
i have a AR project i tested any format and any way,at the end i founded the Collada best type for Loading 3D with animation and i converted .3ds file to .dae and import in the code but i have error 👍

@Pro
Copy link
Owner

Pro commented Sep 26, 2014

The problem is, that processing.XML.XMLElement has been removed in Version 2:

Citation from https://github.com/processing/processing/wiki/Changes

A new class called XML replaces the old XMLElement. With the change, you can call loadXML("blah.xml") from inside PApplet to read XML data. The rest of the API is the same as it was for XMLElement, except that getXxxxAttribute() is now just getXxxx(), for instance getIntAttribute() is just getInt() (to be more like the rest of the Processing API). Also added XML.parse(String) which returns an XML object from a String of XML data. Whitespace is preserved more consistently with the new implementation, which might require some changes to your code.

You can fix the collada loader library and then create a pull request.

@5y
Copy link
Author

5y commented Sep 27, 2014

@Pro Thank you i working on that i send pull request.

@5y
Copy link
Author

5y commented Oct 5, 2014

@Pro
i fixed that and i send to you a Pull request soon.but i try on Processing 1.5 and load some Collada file with animation and i have run time Error

“Couldn't parse COLLADA file. Maybe the authoring tool 3dsMax 8 - Feeling ColladaMax v3.04E. isn't supported or the xml format is invalid. “

have any idea about that?
i load same file with Three.js collada with Javscript but i cant load with processing.

@biswajitcsecu
Copy link

Not satisfied answered...........

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants