activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alanmehio <alan_me...@yahoo.co.uk>
Subject Re: Kaha persistence adapter configuration error
Date Tue, 11 Sep 2007 20:59:53 GMT

Nicky,
As I have noticed from the Excpetion stack below 

Initialization of bean failed; nested exception is
org.springframework.beans.TypeMismatchException: Failed to convert property
value of type [java.lang.String] to required type [java.io.File] for
property 'directory'; nested exception is
java.lang.IllegalArgumentException: Could not retrieve File for class path
resource [activemq-data]: class path resource [activemq-data] cannot be
resolved to URL because it does not exist 


and from the master config xml file  (activemq-master.xml)
<kahaPersistenceAdapter directory="activemq-data"
maxDataFileLength="33554432"/>

Have you tried to create a directory called "activemq-data". Then try to
give the full path to the physical
directory (/export/home/activemq-data).

I hope this could help

Regards,
Alan Mehio
London, UK




Nicky Sandhu wrote:
> 
> Trying to use the kaha persistence adapter as explained 
> http://activemq.apache.org/kaha-persistence.html here . Add this and
> starting the broker results in 
> ACTIVEMQ_HOME: ..\.
> ACTIVEMQ_BASE: ..\.
> Loading message broker from:
> xbean:file:c:/wk/activemq-confs/activemq-master.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
> URL [file:c:/wk/activemq-confs/activemq-master.xml]: Cannot create inner
> bean '(inner bean)' of type
> [org.apache.activemq.store.kahadaptor.KahaPersistenceAdapter] while
> setting bean property 'persistenceAdapter'; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name '(inner bean)' defined in URL
> [file:c:/wk/activemq-confs/activemq-master.xml]: Initialization of bean
> failed; nested exception is
> org.springframework.beans.TypeMismatchException: Failed to convert
> property value of type [java.lang.String] to required type [java.io.File]
> for property 'directory'; nested exception is
> java.lang.IllegalArgumentException: Could not retrieve File for class path
> resource [activemq-data]: class path resource [activemq-data] cannot be
> resolved to URL because it does not exist
> 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
> URL [file:c:/wk/activemq-confs/activemq-master.xml]: Cannot create inner
> bean '(inner bean)' of type
> [org.apache.activemq.store.kahadaptor.KahaPersistenceAdapter] while
> setting bean property 'persistenceAdapter'; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name '(inner bean)' defined in URL
> [file:c:/wk/activemq-confs/activemq-master.xml]: Initialization of bean
> failed; nested exception is
> org.springframework.beans.TypeMismatchException: Failed to convert
> property value of type [java.lang.String] to required type [java.io.File]
> for property 'directory'; nested exception is
> java.lang.IllegalArgumentException: Could not retrieve File for class path
> resource [activemq-data]: class path resource [activemq-data] cannot be
> resolved to URL because it does not exist
> 	at
> org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:99)
> 	at
> org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:51)
> 	at
> org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:104)
> 	at
> org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:51)
> 	at
> org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:76)
> 	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 org.apache.activemq.console.Main.runTaskClass(Main.java:222)
> 	at org.apache.activemq.console.Main.main(Main.java:106)
> Caused by: org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name 'org.apache.activemq.xbean.XBeanBrokerService'
> defined in URL [file:c:/wk/activemq-confs/activemq-master.xml]: Cannot
> create inner bean '(inner bean)' of type
> [org.apache.activemq.store.kahadaptor.KahaPersistenceAdapter] while
> setting bean property 'persistenceAdapter'; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name '(inner bean)' defined in URL
> [file:c:/wk/activemq-confs/activemq-master.xml]: Initialization of bean
> failed; nested exception is
> org.springframework.beans.TypeMismatchException: Failed to convert
> property value of type [java.lang.String] to required type [java.io.File]
> for property 'directory'; nested exception is
> java.lang.IllegalArgumentException: Could not retrieve File for class path
> resource [activemq-data]: class path resource [activemq-data] cannot be
> resolved to URL because it does not exist
> 	at
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:222)
> 	at
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:127)
> 	at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1099)
> 	at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:861)
> 	at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:421)
> 	at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
> 	at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
> 	at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
> 	at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
> 	at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:287)
> 	at
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
> 	at
> org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:64)
> 	at
> org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:52)
> 	at
> org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext(XBeanBrokerFactory.java:91)
> 	at
> org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:51)
> 	at
> org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:71)
> 	at
> org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:54)
> 	at
> org.apache.activemq.console.command.StartCommand.startBroker(StartCommand.java:112)
> 	at
> org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:91)
> 	... 10 more
> Caused by: org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name '(inner bean)' defined in URL
> [file:c:/wk/activemq-confs/activemq-master.xml]: Initialization of bean
> failed; nested exception is
> org.springframework.beans.TypeMismatchException: Failed to convert
> property value of type [java.lang.String] to required type [java.io.File]
> for property 'directory'; nested exception is
> java.lang.IllegalArgumentException: Could not retrieve File for class path
> resource [activemq-data]: class path resource [activemq-data] cannot be
> resolved to URL because it does not exist
> 	at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:448)
> 	at
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:215)
> 	... 28 more
> Caused by: org.springframework.beans.TypeMismatchException: Failed to
> convert property value of type [java.lang.String] to required type
> [java.io.File] for property 'directory'; nested exception is
> java.lang.IllegalArgumentException: Could not retrieve File for class path
> resource [activemq-data]: class path resource [activemq-data] cannot be
> resolved to URL because it does not exist
> 	at
> org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:385)
> 	at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1105)
> 	at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:861)
> 	at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:421)
> 	... 29 more
> Caused by: java.lang.IllegalArgumentException: Could not retrieve File for
> class path resource [activemq-data]: class path resource [activemq-data]
> cannot be resolved to URL because it does not exist
> 	at
> org.springframework.beans.propertyeditors.FileEditor.setAsText(FileEditor.java:91)
> 	at
> org.springframework.beans.TypeConverterDelegate.doConvertTextValue(TypeConverterDelegate.java:326)
> 	at
> org.springframework.beans.TypeConverterDelegate.doConvertValue(TypeConverterDelegate.java:310)
> 	at
> org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:192)
> 	at
> org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:138)
> 	at
> org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:380)
> 	... 32 more
> ERROR: java.lang.Exception:
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name 'org.apache.activemq.xbean.XBeanBrokerService' defined in
> URL [file:c:/wk/activemq-confs/activemq-master.xml]: Cannot create inner
> bean '(inner bean)' of type
> [org.apache.activemq.store.kahadaptor.KahaPersistenceAdapter] while
> setting bean property 'persistenceAdapter'; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name '(inner bean)' defined in URL
> [file:c:/wk/activemq-confs/activemq-master.xml]: Initialization of bean
> failed; nested exception is
> org.springframework.beans.TypeMismatchException: Failed to convert
> property value of type [java.lang.String] to required type [java.io.File]
> for property 'directory'; nested exception is
> java.lang.IllegalArgumentException: Could not retrieve File for class path
> resource [activemq-data]: class path resource [activemq-data] cannot be
> resolved to URL because it does not exist
> java.lang.Exception:
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name 'org.apache.activemq.xbean.XBeanBrokerService' defined in
> URL [file:c:/wk/activemq-confs/activemq-master.xml]: Cannot create inner
> bean '(inner bean)' of type
> [org.apache.activemq.store.kahadaptor.KahaPersistenceAdapter] while
> setting bean property 'persistenceAdapter'; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name '(inner bean)' defined in URL
> [file:c:/wk/activemq-confs/activemq-master.xml]: Initialization of bean
> failed; nested exception is
> org.springframework.beans.TypeMismatchException: Failed to convert
> property value of type [java.lang.String] to required type [java.io.File]
> for property 'directory'; nested exception is
> java.lang.IllegalArgumentException: Could not retrieve File for class path
> resource [activemq-data]: class path resource [activemq-data] cannot be
> resolved to URL because it does not exist
> 	at
> org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:100)
> 	at
> org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:51)
> 	at
> org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:104)
> 	at
> org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:51)
> 	at
> org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:76)
> 	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 org.apache.activemq.console.Main.runTaskClass(Main.java:222)
> 	at org.apache.activemq.console.Main.main(Main.java:106)
> Caused by: org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name 'org.apache.activemq.xbean.XBeanBrokerService'
> defined in URL [file:c:/wk/activemq-confs/activemq-master.xml]: Cannot
> create inner bean '(inner bean)' of type
> [org.apache.activemq.store.kahadaptor.KahaPersistenceAdapter] while
> setting bean property 'persistenceAdapter'; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name '(inner bean)' defined in URL
> [file:c:/wk/activemq-confs/activemq-master.xml]: Initialization of bean
> failed; nested exception is
> org.springframework.beans.TypeMismatchException: Failed to convert
> property value of type [java.lang.String] to required type [java.io.File]
> for property 'directory'; nested exception is
> java.lang.IllegalArgumentException: Could not retrieve File for class path
> resource [activemq-data]: class path resource [activemq-data] cannot be
> resolved to URL because it does not exist
> 	at
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:222)
> 	at
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:127)
> 	at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1099)
> 	at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:861)
> 	at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:421)
> 	at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
> 	at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
> 	at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
> 	at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
> 	at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:287)
> 	at
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
> 	at
> org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:64)
> 	at
> org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:52)
> 	at
> org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext(XBeanBrokerFactory.java:91)
> 	at
> org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:51)
> 	at
> org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:71)
> 	at
> org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:54)
> 	at
> org.apache.activemq.console.command.StartCommand.startBroker(StartCommand.java:112)
> 	at
> org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:91)
> 	... 10 more
> Caused by: org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name '(inner bean)' defined in URL
> [file:c:/wk/activemq-confs/activemq-master.xml]: Initialization of bean
> failed; nested exception is
> org.springframework.beans.TypeMismatchException: Failed to convert
> property value of type [java.lang.String] to required type [java.io.File]
> for property 'directory'; nested exception is
> java.lang.IllegalArgumentException: Could not retrieve File for class path
> resource [activemq-data]: class path resource [activemq-data] cannot be
> resolved to URL because it does not exist
> 	at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:448)
> 	at
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:215)
> 	... 28 more
> Caused by: org.springframework.beans.TypeMismatchException: Failed to
> convert property value of type [java.lang.String] to required type
> [java.io.File] for property 'directory'; nested exception is
> java.lang.IllegalArgumentException: Could not retrieve File for class path
> resource [activemq-data]: class path resource [activemq-data] cannot be
> resolved to URL because it does not exist
> 	at
> org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:385)
> 	at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1105)
> 	at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:861)
> 	at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:421)
> 	... 29 more
> Caused by: java.lang.IllegalArgumentException: Could not retrieve File for
> class path resource [activemq-data]: class path resource [activemq-data]
> cannot be resolved to URL because it does not exist
> 	at
> org.springframework.beans.propertyeditors.FileEditor.setAsText(FileEditor.java:91)
> 	at
> org.springframework.beans.TypeConverterDelegate.doConvertTextValue(TypeConverterDelegate.java:326)
> 	at
> org.springframework.beans.TypeConverterDelegate.doConvertValue(TypeConverterDelegate.java:310)
> 	at
> org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:192)
> 	at
> org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:138)
> 	at
> org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:380)
> 	... 32 more
> 
> 

-- 
View this message in context: http://www.nabble.com/Kaha-persistence-adapter-configuration-error-tf4424636s2354.html#a12623731
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message