The error message “Native: 1002 - Java Exception, Native Error 4: java.lang.NoClassDefFoundError: silk/performer/SilkPerformer” has been known to occur during replay against an Oracle Forms Server or when replaying a Java Frameworks BDF script. To resolve the error the first thing you need to do is to verify that the SilkPerformer Java Active Profile settings are pointing to a valid Java Home, this can be done by doing the following: Go to “SETTINGS | ACTIVE PROFILE | JAVA | GENERAL” enter the Java Home; then go to the ADVANCED tab and press the “Check JVM” button. You should then receive a message “The Java Virtual Machine Settings are OK!”; if you do not receive this message then you will need to check the Java home specified exists on the machine hosting SilkPerformer. Users who are executing a Java Frameworks BDF script will also need to ensure that all of the referenced classes in their BDF and .Java files are added to the “CLASSPATH” settings in the “Java | General tab”. Once you have ruled out the above, you will next need to check the Try-Script localhost@scriptname_vuser.log file and verify if the SilkPerformer Java Runtime is unable to find the class files which form part of the “JavaUsersFramework.zip“. Below is a snippet taken from the vuser.log file which shows the Java Runtime not being able to locate the SilkPerformer class files. Exception = "java.lang.NoClassDefFoundError: silk/performer/SilkPerformer" Exception = "java.lang.NoClassDefFoundError: silk/performer/SilkPerformerPrintStream" Exception = "java.lang.NoClassDefFoundError: com/segue/core/jnilib/ReflectionUtil" Exception = "java.lang.NoClassDefFoundError: com/segue/core/jnilib/ReflectionUtil" Exception = "java.lang.NoClassDefFoundError: com/segue/core/jnilib/ReflectionUtil" Exception = "java.lang.NoClassDefFoundError: com/segue/core/jnilib/ReflectionUtil" Exception = "java.lang.NoClassDefFoundError: silk/performer/SilkPerformer" If you encounter the above message then this is a strong indication that your installation of SilkPerformer has become corrupted; therefore to resolve the error message it is recommended that you uninstall SilkPerformer, reboot, reinstall SilkPerformer and then perform a fresh Try-Script.
↧