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

Java Exception in roslaunch json_prolog project

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

aAsoodeh gravatar image

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

jayess gravatar image


I set up a ros project based on . 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,>, 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(
    at org.knowrob.json_prolog.JSONPrologNode.initProlog(
    at org.knowrob.json_prolog.JSONPrologNode.onStart(
    at org.ros.internal.node.DefaultNode$
    at org.ros.internal.node.DefaultNode$
    at org.ros.concurrent.EventDispatcher.loop(
    at java.util.concurrent.ThreadPoolExecutor.runWorker(
    at java.util.concurrent.ThreadPoolExecutor$

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


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

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

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


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

Seen: 176 times

Last updated: Dec 06 '18