qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ParkiratBagga <parkiratba...@gmail.com>
Subject Exception during Failover - Command-point out of range.
Date Mon, 12 Nov 2012 09:07:52 GMT
Hi,

I am using C++ Broker 0.14 (qpidc) and a Java Client.

In my failover strategy, I have given following parameters:

failover='singlebroker?cyclecount='36000''&brokerlist='tcp://localhost:5672?retries='3600'&connecttimeout='21600000'&connectdelay='6000''";

When I restart the broker, my client tries to re-connect with the broker and
throws the following exception in the client log:

========================================================
		2012-11-12 03:27:06,372 org: env: IoReceiver - /10.176.245.114:5672 ERROR
o.a.q.c.AMQConnection - AMQConnection.exceptionReceived() : Throwable
Received but no listener set: org.apache.qpid.AMQExc        eption: ch=1
id=2 ExecutionException(errorCode=INVALID_ARGUMENT, commandId=-1,
classCode=2, commandCode=7, fieldIndex=0, description=invalid-argument:
guest@QPID.f1795269-0dc4-4463-8bfd-07f3411a1d        af: Command-point out
of range. (qpid/SessionState.cpp:182), errorInfo={}) [error code 542: broker
unsupported protocol]
   4328 2012-11-12 03:27:06,372 org: env: IoReceiver - /10.176.245.114:5672
DEBUG o.a.q.t.Connection - Logger.debug() : FLUSH: [conn:418bdc7a]
   4329 2012-11-12 03:27:06,372 org: env: IoReceiver - /10.176.245.114:5672
DEBUG o.a.q.t.Connection - Logger.debug() : SEND: [conn:418bdc7a] ch=0
ConnectionOpen(virtualHost=test, insist=true)
   4330 2012-11-12 03:27:06,373 org: env: IoReceiver - /10.176.245.114:5672
DEBUG o.a.q.t.Connection - Logger.debug() : FLUSH: [conn:418bdc7a]
   4331 2012-11-12 03:27:06,374 org: env: loadtest3-qa-ex1-q1 Thread-2 ERROR
c.a.a.q.r.ReceiveMessageTask - ReceiveMessageTask.run() : Exception occured
while receiving message from the queue loadtest3-qa        -ex1-q1
   4332 javax.jms.JMSException: Message consumer forcibly closed due to
error: org.apache.qpid.AMQException: ch=1 id=2
ExecutionException(errorCode=INVALID_ARGUMENT, commandId=-1, classCode=2,
commandCode        =7, fieldIndex=0, description=invalid-argument:
guest@QPID.f1795269-0dc4-4463-8bfd-07f3411a1daf: Command-point out of range.
(qpid/SessionState.cpp:182), errorInfo={}) [error code 542: broker unsu       
pported protocol]
   4333         at
org.apache.qpid.client.BasicMessageConsumer.returnMessageOrThrow(BasicMessageConsumer.java:512)
~[qpid-client-0.12.jar:na]
   4334         at
org.apache.qpid.client.BasicMessageConsumer.receive(BasicMessageConsumer.java:408)
~[qpid-client-0.12.jar:na]
   4335         at
org.apache.qpid.client.BasicMessageConsumer.receive(BasicMessageConsumer.java:382)
~[qpid-client-0.12.jar:na]
   4336         at
com.myorg.myenv.qpid.receiver.ReceiveMessageTask.run(ReceiveMessageTask.java:174)
~[qpidclient-service-1.0.0.jar:na]
   4337         at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
[na:1.6.0_33]
   4338         at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
[na:1.6.0_33]
   4339         at java.util.concurrent.FutureTask.run(FutureTask.java:138)
[na:1.6.0_33]
   4340         at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)
[na:1.6.0_33]
   4341         at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206)
[na:1.6.0_33]
   4342         at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
