Error Codes and Descriptions

The following table lists possible error codes you might receive while using the Java step types example and the corresponding descriptions.

Error Code Error Message Explanation
-1001 Could not launch JVM The creation of the Java virtual machine (JVM) failed. Refer to the Sun website at java.sun.com for information about the possible causes of the failure. Verify that jvm.dll was found and is not corrupt, and ensure that the class path is valid.
-1001 Could not attach thread to JVM The current thread was detached from the JVM. Restart TestStand and ensure that the Java run-time environment is installed correctly.
-1001 Could not detach current thread The current thread could not be detached from the JVM. Restart TestStand and ensure that the Java run-time environment is installed correctly.
-1002 Could not launch JVM The current thread was detached from the JVM. Restart TestStand and ensure that the Java run-time environment is installed correctly.
-1003 Could not launch JVM A Java Native Interface (JNI) version error occurred. The wrong version of the JVM was found. Ensure that the Java run-time environment is installed correctly.
-1004 Could not launch JVM Insufficient memory to create the JVM.
-1005 Could not launch JVM The JVM already exists in memory.
-1006 Could not launch JVM Invalid arguments are passed. Verify that the class path is correct and ensure that the Java run-time environment is installed correctly.
-1500 Cannot find class The specified class name was not found in the class path. Verify the class name and that the file that contains the class exists in the class path.
-2000 Incorrect class name The specified class name is incorrect. Re-enter the class name in the Edit Java Call dialog box.
-3000 Cannot find method The specified method was not found in the specified class. Verify that the method name is correct and that it exists in the specified class.
-3500 Too many arguments passed for void method Too many arguments are passed for a void method.
-4000 Error reading returned string The string returned from Java is corrupt. Verify that the return type of the Java method is a string value.
-5000 Invalid return type found The return type of the Java method does not match the return type specified in TestStand. Ensure that the variable types in TestStand are compatible with the Java types.
-6000 JVM not invoked The JVM was not created. Verify that TestStand calls the StartJVM step before this step.
-7000 Unable to find registry key for Java run time The registry key that contains the entry for the Java run-time environment cannot be found. The JVM installer registers the key. Reinstall the JVM.
-7500 Unable to find registry keys for Java The registry entry that specifies the location of jvm.dll was not found. The Java run-time environment installs the entry. Reinstall the JVM.
-8000 Unable to find run-time DLL for Java The registry entry for jvm.dll points to an invalid location, which indicates that the DLL was not found at the location. Reinstall the JVM.
-9000 Unable to find CreateJavaVM function jvm.dll The jvm.dll file does not contain the CreateJavaVM function, which indicates that the DLL is invalid. Reinstall the JVM.
-10000 Cannot allocate memory The system is low on resources and memory allocation failed.