[jacorb-developer] issue about customer exception propagation over iiop
Chao Wang
soul2zimate at gmail.com
Tue Sep 25 09:06:02 CEST 2012
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?
More information about the jacorb-developer
mailing list