activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From abosetti <abose...@burrows.co.uk>
Subject Strange problem
Date Tue, 23 Mar 2010 17:26:43 GMT

Hi all

I am experiencing a strange problem. Every other time that I startup my
tomcat server, I get the message 
SEVERE: IOException while loading persisted sessions:
java.io.WriteAbortedException: writing aborted;
java.io.NotSerializableException:
org.apache.activemq.ActiveMQMessageConsumer

In short, the first time I run my app, it works very well, all the topics
and queues are working fine and message flow is at it should be. I shut down
my application server (Tomcat or Weblogic) and when I restart it I get the
above message and activemq doesn't seem to work propertly (no messages are
sent or received).

I use spring 2.5.6, ActiveMQ v5.3.0. I have tried the just released 5.3.1
but it doesn't change anything. 

I am sure that I have some configuration issues somewhere, but I cannot see.
If you could point me in the right direction...

Thank you a million in advance.
Alex


My spring configuration is:
	 <amq:broker useJmx="false" start="true" enableStatistics="false"
persistent="true"  dedicatedTaskRunner="true" supportFailOver="false"
useShutdownHook="true" 
	 		brokerName="BrokerA" destroyApplicationContextOnStop="false"
deleteAllMessagesOnStartup="true">
		
		 <amq:persistenceAdapter>
      		<amq:amqPersistenceAdapter directory="/phx/broker/data"
maxFileLength="32mb" syncOnWrite="true" />      		
  		</amq:persistenceAdapter>
		
		<amq:transportConnectors>
			<amq:transportConnector uri="tcp://localhost:0" />
		</amq:transportConnectors>
		
	</amq:broker>
	
	 
	<amq:connectionFactory id="jmsFactory"
brokerURL="vm://BrokerA?create=false" />
	
	<bean class="org.springframework.jms.connection.CachingConnectionFactory"
id="connectionFactory">
  		<constructor-arg ref="jmsFactory"/>
  		<property name="sessionCacheSize" value="100"/>
	</bean>    
	
<amq:topic id="topicTest" physicalName="topicTest" />



The full stack trace is:
23-Mar-2010 17:15:49 org.apache.catalina.session.StandardManager doLoad
SEVERE: IOException while loading persisted sessions:
java.io.WriteAbortedException: writing aborted;
java.io.NotSerializableException:
org.apache.activemq.ActiveMQMessageConsumer
java.io.WriteAbortedException: writing aborted;
java.io.NotSerializableException:
org.apache.activemq.ActiveMQMessageConsumer
	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1333)
	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
	at java.util.HashMap.readObject(HashMap.java:1029)
	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 java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974)
	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1849)
	at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
	at
org.apache.catalina.session.StandardSession.readObject(StandardSession.java:1439)
	at
org.apache.catalina.session.StandardSession.readObjectData(StandardSession.java:942)
	at
org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:394)
	at
org.apache.catalina.session.StandardManager.load(StandardManager.java:321)
	at
org.apache.catalina.session.StandardManager.start(StandardManager.java:637)
	at
org.apache.catalina.core.ContainerBase.setManager(ContainerBase.java:438)
	at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4258)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
	at org.apache.catalina.core.StandardService.start(StandardService.java:516)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
	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.catalina.startup.Bootstrap.start(Bootstrap.java:288)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: java.io.NotSerializableException:
org.apache.activemq.ActiveMQMessageConsumer
	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
	at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
	at java.util.HashMap.writeObject(HashMap.java:1000)
	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 java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
	at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
	at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
	at
org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:1515)
	at
org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.java:959)
	at
org.apache.catalina.session.StandardManager.doUnload(StandardManager.java:517)
	at
org.apache.catalina.session.StandardManager.unload(StandardManager.java:463)
	at
org.apache.catalina.session.StandardManager.stop(StandardManager.java:667)
	at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4499)
	at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1098)
	at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1098)
	at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:448)
	at org.apache.catalina.core.StandardService.stop(StandardService.java:584)
	at org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)
	at org.apache.catalina.startup.Catalina.stop(Catalina.java:616)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:591)
	... 6 more
23-Mar-2010 17:15:49 org.apache.catalina.session.StandardManager start
SEVERE: Exception loading sessions from persistent storage
java.io.WriteAbortedException: writing aborted;
java.io.NotSerializableException:
org.apache.activemq.ActiveMQMessageConsumer
	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1333)
	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
	at java.util.HashMap.readObject(HashMap.java:1029)
	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 java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974)
	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1849)
	at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
	at
org.apache.catalina.session.StandardSession.readObject(StandardSession.java:1439)
	at
org.apache.catalina.session.StandardSession.readObjectData(StandardSession.java:942)
	at
org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:394)
	at
org.apache.catalina.session.StandardManager.load(StandardManager.java:321)
	at
org.apache.catalina.session.StandardManager.start(StandardManager.java:637)
	at
org.apache.catalina.core.ContainerBase.setManager(ContainerBase.java:438)
	at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4258)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
	at org.apache.catalina.core.StandardService.start(StandardService.java:516)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
	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.catalina.startup.Bootstrap.start(Bootstrap.java:288)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: java.io.NotSerializableException:
org.apache.activemq.ActiveMQMessageConsumer
	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
	at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
	at java.util.HashMap.writeObject(HashMap.java:1000)
	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 java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
	at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
	at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
	at
org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:1515)
	at
org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.java:959)
	at
org.apache.catalina.session.StandardManager.doUnload(StandardManager.java:517)
	at
org.apache.catalina.session.StandardManager.unload(StandardManager.java:463)
	at
org.apache.catalina.session.StandardManager.stop(StandardManager.java:667)
	at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4499)
	at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1098)
	at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1098)
	at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:448)
	at org.apache.catalina.core.StandardService.stop(StandardService.java:584)
	at org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)
	at org.apache.catalina.startup.Catalina.stop(Catalina.java:616)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:591)
	... 6 more


	


-- 
View this message in context: http://old.nabble.com/Strange-problem-tp28004237p28004237.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message