users@glassfish.java.net

The broker got an exception when trying to acquire the lock file

From: <glassfish_at_javadesktop.org>
Date: Sun, 11 Mar 2007 00:47:35 PST

Hey,

It's very tough to say but after a failure in deployment time I got this error:
[#|2007-03-07T01:09:33.525+0200|WARNING|sun-appserver9.1|javax.enterprise.system.stream.err|_ThreadID=16;_ThreadName=Thread-33;_RequestID=10f83bc4-12d6-426a-9742-72352d6f242f;|[07/Mar/2007:01:09:33 IST] ERROR [B3086]: The broker got an exception when trying to acquire the lock file:
/opt/glassfish/domains/domain1/imq/instances/imqbroker/lock
java.util.NoSuchElementException
The lock file may be corrupted, or there may be a permission problem
with the lock file or the directory that contains the lock file.
If you are certain no other copy of the broker is running with the
instance name "imqbroker" then you may remove the lock file and
try starting the broker again.
|#]



Then stopping/starting the server did make any difference,

I deleted the lock file and then the imqbroker loaded fine next time,


maybe it's better to delete the lock file when stopping the server in order to avoid this delete process for next time.



Following is the full stack trace, just in case:




[#|2007-03-07T01:09:33.524+0200|WARNING|sun-appserver9.1|javax.enterprise.system.stream.err|_ThreadID=16;_ThreadName=Thread-33;_RequestID=10f83bc4-12d6-426a-9742-72352d6f242f;|[07/Mar/2007:01:09:33 IST] Arguments: -port 7676 -name imqbroker -imqhome /opt/glassfish/imq/bin/.. -varhome /opt/glassfish/domains/domain1/imq -useRmiRegistry -rmiRegistryPort 8686
|#]

[#|2007-03-07T01:09:33.525+0200|WARNING|sun-appserver9.1|javax.enterprise.system.stream.err|_ThreadID=16;_ThreadName=Thread-33;_RequestID=10f83bc4-12d6-426a-9742-72352d6f242f;|[07/Mar/2007:01:09:33 IST] ERROR [B3086]: The broker got an exception when trying to acquire the lock file:
/opt/glassfish/domains/domain1/imq/instances/imqbroker/lock
java.util.NoSuchElementException
The lock file may be corrupted, or there may be a permission problem
with the lock file or the directory that contains the lock file.
If you are certain no other copy of the broker is running with the
instance name "imqbroker" then you may remove the lock file and
try starting the broker again.
|#]

[#|2007-03-07T01:09:33.525+0200|SEVERE|sun-appserver9.1|javax.resourceadapter.mqjmsra.lifecycle|_ThreadID=16;_ThreadName=Thread-33;_RequestID=10f83bc4-12d6-426a-9742-72352d6f242f;|MQJMSRA_RA4001: start:Aborting:Exception starting EMBEDDED broker=EMBEDDED Broker start failure:code = 1|#]

[#|2007-03-07T01:09:33.527+0200|WARNING|sun-appserver9.1|javax.enterprise.system.stream.err|_ThreadID=16;_ThreadName=Thread-33;_RequestID=10f83bc4-12d6-426a-9742-72352d6f242f;|java.lang.RuntimeException: EMBEDDED Broker start failure:code = 1
        at com.sun.messaging.jms.ra.EmbeddedBrokerRunner.start(EmbeddedBrokerRunner.java:255)
        at com.sun.messaging.jms.ra.ResourceAdapter.start(ResourceAdapter.java:438)
        at com.sun.enterprise.connectors.ActiveInboundResourceAdapter$1.run(ActiveInboundResourceAdapter.java:122)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.enterprise.connectors.ActiveInboundResourceAdapter.<init>(ActiveInboundResourceAdapter.java:118)
        at com.sun.enterprise.connectors.system.ActiveJmsResourceAdapter.<init>(ActiveJmsResourceAdapter.java:221)
        at com.sun.enterprise.connectors.ActiveRAFactory.createActiveResourceAdapter(ActiveRAFactory.java:94)
        at com.sun.enterprise.connectors.ResourceAdapterAdminServiceImpl.createActiveResourceAdapter(ResourceAdapterAdminServiceImpl.java:287)
        at com.sun.enterprise.connectors.ResourceAdapterAdminServiceImpl.createActiveResourceAdapter(ResourceAdapterAdminServiceImpl.java:432)
        at com.sun.enterprise.connectors.ConnectorRuntime.createActiveResourceAdapter(ConnectorRuntime.java:227)
        at com.sun.enterprise.server.ConnectorModuleLoader.load(ConnectorModuleLoader.java:105)
        at com.sun.enterprise.server.ConnectorModuleLoader.doLoad(ConnectorModuleLoader.java:129)
        at com.sun.enterprise.server.AbstractLoader.load(AbstractLoader.java:226)
        at com.sun.enterprise.server.AbstractManager.loadOneSystemApp(AbstractManager.java:380)
        at com.sun.enterprise.connectors.ConnectorServiceImpl.loadDeferredResourceAdapter(ConnectorServiceImpl.java:232)
        at com.sun.enterprise.connectors.ConnectorRuntime.loadDeferredResourceAdapter(ConnectorRuntime.java:862)
        at com.sun.enterprise.connectors.inflow.ConnectorMessageBeanClient.setup(ConnectorMessageBeanClient.java:146)
        at com.sun.ejb.containers.MessageBeanContainer.<init>(MessageBeanContainer.java:193)
        at com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFactoryImpl.java:267)
        at com.sun.enterprise.server.AbstractLoader.loadEjbs(AbstractLoader.java:518)
        at com.sun.enterprise.server.ApplicationLoader.doLoad(ApplicationLoader.java:175)
        at com.sun.enterprise.server.TomcatApplicationLoader.doLoad(TomcatApplicationLoader.java:113)
        at com.sun.enterprise.server.AbstractLoader.load(AbstractLoader.java:226)
        at com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:323)
        at com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:197)
        at com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:632)
        at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeApplicationDeployEventListener(AdminEventMulticaster.java:905)
        at com.sun.enterprise.admin.event.AdminEventMulticaster.handleApplicationDeployEvent(AdminEventMulticaster.java:889)
        at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:445)
        at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:160)
        at com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:295)
        at com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:210)
        at com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:285)
        at com.sun.enterprise.deployment.phasing.ApplicationStartPhase.runPhase(ApplicationStartPhase.java:119)
        at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:95)
        at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:892)
        at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:564)
        at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:608)
        at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.start(ApplicationsConfigMBean.java:731)
        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 com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:353)
        at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:336)
        at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:448)
        at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
        at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
        at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
        at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:77)
        at $Proxy1.invoke(Unknown Source)
        at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:297)
        at com.sun.enterprise.deployment.client.DeploymentClientUtils.startApplication(DeploymentClientUtils.java:132)
        at com.sun.enterprise.deployment.client.DeployAction.run(DeployAction.java:524)
        at java.lang.Thread.run(Thread.java:595)
