Issue Details (XML | Word | Printable)

Key: XFIRE-173
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Dan Diephouse
Reporter: Dan Diephouse
Votes: 1
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
XFire

Exception inheritance not handled correctly

Created: 16/Nov/05 12:30 AM   Updated: 24/Apr/06 09:31 AM
Component/s: None
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

Issue Links:
dependent
 


 Description  « Hide
fate I can gve you another example!
fate (on client): Exception in thread "main" java.lang.reflect.UndeclaredThrowableException
fate at $Proxy0.initialize(Unknown Source)
dan but if they don't have control of the server, how would the stack trace help the client?
fate at Test.main(Test.java:22)
fate then: Caused by: java.lang.InstantiationException: com.opensymphony.workflow.InvalidRoleException
fate Caused by: org.codehaus.xfire.fault.XFireFault: Couldn't instantiate service.
fate at org.codehaus.xfire.aegis.type.basic.BeanType.readObject(BeanType.java:99)
fate at org.codehaus.xfire.aegis.AegisBindingProvider.readParameter(AegisBindingProvider.java:131)
fate at java.lang.Class.newInstance0(Class.java:293)
fate on the server, on the other hand, we have:
fate WARNING: Error invoking service.
fate com.opensymphony.workflow.InvalidRoleException: You are restricted from initializing this workflow
fate at com.opensymphony.workflow.AbstractWorkflow.initialize(AbstractWorkflow.java:605)
fate at com.opensymphony.workflow.soap.BasicSOAPWorkflow.initialize(BasicSOAPWorkflow.java:105)
fate oh losing trace is fine, I'm bitching about losing the message
dan ok, that trace is a bad one
dan InvalidRoleException needs a default constructor
fate also, the undeclared exception is wrong, since InvalidRoleException is a subclass of WorkflowException
fate which is declared
dan or BeanType needs to be fixed
dan good point

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Dan Diephouse added a comment - 27/Nov/05 10:22 PM
To allow overridden types we need to add some methods to BindingProvider to read/write objects without the MessagePart information. Then the CustomFaultSerializer and the Client both need to be aware of this.