Hi,
when starting the Glassfish (with an application already deployed) I sometimes get the above Exception. It also mentions the following resource: queue/MessageProcessor. This is a persistent queue I created and it is used by an MDB. To me it is normal that it is already existent because it is a persitent queue. ;)
Can someone tell me what triggers this? The application seems to work fine.
I use Glassfish V2.1 on Kubuntu Linux 8.04.
TIA,
Chris.
Here is the stack trace:
#|2009-06-25T05:55:56.020+0200|WARNING|sun-appserver2.1|javax.enterprise.system.stream.err|_ThreadID=17;_ThreadName=p: thread-pool-1; w: 5;_RequestID=24dfb2cb-e776-478d-bb34-4dcfd2ea47df;|javax.management.InstanceAlreadyExistsException: com.sun.appserv:j2eeType=JMSResource,name=queue/MessageProcessor,J2EEServer=server,category=runtime
at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:453)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.internal_addObject(DefaultMBeanServerInterceptor.java:1484)
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.enterprise.admin.meta.MBeanRegistry.registerMBean(MBeanRegistry.java:801)
at com.sun.enterprise.admin.meta.MBeanRegistry.instantiateMBean(MBeanRegistry.java:849)
at com.sun.enterprise.management.util.J2EEManagementObjectManager.instantiateAndRegisterRuntimeMBean(J2EEManagementObjectManager.java:479)
at com.sun.enterprise.management.util.J2EEManagementObjectManager.instantiateAndRegisterRuntimeMBean(J2EEManagementObjectManager.java:441)
at com.sun.enterprise.management.util.J2EEManagementObjectManager.registerJMSResource(J2EEManagementObjectManager.java:301)
at com.sun.enterprise.management.util.J2EEManagementObjectManager.registerAdminObjectResource(J2EEManagementObjectManager.java:268)
at com.sun.enterprise.resource.AdminObjectResourceDeployer.deployResource(AdminObjectResourceDeployer.java:75)
at com.sun.enterprise.connectors.ConnectorServiceImpl.loadDeferredResources(ConnectorServiceImpl.java:272)
at com.sun.enterprise.connectors.ConnectorServiceImpl$1.run(ConnectorServiceImpl.java:220)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.enterprise.connectors.ConnectorServiceImpl.loadResourcesAndItsRar(ConnectorServiceImpl.java:217)
at com.sun.enterprise.connectors.ConnectorServiceImpl.checkAndLoadResource(ConnectorServiceImpl.java:196)
at com.sun.enterprise.connectors.ConnectorRuntime.checkAndLoadResource(ConnectorRuntime.java:884)
at com.sun.enterprise.naming.SerialContextProviderImpl.checkAndLoadResource(SerialContextProviderImpl.java:96)
at com.sun.enterprise.naming.SerialContextProviderImpl.lookup(SerialContextProviderImpl.java:77)
at com.sun.enterprise.naming.LocalSerialContextProviderImpl.lookup(LocalSerialContextProviderImpl.java:111)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:409)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at com.macd.xConnect.io.QueueSender.lookupQueue(QueueSender.java:183)
at com.macd.xConnect.io.QueueSender.<init>(QueueSender.java:115)
at com.macd.xConnect.io.QueueSender.<init>(QueueSender.java:93)
at com.macd.xConnect.gateway.koha.ejbeans.kohagateway.KohaGatewayBean.postConstruct(KohaGatewayBean.java:100)
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 com.sun.ejb.containers.interceptors.BeanCallbackInterceptor.intercept(InterceptorManager.java:728)
at com.sun.ejb.containers.interceptors.CallbackChainImpl.invokeNext(InterceptorManager.java:517)
at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:221)
at com.sun.ejb.containers.MessageBeanContainer.createMessageDrivenEJB(MessageBeanContainer.java:726)
at com.sun.ejb.containers.MessageBeanContainer.access$100(MessageBeanContainer.java:109)
at com.sun.ejb.containers.MessageBeanContainer$MessageBeanContextFactory.create(MessageBeanContainer.java:492)
at com.sun.ejb.containers.util.pool.NonBlockingPool.getObject(NonBlockingPool.java:199)
at com.sun.ejb.containers.MessageBeanContainer._getContext(MessageBeanContainer.java:555)
at com.sun.ejb.containers.BaseContainer.getContext(BaseContainer.java:1700)
at com.sun.ejb.containers.MessageBeanContainer.beforeMessageDelivery(MessageBeanContainer.java:1008)
at com.sun.ejb.containers.MessageBeanListenerImpl.beforeMessageDelivery(MessageBeanListenerImpl.java:70)
at com.sun.enterprise.connectors.inflow.MessageEndpointInvocationHandler.invoke(MessageEndpointInvocationHandler.java:135)
at $Proxy35.beforeDelivery(Unknown Source)
at com.sun.messaging.jms.ra.OnMessageRunner.run(OnMessageRunner.java:245)
at com.sun.enterprise.connectors.work.OneWork.doWork(OneWork.java:76)
at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:555)
|#]
[Message sent by forum member 'chrjohn' (chrjohn)]
http://forums.java.net/jive/thread.jspa?messageID=352884