JMS Resources - Uninstalling a AMQ5 connector causes a console exception
------------------------------------------------------------------------

                 Key: GERONIMO-4455
                 URL: https://issues.apache.org/jira/browse/GERONIMO-4455
             Project: Geronimo
          Issue Type: Bug
      Security Level: public (Regular issues)
          Components: ActiveMQ, console
    Affects Versions: 2.2
            Reporter: Donald Woods
             Fix For: 2.2


Follow the test steps in JMSResourcesTest.testNewJMSResource().
The following steps which uninstall the created JMS connector
{noformat}
        selenium.click("link=J2EE Connectors");
        waitForPageLoad();
        selenium.click("link=Uninstall");
        waitForPageLoad();
        assertTrue(selenium.getConfirmation().matches("^Are you certain you 
wish to uninstall console\\.jms/UniqueName/1\\.0/rar[\\s\\S]*"));
{noformat}
Will cause an exception in the server console output, but the Uninstall 
succeeds. 
{noformat}
2008-12-09 15:22:07,423 ERROR [GBeanInstanceState] Error while stopping; GBean 
is now in the FAILED state: 
abstractName="console.jms/UniqueName/1.0/rar?J2EEApplication=null,JCAResource=console.jms/UniqueName/1.0/rar,ResourceAdapter=console.jms/UniqueName/1.0/rar,ResourceAdapterModule=console.jms/UniqueName/1.0/rar,j2eeType=JCAAdminObject,name=mdb/Unique"
java.lang.Exception: Problem while updaing the persistent value of attibute: 
Attribute Name: Properties, Type: class java.util.Properties, GBeanInstance: 
org.apache.geronimo.connector.AdminObjectWrapper
        at 
org.apache.geronimo.gbean.runtime.GBeanInstance.destroyInstance(GBeanInstance.java:1080)
        at 
org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStop(GBeanInstanceState.java:340)
        at 
org.apache.geronimo.gbean.runtime.GBeanInstanceState.stop(GBeanInstanceState.java:189)
        at 
org.apache.geronimo.gbean.runtime.GBeanInstance.stop(GBeanInstance.java:546)
        at 
org.apache.geronimo.kernel.basic.BasicKernel.stopGBean(BasicKernel.java:421)
        at 
org.apache.geronimo.kernel.config.KernelConfigurationManager.stopRecursive(KernelConfigurationManager.java:227)
        at 
org.apache.geronimo.kernel.config.KernelConfigurationManager.stop(KernelConfigurationManager.java:207)
        at 
org.apache.geronimo.kernel.config.SimpleConfigurationManager.stopConfiguration(SimpleConfigurationManager.java:607)
        at 
org.apache.geronimo.kernel.config.SimpleConfigurationManager.stopConfiguration(SimpleConfigurationManager.java:590)
        at 
org.apache.geronimo.kernel.config.SimpleConfigurationManager.uninstallConfiguration(SimpleConfigurationManager.java:1270)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at 
org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
        at 
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:130)
        at 
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:815)
        at 
org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
        at 
org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
        at 
org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
        at 
org.apache.geronimo.kernel.config.EditableConfigurationManager$$EnhancerByCGLIB$$33064b57.uninstallConfiguration(<generated>)
        at 
org.apache.geronimo.console.configmanager.ConfigManagerPortlet.processAction(ConfigManagerPortlet.java:164)
        at 
org.apache.pluto.core.PortletServlet.dispatch(PortletServlet.java:218)
        at org.apache.pluto.core.PortletServlet.doGet(PortletServlet.java:139)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
        at 
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:535)
        at 
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:472)
        at 
org.apache.pluto.core.DefaultPortletInvokerService.invoke(DefaultPortletInvokerService.java:167)
        at 
org.apache.pluto.core.DefaultPortletInvokerService.action(DefaultPortletInvokerService.java:85)
        at 
org.apache.pluto.core.PortletContainerImpl.doAction(PortletContainerImpl.java:219)
        at 
org.apache.pluto.driver.PortalDriverServlet.doGet(PortalDriverServlet.java:121)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at 
org.apache.geronimo.tomcat.valve.DefaultSubjectValve.invoke(DefaultSubjectValve.java:56)
        at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
        at 
org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:406)
        at 
org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:47)
        at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
        at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
        at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
        at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
        at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
        at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
        at java.lang.Thread.run(Thread.java:613)
Caused by: java.lang.NullPointerException
        at java.util.Hashtable.put(Hashtable.java:396)
        at java.util.Properties.setProperty(Properties.java:128)
        at 
org.apache.activemq.command.ActiveMQDestination.populateProperties(ActiveMQDestination.java:365)
        at 
org.apache.activemq.jndi.JNDIBaseStorable.getProperties(JNDIBaseStorable.java:72)
        at 
org.apache.activemq.command.ActiveMQQueue$$FastClassByCGLIB$$7a1d13d6.invoke(<generated>)
        at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
        at 
org.apache.geronimo.gbean.DynamicGBeanDelegate$Operation.invoke(DynamicGBeanDelegate.java:237)
        at 
org.apache.geronimo.gbean.DynamicGBeanDelegate.getAttribute(DynamicGBeanDelegate.java:150)
        at 
org.apache.geronimo.connector.AdminObjectWrapper.getAttribute(AdminObjectWrapper.java:111)
        at 
org.apache.geronimo.gbean.runtime.GBeanAttribute$DynamicGetterMethodInvoker.invoke(GBeanAttribute.java:386)
        at 
org.apache.geronimo.gbean.runtime.GBeanAttribute.getValue(GBeanAttribute.java:345)
        at 
org.apache.geronimo.gbean.runtime.GBeanInstance.destroyInstance(GBeanInstance.java:1076)
        ... 53 more
{noformat}


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

Reply via email to