We are upgrading the activemq api from 5.8.0 version to 5.14.1 version to get rid of vulnerbilities.
But when there are some existing messages in activemq tables, we are getting exception as follows and activemq is not running. we are using jdbcPersistenceAdapter. Is this because of the difference between the old format of the data of messages. What is the solution for this. I see there is a method in openwireformat to set version. But with jdbcPersistenceAdapter, I am not seeing any configurable aatribute for that to do. Thank you so much in advance for your help. Regards GK Caused by: java.io.UTFDataFormatException: bad string at org.apache.activemq.util.DataByteArrayInputStream.readUTF(DataByteArrayInputStream.java:315) at org.apache.activemq.openwire.v11.BaseDataStreamMarshaller.looseUnmarshalString(BaseDataStreamMarshaller.java:571) at org.apache.activemq.openwire.v11.MessageIdMarshaller.looseUnmarshal(MessageIdMarshaller.java:122) at org.apache.activemq.openwire.OpenWireFormat.looseUnmarshalNestedObject(OpenWireFormat.java:474) at org.apache.activemq.openwire.v11.BaseDataStreamMarshaller.looseUnmarsalNestedObject(BaseDataStreamMarshaller.java:466) at org.apache.activemq.openwire.v11.MessageMarshaller.looseUnmarshal(MessageMarshaller.java:220) at org.apache.activemq.openwire.v11.ActiveMQMessageMarshaller.looseUnmarshal(ActiveMQMessageMarshaller.java:101) at org.apache.activemq.openwire.v11.ActiveMQTextMessageMarshaller.looseUnmarshal(ActiveMQTextMessageMarshaller.java:101) at org.apache.activemq.openwire.OpenWireFormat.doUnmarshal(OpenWireFormat.java:367) at org.apache.activemq.openwire.OpenWireFormat.unmarshal(OpenWireFormat.java:201) at org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.getLastMessageBrokerSequenceId(JDBCPersistenceAdapter.java:266) at org.apache.activemq.broker.region.DestinationFactoryImpl.getLastMessageBrokerSequenceId(DestinationFactoryImpl.java:147) at org.apache.activemq.broker.region.RegionBroker.<init>(RegionBroker.java:130) at org.apache.activemq.broker.BrokerService.createRegionBroker(BrokerService.java:2363) at org.apache.activemq.broker.BrokerService.createRegionBroker(BrokerService.java:2348) at org.apache.activemq.broker.BrokerService.createBroker(BrokerService.java:2305) at org.apache.activemq.broker.BrokerService.getBroker(BrokerService.java:1017) at org.apache.activemq.broker.BrokerService.getAdminConnectionContext(BrokerService.java:2576) at org.apache.activemq.broker.BrokerService.startDestinations(BrokerService.java:2560) at org.apache.activemq.broker.BrokerService.doStartBroker(BrokerService.java:726) at org.apache.activemq.broker.BrokerService.startBroker(BrokerService.java:720) at org.apache.activemq.broker.BrokerService.start(BrokerService.java:623) at org.apache.activemq.xbean.XBeanBrokerService.afterPropertiesSet(XBeanBrokerService.java:73) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1700) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1639) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1568) -- View this message in context: http://activemq.2283324.n4.nabble.com/upgrading-from-activemq-5-8-0-to-5-14-1-tp4720764.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.