activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rajib Rashid (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMQ-3906) repeated error message regarding chunk stream logged
Date Fri, 16 Nov 2012 00:51:11 GMT

    [ https://issues.apache.org/jira/browse/AMQ-3906?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13498486#comment-13498486
] 

Rajib Rashid commented on AMQ-3906:
-----------------------------------

Gary, I am not noticing the kahadb error with 5.8 SNAPSHOT (2012.11.10), so that's good news.
However, I am noticing problems starting the broker using the configuration that was attached
before. It will only start with using activemq-core-5.6.0.jar which I found out accidentally.
With pure 5.8 libraries, I get this error:

{code}
Java Runtime: Sun Microsystems Inc. 1.6.0_18 /usr/local/emerald/apps/jre
  Heap sizes: current=30784k  free=24366k  max=699072k
    JVM args: -Xmx768m -Djava.ext.dirs=/usr/local/emerald/apps/jre/lib:/usr/local/emerald/apps/activemq/lib:/usr/local/emerald/webapp/WEB-INF/lib
-Dactivemq.home=/usr/local/emerald/apps/activemq -Dactivemq.base=/usr/local/emerald/apps/activemq
-Dactivemq.conf= -Djavax.net.ssl.keyStorePassword=password -Djavax.net.ssl.trustStorePassword=password
-Djavax.net.ssl.keyStore=/usr/local/emerald/apps/activemq/conf/broker.ks -Djavax.net.ssl.trustStore=/usr/local/emerald/apps/activemq/conf/broker.ts
-Dorg.apache.activemq.store.kahadb.LOG_SLOW_ACCESS_TIME=15000 -Dderby.storage.fileSyncTransactionLog=true
-Dlogback.configurationFile=file:///usr/local/emerald/etc/logback.xml -Dtraverse.logging.context=jms
-Djava.net.preferIPv4Stack=true -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=7697
-Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false
Extensions classpath:
  []
ACTIVEMQ_HOME: /usr/local/emerald/apps/activemq
ACTIVEMQ_BASE: /usr/local/emerald/apps/activemq
ACTIVEMQ_CONF: 
ACTIVEMQ_DATA: /usr/local/emerald/apps/activemq/data
Loading message broker from: xbean:file:/usr/local/emerald/etc/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#0' defined in
URL [file:/usr/local/emerald/etc/activemq.xml]: Cannot create inner bean '(inner bean)' of
type [org.apache.activemq.store.kahadb.KahaDBPersistenceAdapter] while setting bean property
'persistenceAdapter'; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name '(inner bean)#5' defined in URL [file:/usr/local/emerald/etc/activemq.xml]:
Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException:
Could not instantiate bean class [org.apache.activemq.store.kahadb.KahaDBPersistenceAdapter]:
Constructor threw exception; nested exception is java.lang.IllegalArgumentException: Invalid
version: 6, could not load org.apache.activemq.openwire.v6.MarshallerFactory
java.lang.RuntimeException: Failed to execute start task. Reason: org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'org.apache.activemq.xbean.XBeanBrokerService#0' defined in
URL [file:/usr/local/emerald/etc/activemq.xml]: Cannot create inner bean '(inner bean)' of
type [org.apache.activemq.store.kahadb.KahaDBPersistenceAdapter] while setting bean property
'persistenceAdapter'; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name '(inner bean)#5' defined in URL [file:/usr/local/emerald/etc/activemq.xml]:
Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException:
Could not instantiate bean class [org.apache.activemq.store.kahadb.KahaDBPersistenceAdapter]:
Constructor threw exception; nested exception is java.lang.IllegalArgumentException: Invalid
version: 6, could not load org.apache.activemq.openwire.v6.MarshallerFactory
	at org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:108)
	at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
	at org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:150)
	at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
	at org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:104)
	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.activemq.console.Main.runTaskClass(Main.java:262)
	at org.apache.activemq.console.Main.main(Main.java:115)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with
