Hi,
I'm calling a native method from Java 1.3/Windows 2000
under Tomcat 3.2 and JBoss 2.2 and it fails without any exception.
Before calling the native methods I load up the dll containing the method's native
implementation which reports no errors and prints some log messages in dll's main()
to prove it's loaded indeed. (For some reason, the messages suggest that the dll is
loaded
several times into the system, which is weird)
Then I call my native method and I get the following:
- the native method'd C code is not reached (no log messages found to prove otherwise)
- the Java method that calls the native method gets stuck
- exception:
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)
...
Important note :
when the same native method is called from a standalone Java application (not started
under Tomcat/JBoss) - it runs with no problem.
_________________________________________________________
View thread online: http://main.jboss.org/thread.jsp?forum=66&thread=10739
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development