[na:1.6.0_33]
   4343         at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[na:1.6.0_33]
   4344         at java.lang.Thread.run(Thread.java:662) [na:1.6.0_33]
   4345 Caused by: org.apache.qpid.AMQException: ch=1 id=2
ExecutionException(errorCode=INVALID_ARGUMENT, commandId=-1, classCode=2,
commandCode=7, fieldIndex=0, description=invalid-argument: guest@QPID.f       
1795269-0dc4-4463-8bfd-07f3411a1daf: Command-point out of range.
(qpid/SessionState.cpp:182), errorInfo={})
   4346         at
org.apache.qpid.client.AMQSession_0_10.setCurrentException(AMQSession_0_10.java:1050)
~[qpid-client-0.12.jar:na]
   4347         at
org.apache.qpid.client.AMQSession_0_10.exception(AMQSession_0_10.java:913)
~[qpid-client-0.12.jar:na]
   4348         at
org.apache.qpid.transport.SessionDelegate.executionException(SessionDelegate.java:156)
~[qpid-common-0.12.jar:na]
   4349         at
org.apache.qpid.transport.SessionDelegate.executionException(SessionDelegate.java:32)
~[qpid-common-0.12.jar:na]
   4350         at
org.apache.qpid.transport.ExecutionException.dispatch(ExecutionException.java:112)
~[qpid-common-0.12.jar:na]
   4351         at
org.apache.qpid.transport.SessionDelegate.command(SessionDelegate.java:50)
~[qpid-common-0.12.jar:na]
   4352         at
org.apache.qpid.transport.SessionDelegate.command(SessionDelegate.java:32)
~[qpid-common-0.12.jar:na]
   4353         at
org.apache.qpid.transport.Method.delegate(Method.java:159)
~[qpid-common-0.12.jar:na]
   4354         at
org.apache.qpid.transport.Session.received(Session.java:528)
~[qpid-common-0.12.jar:na]
   4355         at
org.apache.qpid.transport.Connection.dispatch(Connection.java:404)
~[qpid-common-0.12.jar:na]
   4356         at
org.apache.qpid.transport.ConnectionDelegate.handle(ConnectionDelegate.java:64)
~[qpid-common-0.12.jar:na]
   4357         at
org.apache.qpid.transport.ConnectionDelegate.handle(ConnectionDelegate.java:40)
~[qpid-common-0.12.jar:na]
   4358         at
org.apache.qpid.transport.MethodDelegate.executionException(MethodDelegate.java:110)
~[qpid-common-0.12.jar:na]
   4359         at
org.apache.qpid.transport.ExecutionException.dispatch(ExecutionException.java:112)
~[qpid-common-0.12.jar:na]
   4360         at
org.apache.qpid.transport.ConnectionDelegate.command(ConnectionDelegate.java:54)
~[qpid-common-0.12.jar:na]
   4361         at
org.apache.qpid.transport.ConnectionDelegate.command(ConnectionDelegate.java:40)
~[qpid-common-0.12.jar:na]
   4362         at
org.apache.qpid.transport.Method.delegate(Method.java:159)
~[qpid-common-0.12.jar:na]
   4363         at
org.apache.qpid.transport.Connection.received(Connection.java:369)
~[qpid-common-0.12.jar:na]
   4364         at
org.apache.qpid.transport.Connection.received(Connection.java:59)
~[qpid-common-0.12.jar:na]
   4365         at
org.apache.qpid.transport.network.Assembler.emit(Assembler.java:95)
~[qpid-common-0.12.jar:na]
   4366         at
org.apache.qpid.transport.network.Assembler.assemble(Assembler.java:196)
~[qpid-common-0.12.jar:na]
   4367         at
org.apache.qpid.transport.network.Assembler.frame(Assembler.java:129)
~[qpid-common-0.12.jar:na]
   4368         at
org.apache.qpid.transport.network.Frame.delegate(Frame.java:133)
~[qpid-common-0.12.jar:na]
   4369         at
org.apache.qpid.transport.network.Assembler.received(Assembler.java:100)
~[qpid-common-0.12.jar:na]
   4370         at
org.apache.qpid.transport.network.Assembler.received(Assembler.java:42)
~[qpid-common-0.12.jar:na]
   4371         at
org.apache.qpid.transport.network.InputHandler.next(InputHandler.java:187)
~[qpid-common-0.12.jar:na]
   4372         at
org.apache.qpid.transport.network.InputHandler.received(InputHandler.java:103)
~[qpid-common-0.12.jar:na]
   4373         at
org.apache.qpid.transport.network.InputHandler.received(InputHandler.java:42)
~[qpid-common-0.12.jar:na]
   4374         at
org.apache.qpid.transport.network.io.IoReceiver.run(IoReceiver.java:128)
~[qpid-common-0.12.jar:na]
   4375         ... 1 common frames omitted
   4376 2012-11-12 03:27:06,374 org: env: loadtest3-qa-ex1-q1 Thread-2 INFO 
o.a.q.c.BasicMessageConsumer - BasicMessageConsumer.close() : Closing
consumer:2[1628403218]
   4377 2012-11-12 03:27:06,375 org: env: loadtest3-qa-ex1-q1 Thread-2 INFO 
o.a.q.client.AMQSession - AMQSession.close() : Closing session:
org.apache.qpid.client.AMQSession_0_10@50d79dfe
   4378 2012-11-12 03:27:06,375 org: env: loadtest3-qa-ex1-q1 Thread-2 INFO 
o.a.q.client.AMQSession - AMQSession.close() : Closing session:
org.apache.qpid.client.AMQSession_0_10@439a8942
   4379 2012-11-12 03:27:06,375 org: env: loadtest3-qa-ex1-q1 Thread-2 DEBUG
o.a.q.transport.Session - Logger.debug() :
ssn:"ea100437-2087-49f3-bfaa-334a014561f1" sync()
   4380 2012-11-12 03:27:06,376 org: env: loadtest3-qa-ex1-q1 Thread-2 DEBUG
o.a.q.t.Connection - Logger.debug() : SEND: [conn:52a53948] ch=0
SessionRequestTimeout(timeout=0)
   4381 2012-11-12 03:27:06,376 org: env: loadtest3-qa-ex1-q1 Thread-2 DEBUG
o.a.q.t.Connection - Logger.debug() : FLUSH: [conn:52a53948]
   4382 2012-11-12 03:27:06,376 org: env: loadtest3-qa-ex1-q1 Thread-2 DEBUG
