Kbase P163874: Connection to SonicMQ lost with error 2128
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  11/18/2010 |
|
Status: Verified
SYMPTOM(s):
Connection to SonicMQ lost with error 2128
Invalid or inappropriate handle value given to RUN...IN statement. Procedure 'processMessage xx/oroc.p':420. (2128) (From the RUN jms/ptpsession.p stmt).
Invalid or inappropriate handle value given to RUN...IN statement. Procedure '<calling-procedure>':<line-number>. (2128)
javax.jms.IllegalStateException: The connection is closed.
Error connecting to the JMS AppServer service.
FACT(s) (Environment):
Using Progress 4GL SonicMQ adapter
All Supported Operating Systems
Progress 9.x
OpenEdge 10.x
CAUSE:
The error message :
Invalid or inappropriate handle value given to RUN...IN statement. Procedure 'processMessage xx/proc.p':420. (2128) (From the RUN jms/ptpsession.p stmt). comes from the event of a lost connection to the SonicMQ broker which invalidates the specific handle.
The lost connection is seen in the specific SonicMQ adapter server log file as: javax.jms.IllegalStateException: The connection is closed.
FIX:
Implement a ping to the broker which checks the connection regularly and take appropriate actions in your code for the
case the connection is lost. Making the network more stable may also help but as our software API provides other possibilities that is certainly not required.