Not a customer? Click the 'Start a free trial' link to begin a 30-day SaaS trial of our product and to join our community.
Existing Cisco AppDynamics customers should click the 'Sign In' button to authenticate to access the community
03-23-2017 08:29 PM
I installed AppDynamics 15 day trial on a server which has JAVA_HOME set to 1.6.0_16. The applications which I hope to monitor is also using the same JDK version. Checking the server.log file, I get an error like so:
java.lang.UnsupportedClassVersionError: UnsupportedClassVersionError: Class com.singularity.ee.controller.beans.model.AHierarchicalConfigObjectPersistorBean has unsupported major or minor version numbers, which are greater than those found in the Java Runtime Environment version 1.6.0_16
I had a look at domain.xml and modified the -D.java.ext.dirs jvm-option to use the jre that came with the installation but it still doesn't work. Can you give some other suggestions I can try out or will AppDynamics not work with the JDK version I'm currently using?
03-23-2017 10:34 PM - edited 03-23-2017 10:36 PM
Angelo,
You can use the AppDynamics Java agent to minitor application that runs with JDK 1.6. Take a look at the below doc
https://docs.appdynamics.com/display/PRO42/Java+Supported+Environments
On the error message you are getting currently, it looks like you have configured your controller to use 1.6 Java but note that by default, the Controller uses Java 1.7. and hence you need to allow the controller to make use of the embedded JRE
Take a look at the below docs
https://docs.appdynamics.com/display/PRO42/Install+the+Controller
https://docs.appdynamics.com/display/PRO42/Platform+Version+Information
Hope this helps
Regards,
Mohammed Rayan
03-27-2017 01:39 PM - edited 03-27-2017 01:42 PM
Hi Mohammed,
Thanks for your reply. I'm trying to get this running on Windows Server 2012.
There's an issue with the set-controller-java-1.* tasks in controller.bat where it adds an extra space at the end of the AS_JAVA value.
This causes a 'cannot find the path specified' error when running 'controller.bat start'. I had to manually remove that space for the script to proceed. However, even after fixing that I'm still seeing the same error in server.log when glassfish attempts to deploy the controller application:
java.lang.UnsupportedClassVersionError: UnsupportedClassVersionError: Class com.singularity.ee.controller.beans.model.AHierarchicalConfigObjectPersistorBean has unsupported major or minor version numbers, which are greater than those found in the Java Runtime Environment version 1.6.0_16 at com.sun.enterprise.loader.ASURLClassLoader.findClass(ASURLClassLoader.java:759) at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
Note that my 1.6.0_16 is currently set as my JAVA_HOME environment variable. Is there anything else I need to change?
Thanks, Angelo
03-27-2017 03:27 PM
There's a couple of issues with the set-controller-java-1.* tasks:
set AS_JAVA="D:\\AppDynamics\Controller"\jre
Removing the quotes and the extra space at the end fixed the issues for me.
Thank you! Your submission has been received!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form