Calling Web Service from a 11g Database Using Callout Utility Results in Error: java.lang.ClassCastException (Doc ID 1185096.1)

Last updated on FEBRUARY 10, 2017

Applies to:

Web Services - Version: 10.1.3.1.0 and later   [Release: and later ]
Information in this document applies to any platform.

Symptoms

When calling a Web Service from a 11g Database ( 11.1.0.7 ) on Windows Server 2008 x64 (64-bit) using Callout utility, got the following error although the same code works in a 10g database with the Callout utility:

java.lang.ClassCastException
at oracle.xml.parser.v2.XMLNSNode.appendChild (XMLNSNode.java)
at oracle.j2ee.ws.saaj.soap.ElementImpl.appendChild (ElementImpl.java:126)
at java_test.testxmltype (JAVA_TEST:13)


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