JRockit 8.x: <EJB> <BEA-010051> <EJB Exception occurred during invocation from home: java.lang.UnsatisfiedLinkError - CR204710 (Doc ID 776030.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle JRockit / JRockit / 8.x
Information in this document applies to any platform

Goal

DESCRIPTION:
When invoking a JNI Java class in an EJB project that loads and calls a Windows DLL, the following error happens:
...
<Nov 10, 2004 8:14:51 PM EST> <Info> <EJB> <BEA-010051> <EJB Exception occurred during
invocation from home: JniContact.JNISession_3llso2_HomeImpl@3053799 threw exception: java.lang.UnsatisfiedLinkError:
displayHelloWorld
java.lang.UnsatisfiedLinkError: displayHelloWorld
        at JniContact.HelloWorld.displayHelloWorld()V(HelloWorld.java:???)
        at JniContact.JNISession.outputString()V(JNISession.java:34)
        at JniContact.JNISession_3llso2_EOImpl.outputString()V(JNISession_3llso2_EOImpl.java:45)
        at Controller.CallSession()Lcom.bea.wlw.netui.pageflow.Forward;(Controller.jpf:90)
        at
jrockit.reflect.NativeMethodInvoker.invoke0(Ljava.lang.Object;ILjava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;
(Unknown Source)
        at jrockit.reflect.NativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown
Source)
        at
jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown
Source)
        at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)
        at
com.bea.wlw.netui.pageflow.FlowController.invokeActionMethod(Ljava.lang.reflect.Method;Lorg.apache.struts.action.Action
Form;Ljavax.servlet.http.HttpServletRequest;Lorg.apache.struts.action.
ActionMapping;)Lorg.apache.struts.action.ActionForward;(FlowController.java:1504)
        at
com.bea.wlw.netui.pageflow.FlowController.getActionMethodForward(Ljava.lang.String;Lorg.apache.struts.action.ActionForm
;Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServle
tResponse;Lorg.apache.struts.action.ActionMapping;)Lorg.apache.struts.action.ActionForward;(FlowController.java:1430)
        at
com.bea.wlw.netui.pageflow.FlowController.internalExecute(Lorg.apache.struts.action.ActionMapping;Lorg.apache.struts.ac
tion.ActionForm;Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.
http.HttpServletResponse;)Lorg.apache.struts.action.ActionForward;(FlowController.java:761)
        at
com.bea.wlw.netui.pageflow.PageFlowController.internalExecute(Lorg.apache.struts.action.ActionMapping;Lorg.apache.strut
s.action.ActionForm;Ljavax.servlet.http.HttpServletRequest;Ljavax.serv
let.http.HttpServletResponse;)Lorg.apache.struts.action.ActionForward;(PageFlowController.java:211)
        at
com.bea.wlw.netui.pageflow.FlowController.execute(Lorg.apache.struts.action.ActionMapping;Lorg.apache.struts.action.Act
ionForm;Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.Htt
pServletResponse;)Lorg.apache.struts.action.ActionForward;(FlowController.java:591)
        at
org.apache.struts.action.RequestProcessor.processActionPerform(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.ht
tp.HttpServletResponse;Lorg.apache.struts.action.Action;Lorg.apache.st
ruts.action.ActionForm;Lorg.apache.struts.action.ActionMapping;)Lorg.apache.struts.action.ActionForward;(RequestProcess
or.java:484)
        at
org.apache.struts.action.RequestProcessor.process(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServle
tResponse;)V(RequestProcessor.java:274)
        at
com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.process(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.
HttpServletResponse;)V(PageFlowRequestProcessor.java:651)
        at
com.bea.wlw.netui.pageflow.AutoRegisterActionServlet.process(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http
.HttpServletResponse;)V(AutoRegisterActionServlet.java:527)
        at
com.bea.wlw.netui.pageflow.PageFlowActionServlet.process(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.Htt
pServletResponse;)V(PageFlowActionServlet.java:152)
        at
org.apache.struts.action.ActionServlet.doGet(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResp
onse;)V(ActionServlet.java:507)
        at
