google-code-export / flerry

Automatically exported from code.google.com/p/flerry
1 stars 0 forks source link

Exceptions thrown from invoked methods return InvocationTargetException #7

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create method that throws Exception
2. Invoke the method
3. Look at returned fault, always InvocationTargetException

What is the expected output? What do you see instead?
The exception returned should be the actual exception thrown by the method.

What version of the product are you using? On what operating system?
1.2.0

Please provide any additional information below.
I have fixed the issue: You need to add following catch to try wrapper around 
sourceObject.....invoke() call that catches InvocationTargetException and send 
the cause rather than handle the invocation exception itself... cheers
catch(InvocationTargetException e){
                        handleException(e.getCause(), message.getMessageId());
                    }

You need to change handleExpception param to Throwable for the cause to pass 
casting...

Original issue reported on code.google.com by jay.jo...@hotmail.com on 1 Nov 2010 at 7:06