o.a.q.t.Connection - Logger.debug() : SEND: [conn:52a53948] ch=0
SessionDetach(name=[B@19a40cfc)
   4383 2012-11-12 03:27:06,376 org: env: loadtest3-qa-ex1-q1 Thread-2 DEBUG
o.a.q.t.Connection - Logger.debug() : FLUSH: [conn:52a53948]
   4384 2012-11-12 03:27:06,376 org: env: IoReceiver - /10.176.245.114:5672
DEBUG o.a.q.c.BasicMessageConsumer - BasicMessageConsumer.notifyError() :
Passed exception to synchronous queue for propagation         to receive()
   4385 2012-11-12 03:27:06,377 org: env: IoReceiver - /10.176.245.114:5672
DEBUG o.a.q.t.SessionDelegate - Logger.debug() : CLOSED:
[ssn:"f1795269-0dc4-4463-8bfd-07f3411a1daf"]
   4386 2012-11-12 03:27:06,377 org: env: IoReceiver - /10.176.245.114:5672
DEBUG o.a.q.t.Connection - Logger.debug() : RECV: [conn:2453f89f] ch=0
ConnectionTune(channelMax=32767, maxFrameSize=65535, hear        tbeatMin=0,
heartbeatMax=120)
   4387 2012-11-12 03:27:06,377 org: env: IoReceiver - /10.176.245.114:5672
INFO  o.a.q.t.ClientDelegate - Logger.info() : The broker does not support
the configured connection idle timeout of 300 sec, us        ing the brokers
max supported value of 120 sec instead.
==============================================================

Also find the broker log as below: 
===============================================================
2012-11-12 08:27:06 debug SessionState::SessionState
guest@QPID.f1795269-0dc4-4463-8bfd-07f3411a1daf: 0x7f40d80026c0
2012-11-12 08:27:06 debug Management object (V1) added:
org.apache.qpid.broker:session:f1795269-0dc4-4463-8bfd-07f3411a1daf
2012-11-12 08:27:06 debug guest@QPID.f1795269-0dc4-4463-8bfd-07f3411a1daf:
attached on broker.
2012-11-12 08:27:06 debug Attached channel 1 to
guest@QPID.f1795269-0dc4-4463-8bfd-07f3411a1daf
2012-11-12 08:27:06 debug guest@QPID.f1795269-0dc4-4463-8bfd-07f3411a1daf:
ready to send, activating output.
2012-11-12 08:27:06 debug guest@QPID.f1795269-0dc4-4463-8bfd-07f3411a1daf:
Issuing producer message credit 18
2012-11-12 08:27:06 debug Exception constructed:
guest@QPID.f1795269-0dc4-4463-8bfd-07f3411a1daf: Command-point out of range.
(qpid/SessionState.cpp:182)
2012-11-12 08:27:06 debug SEND raiseEvent (v1)
class=org.apache.qpid.broker.clientConnect
2012-11-12 08:27:06 debug SEND raiseEvent (v2)
class=org.apache.qpid.broker.clientConnect
2012-11-12 08:27:06 debug SEND raiseEvent (v1)
class=org.apache.qpid.broker.clientConnect
2012-11-12 08:27:06 debug SEND raiseEvent (v2)
class=org.apache.qpid.broker.clientConnect
2012-11-12 08:27:06 debug SEND raiseEvent (v1)
class=org.apache.qpid.broker.clientConnect
2012-11-12 08:27:06 debug SEND raiseEvent (v2)
class=org.apache.qpid.broker.clientConnect
2012-11-12 08:27:06 debug SEND raiseEvent (v1)
class=org.apache.qpid.broker.clientConnect
2012-11-12 08:27:06 debug SEND raiseEvent (v2)
class=org.apache.qpid.broker.clientConnect
2012-11-12 08:27:06 debug SEND raiseEvent (v1)
class=org.apache.qpid.broker.clientConnect
2012-11-12 08:27:06 debug SEND raiseEvent (v1)
class=org.apache.qpid.broker.clientConnect
2012-11-12 08:27:06 debug SEND raiseEvent (v2)
class=org.apache.qpid.broker.clientConnect
2012-11-12 08:27:06 debug SEND raiseEvent (v2)
class=org.apache.qpid.broker.clientConnect
2012-11-12 08:27:06 debug SEND raiseEvent (v1)
class=org.apache.qpid.broker.clientConnect
2012-11-12 08:27:06 debug SEND raiseEvent (v2)
class=org.apache.qpid.broker.clientConnect
2012-11-12 08:27:06 debug SEND raiseEvent (v1)
class=org.apache.qpid.broker.clientConnect
2012-11-12 08:27:06 debug SEND raiseEvent (v2)
class=org.apache.qpid.broker.clientConnect
2012-11-12 08:27:06 debug SEND raiseEvent (v1)
class=org.apache.qpid.broker.clientConnect
2012-11-12 08:27:06 debug SEND raiseEvent (v2)
class=org.apache.qpid.broker.clientConnect
2012-11-12 08:27:06 debug guest@QPID.f1795269-0dc4-4463-8bfd-07f3411a1daf:
detached on broker.
==============================================================


Regards,
Parkirat Singh Bagga.




--
View this message in context: http://qpid.2158936.n2.nabble.com/Exception-during-Failover-Command-point-out-of-range-tp7584501.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


Mime
View raw message