Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 69994 invoked from network); 15 Jul 2009 18:58:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Jul 2009 18:58:29 -0000 Received: (qmail 1118 invoked by uid 500); 15 Jul 2009 18:58:39 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 1087 invoked by uid 500); 15 Jul 2009 18:58:39 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 1078 invoked by uid 99); 15 Jul 2009 18:58:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Jul 2009 18:58:39 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Jul 2009 18:58:36 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E78E229A0013 for ; Wed, 15 Jul 2009 11:58:14 -0700 (PDT) Message-ID: <1052800632.1247684294947.JavaMail.jira@brutus> Date: Wed, 15 Jul 2009 11:58:14 -0700 (PDT) From: "Mamta A. Satoor (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-4306) NullPointerException in JMXManagementService.unregisterMBean when running jdbcapi._Suite In-Reply-To: <1585764031.1247613314849.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ 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.