Troubleshooting
Problem
In the request XML, requestID in DWLControl section can be only LONG. com.dwl.base.DWLControl defines requestID as STRING, the setter and getter are set it as LONG.
Symptom
Sample Request:
<?xml version="1.0" encoding="UTF-8"?>
<TCRMService xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="myTCRM.xsd">
<RequestControl>
<requestID>10000001Abec</requestID>
<DWLControl>
<requesterName>cusadmin</requesterName>
<requesterLanguage>100</requesterLanguage>
</DWLControl>
</RequestControl>
<TCRMTx>
<TCRMTxType>updatePartyContactMethod</TCRMTxType>
<TCRMTxObject>TCRMPartyContactMethodBObj</TCRMTxObject>
<TCRMObject>
<TCRMPartyContactMethodBObj>
<PartyContactMethodIdPK>713825057452000365</PartyContactMethodIdPK>
<PartyId>292938250574215822</PartyId>
<ContactMethodId>777738250574498181</ContactMethodId>
<ContactMethodUsageType>1</ContactMethodUsageType>
<EndDate>2012-09-22 19:59:52.25</EndDate>
<ContactMethodGroupLastUpdateDate>2013-10-23 01:22:25.231</ContactMethodGroupLastUpdateDate>
<LocationGroupLastUpdateDate>2013-10-23 01:22:25.2</LocationGroupLastUpdateDate>
<TCRMContactMethodBObj>
<ContactMethodIdPK>777738250574498181</ContactMethodIdPK>
<ReferenceNumber>4166547184</ReferenceNumber>
<ContactMethodLastUpdateDate>2013-10-23 01:22:24.981</ContactMethodLastUpdateDate>
</TCRMContactMethodBObj>
</TCRMPartyContactMethodBObj>
</TCRMObject>
</TCRMTx>
</TCRMService>
Response
<?xml version="1.0" encoding="UTF-8"?>
<TCRMService xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="TeachersInsuranceResponse.xsd">
<ResponseControl>
<ResultCode>FATAL</ResultCode>
<ServiceTime>63</ServiceTime>
<DWLControl>
<requesterLanguage>100</requesterLanguage>
<requesterLocale>en</requesterLocale>
<requestID>863138293360615131</requestID>
</DWLControl>
</ResponseControl>
<TxResponse>
<RequestType>processTx</RequestType>
<TxResult>
<ResultCode>FATAL</ResultCode>
<DWLError>
<ComponentType>106</ComponentType>
<ErrorMessage>Parser DWLTransaction failed. The format of the message is not correct or an application error occurred.</ErrorMessage>
<ErrorType>READERR</ErrorType>
<LanguageCode>100</LanguageCode>
<ReasonCode>4928</ReasonCode>
<Severity>0</Severity>
<Throwable>com.dwl.base.requestHandler.exception.RequestParserException: [Exception_DWLDocumentHandlerHelper_ParseTagError:] CDKCS2043E:Error occurred when parsing the following XML element. Element = requestID</Throwable>
</DWLError>
</TxResult>
</TxResponse>
</TCRMService>
SystemOut.log
[10/28/13 0:13:26:151 EDT] 0000003c SystemOut O ERROR - java.lang.NumberFormatException: For input string: "10000001Abec"
at java.lang.Throwable.<init>(Throwable.java:67)
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:59)
at java.lang.Long.parseLong(Long.java:430)
at java.lang.Long.<init>(Long.java:689)
at com.dwl.base.xml.DWLDocumentHandlerHelper.endElement(DWLDocumentHandlerHelper.java:545)
at com.dwl.tcrm.coreParty.xmlHandler.TCRMDocumentHandler.endElement(TCRMDocumentHandler.java:151)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.endElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
......
Customer.log
2013-10-28 00:13:26,151 [ORB.thread.pool : 2] ERROR com.dwl.base.util.DWLExceptionUtils - java.lang.NumberFormatException: For input string: "10000001Abec"
at java.lang.Throwable.<init>(Throwable.java:67)
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:59)
at java.lang.Long.parseLong(Long.java:430)
at java.lang.Long.<init>(Long.java:689)
at com.dwl.base.xml.DWLDocumentHandlerHelper.endElement(DWLDocumentHandlerHelper.java:545)
at com.dwl.tcrm.coreParty.xmlHandler.TCRMDocumentHandler.endElement(TCRMDocumentHandler.java:151)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.endElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
......
Log InLog in to view more of this document
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21655614