Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting error when trying to use WebSphere 8.5.5 #387

Closed
zshahan opened this issue May 17, 2018 · 3 comments
Closed

Getting error when trying to use WebSphere 8.5.5 #387

zshahan opened this issue May 17, 2018 · 3 comments
Labels
Milestone

Comments

@zshahan
Copy link

zshahan commented May 17, 2018

I am getting this error below when starting WebSphere after adding glowroot. Is it something I did wrong?

2018-05-16 21:39:29.709 INFO  org.glowroot - Glowroot version: 0.10.9, built 2018-05-10 00:48:11 +0000
2018-05-16 21:39:29.714 INFO  org.glowroot - Java version: 1.8.0_151
2018-05-16 21:39:32.187 INFO  org.glowroot - plugins loaded: Cassandra Plugin, EJB Plugin, Elasticsearch Plugin, Executor Plugin, Grails Plugin, Hibernate Plugin, HTTP Client Plugin, Java HTTP Server Plugin, JAX-RS Plugin, Jdbc Plugin, JMS Plugin, JSF Plugin, JSP Plugin, Logger Plugin, Play Plugin, Netty Plugin, Quartz Plugin, Redis Plugin, Servlet Plugin, Spring Plugin, Struts Plugin
2018-05-16 21:39:32.531 ERROR o.g.agent.impl.BytecodeServiceImpl - null
java.lang.ExceptionInInitializerError: null
	at java.lang.J9VMInternals.ensureError(J9VMInternals.java:146)
	at java.lang.J9VMInternals.recordInitializationFailure(J9VMInternals.java:135)
	at java.lang.management.ManagementFactory.getPlatformMBeanServer(ManagementFactory.java:247)
	at org.glowroot.agent.util.LazyPlatformMBeanServer.ensureInit(LazyPlatformMBeanServer.java:207)
	at org.glowroot.agent.util.LazyPlatformMBeanServer.create(LazyPlatformMBeanServer.java:81)
	at org.glowroot.agent.init.AgentModule.onEnteringMain(AgentModule.java:270)
	at org.glowroot.agent.init.NonEmbeddedGlowrootAgentInit$1.run(NonEmbeddedGlowrootAgentInit.java:117)
	at org.glowroot.agent.impl.BytecodeServiceImpl.enteringMain(BytecodeServiceImpl.java:72)
	at org.glowroot.agent.bytecode.api.Bytecode.enteringMainMethod(Bytecode.java:32)
	at com.ibm.wsspi.bootstrap.WSPreLauncher.main(WSPreLauncher.java)
Caused by: javax.management.JMRuntimeException: Failed to load MBeanServerBuilder class com.ibm.ws.management.PlatformMBeanServerBuilder: java.lang.ClassNotFoundException: com.ibm.ws.management.PlatformMBeanServerBuilder
	at javax.management.MBeanServerFactory.checkMBeanServerBuilder(MBeanServerFactory.java:514)
	at javax.management.MBeanServerFactory.getNewMBeanServerBuilder(MBeanServerFactory.java:550)
	at javax.management.MBeanServerFactory.newMBeanServer(MBeanServerFactory.java:327)
	at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:242)
	at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:203)
	at java.lang.management.ManagementFactory$ServerHolder.<clinit>(ManagementFactory.java:466)
	... 8 common frames omitted
Caused by: java.lang.ClassNotFoundException: com.ibm.ws.management.PlatformMBeanServerBuilder
	at java.net.URLClassLoader.findClass(URLClassLoader.java:609)
	at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:924)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:869)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:329)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:852)
	at javax.management.MBeanServerFactory.loadBuilderClass(MBeanServerFactory.java:457)
	at javax.management.MBeanServerFactory.checkMBeanServerBuilder(MBeanServerFactory.java:499)
	... 13 common frames omitted
trask added a commit that referenced this issue May 17, 2018
@trask
Copy link
Member

trask commented May 17, 2018

Hi @zshahan, thanks for reporting this! It looks like Glowroot is not detecting that you are running WebSphere, and I'm not sure why. I added some debug logging to the latest snapshot release. Can you run with glowroot-agent-0.10.10-SNAPSHOT-dist.zip, and also increase the logging level by creating a file named glowroot.logback.xml in the glowroot folder with the contents below, and then post back with the new log?

glowroot.logback.xml contents:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE configuration>
<configuration>
  <appender name="CONSOLE" class="org.glowroot.agent.shaded.ch.qos.logback.core.ConsoleAppender">
    <encoder>
      <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %-5level %logger{36} - %msg%n</pattern>
    </encoder>
  </appender>
  <appender name="FILE" class="org.glowroot.agent.shaded.ch.qos.logback.core.rolling.RollingFileAppender">
    <rollingPolicy class="org.glowroot.agent.shaded.ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
      <fileNamePattern>${glowroot.log.dir}/glowroot.%d{yyyy-MM-dd}.log</fileNamePattern>
      <maxHistory>7</maxHistory>
    </rollingPolicy>
    <prudent>true</prudent>
    <encoder>
      <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %-5level %logger{36} - %msg%n</pattern>
    </encoder>
  </appender>
  <logger name="org.glowroot.agent.util.AppServerDetection" level="debug" />
  <logger name="org.glowroot.agent.shaded" level="warn" />
  <logger name="org.glowroot.agent.shaded.io.netty.handler.codec.http2.Http2ConnectionHandler" level="off" />
  <root level="info">
    <appender-ref ref="CONSOLE" />
    <appender-ref ref="FILE" />
  </root>
  <logger name="audit" level="off" />
</configuration>

@zshahan
Copy link
Author

zshahan commented May 17, 2018

Sure thing. Attached is the new debug log.
glowroot.2018-05-17.log

@trask trask closed this as completed in 70f656d May 21, 2018
@trask
Copy link
Member

trask commented May 21, 2018

Hi @zshahan, thanks for the debug log. I think this should be fixed now in the latest snapshot release glowroot-agent-0.10.10-SNAPSHOT-dist.zip.

@trask trask added the bug label May 24, 2018
@trask trask added this to the v0.10.10 milestone May 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants