Hi Robbie, We are trying to replicate this issue from our end, so we can confidently apply fix and roll out to all. We need some your input/help to replicate this issue. It could be be some issue from my end, So I am trying to find trouble code as well. Sorry for many questions.
In May, we had this issue due to bad Message which was published with .Net, but now we got issue due to normal messages as well. We are having this issue while restarting of ServiceBus connector restart (due to ServiceBus connectivity loss). I follow below steps for restart - ------------------------------------------- 1. Closing and Nullifying JMS Objects a. Connection.close(), Connection = null, b. MessageConsumer.setMessageListener(null); --> I think i am doing wrong here. I don't need to set null here, as i am closing on next step. What's your opinion? MessageConsumer.close(); MessageConsumer=null; c. Session.close(); Session = null ------------------------------------------ 2. Creating JMS Objects a. Create Connection b. Create Session c. Create Consumer ------------------------------------------ Q1. ) Could you please suggest if I am doing anything wrong while restarting of JMS Objects ? Q2. ) If we got any exception while closing Connection, Session, Consumer and Producer, then how can we make sure that Connection, Session, Consumer and Producer closed and clear successfully from system? Is it good practise set Null to JMS Objects after closing to make sure that JMS Objects are cleaned up properly? I want to make sure that JMS object and threads are clear from system properly before creating new connection, so it will not cause any issue while starting of JMS connection, Session, etc. Overall I feel that, this could be an issue with clearance/disposing of existing JMS Objects. Could you please suggest your opinion to handle gracefully for exception scenario while closing JMS Objects? Q3. ) We got "Illegal invocation from MessageListener callback" error while closing Connection & Session, and then we started having "Suspected deadlocked threads" error. Could you please suggest any idea to generate "Illegal invocation from MessageListener callback" error ? It could be one of reason for deadlocked. If I am able to generate this error then I could generate deadlock error. It will be great help if you provide your opinion on above queries. Please find below error logs. Error Pattern 1 - "Failed to close connection - 'Illegal invocation from MessageListener callback'" "Stopping: 'null'. Object is: ServicebusMessageReceiver" "Failed to reset message listener on endpoint 'servicebus://topic:***/subscriptions/***' - 'The MessageConsumer was closed due to an unrecoverable error.' - 'class javax.jms.IllegalStateException'" "Suspected deadlocked threads: JmsSession [ID:ge300959-71f8-8fff-9d61-0a3e6dc02b98:9:10] delivery dispatcher Id=41620240 is in BLOCKED on lock=org.mule.transport.servicebus.SbusConnector@58e4b68c is owned by JmsSession [ID:ge300959-71f8-8fff-9d61-0a3e6dc02b98:9:7] delivery dispatcher Id=51620937 | JmsSession [ID:ge300959-71f8-8fff-9d61-0a3e6dc02b98:9:7] delivery dispatcher Id=51620937 is in WAITING on lock=java.util.concurrent.locks.ReentrantLock$NonfairSync@26cc0a98 is owned by JmsSession [ID:ge300959-71f8-8fff-9d61-0a3e6dc02b98:9:5] delivery dispatcher Id=41620235 | JmsSession [ID:ge300959-71f8-8fff-9d61-0a3e6dc02b98:9:5] delivery dispatcher Id=41620235 is in BLOCKED on lock=org.mule.transport.servicebus.SbusConnector@58e4b68c is owned by JmsSession [ID:ge300959-71f8-8fff-9d61-0a3e6dc02b98:9:7] delivery dispatcher Id=51620937 | " "Suspected deadlocked threads: JmsSession [ID:ge300959-71f8-8fff-9d61-0a3e6dc02b98:9:10] delivery dispatcher Id=41620240 is in BLOCKED on lock=org.mule.transport.servicebus.SbusConnector@58e4b68c is owned by JmsSession [ID:ge300959-71f8-8fff-9d61-0a3e6dc02b98:9:7] delivery dispatcher Id=51620937 | JmsSession [ID:ge300959-71f8-8fff-9d61-0a3e6dc02b98:9:7] delivery dispatcher Id=51620937 is in WAITING on lock=java.util.concurrent.locks.ReentrantLock$NonfairSync@26cc0a98 is owned by JmsSession [ID:ge300959-71f8-8fff-9d61-0a3e6dc02b98:9:5] delivery dispatcher Id=41620235 | JmsSession [ID:ge300959-71f8-8fff-9d61-0a3e6dc02b98:9:5] delivery dispatcher Id=41620235 is in BLOCKED on lock=org.mule.transport.servicebus.SbusConnector@58e4b68c is owned by JmsSession [ID:ge300959-71f8-8fff-9d61-0a3e6dc02b98:9:7] delivery dispatcher Id=51620937 | " "Suspected deadlocked threads: JmsSession [ID:ge300959-71f8-8fff-9d61-0a3e6dc02b98:9:10] delivery dispatcher Id=41620240 is in BLOCKED on lock=org.mule.transport.servicebus.SbusConnector@58e4b68c is owned by JmsSession [ID:ge300959-71f8-8fff-9d61-0a3e6dc02b98:9:7] delivery dispatcher Id=51620937 | JmsSession [ID:ge300959-71f8-8fff-9d61-0a3e6dc02b98:9:7] delivery dispatcher Id=51620937 is in WAITING on lock=java.util.concurrent.locks.ReentrantLock$NonfairSync@26cc0a98 is owned by JmsSession [ID:ge300959-71f8-8fff-9d61-0a3e6dc02b98:9:5] delivery dispatcher Id=41620235 | JmsSession [ID:ge300959-71f8-8fff-9d61-0a3e6dc02b98:9:5] delivery dispatcher Id=41620235 is in BLOCKED on lock=org.mule.transport.servicebus.SbusConnector@58e4b68c is owned by JmsSession [ID:ge300959-71f8-8fff-9d61-0a3e6dc02b98:9:7] delivery dispatcher Id=51620937 | " Error Sample 2 "Failed to close connection - 'Illegal invocation from MessageListener callback'" "Failed to close session - 'Illegal invocation from MessageListener callback'" Regards, Abhishek Kumar -- Sent from: http://qpid.2158936.n2.nabble.com/Apache-Qpid-users-f2158936.html --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org For additional commands, e-mail: users-h...@qpid.apache.org