SAP Knowledge Base Article - Preview

2970274 - Cannot cast class com.wm.util.Values to class java.lang.String error while processing idocs in SAP Business Connector

Symptom

In SAP Business Connector the IDoc processing fails with the following exception logged in error.log file:


   java.lang.ClassCastException: Cannot cast class com.wm.util.Values to class java.lang.String

    at com.wm.pkg.sap.idoc.BCIDocRecord.toFieldNameStringValueArray(BCIDocRecord.java:1684)
    at com.sap.conn.idoc.rt.xml.DefaultIDocXMLRenderer.renderIDocSegment(DefaultIDocXMLRenderer.java:405)   
    at com.sap.conn.idoc.rt.xml.DefaultIDocXMLRenderer.renderIDoc(DefaultIDocXMLRenderer.java:349)
    at com.sap.conn.idoc.rt.xml.DefaultIDocXMLRenderer.render(DefaultIDocXMLRenderer.java:162)
    at com.sap.conn.idoc.rt.xml.DefaultIDocXMLProcessor.render(DefaultIDocXMLProcessor.java:357)
    at com.wm.pkg.sap.idoc.IDocCoder.encode(IDocCoder.java:139)
    at com.wm.util.coder.Coder.encodeToBytes(Coder.java:152)
    at pub.sap.transport.XML$HandlerIDocXML.getByteData(XML.java:1195)
    at pub.sap.transport.XML.OutboundProcess(XML.java:228)


Read more...

Environment

SAP Business Connector 4.8

Keywords

class, idoc, segment, com.wm.util.Values, java.lang.String, array, com.wm.pkg.sap.idoc.BCIDocRecord.toFieldNameStringValueArray, SAP BC, SAPBC, business connector, connector, BCIDocRecord , KBA , BC-MID-BUS , Business Connector , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.