Error while using Custom java classes with Policy Server : Error creating JVM - JNI code: -6(JNI_EINVAL)

Document ID : KB000051205
Last Modified Date : 14/02/2018
Show Technical Document Details


I am using Custom Java classes and when I use them with Policy Server as Authentication Scheme, I get the following error:

     [1396/1724][Tue Mar 30 2010 14:10:28][SmJVMSupport.cpp:392][ERROR]
     SmJVMSupport: Error creating JVM - JNI code: -6(JNI_EINVAL)


At the first glance, you may have a problem with the JVM itself as complaining for an invalid argument.
In order to solve it, you may check these:

  • JVMOptions.txt set :

    • server
    • Xms256M
    • Xmx256M

and check all the line ends that there is no unneeded carriage return, wrong character and so on.;

  • copy bin/client/jvm.dll to bin/server/jvm.dll of your jre after making backup of these;

  • If you use SiteMinder JDK, upgrade this package at the same level of your Policy Server;

  • Check if the following environment variables are set :

  • Is that registry available in Windows registry (if it is on Windows obviously):
    HKEY_LOCAL_MACHINE > SOFTWARE > JavaSoft > Java Development Kit > version