javax.servlet.http.HttpServlet.service(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)
V(HttpServlet.java:740)
        at
javax.servlet.http.HttpServlet.service(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(HttpServlet.java
:853)
        at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava.lang.Object;(ServletStubImpl.java:996)
        at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Lw
eblogic.servlet.internal.FilterChainImpl;)V(ServletStubImpl.java:419)
        at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V
(ServletStubImpl.java:315)
        at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run()Ljava.lang.Object;(WebAppServletContext.jav
a:6456)
        at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic.security.subject.AbstractSubject;Ljava.security.Priv
ilegedAction;)Ljava.lang.Object;(AuthenticatedSubject.java:321)
        at
weblogic.security.service.SecurityManager.runAs(Lweblogic.security.acl.internal.AuthenticatedSubject;Lweblogic.security
.acl.internal.AuthenticatedSubject;Ljava.security.PrivilegedAction;)Lj
ava.lang.Object;(SecurityManager.java:118)
        at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(Lweblogic.servlet.internal.ServletRequestImpl;Lweblogic.se
rvlet.internal.ServletResponseImpl;)V(WebAppServletContext.java:3661)
        at
weblogic.servlet.internal.ServletRequestImpl.execute(Lweblogic.kernel.ExecuteThread;)V(ServletRequestImpl.java:2630)
        at weblogic.kernel.ExecuteThread.execute(Lweblogic.kernel.ExecuteRequest;)V(ExecuteThread.java:219)
        at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:178)
        at java.lang.Thread.startThreadFromVM(Ljava.lang.Thread;)V(Unknown Source)
>
java.rmi.RemoteException: EJB Exception: ; nested exception is:
        java.lang.UnsatisfiedLinkError: displayHelloWorld
        at
weblogic.ejb20.internal.EJBRuntimeUtils.throwRemoteException(Ljava.lang.String;Ljava.lang.Throwable;)V(EJBRuntimeUtils.
java:102)
        at
weblogic.ejb20.internal.BaseEJBHome.handleSystemException(Lweblogic.ejb20.internal.InvocationWrapper;Ljava.lang.Throwab
le;)V(BaseEJBHome.java:296)
        at
weblogic.ejb20.internal.BaseEJBObject.postInvoke(Lweblogic.ejb20.internal.InvocationWrapper;Ljava.lang.Throwable;)V(Bas
eEJBObject.java:263)
        at
weblogic.ejb20.internal.StatelessEJBObject.postInvoke(Lweblogic.ejb20.internal.InvocationWrapper;Ljava.lang.Throwable;)
V(StatelessEJBObject.java:140)
        at JniContact.JNISession_3llso2_EOImpl.outputString()V(JNISession_3llso2_EOImpl.java:55)
        at Controller.CallSession()Lcom.bea.wlw.netui.pageflow.Forward;(Controller.jpf:90)
        at
jrockit.reflect.NativeMethodInvoker.invoke0(Ljava.lang.Object;ILjava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;
(Unknown Source)
        at jrockit.reflect.NativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown
Source)
        at
jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown
Source)
        at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)
        at
com.bea.wlw.netui.pageflow.FlowController.invokeActionMethod(Ljava.lang.reflect.Method;Lorg.apache.struts.action.Action
Form;Ljavax.servlet.http.HttpServletRequest;Lorg.apache.struts.action.
ActionMapping;)Lorg.apache.struts.action.ActionForward;(FlowController.java:1504)
        at
com.bea.wlw.netui.pageflow.FlowController.getActionMethodForward(Ljava.lang.String;Lorg.apache.struts.action.ActionForm
;Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServle
tResponse;Lorg.apache.struts.action.ActionMapping;)Lorg.apache.struts.action.ActionForward;(FlowController.java:1430)
        at
com.bea.wlw.netui.pageflow.FlowController.internalExecute(Lorg.apache.struts.action.ActionMapping;Lorg.apache.struts.ac
tion.ActionForm;Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.
http.HttpServletResponse;)Lorg.apache.struts.action.ActionForward;(FlowController.java:761)
        at
