ClassCastException when invoking webservice which is generated By Clientgen (Doc ID 1280244.1)

Last updated on JUNE 09, 2016

Applies to:

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

Symptoms

The code generated by clientgen is unable to de-serialize xml data when there the contained xsd uses ennumurations.

- java.lang.String; nested exception is:
java.lang.ClassCastException: java.lang.String
java.rmi.RemoteException: java.lang.String; nested exception is:
java.lang.ClassCastException: java.lang.String
at com.fidelity.definedbenefit.presentation.webservices.beans.retirementservicev3.RetirementServiceV3Port_Stub.getRetirementElections(RetirementServiceV3Port_Stub.java:180)
at com.fidelity.definedbenefit.presentation.webservices.beans.retirementservicev3ejb.RetirementServiceClient.testGetRetiremenetElection(RetirementServiceClient.java:93)
at com.fidelity.definedbenefit.presentation.webservices.beans.retirementservicev3ejb.RetirementServiceClient.main(RetirementServiceClient.java:24)
Caused by: java.lang.ClassCastException: java.lang.String
at com.fmr.xmlns.FESCo.DB.x2010.x08.RetirementService.CommenceableBenefitElectionCodec.typedInvokeSetter(CommenceableBenefitElectionCodec.java:824)
at com.fmr.xmlns.FESCo.DB.x2010.x08.RetirementService.CommenceableBenefitElectionCodec.invokeSetter(CommenceableBenefitElectionCodec.java:640)
at weblogic.xml.schema.binding.BeanCodecBase.processAllElements(BeanCodecBase.java:167)
at weblogic.xml.schema.binding.BeanCodecBase.processElements(BeanCodecBase.java:146)
at weblogic.xml.schema.binding.BeanCodecBase.deserialize(BeanCodecBase.java:109)
at weblogic.xml.schema.binding.SequenceCodecBase.deserialize_incomplete(SequenceCodecBase.java:153)
at weblogic.xml.schema.binding.SequenceCodecBase.deserialize(SequenceCodecBase.java:87)
at weblogic.xml.schema.binding.BeanCodecBase.processElement(BeanCodecBase.java:184)
at weblogic.xml.schema.binding.BeanCodecBase.processAllElements(BeanCodecBase.java:166)
at weblogic.xml.schema.binding.BeanCodecBase.processElements(BeanCodecBase.java:146)
at weblogic.xml.schema.binding.BeanCodecBase.deserialize(BeanCodecBase.java:109)
at weblogic.xml.schema.binding.SequenceCodecBase.deserialize_incomplete(SequenceCodecBase.java:153)
at weblogic.xml.schema.binding.SequenceCodecBase.deserialize(SequenceCodecBase.java:87)
at weblogic.xml.schema.binding.BeanCodecBase.processElement(BeanCodecBase.java:184)
at weblogic.xml.schema.binding.BeanCodecBase.processAllElements(BeanCodecBase.java:166)
at weblogic.xml.schema.binding.BeanCodecBase.processElements(BeanCodecBase.java:146)
at weblogic.xml.schema.binding.BeanCodecBase.deserialize(BeanCodecBase.java:109)
at weblogic.xml.schema.binding.SequenceCodecBase.deserialize_incomplete(SequenceCodecBase.java:153)
at weblogic.xml.schema.binding.SequenceCodecBase.deserialize(SequenceCodecBase.java:87)
at weblogic.xml.schema.binding.BeanCodecBase.processElement(BeanCodecBase.java:184)
at weblogic.xml.schema.binding.BeanCodecBase.processAllElements(BeanCodecBase.java:166)
at weblogic.xml.schema.binding.BeanCodecBase.processElements(BeanCodecBase.java:146)
at weblogic.xml.schema.binding.BeanCodecBase.deserialize(BeanCodecBase.java:109)
at weblogic.xml.schema.binding.RuntimeUtils.invoke_deserializer(RuntimeUtils.java:428)
at weblogic.xml.schema.binding.RuntimeUtils.invoke_deserializer(RuntimeUtils.java:328)
at weblogic.webservice.core.DefaultPart.toJava(DefaultPart.java:384)
at weblogic.webservice.core.DefaultMessage.toJava(DefaultMessage.java:484)
at weblogic.webservice.core.ClientDispatcher.receive(ClientDispatcher.java:325)
at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:144)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:457)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:443)

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