activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fausey,Jonathan" <fau...@oclc.org>
Subject 4.1.0 release and java.io.IOException: No locks available
Date Tue, 16 Jan 2007 16:55:31 GMT
I just downloaded/unpacked the ActiveMQ 4.1.0 release and cannot
successfully run activemq (nohup bin/activemq > & smlog &).  Any help
would be greatly appreciated.

Operating System: Red Hat Enterprise Linux ES release 4 (Nahant Update
2)
Java version: Tried both 1.5.0_02 and 1.5.0_10

Content of the smlog file:
ACTIVEMQ_HOME: /dept/fausey/activemq/4.1.0
Loading message broker from: xbean:activemq.xml
ERROR: java.lang.RuntimeException: Failed to execute start task. Reason:
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'org.apache.activemq.xbean.XBeanBrokerService' defined in
class path resource [activemq.xml]: Cannot create inner bean '(inner
bean)' while setting bean property 'persistenceAdapter'; nested
exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name '(inner bean)#2': FactoryBean threw
exception on object creation; nested exception is java.io.IOException:
No locks available
java.lang.RuntimeException: Failed to execute start task. Reason:
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'org.apache.activemq.xbean.XBeanBrokerService' defined in
class path resource [activemq.xml]: Cannot create inner bean '(inner
bean)' while setting bean property 'persistenceAdapter'; nested
exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name '(inner bean)#2': FactoryBean threw
exception on object creation; nested exception is java.io.IOException:
No locks available
        at
org.apache.activemq.console.command.StartCommand.runTask(StartCommand.ja
va:70)
        at
org.apache.activemq.console.command.AbstractCommand.execute(AbstractComm
and.java:50)
        at
org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.ja
va:82)
        at
org.apache.activemq.console.command.AbstractCommand.execute(AbstractComm
and.java:50)
        at
org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:
46)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.activemq.console.Main.runTaskClass(Main.java:159)
        at org.apache.activemq.console.Main.main(Main.java:91)
Caused by: org.springframework.beans.factory.BeanCreationException:
Error creating bean with name
'org.apache.activemq.xbean.XBeanBrokerService' defined in class path
resource [activemq.xml]: Cannot create inner bean '(inner bean)' while
setting bean property 'persistenceAdapter'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)#2': FactoryBean threw exception on object
creation; nested exception is java.io.IOException: No locks available
        at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.re
solveInnerBeanDefinition(BeanDefinitionValueResolver.java:205)
        at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.re
solveValueIfNecessary(BeanDefinitionValueResolver.java:116)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:955)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.populateBean(AbstractAutowireCapableBeanFactory.java:729)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.createBean(AbstractAutowireCapableBeanFactory.java:416)
        at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObjec
t(AbstractBeanFactory.java:245)
        at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.g
etSingleton(DefaultSingletonBeanRegistry.java:141)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab
stractBeanFactory.java:242)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab
stractBeanFactory.java:156)
        at
org.springframework.beans.factory.support.DefaultListableBeanFactory.pre
InstantiateSingletons(DefaultListableBeanFactory.java:290)
        at
org.springframework.context.support.AbstractApplicationContext.refresh(A
bstractApplicationContext.java:348)
        at
org.apache.xbean.spring.context.ClassPathXmlApplicationContext.<init>(Cl
assPathXmlApplicationContext.java:161)
        at
org.apache.xbean.spring.context.ClassPathXmlApplicationContext.<init>(Cl
assPathXmlApplicationContext.java:51)
        at
org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFac
tory.java:41)
        at
org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java
:57)
        at
org.apache.activemq.console.command.StartCommand.startBroker(StartComman
d.java:82)
        at
org.apache.activemq.console.command.StartCommand.runTask(StartCommand.ja
va:47)
        ... 10 more
Caused by: org.springframework.beans.factory.BeanCreationException:
Error creating bean with name '(inner bean)#2': FactoryBean threw
exception on object creation; nested exception is java.io.IOException:
No locks available
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getObjectF
romFactoryBean(AbstractBeanFactory.java:1000)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getObjectF
orBeanInstance(AbstractBeanFactory.java:966)
        at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.re
solveInnerBeanDefinition(BeanDefinitionValueResolver.java:202)
        ... 26 more
Caused by: java.io.IOException: No locks available
        at sun.nio.ch.FileChannelImpl.lock0(Native Method)
        at sun.nio.ch.FileChannelImpl.tryLock(FileChannelImpl.java:822)
        at java.nio.channels.FileChannel.tryLock(FileChannel.java:967)
        at
org.apache.activeio.journal.active.ControlFile.lock(ControlFile.java:81)
        at
org.apache.activeio.journal.active.LogFileManager.initialize(LogFileMana
ger.java:121)
        at
org.apache.activeio.journal.active.LogFileManager.<init>(LogFileManager.
java:102)
        at
org.apache.activeio.journal.active.JournalImpl.<init>(JournalImpl.java:1
01)
        at
org.apache.activemq.store.DefaultPersistenceAdapterFactory.createJournal
(DefaultPersistenceAdapterFactory.java:224)
        at
org.apache.activemq.store.DefaultPersistenceAdapterFactory.getJournal(De
faultPersistenceAdapterFactory.java:132)
        at
org.apache.activemq.store.DefaultPersistenceAdapterFactory.createPersist
enceAdapter(DefaultPersistenceAdapterFactory.java:70)
        at
org.apache.activemq.store.PersistenceAdapterFactoryBean.getObject(Persis
tenceAdapterFactoryBean.java:35)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getObjectF
romFactoryBean(AbstractBeanFactory.java:994)
        ... 28 more
[More similar stack traces...]

Thanks.

-Jon


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message