com.bea.wlw.netui.pageflow.PageFlowController.internalExecute(Lorg.apache.struts.action.ActionMapping;Lorg.apache.strut
s.action.ActionForm;Ljavax.servlet.http.HttpServletRequest;Ljavax.serv
let.http.HttpServletResponse;)Lorg.apache.struts.action.ActionForward;(PageFlowController.java:211)
        at
com.bea.wlw.netui.pageflow.FlowController.execute(Lorg.apache.struts.action.ActionMapping;Lorg.apache.struts.action.Act
ionForm;Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.Htt
pServletResponse;)Lorg.apache.struts.action.ActionForward;(FlowController.java:591)
        at
org.apache.struts.action.RequestProcessor.processActionPerform(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.ht
tp.HttpServletResponse;Lorg.apache.struts.action.Action;Lorg.apache.st
ruts.action.ActionForm;Lorg.apache.struts.action.ActionMapping;)Lorg.apache.struts.action.ActionForward;(RequestProcess
or.java:484)
        at
org.apache.struts.action.RequestProcessor.process(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServle
tResponse;)V(RequestProcessor.java:274)
        at
com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.process(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.
HttpServletResponse;)V(PageFlowRequestProcessor.java:651)
        at
com.bea.wlw.netui.pageflow.AutoRegisterActionServlet.process(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http
.HttpServletResponse;)V(AutoRegisterActionServlet.java:527)
        at
com.bea.wlw.netui.pageflow.PageFlowActionServlet.process(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.Htt
pServletResponse;)V(PageFlowActionServlet.java:152)
        at
org.apache.struts.action.ActionServlet.doGet(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResp
onse;)V(ActionServlet.java:507)
        at
javax.servlet.http.HttpServlet.service(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)
V(HttpServlet.java:740)
        at
javax.servlet.http.HttpServlet.service(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(HttpServlet.java
:853)
        at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava.lang.Object;(ServletStubImpl.java:996)
        at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Lw
eblogic.servlet.internal.FilterChainImpl;)V(ServletStubImpl.java:419)
        at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V
(ServletStubImpl.java:315)
        at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run()Ljava.lang.Object;(WebAppServletContext.jav
a:6456)
        at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic.security.subject.AbstractSubject;Ljava.security.Priv
ilegedAction;)Ljava.lang.Object;(AuthenticatedSubject.java:321)
        at
weblogic.security.service.SecurityManager.runAs(Lweblogic.security.acl.internal.AuthenticatedSubject;Lweblogic.security
.acl.internal.AuthenticatedSubject;Ljava.security.PrivilegedAction;)Lj
ava.lang.Object;(SecurityManager.java:118)
        at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(Lweblogic.servlet.internal.ServletRequestImpl;Lweblogic.se
rvlet.internal.ServletResponseImpl;)V(WebAppServletContext.java:3661)
        at
weblogic.servlet.internal.ServletRequestImpl.execute(Lweblogic.kernel.ExecuteThread;)V(ServletRequestImpl.java:2630)
        at weblogic.kernel.ExecuteThread.execute(Lweblogic.kernel.ExecuteRequest;)V(ExecuteThread.java:219)
Caused by: java.lang.UnsatisfiedLinkError: displayHelloWorld
        at JniContact.HelloWorld.displayHelloWorld()V(HelloWorld.java:???)
        at JniContact.JNISession.outputString()V(JNISession.java:34)
        at JniContact.JNISession_3llso2_EOImpl.outputString()V(JNISession_3llso2_EOImpl.java:45)
        at Controller.CallSession()Lcom.bea.wlw.netui.pageflow.Forward;(Controller.jpf:90)
        at
jrockit.reflect.NativeMethodInvoker.invoke0(Ljava.lang.Object;ILjava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;
(Unknown Source)
        at jrockit.reflect.NativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown
Source)
        at
jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown
Source)
        at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)
        at
com.bea.wlw.netui.pageflow.FlowController.invokeActionMethod(Ljava.lang.reflect.Method;Lorg.apache.struts.action.Action
Form;Ljavax.servlet.http.HttpServletRequest;Lorg.apache.struts.action.
ActionMapping;)Lorg.apache.struts.action.ActionForward;(FlowController.java:1504)
        at
