Uploaded image for project: 'Geronimo'
  1. Geronimo
  2. GERONIMO-5728

Server startup fails when ActiveMQ transportConnector URI contains optional parameters

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.2.1
    • 2.2.2
    • ActiveMQ
    • Security Level: public (Regular issues)
    • None

    Description

      http://apache-geronimo.328035.n3.nabble.com/ERROR-Geronimo-2-2-Server-startup-fails-when-ActiveMQ-transportConnector-URI-contains-optional-params-tp2052126p2052126.html

      The Geronimo 2.2 server will not start when activemq.xml contains
      transportConnector entries that contain querystring parameters, such as
      needClientAuth=true, transport.closeAsync=false, etc..

      Please help!

      Step 1: Configure transportConnector in activemq.xml as follows....

      <transportConnectors>
      <transportConnector name="ssl"
      uri="ssl://${ServerHostname}:61617?needClientAuth=true"/>
      </transportConnectors>

      Step 2: Start/restart Geronimo 2.2 server and you receive the error(s) below
      and the server will not start (Note: If the optional parameters are removed,
      then the server starts with no issues).....

      Booting Geronimo Kernel (in Java 1.6.0_22)...
      Module 1/76 org.apache.geronimo.framework/j2ee-system/2.2/car
      started in .000s
      Module 2/76 org.apache.geronimo.framework/jee-specs/2.2/car
      started in .000s
      Module 3/76 org.apache.geronimo.plugins.classloaders/xbean-finder/2.2/car
      started in .001s
      Module 4/76 org.apache.geronimo.framework/xmlbeans/2.2/car
      started in .000s
      Module 5/76 org.apache.geronimo.framework/rmi-naming/2.2/car
      started in .119s
      Module 6/76
      org.apache.geronimo.plugins.classloaders/geronimo-javaee-deployment_1.1MR3_spec/2.2/car
      started in .000s
      Module 7/76 org.apache.geronimo.framework/plugin/2.2/car
      started in .408s
      Module 8/76 org.apache.geronimo.framework/geronimo-gbean-deployer/2.2/car
      started in .203s
      Module 9/76 org.apache.geronimo.configs/j2ee-server/2.2/car
      started in .042s
      Module 10/76 org.apache.geronimo.framework/j2ee-security/2.2/car
      started in .193s
      Module 11/76 org.apache.geronimo.framework/server-security-config/2.2/car
      started in .032s
      Module 12/76
      org.apache.geronimo.plugins.classloaders/geronimo-schema-jee_5/2.2/car
      started in .000s
      Module 13/76 org.apache.geronimo.configs/j2ee-deployer/2.2/car
      started in .127s
      Module 14/76 org.apache.geronimo.configs/client-deployer/2.2/car
      started in .025s
      Module 15/76 org.apache.geronimo.configs/aspectj/2.2/car
      started in .011s
      Module 16/76 org.apache.geronimo.configs/clustering/2.2/car
      started in .043s
      Module 17/76 org.apache.geronimo.configs/transaction/2.2/car
      started in .112s
      Module 18/76 org.apache.geronimo.configs/connector-deployer/2.2/car
      started in .083s
      Module 19/76 org.apache.geronimo.configs/derby/2.2/car
      started in .000s
      Module 20/76 org.apache.geronimo.configs/system-database/2.2/car
      started in .859s
      Module 21/76 org.apache.geronimo.configs/openjpa/2.2/car
      started in .005s
      Module 22/76 org.apache.geronimo.configs/webservices-common/2.2/car
      started in .000s
      Module 23/76 org.apache.geronimo.configs/openejb/2.2/car
      started in .512s
      Module 24/76 org.apache.geronimo.configs/openejb-deployer/2.2/car
      started in .057s
      Module 25/76
      org.apache.geronimo.configs/openejb-clustering-builder-wadi/2.2/car
      started in .466s
      Module 26/76 org.apache.geronimo.configs/jasper/2.2/car
      started in .001s
      Module 27/76 org.apache.geronimo.configs/tomcat6/2.2/car
      started in 13.087s
      Module 28/76 org.apache.geronimo.configs/tomcat6-deployer/2.2/car
      started in .046s
      Module 29/76 org.apache.geronimo.configs/tomcat6-no-ha/2.2/car
      started in .000s
      Module 30/76
      org.apache.geronimo.configs/tomcat6-clustering-builder-wadi/2.2/car
      started in .070s
      Module 31/76 org.apache.geronimo.configs/openejb-corba-deployer/2.2/car
      started in .094s
      Module 32/76 org.apache.geronimo.configs/j2ee-corba-yoko/2.2/car
      started in .411s
      Module 33/76 org.apache.geronimo.configs/mejb/2.2/car
      started in .183s
      Module 34/76 org.apache.geronimo.framework/transformer-agent/2.2/car
      started in .000s
      Module 35/76 org.apache.geronimo.framework/gshell-framework/2.2/car
      started in .000s
      Module 36/76 org.apache.geronimo.framework/gshell-geronimo/2.2/car
      started in .000s
      Module 37/76 org.apache.geronimo.framework/gshell-remote/2.2/car
      started in .000s
      Module 38/76 org.apache.geronimo.configs/persistence-jpa10-deployer/2.2/car
      started in .042s
      Module 39/76 org.apache.geronimo.configs/hot-deployer/2.2/car
      started in .214s
      Module 40/76 org.apache.geronimo.configs/remote-deploy-tomcat/2.2/car
      started in .334s
      Module 41/76 org.apache.geronimo.configs/jasper-deployer/2.2/car
      started in .011s
      Module 42/76 org.apache.geronimo.configs/sharedlib/2.2/car
      started in .004s
      Module 43/76 org.apache.geronimo.configs/axis/2.2/car
      started in .066s
      Module 44/76 org.apache.geronimo.configs/axis-deployer/2.2/car
      started in .060s
      Module 45/76 org.apache.geronimo.configs/jaxws-deployer/2.2/car
      started in .000s
      Module 46/76 org.apache.geronimo.configs/axis2/2.2/car
      started in .000s
      Module 47/76 org.apache.geronimo.configs/axis2-deployer/2.2/car
      started in .043s
      Module 48/76 org.apache.geronimo.configs/jaxws-ejb-deployer/2.2/car
      started in .000s
      Module 49/76 org.apache.geronimo.configs/axis2-ejb-deployer/2.2/car
      started in .081s
      Module 50/76 org.apache.geronimo.configs/jaxws-sun-tools/2.2/car
      started in .008s
      Module 51/76 org.apache.geronimo.configs/jaxws-tools/2.2/car
      started in .001s
      Module 52/76 org.apache.geronimo.configs/spring/2.2/car
      started in .000s
      Module 53/76 org.apache.geronimo.configs/concurrent/2.2/car
      started in .065s
      Module 54/76 org.apache.geronimo.configs/concurrent-deployer/2.2/car
      started in .017s
      Module 55/76 org.apache.geronimo.configs/javamail/2.2/car
      started in .019s
      Module 56/76 org.apache.geronimo.plugins/uddi-db/2.2/car
      started in .066s
      Module 57/76 org.apache.geronimo.configs/uddi-tomcat/2.2/car
      started in .556s
      Module 58/76 org.apache.geronimo.configs/welcome-tomcat/2.2/car
      started in .050s
      Module 59/76 org.apache.geronimo.configs/activemq-broker/2.2/car
      2010-12-08 08:28:56,405 ERROR [GBeanInstanceState] Error while starting;
      GBean is now in the FAILED state:
      abstractName="org.apache.geronimo.configs/activemq-broker/2.2/car?ServiceModule=org.apache.geronimo.configs/activemq-broker/2.2/car,j2eeType=GBean,name=ActiveMQBrokerServiceMonitor"
      java.lang.AssertionError: javax.management.MalformedObjectNameException:
      Invalid character `=' in value
      at
      org.apache.geronimo.kernel.Jsr77Naming.createObjectName(Jsr77Naming.java:121)
      at
      org.apache.geronimo.kernel.Jsr77Naming.createSiblingName(Jsr77Naming.java:63)
      at
      org.apache.geronimo.activemq.ActiveMQBrokerServiceMonitorGBean.startConnectorWrapperGBeans(ActiveMQBrokerServiceMonitorGBean.java:106)
      at
      org.apache.geronimo.activemq.ActiveMQBrokerServiceMonitorGBean.doStart(ActiveMQBrokerServiceMonitorGBean.java:67)
      at
      org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:953)
      at
      org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:269)
      at
      org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:103)
      at
      org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:125)
      at
      org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:539)
      at
      org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:377)
      at
      org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:456)
      at
      org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:190)
      at
      org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:546)
      at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)
      at
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      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:816)
      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.gbean.GBeanLifecycle$$EnhancerByCGLIB$$d6126f32.startConfiguration(<generated>)
      at
      org.apache.geronimo.system.main.EmbeddedDaemon.doStartup(EmbeddedDaemon.java:161)
      at
      org.apache.geronimo.system.main.EmbeddedDaemon.execute(EmbeddedDaemon.java:78)
      at
      org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(MainConfigurationBootstrapper.java:45)
      at
      org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
      at org.apache.geronimo.cli.daemon.DaemonCLI.main(DaemonCLI.java:30)
      Caused by: javax.management.MalformedObjectNameException: Invalid character
      `=' in value
      at javax.management.ObjectName.parseValue(ObjectName.java:958)
      at javax.management.ObjectName.checkValue(ObjectName.java:990)
      at javax.management.ObjectName.construct(ObjectName.java:709)
      at javax.management.ObjectName.<init>(ObjectName.java:1446)
      at javax.management.ObjectName.getInstance(ObjectName.java:1346)
      at
      org.apache.geronimo.kernel.Jsr77Naming.createObjectName(Jsr77Naming.java:119)
      ... 27 more
      Exception in thread "main" java.lang.AssertionError:
      javax.management.MalformedObjectNameException: Invalid character `=' in
      value
      at
      org.apache.geronimo.kernel.Jsr77Naming.createObjectName(Jsr77Naming.java:121)
      at
      org.apache.geronimo.kernel.Jsr77Naming.createSiblingName(Jsr77Naming.java:63)
      at
      org.apache.geronimo.activemq.ActiveMQBrokerServiceMonitorGBean.startConnectorWrapperGBeans(ActiveMQBrokerServiceMonitorGBean.java:106)
      at
      org.apache.geronimo.activemq.ActiveMQBrokerServiceMonitorGBean.doStart(ActiveMQBrokerServiceMonitorGBean.java:67)
      at
      org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:953)
      at
      org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:269)
      at
      org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:103)
      at
      org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:125)
      at
      org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:539)
      at
      org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:377)
      at
      org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:456)
      at
      org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:190)
      at
      org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:546)
      at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)
      at
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      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:816)
      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.gbean.GBeanLifecycle$$EnhancerByCGLIB$$d6126f32.startConfiguration(<generated>)
      at
      org.apache.geronimo.system.main.EmbeddedDaemon.doStartup(EmbeddedDaemon.java:161)
      at
      org.apache.geronimo.system.main.EmbeddedDaemon.execute(EmbeddedDaemon.java:78)
      at
      org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(MainConfigurationBootstrapper.java:45)
      at
      org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
      at org.apache.geronimo.cli.daemon.DaemonCLI.main(DaemonCLI.java:30)
      Caused by: javax.management.MalformedObjectNameException: Invalid character
      `=' in value
      at javax.management.ObjectName.parseValue(ObjectName.java:958)
      at javax.management.ObjectName.checkValue(ObjectName.java:990)
      at javax.management.ObjectName.construct(ObjectName.java:709)
      at javax.management.ObjectName.<init>(ObjectName.java:1446)
      at javax.management.ObjectName.getInstance(ObjectName.java:1346)
      at
      org.apache.geronimo.kernel.Jsr77Naming.createObjectName(Jsr77Naming.java:119)
      ... 27 more
      2010-12-08 08:32:29,262 ERROR [OpenEJB] Unable to clear Sun JarFileFactory
      cache
      java.lang.ClassCastException: java.lang.String cannot be cast to
      java.net.URL
      at
      org.apache.openejb.ClassLoaderUtil.clearSunJarFileFactoryCache(ClassLoaderUtil.java:173)
      at
      org.apache.openejb.ClassLoaderUtil.destroyClassLoader(ClassLoaderUtil.java:130)
      at
      org.apache.openejb.assembler.classic.Assembler.destroyApplication(Assembler.java:918)
      at
      org.apache.openejb.assembler.classic.Assembler.destroyApplication(Assembler.java:785)
      at
      org.apache.geronimo.openejb.OpenEjbSystemGBean.removeEjbJar(OpenEjbSystemGBean.java:428)
      at
      org.apache.geronimo.openejb.EjbModuleImpl.doStop(EjbModuleImpl.java:178)
      at
      org.apache.geronimo.gbean.runtime.GBeanInstance.destroyInstance(GBeanInstance.java:1116)
      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:547)
      at
      org.apache.geronimo.kernel.basic.BasicKernel.stopGBean(BasicKernel.java:421)
      at
      org.apache.geronimo.gbean.runtime.GBeanInstanceState.stop(GBeanInstanceState.java:181)
      at
      org.apache.geronimo.gbean.runtime.GBeanInstance.stop(GBeanInstance.java:547)
      at
      org.apache.geronimo.kernel.basic.BasicKernel.stopGBean(BasicKernel.java:421)
      at
      org.apache.geronimo.gbean.runtime.GBeanInstanceState.stop(GBeanInstanceState.java:181)
      at
      org.apache.geronimo.gbean.runtime.GBeanInstance.stop(GBeanInstance.java:547)
      at
      org.apache.geronimo.kernel.basic.BasicKernel.stopGBean(BasicKernel.java:421)
      at
      org.apache.geronimo.gbean.runtime.GBeanInstanceState.stop(GBeanInstanceState.java:181)
      at
      org.apache.geronimo.gbean.runtime.GBeanInstance.stop(GBeanInstance.java:547)
      at
      org.apache.geronimo.kernel.basic.BasicKernel.stopGBean(BasicKernel.java:421)
      at
      org.apache.geronimo.kernel.config.KernelConfigurationManager$ShutdownHook.run(KernelConfigurationManager.java:339)
      at
      org.apache.geronimo.kernel.basic.BasicKernel.notifyShutdownHooks(BasicKernel.java:661)
      at
      org.apache.geronimo.kernel.basic.BasicKernel.shutdown(BasicKernel.java:638)
      at
      org.apache.geronimo.kernel.KernelGBean.shutdown(KernelGBean.java:382)
      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:597)
      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:851)
      at
      org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:237)
      at
      org.apache.geronimo.system.jmx.MBeanGBeanBridge.invoke(MBeanGBeanBridge.java:172)
      at
      com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
      at
      com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
      at
      javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1427)
      at
      javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:72)
      at
      javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1265)
      at java.security.AccessController.doPrivileged(Native Method)
      at
      javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1367)
      at
      javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:788)
      at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
      at
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at
      sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
      at sun.rmi.transport.Transport$1.run(Transport.java:159)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
      at
      sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
      at
      sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
      at
      sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
      at
      java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at
      java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:662)

      Attachments

        Activity

          People

            Unassigned Unassigned
            xuhaihong Haihong Xu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: