Data mapping of castomer info (dob field)
Closed this issue · 1 comments
customerInfo.setDob(Calendar.getInstance());
Error mapping xml data
unable to add 'dob' to [customerInfo] due to the following exception:
]]]--- Begin Exception ---[[[
java.lang.IllegalArgumentException: Type conversion error: could not set value of com.phoenix.common.transform.castorFieldHandler.DOBHandler@64dd6d8 with value of type java.lang.String
at org.exolab.castor.mapping.loader.FieldHandlerImpl.setValue(FieldHandlerImpl.java:474)
at org.exolab.castor.xml.UnmarshalHandler.endElement(UnmarshalHandler.java:1008)
at org.exolab.castor.xml.UnmarshalHandler.endElement(UnmarshalHandler.java:1076)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:657)
at com.phoenix.vap.transform.inbound.online.BaseLitleOnlineTransform.mapXML(BaseLitleOnlineTransform.java:87)
at com.phoenix.vap.transform.inbound.online.LitleOnlineTransform.validateAndMapInput(LitleOnlineTransform.java:219)
at com.phoenix.vap.adapters.inbound.OnlinePhoenixAdapter.transformTransaction(OnlinePhoenixAdapter.java:507)
at com.phoenix.vap.adapters.inbound.OnlinePhoenixAdapter.get(OnlinePhoenixAdapter.java:238)
at com.phoenix.vap.communicator.inbound.onlineCommunicator.OnlineCommunicator.doPost(OnlineCommunicator.java:387)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:619)
]]]---- End Exception ----[[[
There was a problem with the default mapper, which included the time. I'll have a fix for you shortly.