Cannot invoke native method: java.lang.UnsatisfiedLinkError

Solution Unverified - Updated -

Issue

  • I'm trying to invoke a native library from my ESB action class, but I get the error listed below.  Note that this is not a failure to find the shared object, as the error is a little different.  It seems not to be able to find the native method within the shared library.

2011-11-09 17:19:35,226 WARN  [org.jboss.soa.esb.listeners.message.MessageAwareListener] (pool-57-thread-1) TransactionalRunner caught throwable:

java.lang.UnsatisfiedLinkError: com.company.service.util.businessmethod([B[B)I
at com.company.service.action.MyServiceAction.ProcessRecordAction(MyServiceAction.java:83)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.soa.esb.listeners.message.ActionProcessorMethodInfo.processMethods(ActionProcessorMethodInfo.java:102)
at org.jboss.soa.esb.listeners.message.OverriddenActionLifecycleProcessor.process(OverriddenActionLifecycleProcessor.java:74)
at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.processPipeline(ActionProcessingPipeline.java:635)
at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.processPipeline(ActionProcessingPipeline.java:589)
at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.process(ActionProcessingPipeline.java:419)
at org.jboss.soa.esb.listeners.message.MessageAwareListener$TransactionalRunner.run(MessageAwareListener.java:540)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)

Environment

  • JBoss Enterprise Application Platform (EAP) 5.x
  • JBoss Enterprise Application Platform (EAP) 4.x
  • JBoss SOA Platform (SOA-P) 5.x
  • JBoss SOA Platform (SOA-P) 4.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In