[jbosstools-issues] [JBoss JIRA] (JBIDE-17843) Connecting to a local JBoss AS process in JMX Navigator fails - java version

Martin Malina (JIRA) issues at jboss.org
Thu Jul 10 04:22:24 EDT 2014


Martin Malina created JBIDE-17843:
-------------------------------------

             Summary: Connecting to a local JBoss AS process in JMX Navigator fails - java version
                 Key: JBIDE-17843
                 URL: https://issues.jboss.org/browse/JBIDE-17843
             Project: Tools (JBoss Tools)
          Issue Type: Bug
          Components: jmx
    Affects Versions: 4.2.0.Beta3
         Environment: JBDS 8.0.0.Beta3 B172 running with java 8
JBoss AS 7.1 running with java 6
workspace default is java 8
            Reporter: Martin Malina
            Priority: Critical


I started a local JBoss AS 7.1 server and then tried to connect to the java process in JMX Navigator in Local Processes.
When I tried to connect, I got this in the server log:
{code}
Exception in thread "Attach Listener" 10:13:20,404 ERROR [stderr] (Attach Listener) java.lang.UnsupportedClassVersionError: org/jboss/tools/jmx/jvmmonitor/internal/agent/Agent : Unsupported major.minor version 51.0
10:13:20,405 ERROR [stderr] (Attach Listener) 	at java.lang.ClassLoader.defineClass1(Native Method)
10:13:20,405 ERROR [stderr] (Attach Listener) 	at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)
10:13:20,405 ERROR [stderr] (Attach Listener) 	at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
10:13:20,406 ERROR [stderr] (Attach Listener) 	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
10:13:20,406 ERROR [stderr] (Attach Listener) 	at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
10:13:20,406 ERROR [stderr] (Attach Listener) 	at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
10:13:20,406 ERROR [stderr] (Attach Listener) 	at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
10:13:20,407 ERROR [stderr] (Attach Listener) 	at java.security.AccessController.doPrivileged(Native Method)
10:13:20,407 ERROR [stderr] (Attach Listener) 	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
10:13:20,407 ERROR [stderr] (Attach Listener) 	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
10:13:20,407 ERROR [stderr] (Attach Listener) 	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
10:13:20,408 ERROR [stderr] (Attach Listener) 	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
10:13:20,408 ERROR [stderr] (Attach Listener) 	at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:280)
10:13:20,408 ERROR [stderr] (Attach Listener) 	at sun.instrument.InstrumentationImpl.loadClassAndCallAgentmain(InstrumentationImpl.java:348)
Agent failed to start!
{code}

Java version 51.0 indicates Java SE 7. This is probably because the AS is running with java 6, but the attached agent jar is built with java 7.



--
This message was sent by Atlassian JIRA
(v6.2.6#6264)


More information about the jbosstools-issues mailing list