My Oracle Support Banner

Webservice Call With Following Errormessage :Java.Lang.Classcastexception (Doc ID 1315214.1)

Last updated on JULY 20, 2024

Applies to:

Oracle Transportation Management - Version 6.2.1 and later
Information in this document applies to any platform.

Symptoms

On OTM version 6.2.1

When doing a webservice call using :

<soap:Header xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
</soap:Header>

We are getting following errormessage :

<env:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<env:Header/>
<env:Body>
<env:Fault>
<faultcode>env:Server</faultcode>
<faultstring>Exception during processing: java.lang.ClassCastException: weblogic.webservice.core.soap.SOAPTextElement
(see Fault Detail for stacktrace)</faultstring>
<detail>
<host_fault:stacktrace xmlns:bea_fault="http://<host>/servers/wls70/webservice/fault/1.0.0">java.lang.ClassCastException: weblogic.webservice.core.soap.SOAPTextElement

java.lang.ClassCastException: weblogic.webservice.core.soap.SOAPTextElement
at glog.server.webservice.WSSHeaderHandler$Service.handleRequest(WSSHeaderHandler.java:93)

When we get ridd off the Carriage Return it seems to work...
<soap:Header xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"></soap:Header>
or using


<soap:Header xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"/>

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.