I am facing a similar issue.
I have XML data as input to a service and it contains a document list somewhere inside. i use a pub.list:sizeOfList to get the size of this list (i have done XMLStringToXMLNode and XMLNodeToXMLDocument).
the service runs well when the input XML has multiple records for the document list,
but when the input XML file contains only one record in the document list, i get an error:
java.lang.ClassCastException: com.wm.app.b2b.services.CValues
at pub.list.sizeOfList(list.java:361)
Can anyone suggest what could be the problem?
#webMethods#Flow-and-Java-services#Integration-Server-and-ESB