The timeout configuration does not adequately accommodate the migration process.

Problem

The migration of identity store fails with the following timeout error message.

vra-cafe:~/bin # ./migrate-identity-stores
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.NoClassDefFoundError: com/vmware/identity/idm/InvalidArgumentException
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
at java.lang.Class.getMethod0(Class.java:3018)
at java.lang.Class.getMethod(Class.java:1784)
at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526)
Caused by: java.lang.ClassNotFoundException: com.vmware.identity.idm.InvalidArgumentException
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 7 more

Cause

The configuration timed out before the migration process could successfully complete.

Procedure

  1. Open a command-line prompt.
  2. Open the executable migrate-identity-stores script.
  3. Scroll to the bottom of the script and locate the execution of a java command.

    For example, exec "$JAVACMD" $JAVA_OPTS -Xms256m -Xmx512m -Dverbose=false -Dlog4j.configurationFile=log4j2.xml

  4. Increase the system property value for the client socket timeout to one hour.

    -Dclient.system.socket.timeout=3600000.

  5. Run the migrate-identity-stores script on the Single-sign on 2.0 server.

What to do next

Start the migration process.