This was the second time the error occured. First i checked the projects, if the connections would be safely closed in case of an error, but that was surely the case.
Second i checked the "channel exception: not-attached: channel 1 is not attached" - i counted the occurance of this message between my first 500 connections error message and the second and found out - this error happened exactly 500 times!
So i debugged the code in detail an realized, that the error occured exactly after using Acknowledge() of the Qpid-sender-class. So i removed the line and looked at the qpid-documentation a little bit deeper in detail. I found a good qpid-documentation created bei Red-Hat:
- Qpid API Documentation -- http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_MRG/1.3/html/Programming_in_Apache_Qpid/chap-Programming_in_Apache_Qpid-Using_the_Qpid_Messaging_API.html
- Qpid Sample Application -- http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_MRG/1.3/html/Programming_in_Apache_Qpid/sect-Programming_in_Apache_Qpid-Using_the_Qpid_Messaging_API-A_Simple_Messaging_Program_in_.NET_C.html
Since then i fixed the line the error never happend again.
No comments:
Post a Comment