WLS 12.1.3 - Javax.activation.DataHandler Cannot Be Cast To Com.sun.xml.ws.developer.StreamingDataHandler (Doc ID 2219474.1)

Last updated on MARCH 29, 2017

Applies to:

Oracle WebLogic Server - Version 12.1.3.0.0 to 12.2.1.2.0 [Release 12c]
Information in this document applies to any platform.

Symptoms

 When testing MTOM feature of web services in weblogic 12.1.3  as per the sample provided in the below documentation link

https://docs.oracle.com/middleware/1213/wls/WSGET/jax-ws-mtom.htm#WSGET3471

Following error occurs.

ERROR
-----------------------
 javax.activation.DataHandler cannot be cast to com.sun.xml.ws.developer.StreamingDataHandler

 The same code works fine on earlier 12.1.1 and 12.1.2 versions

Changes

 Due to changes in web service runtime in 12.1.3, issue occurs.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms