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-user@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 > >