On Tue, Jun 9, 2009 at 09:04, Julien HENRY<henr...@yahoo.fr> wrote: > Hi Andreas, > > I've started to look at the source code but unfortunatly, Axis2 code is > tighly dependent on OMStAXWrapper especially in ConverterUtil.java. I will > try to checkout Axiom code and see if there is a way to avoid that.
Instead of coupling it to OMStAXWrapper, the code should refer the interfaces implemented by OMStAXWrapper. I think that should not be too much of a problem, but maybe we need to enrich those interfaces. > Also, > modules/adb/src/org/apache/axis2/databinding/types/soapencoding/Base64Binary.java > modules/adb/src/org/apache/axis2/databinding/types/xsd/Base64Binary.java > look like generated code. I also noticed that, but I never understood how those files would have been generated. Maybe somebody else on the list can answer this question? > Do you confirm? > > Regards, > > Julien > > ________________________________ > De : Julien HENRY <henr...@yahoo.fr> > À : axis-u...@ws.apache.org > Envoyé le : Mercredi, 3 Juin 2009, 11h48mn 53s > Objet : Re : Re : Re : ClassCastException when enabling MTOM > > OK, let me try. > > I'll keep you informed of my progress. > > Regards, > > Julien > > ________________________________ > De : Andreas Veithen <andreas.veit...@gmail.com> > À : axis-u...@ws.apache.org > Envoyé le : Mardi, 2 Juin 2009, 23h51mn 34s > Objet : Re: Re : Re : ClassCastException when enabling MTOM > > Julien, > > I added an analysis of the problem the the JIRA issue. If you feel > confident enough, then you can try do the required changes and submit > a patch. > > Andreas > > On Tue, Jun 2, 2009 at 18:06, Julien HENRY <henr...@yahoo.fr> wrote: >> Done: AXIS2-4363 >> >> I can definitly help. Let me know what you need. >> >> Regards, >> >> Julien >> >> ________________________________ >> De : Andreas Veithen <andreas.veit...@gmail.com> >> À : axis-u...@ws.apache.org >> Envoyé le : Mardi, 2 Juin 2009, 17h30mn 16s >> Objet : Re: Re : ClassCastException when enabling MTOM >> >> Yes, please go ahead an open a JIRA issue. >> >> BTW, I have a pretty clear idea where the problem is located. It's in >> the stylesheet used by codegen for ADB. Are you motivated to help us >> to fix it and test the change? >> >> Andreas >> >> On Tue, Jun 2, 2009 at 17:14, Julien HENRY <henr...@yahoo.fr> wrote: >>> Hi Andreas, >>> >>> Thanks for the tip. It works fine with log level > DEBUG. >>> >>> FYI I have tested with Axis2 1.5 and we still have the classcast >>> exception >>> when running in debug mode. >>> >>> Should I open a JIRA issue for tracking? >>> >>> Thanks, >>> >>> Julien >>> >>> ________________________________ >>> De : Andreas Veithen <andreas.veit...@gmail.com> >>> À : axis-u...@ws.apache.org >>> Envoyé le : Mardi, 2 Juin 2009, 14h13mn 47s >>> Objet : Re: ClassCastException when enabling MTOM >>> >>> Julien, >>> >>> Can you check if the problem disappears if you set the log level for >>> org.apache.axiom to something higher than DEBUG? >>> >>> Andreas >>> >>> PS: If that question sounds strange to you, please have a look at the >>> code in OMElementImpl#getXMLStreamReader; you will understand... >>> >>> On Tue, Jun 2, 2009 at 14:04, Julien HENRY <henr...@yahoo.fr> wrote: >>>> Hi everybody, >>>> >>>> When I try to enable MTOM for handling big attachments, I receive the >>>> following error when using the generated client stub: >>>> >>>> java.lang.ClassCastException: >>>> org.apache.axiom.om.util.OMXMLStreamReaderValidator cannot be cast to >>>> org.apache.axiom.om.impl.llom.OMStAXWrapper >>>> at >>>> >>>> >>>> >>>> com.xxx.vaultwebservice.client.Vault_WebServiceStub$XXXBundleType$Factory.parse(Vault_WebServiceStub.java:21236) >>>> at >>>> >>>> >>>> >>>> com.xxx.vaultwebservice.client.Vault_WebServiceStub$DownloadXXXResponse$Factory.parse(Vault_WebServiceStub.java:56454) >>>> at >>>> >>>> >>>> >>>> com.xxx.vaultwebservice.client.Vault_WebServiceStub.fromOM(Vault_WebServiceStub.java:64390) >>>> >>>> I'm using Axis2 1.4.1 with following Maven dependencies: >>>> >>>> <dependency> >>>> <groupId>org.apache.axis2</groupId> >>>> <artifactId>axis2-kernel</artifactId> >>>> <version>1.4.1</version> >>>> </dependency> >>>> <dependency> >>>> <groupId>org.apache.axis2</groupId> >>>> <artifactId>axis2-adb</artifactId> >>>> <version>1.4.1</version> >>>> </dependency> >>>> <dependency> >>>> <groupId>org.apache.ws.commons.axiom</groupId> >>>> <artifactId>axiom-api</artifactId> >>>> <version>1.2.8</version> >>>> </dependency> >>>> <dependency> >>>> <groupId>org.apache.ws.commons.axiom</groupId> >>>> <artifactId>axiom-impl</artifactId> >>>> <version>1.2.8</version> >>>> </dependency> >>>> <dependency> >>>> <groupId>wsdl4j</groupId> >>>> <artifactId>wsdl4j</artifactId> >>>> <version>1.6.2</version> >>>> </dependency> >>>> >>>> Any idea of what is the issue? >>>> >>>> Thanks >>>> >>>> Julien >>>> >>>> >>> >>> >> >> > > >