db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mamta A. Satoor (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DERBY-4306) NullPointerException in JMXManagementService.unregisterMBean when running jdbcapi._Suite
Date Wed, 15 Jul 2009 18:58:14 GMT

    [ https://issues.apache.org/jira/browse/DERBY-4306?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12731629#action_12731629
] 

Mamta A. Satoor commented on DERBY-4306:
----------------------------------------

Tiago, maybe I am doing something wrong but when I run org.apache.derbyTesting.functionTests.tests.jdbcapi.AuthenticationTest
using the gui interface below
$ java  -Dderby.tests.basePort=1500 -Xmx1024m -cp '../../tools/java/junit.jar;../../classes'
junit.swingui.TestRunner -noloading 
I do not run into npe. This is on trunk where the changes for DERBY-4304 are checked in and
it catches the exception in the server shutdown code as shown below
        try {
            AccessController.doPrivileged(
                    new PrivilegedAction() {
                        public Object run()  {
                        // Need to interrupt the memcheck thread if it is sleeping.
                            if (mc != null)
                                mc.interrupt();

                            //interrupt client thread
                            clientThread.interrupt();

                            return null;
                       }
                    });
        } catch (Exception exception) {
            consolePropertyMessage("DRDA_UnexpectedException.S",			
                exception.getMessage());
            consoleExceptionPrintTrace(exception);
        }

Do you mind getting the changes for DERBY-4304 and see if you can repro the npe? Thanks

> NullPointerException in JMXManagementService.unregisterMBean when running jdbcapi._Suite
> ----------------------------------------------------------------------------------------
>
>                 Key: DERBY-4306
>                 URL: https://issues.apache.org/jira/browse/DERBY-4306
>             Project: Derby
>          Issue Type: Bug
>          Components: JMX
>    Affects Versions: 10.5.1.2, 10.6.0.0
>            Reporter: Tiago R. Espinha
>         Attachments: JMX_NPE_AuthenticationTest.tar.gz, JMXNPE.tar.gz
>
>
> I consistently get a NullPointerException when I run the jdbcapi suite:
> java.lang.NullPointerException
> 	at org.apache.derby.impl.services.jmx.JMXManagementService.unregisterMBean(JMXManagementService.java:286)
> 	at org.apache.derby.impl.services.jmx.JMXManagementService.unregisterMBean(JMXManagementService.java:277)
> 	at org.apache.derby.impl.drda.NetworkServerControlImpl.blockingStart(NetworkServerControlImpl.java:864)
> 	at sun.reflect.GeneratedMethodAccessor41.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.derby.iapi.jdbc.DRDAServerStarter.run(DRDAServerStarter.java:236)
> 	at java.lang.Thread.run(Thread.java:619)
> I'm attaching the log folder from the jdbcapi run.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message