ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Java Exception in roslaunch json_prolog project

asked 2017-09-21 09:59:12 -0600

aAsoodeh gravatar image

updated 2018-12-06 16:56:52 -0600

jayess gravatar image

Hi

I set up a ros project based on http://www.knowrob.org/doc/interact_w... . I am using cpp file as the source.

Build is successful. when i roslaunch i receive this error:

INFO: Publisher registered: Publisher<PublisherDefinition<PublisherIdentifier<NodeIdentifier</json_prolog, http://127.0.0.1:36288/>, TopicIdentifier</rosout>>, Topic<TopicIdentifier</rosout>, TopicDescription<rosgraph_msgs/Log, acffd30cd6b6de30f120938c17c593fb>>>>

Exception in thread "pool-2-thread-3" java.lang.UnsatisfiedLinkError: jpl.fli.Prolog.get_default_init_args()[Ljava/lang/String;
    at jpl.fli.Prolog.get_default_init_args(Native Method)
    at jpl.JPL.getDefaultInitArgs(JPL.java:133)
    at org.knowrob.json_prolog.JSONPrologNode.initProlog(JSONPrologNode.java:393)
    at org.knowrob.json_prolog.JSONPrologNode.onStart(JSONPrologNode.java:92)
    at org.ros.internal.node.DefaultNode$5.run(DefaultNode.java:507)
    at org.ros.internal.node.DefaultNode$5.run(DefaultNode.java:504)
    at org.ros.concurrent.EventDispatcher.loop(EventDispatcher.java:43)
    at org.ros.concurrent.CancellableLoop.run(CancellableLoop.java:56)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)

Note that knowrob and rosjava is set up and i can run the examples.

Thanks

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-12-06 13:28:07 -0600

I encountered the same problem. This seems to be a known and fixed bug. It seems to come from a Java API changes between versions. See here for the merged pull request.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2017-09-21 09:59:12 -0600

Seen: 198 times

Last updated: Dec 06 '18