[jacorb-developer] issue about customer exception propagation over iiop

Nick Cross jacorb at goots.org
Tue Sep 25 18:14:39 CEST 2012


Hi
Can you submit a complete working test case including details of all 
versions of software you are using please. You could use bugzilla for code 
attachments.

Regards,
Nick

------- Original message -------
> From: Chao Wang <soul2zimate at gmail.com>
> To: jacorb-developer at lists.spline.inf.fu-berlin.de
> Sent: 25.9.'12,  8:06
>
> Hey all,
>
> I have a spiny case with jacorb and iiop on jboss (Fedora16 + IBM JDK7), 
> I
> have a test case that try to throw an user exception and test this
> exception propagation over IIOP.
>
> the idea of test is deploying my "iiop.jar" to server which contains my
> customer exception (have a variable "i" inside, initial this value with 
> the
> parameter of constructor) and contains my SLSB who provide a method
> "testException" to throw a new customer exception. so, after create a
> session from my test case, I tried to call the testException method by
> passing a parameter -1,
>
> try{
>   session.testException(-1);
> }catch(customerexception e)
> {
>   make assertion on e.getValueI(); // here the i value should be -1, but 
> is
> always return -2, no matter what I input as parameter in testException()
> }
>
> and catching the customer exception threw from server, and check the 
> value
> "i", it should be equal to -1 as the parameter.
>
> the weird thing is that the value i in the exception that I catch is 
> always
> "-2", no matter passing -1 or other value as parameter, it always return
> -2. so in the code of server side, I can track down until it writes
> exception to an outputstream and sending by GIOP to test client side, the 
> i
> value in exception is still good one at that time.
>
> so I used wireshark to catch GIOP byte data, and try to see whether my i
> variable has the good value in the stream,  the byte data I captured with
> wireshark only contains a few readable message like exception class name,
> but apart of this, other byte data are unreadable and encoded.
>
> So, do you have any suggestion on my issue or any other method that I can
> see that wrong variable?
> _______________________________________________
> jacorb-developer maillist  - 
> jacorb-developer at lists.spline.inf.fu-berlin.de
> https://lists.spline.inf.fu-berlin.de/mailman/listinfo/jacorb-developer



More information about the jacorb-developer mailing list