Peter,
Nothing to be done on the GlassFish side. A limitation of a bad
choice made years ago.
It could be intermittent if the connection is made "now" meaning
main() might sometimes have executed, and sometimes not.
Lloyd
On Nov 24, 2008, at 5:21 PM, Peter Williams wrote:
>
>
> Lloyd Chambers wrote:
>> Are you using YourKit profile
> No
>> or another toolkit
> Maybe. I had VisualVM running when I got this today (and probably
> other days). It would have detected the VM start and possibly made
> such a request.
>
> I thought about this possibility, but this doesn't happen every
> time, just sometimes. For example, in this case, I started the
> server, got the exception traces, and so kill the server. When I
> restarted it, I didn't have any problems. VisualVM was running for
> the entire duration so if it is interfering, it's intermittent or
> dependent on something weird.
>
> I guess I'll just keep an eye out for consistent reproducible
> conditions. Is there anything that can be done about it? (either
> on the VisualVM side, assuming there's a connection, or the
> GlassFish side?)
>
> -Peter
>
>> that causes an MBeanServer to be loaded before the V2 main() can be
>> started (which establishes a classpath that enables finding the
>> required AppServerMBeanServerBuilder)?
>>
>> ..............................................
>> Lloyd Chambers
>> lloyd.chambers_at_sun.com
>> GlassFish team, LSARC member
>>
>>
>>
>>
>>
>>
>> On Nov 24, 2008, at 12:32 PM, Peter Williams wrote:
>>
>>> I set up a cluster with GlassFish 2.1 (B58, I know, it's a bit
>>> old, I'm planning on grabbing latest bits soon)
>>>
>>> I get exceptions shown below quite a bit, they seem to be fatal or
>>> at least rather bad. I don't get them all the time. Is this a
>>> bug? (If so, is it fixed?) Is it a known issue or just a
>>> configuration screwup by me (and if so, anyone know what I did?)
>>>
>>> I've seen this with starting the DAS, starting node agents (that
>>> trace is below) and maybe starting a server instance.
>>>
>>> Thanks for any suggestions...
>>>
>>> -Peter
>>>
>>> Redirecting output to /space/tools/glassfish_v21_b58/nodeagents/
>>> papaya2-agent2/papaya2-instance0/logs/server.log
>>> javax.management.JMRuntimeException: Failed to load
>>> MBeanServerBuilder class com.sun.enterprise.ee.admin.AppServerMB
>>> eanServerBuilder: java.lang.ClassNotFoundException:
>>> com.sun.enterprise.ee.admin.AppServerMBeanServerBuilder
>>> at
>>> javax
>>> .management
>>> .MBeanServerFactory
>>> .checkMBeanServerBuilder(MBeanServerFactory.java:480)
>>> at
>>> javax
>>> .management
>>> .MBeanServerFactory
>>> .getNewMBeanServerBuilder(MBeanServerFactory.java:511)
>>> at
>>> javax
>>> .management
>>> .MBeanServerFactory.newMBeanServer(MBeanServerFactory.java:298)
>>> at
>>> javax
>>> .management
>>> .MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:213)
>>> at
>>> javax
>>> .management
>>> .MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:174)
>>> 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:
>>> com.sun.enterprise.ee.admin.AppServerMBeanServerBuilder
>>> at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>>> at java.security.AccessController.doPrivileged(Native Method)
>>> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>>> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:
>>> 301)
>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>>> at
>>> javax
>>> .management
>>> .MBeanServerFactory.loadBuilderClass(MBeanServerFactory.java:423)
>>> at
>>> javax
>>> .management
>>> .MBeanServerFactory
>>> .checkMBeanServerBuilder(MBeanServerFactory.java:465)
>>> ... 15 more
>>> Exception thrown by the agent :
>>> javax.management.JMRuntimeException: Failed to load
>>> MBeanServerBuilder class
>>> com.sun .enterprise.ee.admin.AppServerMBeanServerBuilder:
>>> java.lang.ClassNotFoundException: com.sun.enterprise.ee.admin.AppS
>>> erverMBeanServerBuilder
>>> 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
>>> com.sun.enterprise.ee.admin.AppServerMBeanServerBuilder:
>>> java.lang.ClassNotFoundException: com.sun.enterprise.ee.adm
>>> in.AppServerMBeanServerBuilder
>>> 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 com.sun.enterprise.ee.admin.
>>> AppServerMBeanServerBuilder: java.lang.ClassNotFoundException:
>>> com.sun.enterprise.ee.admin.AppServerMBeanServerBuild er
>>> at
>>> javax
>>> .management
>>> .MBeanServerFactory
>>> .checkMBeanServerBuilder(MBeanServerFactory.java:480)
>>> at
>>> javax
>>> .management
>>> .MBeanServerFactory
>>> .getNewMBeanServerBuilder(MBeanServerFactory.java:511)
>>> at
>>> javax
>>> .management
>>> .MBeanServerFactory.newMBeanServer(MBeanServerFactory.java:298)
>>> at
>>> javax
>>> .management
>>> .MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:213)
>>> at
>>> javax
>>> .management
>>> .MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:174)
>>> 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:
>>> com.sun.enterprise.ee.admin.AppServerMBeanServerBuilder
>>> at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>>> at java.security.AccessController.doPrivileged(Native Method)
>>> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>>> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:
>>> 301)
>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>>> at
>>> javax
>>> .management
>>> .MBeanServerFactory.loadBuilderClass(MBeanServerFactory.java:423)
>>> at
>>> javax
>>> .management
>>> .MBeanServerFactory
>>> .checkMBeanServerBuilder(MBeanServerFactory.java:465)
>>> ... 15 more
>>> Agent failed to start!
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>