db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knut Anders Hatlen (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (DERBY-6097) Management test suite fails when JMX is not supported
Date Wed, 06 Mar 2013 07:38:13 GMT

     [ https://issues.apache.org/jira/browse/DERBY-6097?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Knut Anders Hatlen closed DERBY-6097.
-------------------------------------

          Resolution: Fixed
       Fix Version/s: 10.10.0.0
    Issue & fix info:   (was: Patch Available)

Thanks, Dag! Committed revision 1453179.
                
> Management test suite fails when JMX is not supported
> -----------------------------------------------------
>
>                 Key: DERBY-6097
>                 URL: https://issues.apache.org/jira/browse/DERBY-6097
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.10.0.0
>            Reporter: Knut Anders Hatlen
>            Assignee: Knut Anders Hatlen
>            Priority: Minor
>             Fix For: 10.10.0.0
>
>         Attachments: d6097-1a-skip.diff
>
>
> If the management test suite is run separately on a platform where JMX is not supported
(in this case, a compact profile build of Java 8 EA), the suite() method fails:
> java.lang.NoClassDefFoundError: javax/management/ObjectName
> 	at java.lang.Class.getDeclaredMethods0(Native Method)
> 	at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
> 	at java.lang.Class.getDeclaredMethods(Unknown Source)
> 	at org.apache.derbyTesting.functionTests.tests.management.MBeanTest.suite(MBeanTest.java:72)
> 	at org.apache.derbyTesting.functionTests.tests.management.JMXTest.suite(JMXTest.java:51)
> 	at org.apache.derbyTesting.functionTests.tests.management._Suite.suite(_Suite.java:54)
> Caused by: java.lang.ClassNotFoundException: javax.management.ObjectName
> 	at java.net.URLClassLoader$1.run(Unknown Source)
> 	at java.net.URLClassLoader$1.run(Unknown Source)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at java.net.URLClassLoader.findClass(Unknown Source)
> 	at java.lang.ClassLoader.loadClass(Unknown Source)
> 	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
> 	at java.lang.ClassLoader.loadClass(Unknown Source)
> Instead of failing, it should return an empty test suite if the platform doesn't support
JMX.
> This is not a problem when running suites.All, as it contains logic to ignore NoClassDefFoundErrors
for certain suites.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message