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

BodyEditor Libgdx Demo doesn't work, GdxRuntimeException:NoSuchMethodError #25

Open
GoogleCodeExporter opened this issue Jun 10, 2015 · 21 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1.Create a Libgdx project and add the loaders of physics-body-editor-2.9.2.zip 
to the libs directory of the project.
2.Replace the source files with the files from bodyeditor-libgdx-demo-2.9.1.zip.
3.Run on Android or Desktop.

What is the expected output? What do you see instead?
I didn't see the result which looks like what physics-body-editor.jar from the 
physics-body-editor-2.9.2 has produced.
Instead, a GdxRuntimeException occurred.

What version of the product are you using? On what operating system?
physics-body-editor-2.9.2.zip
bodyeditor-libgdx-demo-2.9.1.zip
libgdx-nightly-20130430.zip
Windows 8 Enterprise 64 bit

Please provide any additional information below.
Exception in thread "LWJGL Application" 
com.badlogic.gdx.utils.GdxRuntimeException: java.lang.NoSuchMethodError: 
com.badlogic.gdx.utils.JsonReader.parse(Ljava/lang/String;)Ljava/lang/Object;
    at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:116)
Caused by: java.lang.NoSuchMethodError: 
com.badlogic.gdx.utils.JsonReader.parse(Ljava/lang/String;)Ljava/lang/Object;
    at aurelienribon.bodyeditor.BodyEditorLoader.readJson(BodyEditorLoader.java:179)
    at aurelienribon.bodyeditor.BodyEditorLoader.<init>(BodyEditorLoader.java:41)
    at aurelienribon.bodyeditor.App.createBottle(App.java:126)
    at aurelienribon.bodyeditor.App.create(App.java:73)
    at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:130)
    at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:110)

Original issue reported on code.google.com by wy.willi...@gmail.com on 2 May 2013 at 2:27

@GoogleCodeExporter
Copy link
Author

The same issue in libgdx repository 
https://code.google.com/p/libgdx/issues/detail?id=1418

Original comment by asdani...@gmail.com on 3 May 2013 at 11:02

@GoogleCodeExporter
Copy link
Author

Same here - when I switched to the nightly build jars the loader failed.  Same 
trace as above.

Original comment by jmalbane...@gmail.com on 6 May 2013 at 4:55

@GoogleCodeExporter
Copy link
Author

Nate refactored the Json reading process: 
http://www.badlogicgames.com/wordpress/?p=2993
It broke the code.

private Model readJson(String str) {
        Model m = new Model();
        OrderedMap<String,?> rootElem = (OrderedMap<String,?>) new JsonReader().parse(str);

That doesnt work anymore.
I need a fix too, gonna try it myself.

Original comment by alchemic...@gmail.com on 6 May 2013 at 1:43

@GoogleCodeExporter
Copy link
Author

It's critical bug. Physics Body Editor does not work with libgdx nightlies.

Original comment by swiez9u...@gmail.com on 8 May 2013 at 7:42

@GoogleCodeExporter
Copy link
Author

Hello. I fixed that issue. Here is my version of BodyEditorLoader.java
https://gist.github.com/kzudov/5566204
I tested it with some of my shapes and with loader-libgdx-demo.

Original comment by kzudov....@gmail.com on 13 May 2013 at 4:50

Attachments:

@GoogleCodeExporter
Copy link
Author

help ...I use this fix but still same error...can anybody help me ??

Original comment by pipu...@gmail.com on 20 May 2013 at 4:36

@GoogleCodeExporter
Copy link
Author

@ kzudov, nice it works gr8

Original comment by joker...@gmail.com on 6 Jun 2013 at 5:41

@GoogleCodeExporter
Copy link
Author

Thanks for reporting. Being away from the project led to some nasty bugs like 
that. I'll include the provided fix in the source code and will release a new 
version.

Original comment by aurelien.ribon on 1 Oct 2013 at 7:59

  • Changed state: Accepted
  • Added labels: Priority-High, Usability
  • Removed labels: Priority-Medium

@GoogleCodeExporter
Copy link
Author

I have tested with kzudov solution and it works fine

Original comment by igor.far...@gmail.com on 11 Oct 2013 at 10:33

@GoogleCodeExporter
Copy link
Author

Any update on the new version? kzudov's link is down.

I could do with this tool, got a HUGE world that has a ground sprite that is 
up, down and all over the place, going to be very difficult/time consuming to 
create a fixture for it.

Original comment by Gibson.S...@gmail.com on 11 Dec 2013 at 4:22

@GoogleCodeExporter
Copy link
Author

I just updated to libgdx 0.9.9 and I'm facing the same issue. I don't want to 
fix it myself, waiting for the fix.

Original comment by webf...@gmail.com on 12 Dec 2013 at 9:00

@GoogleCodeExporter
Copy link
Author

KZUDOV's version in attachement

Original comment by asdani...@gmail.com on 13 Dec 2013 at 6:09

Attachments:

@GoogleCodeExporter
Copy link
Author

Here is the original version of kzudov's BodyEditorLoader.java.

Original comment by swiez9u...@gmail.com on 13 Dec 2013 at 7:37

Attachments:

@GoogleCodeExporter
Copy link
Author

Thank you so much for this fix! :-)

Original comment by autrel.f...@gmail.com on 26 Feb 2014 at 12:39

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

Ohh. I changed my github username, that's why the link was down.
Here's a working link: https://gist.github.com/zudov/5566204

Original comment by kzudov....@gmail.com on 13 Mar 2014 at 12:09

@GoogleCodeExporter
Copy link
Author

The BodyEditorLoader.java works great. Thanks =)

Original comment by cavpo...@gmail.com on 5 Apr 2014 at 9:37

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

send your email to jmalbanese@venicecreative.com - I have the fix.

Original comment by jmalbane...@gmail.com on 28 Jun 2014 at 4:38

@GoogleCodeExporter
Copy link
Author

I have fixed this and it works fine with LibGDX 1.4.1.  Of course you will need 
to change the package name.  :)

Original comment by bigfoot_...@yahoo.com on 19 Dec 2014 at 9:31

Attachments:

@GoogleCodeExporter
Copy link
Author

@bigfoot_software
It works great for me with LibGDX 1.4.1. Thank you so much bro !

Original comment by nhannguy...@gmail.com on 21 Dec 2014 at 5:34

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

No branches or pull requests

1 participant