Hi Rob, thanks for the suggestion. I have tried the KahaDB adaptor, and it does endeed change the behaviour but I am still getting the same error message every other time I restart. The major difference is that now, despite the error message, everything seems to work :)
I forgot to mention something important earlier on, that may be important: I am using the ajax listener. The configuration that I have in web.html is <context-param> <param-name>org.apache.activemq.brokerURL</param-name> <param-value>vm://BrokerA?create=false</param-value> </context-param> <context-param> <param-name>org.apache.activemq.embeddedBroker</param-name> <param-value>true</param-value> </context-param> <servlet> <servlet-name>AjaxServlet</servlet-name> <servlet-class>org.apache.activemq.web.AjaxServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>AjaxServlet</servlet-name> <url-pattern>/amq/*</url-pattern> </servlet-mapping> May be it has something to do with this? Alex >Hi Alex, > >could you try with the KahaDB persistence adaptor ? in reply to > 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 -- View this message in context: http://old.nabble.com/Strange-problem-tp28004237p28006394.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.