|#]

[#|2007-03-07T01:09:33.528+0200|SEVERE|sun-appserver9.1|javax.enterprise.resource.resourceadapter|_ThreadID=16;_ThreadName=Thread-33;_RequestID=10f83bc4-12d6-426a-9742-72352d6f242f;|RAR6035 : Resource adapter start failed : {0}
javax.resource.spi.ResourceAdapterInternalException: MQJMSRA_RA4001: start:Aborting:Exception starting EMBEDDED broker=EMBEDDED Broker start failure:code = 1
        at com.sun.messaging.jms.ra.ResourceAdapter.start(ResourceAdapter.java:441)
        at com.sun.enterprise.connectors.ActiveInboundResourceAdapter$1.run(ActiveInboundResourceAdapter.java:122)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.enterprise.connectors.ActiveInboundResourceAdapter.<init>(ActiveInboundResourceAdapter.java:118)
        at com.sun.enterprise.connectors.system.ActiveJmsResourceAdapter.<init>(ActiveJmsResourceAdapter.java:221)
        at com.sun.enterprise.connectors.ActiveRAFactory.createActiveResourceAdapter(ActiveRAFactory.java:94)
        at com.sun.enterprise.connectors.ResourceAdapterAdminServiceImpl.createActiveResourceAdapter(ResourceAdapterAdminServiceImpl.java:287)
        at com.sun.enterprise.connectors.ResourceAdapterAdminServiceImpl.createActiveResourceAdapter(ResourceAdapterAdminServiceImpl.java:432)
        at com.sun.enterprise.connectors.ConnectorRuntime.createActiveResourceAdapter(ConnectorRuntime.java:227)
        at com.sun.enterprise.server.ConnectorModuleLoader.load(ConnectorModuleLoader.java:105)
        at com.sun.enterprise.server.ConnectorModuleLoader.doLoad(ConnectorModuleLoader.java:129)
        at com.sun.enterprise.server.AbstractLoader.load(AbstractLoader.java:226)
        at com.sun.enterprise.server.AbstractManager.loadOneSystemApp(AbstractManager.java:380)
        at com.sun.enterprise.connectors.ConnectorServiceImpl.loadDeferredResourceAdapter(ConnectorServiceImpl.java:232)
        at com.sun.enterprise.connectors.ConnectorRuntime.loadDeferredResourceAdapter(ConnectorRuntime.java:862)
        at com.sun.enterprise.connectors.inflow.ConnectorMessageBeanClient.setup(ConnectorMessageBeanClient.java:146)
        at com.sun.ejb.containers.MessageBeanContainer.<init>(MessageBeanContainer.java:193)
        at com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFactoryImpl.java:267)
        at com.sun.enterprise.server.AbstractLoader.loadEjbs(AbstractLoader.java:518)
        at com.sun.enterprise.server.ApplicationLoader.doLoad(ApplicationLoader.java:175)
        at com.sun.enterprise.server.TomcatApplicationLoader.doLoad(TomcatApplicationLoader.java:113)
        at com.sun.enterprise.server.AbstractLoader.load(AbstractLoader.java:226)
        at com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:323)
        at com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:197)
        at com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:632)
        at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeApplicationDeployEventListener(AdminEventMulticaster.java:905)
        at com.sun.enterprise.admin.event.AdminEventMulticaster.handleApplicationDeployEvent(AdminEventMulticaster.java:889)
        at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:445)
        at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:160)
        at com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:295)
        at com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:210)
        at com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:285)
        at com.sun.enterprise.deployment.phasing.ApplicationStartPhase.runPhase(ApplicationStartPhase.java:119)
        at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:95)
        at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:892)
        at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:564)
        at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:608)
        at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.start(ApplicationsConfigMBean.java:731)
        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 com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:353)
        at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:336)
        at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:448)
        at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
        at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
        at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
        at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:77)
        at $Proxy1.invoke(Unknown Source)
        at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:297)
        at com.sun.enterprise.deployment.client.DeploymentClientUtils.startApplication(DeploymentClientUtils.java:132)
        at com.sun.enterprise.deployment.client.DeployAction.run(DeployAction.java:524)
        at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.RuntimeException: EMBEDDED Broker start failure:code = 1
        at com.sun.messaging.jms.ra.EmbeddedBrokerRunner.start(EmbeddedBrokerRunner.java:255)
        at com.sun.messaging.jms.ra.ResourceAdapter.start(ResourceAdapter.java:438)
        ... 57 more
|#]






Thanks,
Asaf.
[Message sent by forum member 'trouby' (trouby)]

http://forums.java.net/jive/thread.jspa?messageID=207287