harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevin Zhou <zhoukevi...@gmail.com>
Subject [classlib][lang-management] ManagementFactory.getPlatformMBeanServer() throws a unexpected java.lang.Error
Date Wed, 06 May 2009 07:32:41 GMT
Hi all,
Recently I was trying to run the latest version 2.1.4 of Apache Geronimo
Server using our Harmony, but I came with a java.lang.Error thrown when
starting the server.
I investigated its stack trace [1] and found this was actually thrown when
initializing an org.apache.derby.jdbc.EmbeddedDriver object using its
default constructor.
I have already raised a Harmony JIRA issue for this [2]. I made a simple
testcase which can help you to reproduce it. Could someone look at this and
help to fix it?

[1] Stack Trace:
java.lang.Error: java.lang.NullPointerException
    at mx4j.server.MBeanMetaData$Factory.create(MBeanMetaData.java:185)
    at
mx4j.server.MX4JMBeanServer.createMBeanMetaData(MX4JMBeanServer.java:779)
    at
mx4j.server.MX4JMBeanServer.registerMBeanImpl(MX4JMBeanServer.java:764)
    at mx4j.server.MX4JMBeanServer.access$000(MX4JMBeanServer.java:97)
    at mx4j.server.MX4JMBeanServer$3.run(MX4JMBeanServer.java:796)
    at
java.security.AccessController.doPrivilegedImpl(AccessController.java:112)
    at java.security.AccessController.doPrivileged(AccessController.java:75)
    at
mx4j.server.MX4JMBeanServer.privilegedRegisterMBean(MX4JMBeanServer.java:792)
    at mx4j.server.MX4JMBeanServer.<init>(MX4JMBeanServer.java:175)
    at
mx4j.server.MX4JMBeanServerBuilder.newMBeanServer(MX4JMBeanServerBuilder.java:53)
    at
javax.management.MBeanServerBuilder.newMBeanServer(MBeanServerBuilder.java:54)
    at
javax.management.MBeanServerFactory.createMBeanServerImpl(MBeanServerFactory.java:207)
    at
javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:44)
    at
javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:39)
    at
java.lang.management.ManagementFactory.getPlatformMBeanServer(ManagementFactory.java:299)
    at org.apache.derby.impl.services.jmx.JMXManagementService$3.run(Unknown
Source)
    at org.apache.derby.impl.services.jmx.JMXManagementService$3.run(Unknown
Source)
    at
java.security.AccessController.doPrivilegedImpl(AccessController.java:171)
    at java.security.AccessController.doPrivileged(AccessController.java:53)
    at
org.apache.derby.impl.services.jmx.JMXManagementService.findServer(Unknown
Source)
    at org.apache.derby.impl.services.jmx.JMXManagementService.boot(Unknown
Source)
    at org.apache.derby.impl.services.monitor.BaseMonitor.boot(Unknown
Source)
    at org.apache.derby.impl.services.monitor.TopService.bootModule(Unknown
Source)
    at
org.apache.derby.impl.services.monitor.BaseMonitor.startModule(Unknown
Source)
    at
org.apache.derby.iapi.services.monitor.Monitor.startSystemModule(Unknown
Source)
    at
org.apache.derby.impl.services.monitor.BaseMonitor.runWithState(Unknown
Source)
    at org.apache.derby.impl.services.monitor.FileMonitor.<init>(Unknown
Source)
    at org.apache.derby.iapi.services.monitor.Monitor.startMonitor(Unknown
Source)
    at org.apache.derby.iapi.jdbc.JDBCBoot.boot(Unknown Source)
    at org.apache.derby.jdbc.EmbeddedDriver.boot(Unknown Source)
    at org.apache.derby.jdbc.EmbeddedDriver.<clinit>(Unknown Source)

[2] https://issues.apache.org/jira/browse/HARMONY-6197

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message