Thank you! Saminda
On Tue, Sep 29, 2009 at 1:50 AM, Andreas Veithen <andreas.veit...@gmail.com>wrote: > Yes, this has already been fixed in trunk. > > Andreas > > On Tue, Sep 29, 2009 at 07:34, Saminda Abeyruwan <samin...@gmail.com> > wrote: > > Hi Devs, > > > > I am currently using Axis2 1.5 for my research. I have stumble upon a > MTOM > > data binding bug. I have a service which send me a pdf file. The client > is > > generated using adb. The exception I get is attached herewith. > > > > I fixed the problem in generated code: where it occurs in "parse" method > of > > GetResponse (line: 463). > > > > This line says, > > > object.set_return(((org.apache.axiom.soap.impl.builder.MTOMStAXSOAPModelBuilder) > > ((org.apache.axiom.om.impl.llom.OMStAXWrapper) > > reader).getBuilder()).getDataHandler(id)); > > > > IMHO, prior should be changed to > > > > > object.set_return(((OMXMLStreamReaderValidator)reader).getDataHandler(id)); > > > > to generated code to work. Is this bug already fixed in truck ?. If not > > I'll open a JIRA and attahced a patch. I am kinda hate to mess up the > > templates. :-) > > > > I have attached a simple service that can be used to re-create this bug. > > > > Thank you! > > > > Saminda > > > > ========================== > > org.apache.axis2.AxisFault: > > org.apache.axiom.om.util.OMXMLStreamReaderValidator cannot be cast to > > org.apache.axiom.om.impl.llom.OMStAXWrapper > > at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430) > > at > > > edu.miami.cs.client.LibraryServiceStub.fromOM(LibraryServiceStub.java:1252) > > at > > edu.miami.cs.client.LibraryServiceStub.get(LibraryServiceStub.java:481) > > at Client.main(Client.java:28) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > > at > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > > at java.lang.reflect.Method.invoke(Method.java:597) > > > > > > > > ========================== > > > > > > >