[
https://issues.jboss.org/browse/JBIDE-18267?page=com.atlassian.jira.plugi...
]
Max Rydahl Andersen commented on JBIDE-18267:
---------------------------------------------
I had a talk with [~rob.stryker] about this today and yes, as it it stands this breaks
public API but turns out this class is *not* meant to be implemented by clients - just
used.
Thus it is missing a @noimplements and a basic codescan of Fuse that *might* have used
this shows it is not being implemented so we should not be breaking any binary usage of
this unless someone actually implemented the interface (which they shouldn't have)
Thus I reluctantly agree to get this in. It is not clean, but it is also not wrong since
the @noimplements was missing and it supposedly fixes the nasty issue of servers not
starting.
I just wish QE can actually verify that this actually do get fixed by this.
Errors when starting EAP 5.2 - problem with jmx agent
-----------------------------------------------------
Key: JBIDE-18267
URL:
https://issues.jboss.org/browse/JBIDE-18267
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: jmx, server
Affects Versions: 4.2.0.CR1
Reporter: Martin Malina
Assignee: Rob Stryker
Labels: respin-a
Fix For: 4.2.1.CR1, 4.3.0.Alpha1
When I add EAP 5.2 using runtime detection and then start the server, I get errors in the
console:
{code}
15:07:25,729 INFO [JMXKernel] Legacy JMX core initialized
javax.management.JMRuntimeException: Failed to load MBeanServerBuilder class
org.jboss.mx.server.MBeanServerBuilderImpl: java.lang.ClassNotFoundException:
org.jboss.mx.server.MBeanServerBuilderImpl
at
javax.management.MBeanServerFactory.checkMBeanServerBuilder(MBeanServerFactory.java:481)
at
javax.management.MBeanServerFactory.getNewMBeanServerBuilder(MBeanServerFactory.java:512)
at javax.management.MBeanServerFactory.newMBeanServer(MBeanServerFactory.java:299)
at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:214)
at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:175)
at
sun.management.ManagementFactory.createPlatformMBeanServer(ManagementFactory.java:302)
at
java.lang.management.ManagementFactory.getPlatformMBeanServer(ManagementFactory.java:504)
at
sun.management.jmxremote.ConnectorBootstrap.startLocalConnectorServer(ConnectorBootstrap.java:458)
at sun.management.Agent.startAgent(Agent.java:135)
at sun.management.Agent.agentmain(Agent.java:95)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:325)
at
sun.instrument.InstrumentationImpl.loadClassAndCallAgentmain(InstrumentationImpl.java:348)
Caused by: java.lang.ClassNotFoundException: org.jboss.mx.server.MBeanServerBuilderImpl
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at javax.management.MBeanServerFactory.loadBuilderClass(MBeanServerFactory.java:424)
at
javax.management.MBeanServerFactory.checkMBeanServerBuilder(MBeanServerFactory.java:466)
... 15 more
Exception thrown by the agent : javax.management.JMRuntimeException: Failed to load
MBeanServerBuilder class org.jboss.mx.server.MBeanServerBuilderImpl:
java.lang.ClassNotFoundException: org.jboss.mx.server.MBeanServerBuilderImpl
Exception in thread "Attach Listener"
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:325)
at
sun.instrument.InstrumentationImpl.loadClassAndCallAgentmain(InstrumentationImpl.java:348)
Caused by: java.lang.RuntimeException: javax.management.JMRuntimeException: Failed to
load MBeanServerBuilder class org.jboss.mx.server.MBeanServerBuilderImpl:
java.lang.ClassNotFoundException: org.jboss.mx.server.MBeanServerBuilderImpl
at sun.management.Agent.error(Agent.java:309)
at sun.management.Agent.startAgent(Agent.java:153)
at sun.management.Agent.agentmain(Agent.java:95)
... 6 more
Caused by: javax.management.JMRuntimeException: Failed to load MBeanServerBuilder class
org.jboss.mx.server.MBeanServerBuilderImpl: java.lang.ClassNotFoundException:
org.jboss.mx.server.MBeanServerBuilderImpl
at
javax.management.MBeanServerFactory.checkMBeanServerBuilder(MBeanServerFactory.java:481)
at
javax.management.MBeanServerFactory.getNewMBeanServerBuilder(MBeanServerFactory.java:512)
at javax.management.MBeanServerFactory.newMBeanServer(MBeanServerFactory.java:299)
at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:214)
at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:175)
at
sun.management.ManagementFactory.createPlatformMBeanServer(ManagementFactory.java:302)
at
java.lang.management.ManagementFactory.getPlatformMBeanServer(ManagementFactory.java:504)
at
sun.management.jmxremote.ConnectorBootstrap.startLocalConnectorServer(ConnectorBootstrap.java:458)
at sun.management.Agent.startAgent(Agent.java:135)
... 7 more
Caused by: java.lang.ClassNotFoundException: org.jboss.mx.server.MBeanServerBuilderImpl
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at javax.management.MBeanServerFactory.loadBuilderClass(MBeanServerFactory.java:424)
at
javax.management.MBeanServerFactory.checkMBeanServerBuilder(MBeanServerFactory.java:466)
... 15 more
Agent failed to start!
{code}
It's kind of strange, but it didn't happen at first. When I changed the server to
compressed deployment, it started happening. So I wanted to check again in a new
workspace. In the new workspace, I just added the server and start (with default -
exploded wars) and it happened again.
--
This message was sent by Atlassian JIRA
(v6.3.8#6338)