name 'org.apache.activemq.xbean.XBeanBrokerService#0' defined in URL 
[file:/usr/local/emerald/etc/activemq.xml]: Cannot create inner bean '(inner bean)' of type
[org.apache.activemq.store.kahadb.KahaDBPersistenceAdapter] while setting bean property 'persistenceAdapter';
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)#5' defined in URL [file:/usr/local/emerald/etc/activemq.xml]:
Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException:
Could not instantiate bean class [org.apache.activemq.store.kahadb.KahaDBPersistenceAdapter]:
Constructor threw exception; nested exception is java.lang.IllegalArgumentException: Invalid
version: 6, could not load org.apache.activemq.openwire.v6.MarshallerFactory
	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:281)
	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:125)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1360)
[...]
{code}

So effectively I'm running ActiveMQ 5.6.0 with KahaDB 5.8?

                
> repeated error message regarding chunk stream logged
> ----------------------------------------------------
>
>                 Key: AMQ-3906
>                 URL: https://issues.apache.org/jira/browse/AMQ-3906
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 5.6.0
>         Environment: ActiveMQ 5.6.0 running on Linux FC10 x86
>            Reporter: Rajib Rashid
>         Attachments: activemq.xml, kahadb.zip
>
>
> after running normally for ~24 hours, warning messages/errors like below are logged every
30 seconds:
> {code}
> 2012-06-27 14:33:31,532 org.apache.activemq.broker.region.Topic[ActiveMQ Broker[ZyrionMessageBus]
Scheduler]: (WARN) Failed to browse Topic: remoteUpdateP2PTopic
> java.io.EOFException: Chunk stream does not exist, page: 50 is marked free
>         at org.apache.kahadb.page.Transaction$2.readPage(Transaction.java:460)
>         at org.apache.kahadb.page.Transaction$2.<init>(Transaction.java:437)
>         at org.apache.kahadb.page.Transaction.openInputStream(Transaction.java:434)
>         at org.apache.kahadb.page.Transaction.load(Transaction.java:410)
>         at org.apache.kahadb.page.Transaction.load(Transaction.java:367)
>         at org.apache.kahadb.index.BTreeIndex.loadNode(BTreeIndex.java:262)
>         at org.apache.kahadb.index.BTreeIndex.getRoot(BTreeIndex.java:174)
>         at org.apache.kahadb.index.BTreeIndex.iterator(BTreeIndex.java:232)
>         at org.apache.activemq.store.kahadb.MessageDatabase$MessageOrderIndex$MessageOrderIterator.<init>(MessageDatabase.java:2714)
>         at org.apache.activemq.store.kahadb.MessageDatabase$MessageOrderIndex.iterator(MessageDatabase.java:2696)
>         at org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore$3.execute(KahaDBStore.java:525)
>         at org.apache.kahadb.page.Transaction.execute(Transaction.java:769)
>         at org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore.recover(KahaDBStore.java:521)
>         at org.apache.activemq.store.ProxyTopicMessageStore.recover(ProxyTopicMessageStore.java:62)
>         at org.apache.activemq.broker.region.Topic.doBrowse(Topic.java:559)
>         at org.apache.activemq.broker.region.Topic.access$100(Topic.java:62)
>         at org.apache.activemq.broker.region.Topic$6.run(Topic.java:684)
>         at org.apache.activemq.thread.SchedulerTimerTask.run(SchedulerTimerTask.java:33)
>         at java.util.TimerThread.mainLoop(Timer.java:512)
>         at java.util.TimerThread.run(Timer.java:462)
> {code}
> since then the warning has been logged 6000+ times. not sure if this is due to the fact
that we have enabled expiration of queued messages for offline subscribers.
> {code}
> % ls -l apps/activemq/data/kahadb/
> total 32068
> -rw-r--r-- 1 root root 33030144 2012-06-29 14:44 db-14.log
> -rw-r--r-- 1 root root   339968 2012-06-29 14:44 db.data
> -rw-r--r-- 1 root root   196984 2012-06-29 14:44 db.redo
> -rw-r--r-- 1 root root        0 2012-06-26 16:40 lock
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message