dcsimg
Re: JNI fails under Tomcat and JBoss
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Semion_Rotshtein
Posted On:   Tuesday, March 12, 2002 07:04 AM

Hi, I have tried to add permission java.lang.RuntimePermission "loadLibrary.*"; , but it's doesn't help. 1.System.loadLibrary("Mydll") - succeed, the dll is loaded to "Java.exe" process. (but somehow "DllMain" is called severel times). 2.The Java method that calls the native method gets stuck, the exceptions is: java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: java.rmi.ServerException: Transaction rolled back:GetDllStr2 java.rmi.ServerException: Transaction rolled back:GetDllStr2 at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:245) at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220) at sun.rmi.server.UnicastR   More>>

Hi, I have tried to add permission java.lang.RuntimePermission "loadLibrary.*"; , but it's doesn't help. 1.System.loadLibrary("Mydll") - succeed, the dll is loaded to "Java.exe" process. (but somehow "DllMain" is called severel times). 2.The Java method that calls the native method gets stuck, the exceptions is:

java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: java.rmi.ServerException: Transaction rolled back:GetDllStr2 java.rmi.ServerException: Transaction rolled back:GetDllStr2 at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:245) at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122) at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invoke(Unknown Source) at org.jboss.ejb.plugins.jrmp.interfaces.StatelessSessionProxy.invoke(StatelessSessionProxy.java:188) at $Proxy1.getLicenseInfo(Unknown Source) ...

   <<Less
About | Sitemap | Contact