Domino Server, webmethods, LSX, and JNI_CreateJavaVM

I have a chunk of webMethods code that calls stuff from the jni.h, namely JNI_CreateJavaVM. I compiled it with a simple C program that just initializes everything. It creates a new wmcontext which in turn creates a pretty much blank JVM. Doesnt pass any arguements to the JNI_CreateJavaVM except the version “JNI_VERSION_1_2” or “*_1_4” both work fine, and the class path. Doesnt matter what th classpath is, even with it blank it creates the JVM fine.

Now I have to take that shared C lib and link it with an LSX that someone else wrote. All linked together in windows it works fine.

But when it is run from the domino server (run a WQO agent to kick it off) it JNI_CreateJavaVM kicks bacn “-NaN” when it is passed the same parameters.

This is on the same box, run from the same account.

The server is setup to let * run any kind of code/agent in the server document.

Everyone I talk to says it sounds like some sort of permissions with Java and/or Domino. I am no guru in setting up either. I just installed J2SE 1.4.2_04 with SDK which everything points to.

I added these lines to that java.security in 1.4.2

security.provider.1=sun.security.provider.Sun

security.provider.2=com.sun.net.ssl.internal.ssl.Provider

security.provider.3=com.sun.rsajca.Provider

security.provider.4=com.sun.crypto.provider.SunJCE

security.provider.5=sun.security.jgss.SunProvider

and added this line:

permission java.util.PropertyPermission “java.class.path”, “read,write”;

To the java.policy. None changed anything, some people googled and saw that and thought it might be a good idea.

I am running R65 server. I have mucked around with the wmJNIc.c (what calles the JNI_createJavaVM) just to put fprintfs around the arguments and errors etc. Also added an additional arguement “-verbose:jni” to the JNI_Create call but that did nothing (it is documented to do extensive logging).

I get my fprints and errors when it runs. But when I quit the server I get this:

quit

07/07/2004 13:48:14 Starting Server shutdown

07/07/2004 13:48:14 Database Replicator shutdown

07/07/2004 13:48:14 Router: Shutdown is in progress

07/07/2004 13:48:14 Mail Router shutdown

07/07/2004 13:48:15 Schedule Manager shutdown complete

07/07/2004 13:48:15 AMgr: Executive ‘1’ shutting down

07/07/2004 13:48:15 Agent Manager shutdown complete

07/07/2004 13:48:15 Event Monitor shutdown

07/07/2004 13:48:15 Calendar Connector shutdown

07/07/2004 13:48:15 LDAP Server: Waiting for all tasks to complete

07/07/2004 13:48:17 Administration Process shutdown

Stack base = 0xf70f0594, Stack size = 6448 bytes

Fatal Error signal = 0x0000000b PID/TID = 20740/17

Wed Jul 7 13:48:18 Running NSD

  • Child Terminated from signal 11

Wed Jul 7 13:48:20 Termination is in progress

Wed Jul 7 13:48:20 Running NSD

NSD is in progress …

Please attach the following files to your bug report along with the server log:

I am using SunOS 5.9 and SunWSpro as my C/C++ compiler.

If anyone has any input I would greatly appreciate it.

Thanks