Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-4363

Classcast exception when enabling MTOM with ADB

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.1
    • 1.6.0
    • None
    • None
    • ADB databinding

    Description

      When enabling MTOM and generating client stub with ADB, I get the following error when using my WS to download attachments:

      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)
      

      This error only occurs when log level for org.apache.axiom is DEBUG so a workaround is to set log level > DEBUG.

      The bug is also present with staged 1.5 version.

      Attachments

        Issue Links

          Activity

            People

              veithen Andreas Veithen
              henryju Julien HENRY
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: