Error creating JVM - JNI code: -6 (JNI_EINVAL) with Custom Java classes in Policy Server
search cancel

Error creating JVM - JNI code: -6 (JNI_EINVAL) with Custom Java classes in Policy Server

book

Article ID: 51205

calendar_today

Updated On:

Products

CA Single Sign On Secure Proxy Server (SiteMinder) CA Single Sign On SOA Security Manager (SiteMinder) CA Single Sign-On

Issue/Introduction

Using Custom Java classes with Policy Server as Authentication Scheme, the following error shows up in the smps.log:

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

Resolution

There might be a problem with the JVM itself as complaining for an invalid argument.

To solve it, 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 the jre after making a backup of these;
  • When using the SiteMinder JDK, upgrade this package at the same level as your Policy Server;
  • Check if the following environment variables are set:

    PATH
    JAVA_HOME
    NOTE_JAVA_PATH
    NOTE_JRE_ROOT
    NOTE_JVM_OPTION_FILE

  • When running on Windows, check that this registry is available in the Windows registry:

    HKEY_LOCAL_MACHINE > SOFTWARE > JavaSoft > Java Development Kit > version