activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rohit Kumar <rohit.yku...@wipro.com>
Subject with same Mysql DB instance with Different Servicemix's
Date Tue, 19 Jun 2007 05:05:15 GMT

Hi,
  I am migrated derby to Mysql with ActiveMQ.xml file. But If I used same Db
instace to two servicemix I am getting beow error while processing the
request(sending xml file to input queue getting results from WS to output
queue). Stace stace like bleow.    In both servicemixs using same
components. 
  Can I use same instance for different servicemix or not. 

Thanks In Advance.

Erorr:

" 17:36:50,395 | ERROR | pool-flow.seda.servicemix-jms-thread-2 |
JmsComponent             | ervicemix.common.BaseLifeCycle   48 | Error
processing exchange InOnly[
  id: ID:E-1182168299589-5:4
  status: Active
  role: provider
  service: {}PhsJmsTapQ0
  endpoint: myProvider
  in: <?xml version="1.0"
encoding="UTF-8>xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="PhsInterfaceSpec.xsd">	
]
javax.jms.JMSException: java.lang.NegativeArraySizeException
	at
org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:46)
	at
org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1177)
	at org.apache.activemq.ActiveMQSession.send(ActiveMQSession.java:1549)
	at
org.apache.activemq.ActiveMQMessageProducer.send(ActiveMQMessageProducer.java:465)
	at org.apache.activemq.pool.PooledProducer.send(PooledProducer.java:75)
	at org.apache.activemq.pool.PooledProducer.send(PooledProducer.java:60)
	at
org.apache.servicemix.jms.multiplexing.MultiplexingProviderProcessor.process(MultiplexingProviderProcessor.java:156)
	at
org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:489)
	at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:441)
	at
org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
	at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:593)
	at
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:174)
	at
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:176)
	at
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
	at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
	at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
	at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NegativeArraySizeException
	at
org.apache.activemq.openwire.v2.BaseDataStreamMarshaller.looseUnmarshalByteSequence(BaseDataStreamMarshaller.java:599)
	at
org.apache.activemq.openwire.v2.MessageMarshaller.looseUnmarshal(MessageMarshaller.java:209)
	at
org.apache.activemq.openwire.v2.ActiveMQMessageMarshaller.looseUnmarshal(ActiveMQMessageMarshaller.java:101)
	at
org.apache.activemq.openwire.v2.ActiveMQTextMessageMarshaller.looseUnmarshal(ActiveMQTextMessageMarshaller.java:101)
	at
org.apache.activemq.openwire.OpenWireFormat.doUnmarshal(OpenWireFormat.java:349)
	at
org.apache.activemq.openwire.OpenWireFormat.unmarshal(OpenWireFormat.java:204)
	at
org.apache.activemq.store.jdbc.JDBCMessageStore$1.recoverMessage(JDBCMessageStore.java:156)
	at
org.apache.activemq.store.jdbc.adapter.DefaultJDBCAdapter.doRecover(DefaultJDBCAdapter.java:304)
	at
org.apache.activemq.store.jdbc.JDBCMessageStore.recover(JDBCMessageStore.java:154)
	at
org.apache.activemq.store.journal.JournalMessageStore.recover(JournalMessageStore.java:342)
	at org.apache.activemq.broker.region.Queue.initialize(Queue.java:112)
	at
org.apache.activemq.broker.region.DestinationFactoryImpl.createDestination(DestinationFactoryImpl.java:95)
	at
org.apache.activemq.broker.region.AbstractRegion.createDestination(AbstractRegion.java:348)
	at
org.apache.activemq.broker.jmx.ManagedQueueRegion.createDestination(ManagedQueueRegion.java:56)
	at
org.apache.activemq.broker.region.AbstractRegion.addDestination(AbstractRegion.java:93)
	at
org.apache.activemq.broker.region.RegionBroker.addDestination(RegionBroker.java:252)
	at
org.apache.activemq.broker.BrokerFilter.addDestination(BrokerFilter.java:142)
	at
org.apache.activemq.advisory.AdvisoryBroker.addDestination(AdvisoryBroker.java:142)
	at
org.apache.activemq.broker.BrokerFilter.addDestination(BrokerFilter.java:142)
	at
org.apache.activemq.broker.MutableBrokerFilter.addDestination(MutableBrokerFilter.java:152)
	at
org.apache.activemq.broker.region.AbstractRegion.lookup(AbstractRegion.java:316)
	at
org.apache.activemq.broker.region.AbstractRegion.send(AbstractRegion.java:291)
	at
org.apache.activemq.broker.region.RegionBroker.send(RegionBroker.java:377)
	at
org.apache.activemq.broker.TransactionBroker.send(TransactionBroker.java:193)
	at org.apache.activemq.broker.BrokerFilter.send(BrokerFilter.java:126)
	at
org.apache.activemq.broker.CompositeDestinationBroker.send(CompositeDestinationBroker.java:98)
	at
org.apache.activemq.broker.MutableBrokerFilter.send(MutableBrokerFilter.java:136)
	at
org.apache.activemq.broker.TransportConnection.processMessage(TransportConnection.java:483)
	at
org.apache.activemq.command.ActiveMQMessage.visit(ActiveMQMessage.java:604)
	at
org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:287)
	at
org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:178)
	at
org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:65)
	at
org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:133)
	at
org.apache.activemq.transport.InactivityMonitor.onCommand(InactivityMonitor.java:122)
	at
org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:84)
	at
org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:137)
	... 1 more
17:36:50,895 | ERROR | pool-flow.seda.servicemix-jms-thread-1 | JmsComponent            
| ervicemix.common.BaseLifeCycle   48 | Error processing exchange InOnly[
  id: ID:-1182168299589-5:1
  status: Active
  role: provider
  service: {}PhsJmsTapQ0
  endpoint: myProvider
  in: <?xml version="1.0"
encoding="UTF-8"?><xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="PhsInterfaceSpec.xsd">	
]
javax.jms.JMSException: java.lang.NegativeArraySizeException
	at
org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:46)
	at
org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1177)
	at org.apache.activemq.ActiveMQSession.send(ActiveMQSession.java:1549)
	at
org.apache.activemq.ActiveMQMessageProducer.send(ActiveMQMessageProducer.java:465)
	at org.apache.activemq.pool.PooledProducer.send(PooledProducer.java:75)
	at org.apache.activemq.pool.PooledProducer.send(PooledProducer.java:60)
	at
org.apache.servicemix.jms.multiplexing.MultiplexingProviderProcessor.process(MultiplexingProviderProcessor.java:156)
	at
org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:489)
	at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:441)
	at
org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
	at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:593)
	at
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:174)
	at
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:176)
	at
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
	at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
	at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
	at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NegativeArraySizeException
	at
org.apache.activemq.openwire.v2.BaseDataStreamMarshaller.looseUnmarshalByteSequence(BaseDataStreamMarshaller.java:599)
	at
org.apache.activemq.openwire.v2.MessageMarshaller.looseUnmarshal(MessageMarshaller.java:209)
	at
org.apache.activemq.openwire.v2.ActiveMQMessageMarshaller.looseUnmarshal(ActiveMQMessageMarshaller.java:101)
	at
org.apache.activemq.openwire.v2.ActiveMQTextMessageMarshaller.looseUnmarshal(ActiveMQTextMessageMarshaller.java:101)
	at
org.apache.activemq.openwire.OpenWireFormat.doUnmarshal(OpenWireFormat.java:349)
	at
org.apache.activemq.openwire.OpenWireFormat.unmarshal(OpenWireFormat.java:204)
	at
org.apache.activemq.store.jdbc.JDBCMessageStore$1.recoverMessage(JDBCMessageStore.java:156)
	at
org.apache.activemq.store.jdbc.adapter.DefaultJDBCAdapter.doRecover(DefaultJDBCAdapter.java:304)
	at
org.apache.activemq.store.jdbc.JDBCMessageStore.recover(JDBCMessageStore.java:154)
	at
org.apache.activemq.store.journal.JournalMessageStore.recover(JournalMessageStore.java:342)
	at org.apache.activemq.broker.region.Queue.initialize(Queue.java:112)
	at
org.apache.activemq.broker.region.DestinationFactoryImpl.createDestination(DestinationFactoryImpl.java:95)
	at
org.apache.activemq.broker.region.AbstractRegion.createDestination(AbstractRegion.java:348)
	at
org.apache.activemq.broker.jmx.ManagedQueueRegion.createDestination(ManagedQueueRegion.java:56)
	at
org.apache.activemq.broker.region.AbstractRegion.addDestination(AbstractRegion.java:93)
	at
org.apache.activemq.broker.region.RegionBroker.addDestination(RegionBroker.java:252)
	at
org.apache.activemq.broker.BrokerFilter.addDestination(BrokerFilter.java:142)
	at
org.apache.activemq.advisory.AdvisoryBroker.addDestination(AdvisoryBroker.java:142)
	at
org.apache.activemq.broker.BrokerFilter.addDestination(BrokerFilter.java:142)
	at
org.apache.activemq.broker.MutableBrokerFilter.addDestination(MutableBrokerFilter.java:152)
	at
org.apache.activemq.broker.region.AbstractRegion.lookup(AbstractRegion.java:316)
	at
org.apache.activemq.broker.region.AbstractRegion.send(AbstractRegion.java:291)
	at
org.apache.activemq.broker.region.RegionBroker.send(RegionBroker.java:377)
	at
org.apache.activemq.broker.TransactionBroker.send(TransactionBroker.java:193)
	at org.apache.activemq.broker.BrokerFilter.send(BrokerFilter.java:126)
	at
org.apache.activemq.broker.CompositeDestinationBroker.send(CompositeDestinationBroker.java:98)
	at
org.apache.activemq.broker.MutableBrokerFilter.send(MutableBrokerFilter.java:136)
	at
org.apache.activemq.broker.TransportConnection.processMessage(TransportConnection.java:483)
	at
org.apache.activemq.command.ActiveMQMessage.visit(ActiveMQMessage.java:604)
	at
org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:287)
	at
org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:178)
	at
org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:65)
	at
org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:133)
	at
org.apache.activemq.transport.InactivityMonitor.onCommand(InactivityMonitor.java:122)
	at
org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:84)
	at
org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:137)
	... 1 more    "


Thanks,
Rohit.




-- 
View this message in context: http://www.nabble.com/with-same-Mysql-DB-instance-with-Different-Servicemix%27s-tf3944254s2354.html#a11188430
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message