tibco.ems.illegalstateexception illegal use of receive() from multiple threads
来源:互联网 发布:长得像女生知乎 编辑:程序博客网 时间:2024/06/05 03:54
http://eai.ittoolbox.com/groups/technical-functional/tibco-l/error-when-attempting-to-receive-a-message-4632560
Hi All,
Can you please just why I get this error always?
This error occur too oftenly and I had to restart our Tibco service to fix this issue.
Is this error due to heavy load on TIBCO Service or Is our TIBCO loosing connection with EMS?
Here is the log which I see in Admin console.
There was an error when attempting to receive a message.javax.jms.IllegalStateException: Illegal use of receive() from multiple threads at com.tibco.tibjms.TibjmsxSessionImp._receive(Tibjms xSessionImp.java:1892) at com.tibco.tibjms.TibjmsMessageConsumer._receive(Ti bjmsMessageConsumer.java:240) at com.tibco.tibjms.TibjmsMessageConsumer.receive(Tib jmsMessageConsumer.java:440) at com.tibco.plugin.jms.JMSAbstractGetMessageActivity $JMSMessageGetter.getEvent(JMSAbstractGetMessageAc tivity.java:926) at com.tibco.plugin.jms.JMSAbstractGetMessageActivity $JMSMessageGetter.run(JMSAbstractGetMessageActivit y.java:799)
Here is one possible explanation:
jms session and derived objects (message consumers,message producers) are not supposed to be used by many thread concurrently.
This is what might happen in your application and result is this IlegalState exception at the end.
Maybe jms sender is invoked after one message is delivered by jms receiver. And jms sender does use same Connection (and same session) as jms receiver.
Or a Get Message is performed using same Connection (and same session)
make activities Jms sender /Get Message be synchronized using a lock/critical section.
This will ensure one thread at a time use the jms object.
Other suggestion: increase value of parameter MaxSessions of process starter Jms receiver
- tibco.ems.illegalstateexception illegal use of receive() from multiple threads
- EMS server Tibco
- Spring 整合 Tibco EMS
- TIBCO EMS MESSAGE
- TIBCO EMS管理
- Spring 整合 Tibco EMS
- Tibco EMS -- Invalid destination exception with TIBCO EMS
- Tibco EMS 初级使用方法小结
- Tibco EMS 初级使用方法小结
- Tibco EMS 初级使用方法小结
- ORA-00997: illegal use of LONG datatype
- ORA-00997: illegal use of LONG datatype
- TIBCO ESB实战系列:TIBCO EMS的访问控制管理
- Diff between Tibco RV(Rendezvous) and Tibco EMS
- TIBCO ESB实战系列:EMS调优
- Spring 配置 整合 jms Tibco EMS
- illegal to have multiple occurrences of contentType with different values
- illegal use of incomplete struct/union/class 'CAknViewAppUi'
- 使用JUnit测试预期异常
- ie8开发人员工具
- Android 在activity中显示非view组件eg:GLSurfaceView
- [LeetCode]Merge Two Sorted Lists
- 观察者模式
- tibco.ems.illegalstateexception illegal use of receive() from multiple threads
- Oracle BIEE
- int main(int argc,char* argv[])详解
- 有关String对象的一个面试题
- 最小生成树之普里姆算法
- Struts1与Struts2原理
- 支持向量机通俗导论(理解SVM的三层境界)
- POJ3133
- matlab矩阵求逆:inv pinv \ / 斜线运算符的选择