[Bug 1009] Client Interceptor does not handle properly second exception in a raw
[email protected] Sat, 09 May 2015 10:20:30 +0000
| Newsgroups | gmane.comp.corba.jacorb.bugs |
|---|---|
| Message-ID | <[email protected]/bugzilla/> |
http://www.jacorb.org/bugzilla/show_bug.cgi?id=1009 --- Comment #6 from Serguei Kolos <[email protected]> --- Here is a simple test case which demonstrates the problem. Actually the problem is slightly different with respect to what I have described originally. In my real application exception handling is quite complicated so I didn't recognized the actual behavior, but in the essence the problem is that the actual interceptors algorithm result in the following sequence of events: 1. The ORB tries to connect to remote server using the original object reference and fails 2. receive_exception is invoked for the first time and throws ForwardRequest with the new object reference 3. The ORB tries to connect to remote server using the new object reference and fails again 4. receive_exception is invoked for the second time and just exits At this moment I would expect the TRANSIENT exception appearing in the user code, but... 5. The ORB tries to connect to remote server using again the ORIGINAL object reference and fails again 6. receive_exception is invoked for the THRID time and simply returns 7. Only now the TRANSIENT exception appears in the user code Here is the output produced by the attached test application > java test.Test WARNING Warning - unknown codeset (ASCII) - defaulting to ISO-8859-1 WARNING Warning - unknown codeset (ASCII) - defaulting to ISO-8859-1 INFO Initialising ORB with ID: INFO InterceptorManager started with 0 Server Interceptors, 1 Client Interceptors and 1 IOR Interceptors Invoking test.i.f function INFO ClientConnectionManager: created new ClientGIOPConnection to 127.0.1.1:50525 (147c4ee) INFO Negotiated char codeset of ISO8859_1 and wchar of UTF16 INFO Retrying to connect to 127.0.1.1:50525 INFO Retrying to connect to 127.0.1.1:50525 INFO Retrying to connect to 127.0.1.1:50525 INFO Retrying to connect to 127.0.1.1:50525 INFO Retrying to connect to 127.0.1.1:50525 receive_exception IDL:omg.org/CORBA/TRANSIENT:1.0 receive_exception IDL:omg.org/CORBA/TRANSIENT:1.0 count = 0 throw ForwardRequest INFO ClientConnectionManager: created new ClientGIOPConnection to 127.0.1.1:34851 (1533528) INFO Negotiated char codeset of ISO8859_1 and wchar of UTF16 INFO Retrying to connect to 127.0.1.1:34851 INFO Retrying to connect to 127.0.1.1:34851 INFO Retrying to connect to 127.0.1.1:34851 INFO Retrying to connect to 127.0.1.1:34851 INFO Retrying to connect to 127.0.1.1:34851 receive_exception IDL:omg.org/CORBA/TRANSIENT:1.0 receive_exception IDL:omg.org/CORBA/TRANSIENT:1.0 count = 1 just return INFO ClientConnectionManager: created new ClientGIOPConnection to 127.0.1.1:50525 (14bdf68) INFO Negotiated char codeset of ISO8859_1 and wchar of UTF16 INFO Retrying to connect to 127.0.1.1:50525 INFO Retrying to connect to 127.0.1.1:50525 INFO Retrying to connect to 127.0.1.1:50525 INFO Retrying to connect to 127.0.1.1:50525 INFO Retrying to connect to 127.0.1.1:50525 receive_exception IDL:omg.org/CORBA/TRANSIENT:1.0 receive_exception IDL:omg.org/CORBA/TRANSIENT:1.0 count = 1 just return Got Exception: org.omg.CORBA.TRANSIENT: Retries exceeded, couldn't reconnect to 127.0.1.1:50525 vmcid: 0x0 minor code: 0 completed: No -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ jacorb-bugs mailing list [email protected] https://lists.spline.inf.fu-berlin.de/mailman/listinfo/jacorb-bugs