ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

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

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

Description:

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)

Solution:

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 :
    PATH
    JAVA_HOME
    NETE_JAVA_PATH
    NETE_JRE_ROOT
    NETE_JVM_OPTION_FILE

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

Environment

Release:
Component: SMPLC