com.bea.wlw.netui.pageflow.FlowController.getActionMethodForward(Ljava.lang.String;Lorg.apache.struts.action.ActionForm
;Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServle
tResponse;Lorg.apache.struts.action.ActionMapping;)Lorg.apache.struts.action.ActionForward;(FlowController.java:1430)
        at
com.bea.wlw.netui.pageflow.FlowController.internalExecute(Lorg.apache.struts.action.ActionMapping;Lorg.apache.struts.ac
tion.ActionForm;Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.
http.HttpServletResponse;)Lorg.apache.struts.action.ActionForward;(FlowController.java:761)
        at
com.bea.wlw.netui.pageflow.PageFlowController.internalExecute(Lorg.apache.struts.action.ActionMapping;Lorg.apache.strut
s.action.ActionForm;Ljavax.servlet.http.HttpServletRequest;Ljavax.serv
let.http.HttpServletResponse;)Lorg.apache.struts.action.ActionForward;(PageFlowController.java:211)
        at
com.bea.wlw.netui.pageflow.FlowController.execute(Lorg.apache.struts.action.ActionMapping;Lorg.apache.struts.action.Act
ionForm;Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.Htt
pServletResponse;)Lorg.apache.struts.action.ActionForward;(FlowController.java:591)
        at
org.apache.struts.action.RequestProcessor.processActionPerform(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.ht
tp.HttpServletResponse;Lorg.apache.struts.action.Action;Lorg.apache.st
ruts.action.ActionForm;Lorg.apache.struts.action.ActionMapping;)Lorg.apache.struts.action.ActionForward;(RequestProcess
or.java:484)
        at
org.apache.struts.action.RequestProcessor.process(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServle
tResponse;)V(RequestProcessor.java:274)
        at
com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.process(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.
HttpServletResponse;)V(PageFlowRequestProcessor.java:651)
        at
com.bea.wlw.netui.pageflow.AutoRegisterActionServlet.process(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http
.HttpServletResponse;)V(AutoRegisterActionServlet.java:527)
        at
com.bea.wlw.netui.pageflow.PageFlowActionServlet.process(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.Htt
pServletResponse;)V(PageFlowActionServlet.java:152)
        at
org.apache.struts.action.ActionServlet.doGet(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResp
onse;)V(ActionServlet.java:507)
        at
javax.servlet.http.HttpServlet.service(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)
V(HttpServlet.java:740)
        at
javax.servlet.http.HttpServlet.service(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(HttpServlet.java
:853)
        at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava.lang.Object;(ServletStubImpl.java:996)
        at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Lw
eblogic.servlet.internal.FilterChainImpl;)V(ServletStubImpl.java:419)
        at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V
(ServletStubImpl.java:315)
        at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run()Ljava.lang.Object;(WebAppServletContext.jav
a:6456)
        at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic.security.subject.AbstractSubject;Ljava.security.Priv
ilegedAction;)Ljava.lang.Object;(AuthenticatedSubject.java:321)
        at
weblogic.security.service.SecurityManager.runAs(Lweblogic.security.acl.internal.AuthenticatedSubject;Lweblogic.security
.acl.internal.AuthenticatedSubject;Ljava.security.PrivilegedAction;)Lj
ava.lang.Object;(SecurityManager.java:118)
        at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(Lweblogic.servlet.internal.ServletRequestImpl;Lweblogic.se
rvlet.internal.ServletResponseImpl;)V(WebAppServletContext.java:3661)
        at
weblogic.servlet.internal.ServletRequestImpl.execute(Lweblogic.kernel.ExecuteThread;)V(ServletRequestImpl.java:2630)
        at weblogic.kernel.ExecuteThread.execute(Lweblogic.kernel.ExecuteRequest;)V(ExecuteThread.java:219)
        at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:178)
        at java.lang.Thread.startThreadFromVM(Ljava.lang.Thread;)V(Unknown Source)

CONFIGURATION:
WLW 8.1 SP3 and WLS 8.1 SP3 with JRockit 8.1 SP3 1.4.2_04

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms