Return-Path: Delivered-To: apmail-incubator-geronimo-dev-archive@www.apache.org Received: (qmail 60683 invoked from network); 4 Feb 2004 03:49:06 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 4 Feb 2004 03:49:06 -0000 Received: (qmail 9168 invoked by uid 500); 4 Feb 2004 03:48:37 -0000 Delivered-To: apmail-incubator-geronimo-dev-archive@incubator.apache.org Received: (qmail 9084 invoked by uid 500); 4 Feb 2004 03:48:36 -0000 Mailing-List: contact geronimo-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: geronimo-dev@incubator.apache.org Delivered-To: mailing list geronimo-dev@incubator.apache.org Received: (qmail 9063 invoked from network); 4 Feb 2004 03:48:36 -0000 Received: from unknown (HELO jetty.mortbay.com) (209.235.192.112) by daedalus.apache.org with SMTP; 4 Feb 2004 03:48:36 -0000 Received: (qmail 2336 invoked from network); 4 Feb 2004 03:48:44 -0000 Received: from cpe-203-45-72-167.nsw.bigpond.net.au (HELO mortbay.com) (gregw@203.45.72.167) by jetty.mortbay.com with SMTP; 4 Feb 2004 03:48:44 -0000 Message-ID: <40206B92.6020100@mortbay.com> Date: Wed, 04 Feb 2004 14:48:34 +1100 From: Greg Wilkins User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031107 Debian/1.5-3 X-Accept-Language: en MIME-Version: 1.0 To: geronimo-dev@incubator.apache.org Subject: GBean configuration confusion Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I've been chasing some "strange" behaviour with the GBeans configuration. I'm not sure if these are bugs or just poor exception reporting. But I'll dump here just in case... The ConfigurationParent object passed into the constuctor of the JettyWebApplicationContext is not in a valid state to do anything with. If you try calling any methods on it, including toString, it gives you a java.lang.IllegalStateException: Proxy is stopped I'm not sure what state this is meant to be in??? More annoyingly, if you do not catch this exception then the kernel start mechanism does not handle it well - it continues on an NPEs later: java.lang.NullPointerException at org.apache.geronimo.gbean.jmx.GBeanMBeanReference.handleNotification(GBeanMBeanReference.java:321) at mx4j.server.interceptor.NotificationListenerMBeanServerInterceptor$ListenerWrapper.handleNotification(NotificationListenerMBeanServerInterceptor.java:57) at javax.management.NotificationBroadcasterSupport.handleNotification(NotificationBroadcasterSupport.java:343) at javax.management.NotificationBroadcasterSupport.sendNotification(NotificationBroadcasterSupport.java:317) at org.apache.geronimo.gbean.jmx.AbstractManagedObject.sendNotification(AbstractManagedObject.java:282) at org.apache.geronimo.gbean.jmx.AbstractManagedObject.attemptFullStart(AbstractManagedObject.java:535) at org.apache.geronimo.gbean.jmx.AbstractManagedObject.start(AbstractManagedObject.java:317) at org.apache.geronimo.gbean.jmx.AbstractManagedObject.startRecursive(AbstractManagedObject.java:341) at org.apache.geronimo.gbean.jmx.GBeanMBean$8.invoke(GBeanMBean.java:617) at org.apache.geronimo.gbean.jmx.GBeanMBeanOperation.invoke(GBeanMBeanOperation.java:193) at org.apache.geronimo.gbean.jmx.GBeanMBean.invoke(GBeanMBean.java:488) at mx4j.server.interceptor.InvokerMBeanServerInterceptor.invoke(InvokerMBeanServerInterceptor.java:224) at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:121) at mx4j.server.interceptor.SecurityMBeanServerInterceptor.invoke(SecurityMBeanServerInterceptor.java:86) at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:121) at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:121) at mx4j.server.interceptor.ContextClassLoaderMBeanServerInterceptor.invoke(ContextClassLoaderMBeanServerInterceptor.java:205) at mx4j.server.MX4JMBeanServer.invoke(MX4JMBeanServer.java:1077) at org.apache.geronimo.deployment.plugin.local.StartCommand.run(StartCommand.java:88) at java.lang.Thread.run(Thread.java:536) So I think something in AbstractManagedObject.java needs a better catch block. I'm not familiar enough with this code yet to guess where this should be.. cheers