Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-2319

ClassCastException in SOAPBody.extractContentAsDocument();

XMLWordPrintable

      Caused by: java.lang.ClassCastException: org.jboss.ws.core.soap.TextImpl
      at org.jboss.ws.core.soap.SOAPBodyImpl.extractContentAsDocument(SOAPBodyImpl.java:243)
      at org.jboss.test.ws.jaxws.jbws2319.SOAPHandler.handleInbound(SOAPHandler.java:63)
      at org.jboss.wsf.common.handler.GenericHandler.handleMessage(GenericHandler.java:53)
      at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:293)
      at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:138)
      ... 28 more

      In addition to this 'extractContentAsDocument()' was not expanding the content to DOM so the returned document had most of the content missing, the fix and test case also addresses this.

              darran.lofthouse@redhat.com Darran Lofthouse
              darran.lofthouse@redhat.com Darran Lofthouse
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: