Re: QueueConnectionFactory.createQueueConnection()
> > Re Mei,
> >
> > No it runs on standalone, but on Enterprise Edition.
> > I attach a test case to this mail.
> >
> > Regards,
> >
> > Laurent.
> > Le mercredi 16 janvier 2008 à 20:46 +0100, Mei Wu a écrit :
> >
> > > Cross posting... it looks like some MBean is not registered, is it
> > > running on cluster, Laurent?
> > > Laurent Sauvage wrote:
> > > > Hi all,
> > > >
> > > > I have a new stack trace which I think is related to the latest
> > > jbi-core
> > > > (build 080115_1). That's the reason why I post in this
> > > mailing-list even
> > > > if it looks like a pure glassfish problem.
> > > > I use Sun Application Server 9.1_01 Enterprise Edition.
> > > >
> > > > The log:
> > > > [#|2008-01-16T20:00:14.903+0100|WARNING|sun-appserver9.1|
> > > > javax.enterprise.system.stream.err|
> > > >
> > > _ThreadID=37;_ThreadName=httpSSLWorkerThread-8080-0;_RequestID=f9adf4b8-4d98-40c7-987a-12f2b1a98cd8;|
> > > > java.lang.NullPointerException: name cannot be null
> > > > at
> > > javax.management.ObjectName.construct(ObjectName.java:405)
> > > > at
> > > javax.management.ObjectName.<init>(ObjectName.java:1394)
> > > > at
> > > >
> > > com.sun.enterprise.management.model.J2EEDomainMdl.handleNotification(J2EEDomainMdl.java:172)
> > > > at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor
> > > >
> > > $ListenerWrapper.handleNotification(DefaultMBeanServerInterceptor.java:1732)
> > > > at
> > > >
> > > javax.management.NotificationBroadcasterSupport.handleNotification(NotificationBroadcasterSupport.java:257)
> > > > at javax.management.NotificationBroadcasterSupport
> > > > $SendNotifJob.run(NotificationBroadcasterSupport.java:322)
> > > > at javax.management.NotificationBroadcasterSupport
> > > > $1.execute(NotificationBroadcasterSupport.java:307)
> > > > at
> > > >
> > > javax.management.NotificationBroadcasterSupport.sendNotification(NotificationBroadcasterSupport.java:229)
> > > > at
> > > >
> > > javax.management.MBeanServerDelegate.sendNotification(MBeanServerDelegate.java:193)
> > > > at
> > > >
> > > com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.sendNotification(DefaultMBeanServerInterceptor.java:1524)
> > > > at
> > > >
> > > com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.internal_addObject(DefaultMBeanServerInterceptor.java:1501)
> > > > at
> > > >
> > > com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:963)
> > > > at
> > > >
> > > com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:917)
> > > > at
> > > >
> > > com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:312)
> > > > at
> > > >
> > > com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:482)
> > > > at
> > > >
> > > com.sun.enterprise.interceptor.DynamicInterceptor.registerMBean(DynamicInterceptor.java:263)
> > > > at
> > > >
> > > com.sun.messaging.jmq.jmsserver.management.agent.Agent.agentRegisterMBean(Agent.java:1778)
> > > > at
> > > >
> > > com.sun.messaging.jmq.jmsserver.management.agent.Agent.registerConnection(Agent.java:428)
> > > > at
> > > >
> > > com.sun.messaging.jmq.jmsserver.service.imq.IMQDirectService.createDirectConnection(IMQDirectService.java:349)
> > > > at
> > > >
> > > com.sun.messaging.jmq.jmsserver.service.imq.IMQDirectService.createConnection(IMQDirectService.java:419)
> > > > at
> > > >
> > > com.sun.messaging.jms.ra.DirectConnectionFactory._createConnectionId(DirectConnectionFactory.java:424)
> > > > at
> > > >
> > > com.sun.messaging.jms.ra.DirectConnectionFactory._createConnection(DirectConnectionFactory.java:547)
> > > > at
> > > >
> > > com.sun.messaging.jms.ra.ManagedConnection.<init>(ManagedConnection.java:190)
> > > > at
> > > >
> > > com.sun.messaging.jms.ra.ManagedConnectionFactory.createManagedConnection(ManagedConnectionFactory.java:213)
> > > > at
> > > >
> > > com.sun.enterprise.resource.ConnectorAllocator.createResource(ConnectorAllocator.java:136)
> > > > at
> > > >
> > > com.sun.enterprise.resource.AbstractResourcePool.createSingleResource(AbstractResourcePool.java:891)
> > > > at
> > > >
> > > com.sun.enterprise.resource.AbstractResourcePool.createResourceAndAddToPool(AbstractResourcePool.java:1752)
> > > > at
> > > >
> > > com.sun.enterprise.resource.AbstractResourcePool.createResources(AbstractResourcePool.java:917)
> > > > at
> > > >
> > > com.sun.enterprise.resource.AbstractResourcePool.initPool(AbstractResourcePool.java:225)
> > > > at
> > > >
> > > com.sun.enterprise.resource.AbstractResourcePool.internalGetResource(AbstractResourcePool.java:516)
> > > > at
> > > >
> > > com.sun.enterprise.resource.AbstractResourcePool.getResource(AbstractResourcePool.java:443)
> > > > at
> > > >
> > > com.sun.enterprise.resource.PoolManagerImpl.getResourceFromPool(PoolManagerImpl.java:248)
> > > > at
> > > >
> > > com.sun.enterprise.resource.PoolManagerImpl.getResource(PoolManagerImpl.java:176)
> > > > at
> > > >
> > > com.sun.enterprise.connectors.ConnectionManagerImpl.internalGetConnection(ConnectionManagerImpl.java:337)
> > > > at
> > > >
> > > com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:235)
> > > > at
> > > >
> > > com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:165)
> > > > at
> > > >
> > > com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:158)
> > > > at
> > > >
> > > com.sun.messaging.jms.ra.DirectConnectionFactory._allocateConnection(DirectConnectionFactory.java:569)
> > > > at
> > > >
> > > com.sun.messaging.jms.ra.DirectConnectionFactory.createQueueConnection(DirectConnectionFactory.java:320)
> > > > at
> > > >
> > > com.sun.messaging.jms.ra.DirectConnectionFactory.createQueueConnection(DirectConnectionFactory.java:297)
> > > > at
> > > >
> > > fr.bouyguestelecom.dolmen.guichet.commande.Commande.<init>(Commande.java:148)
> > > > at
> > > sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> > > > Method)
> > > > at
> > > >
> > > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
> > > > at
> > > >
> > > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> > > > at
> > > > java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> > > > at java.lang.Class.newInstance0(Class.java:355)
> > > > at java.lang.Class.newInstance(Class.java:308)
> > > > at
> > > >
> > > com.sun.xml.ws.api.server.InstanceResolver.createNewInstance(InstanceResolver.java:215)
> > > > at
> > > >
> > > com.sun.enterprise.webservice.InstanceResolverImpl.<init>(InstanceResolverImpl.java:69)
> > > > at
> > > >
> > > com.sun.enterprise.webservice.JAXWSServlet.registerEndpoint(JAXWSServlet.java:390)
> > > > at
> > > >
> > > com.sun.enterprise.webservice.JAXWSServlet.doInit(JAXWSServlet.java:252)
> > > > at
> > > >
> > > com.sun.enterprise.webservice.JAXWSServlet.init(JAXWSServlet.java:113)
> > > > 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.catalina.security.SecurityUtil
> > > > $1.run(SecurityUtil.java:276)
> > > > at java.security.AccessController.doPrivileged(Native
> > > Method)
> > > > at
> > > javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
> > > > at
> > > >
> > > org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:309)
> > > > at
> > > >
> > > org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:192)
> > > > at
> > > >
> > > org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:145)
> > > > at
> > > >
> > > org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1172)
> > > > at
> > > >
> > > org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:832)
> > > > at
> > > >
> > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)
> > > > at
> > > >
> > > org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271)
> > > > at
> > > >
> > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
> > > > at
> > > >
> > > org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
> > > > at
> > > >
> > > org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
> > > > at
> > > > com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
> > > > at
> > > >
> > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
> > > > at
> > > >
> > > org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
> > > > at
> > > >
> > > org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
> > > > at
> > > >
> > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
> > > > at
> > > >
> > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
> > > > at
> > > >
> > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
> > > > at
> > > >
> > > org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
> > > > at
> > > >
> > > org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
> > > > at
> > > >
> > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
> > > > at
> > > >
> > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
> > > > at
> > > >
> > > org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272)
> > > > at
> > > >
> > > com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
> > > > at
> > > >
> > > com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
> > > > at
> > > >
> > > com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
> > > > at
> > > >
> > > com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
> > > > at
> > > >
> > > com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
> > > > at
> > > >
> > > com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
> > > > at
> > > com.sun.enterprise.web.portunif.PortUnificationPipeline
> > > > $PUTask.doTask(PortUnificationPipeline.java:380)
> > > > at
> > > >
> > > com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
> > > > at com.su|#]
> > > >
> > > >
> > > >
> > > > The code at line 148 of
> > > > fr.bouyguestelecom.dolmen.guichet.commande.Commande is:
> > > > queueConnectionFactory.createQueueConnection();
> > > > This queueConnectionFactory was looked up in JNDI.
> > > >
> > > > The same code didn't log any stack trace until I upgrade
> > > jbi-core to
> > > > build 080115_1 (I think).
> > > >
> > > > Regards,
> > > >
> > > > Laurent.
> > > >
> > > >
> > >