AssertionError: UNIMPLEMENTED at weblogic.xml.domimpl.NodeImpl.setTextContent (Doc ID 1288014.1)

Last updated on JUNE 09, 2016

Applies to:

Oracle Weblogic Server - Version: 10.3.1 and later   [Release: and later ]
Information in this document applies to any platform.

Goal

When using following method of DOM 3 API inside Web Service fault code following exception is thrown.

Code Snippet:

Detail detail = SOAPFactory.newInstance().createDetail();
detail.setTextContent(message);

Exception:

Exception in thread "Main Thread" java.lang.AssertionError: UNIMPLEMENTED
at weblogic.xml.domimpl.NodeImpl.setTextContent(NodeImpl.java:216)
at SOAPFaultExceptionFactory.initNoAuthFaultException(SOAPFaultExceptionFactory.java:83)
at SOAPFaultExceptionFactory.initFaultExceptions(SOAPFaultExceptionFactory.java:73)
at SOAPFaultExceptionFactory.<init>(SOAPFaultExceptionFactory.java:36)
at SOAPFaultExceptionFactoryTest.main(SOAPFaultExceptionFactoryTest.java:6)

Please note that setTextContent( ) is from DOM Level 3, as noted in Oracle docs.

To replicate the issue, compile and run java classes attached, as below:

1. Open command prompt window and run <WL_HOME>\server\bin\setWLSEnv.cmd
2. javac *.java
3. java SOAPFaultExceptionFactoryTest


Solution

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