You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by osian <os...@osian.me.uk> on 2006/05/16 15:48:50 UTC

Restarting Broker Exception

When restarting a broker which has had to be killed or stopped, when it is
started up again, the following exception occurs

javax.jms.JMSException: Transaction 'TX:ID:pc6-2220-1147775013468-0:0:24'
has not been started.
        at
org.apache.activemq.broker.TransactionBroker.getTransaction(TransactionBroker.java:229)
        at
org.apache.activemq.broker.TransactionBroker.commitTransaction(TransactionBroker.java:152)
        at
org.apache.activemq.broker.BrokerFilter.commitTransaction(BrokerFilter.java:77)
        at
org.apache.activemq.broker.BrokerFilter.commitTransaction(BrokerFilter.java:77)
        at
org.apache.activemq.broker.MutableBrokerFilter.commitTransaction(MutableBrokerFilter.java:89)
        at
org.apache.activemq.broker.AbstractConnection.processCommitTransactionOnePhase(AbstractConnection.java:297)
        at
org.apache.activemq.command.TransactionInfo.visit(TransactionInfo.java:98)
        at
org.apache.activemq.broker.AbstractConnection.service(AbstractConnection.java:196)
        at
org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:62)
        at
org.apache.activemq.transport.ResponseCorrelator.onCommand(ResponseCorrelator.java:93)
        at
org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:70)
        at
org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:114)
        at
org.apache.activemq.transport.InactivityMonitor.onCommand(InactivityMonitor.java:122)
        at
org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:87)
        at
org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:139)
        at java.lang.Thread.run(Thread.java:595)
--
View this message in context: http://www.nabble.com/Restarting-Broker-Exception-t1627837.html#a4409841
Sent from the ActiveMQ - User forum at Nabble.com.


Re: Restarting Broker Exception

Posted by osian <os...@osian.me.uk>.
This is using ActiveMQ 4.0 RC3.  

I have a feeling that it is because I had consumers already running, the
broker had to be stopped due to the producer hanging the broker, i.e. bug
AMQ-688.  I am trying to find a work around for this, i.e. only creating one
MessageProducer per queue, per application, instead of a new MessageProducer
each time a message is to be added to the queue (which is currently in
batches of a 1000) but Im researching into finding out if a messageproducer
is still active. Hopefuly this will alleviate the problem?
--
View this message in context: http://www.nabble.com/Restarting-Broker-Exception-t1627837.html#a4411941
Sent from the ActiveMQ - User forum at Nabble.com.


Re: Restarting Broker Exception

Posted by James Strachan <ja...@gmail.com>.
Which version of ActiveMQ are you using?

On 5/16/06, osian <os...@osian.me.uk> wrote:
>
> When restarting a broker which has had to be killed or stopped, when it is
> started up again, the following exception occurs
>
> javax.jms.JMSException: Transaction 'TX:ID:pc6-2220-1147775013468-0:0:24'
> has not been started.
>         at
> org.apache.activemq.broker.TransactionBroker.getTransaction(TransactionBroker.java:229)
>         at
> org.apache.activemq.broker.TransactionBroker.commitTransaction(TransactionBroker.java:152)
>         at
> org.apache.activemq.broker.BrokerFilter.commitTransaction(BrokerFilter.java:77)
>         at
> org.apache.activemq.broker.BrokerFilter.commitTransaction(BrokerFilter.java:77)
>         at
> org.apache.activemq.broker.MutableBrokerFilter.commitTransaction(MutableBrokerFilter.java:89)
>         at
> org.apache.activemq.broker.AbstractConnection.processCommitTransactionOnePhase(AbstractConnection.java:297)
>         at
> org.apache.activemq.command.TransactionInfo.visit(TransactionInfo.java:98)
>         at
> org.apache.activemq.broker.AbstractConnection.service(AbstractConnection.java:196)
>         at
> org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:62)
>         at
> org.apache.activemq.transport.ResponseCorrelator.onCommand(ResponseCorrelator.java:93)
>         at
> org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:70)
>         at
> org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:114)
>         at
> org.apache.activemq.transport.InactivityMonitor.onCommand(InactivityMonitor.java:122)
>         at
> org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:87)
>         at
> org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:139)
>         at java.lang.Thread.run(Thread.java:595)
> --
> View this message in context: http://www.nabble.com/Restarting-Broker-Exception-t1627837.html#a4409841
> Sent from the ActiveMQ - User forum at Nabble.com.
>
>


-- 

James
-------
http://radio.weblogs.com/0112098/