1 Reply Latest reply on Oct 26, 2010 7:02 AM by Tom Fennelly

    smooks date parsing error

    Hardew Singh Newbie

      We have a MDB to consume xml generated by ESB custom component. This MDB has smooks implementation to parse the xml message. There are some date types of data in incoming xml; that causing some problem while converting to java bean object. See the error below.

       

      2010-10-19 15:22:34,856 ERROR [STDERR] Caused by: org.milyn.javabean.DataDecodeException: Error decoding Date data value '2010-10-2010-10-19T04:00:00.000Z19T04:00:00.000Z' with decode format 'null'.

       

      However, the actual date in xml message is  '2010-10-19T04:00:00.000Z'. I am not able to figure out why the date is showing like '2010-10-2010-10-19T04:00:00.000Z19T04:00:00.000Z'.

       

      MDB is running on jboss windows and JBoss ESB is running on Unix flatform.

       

      java version "1.6.0_13"

      Java(TM) SE Runtime Environment (build 1.6.0_13-b03)

      Smook - milyn-smooks-core-1.1.jar

       

      Any pointer would be appreciated.

      Thanks

      Hardew

       

      2010-10-19 15:22:34,856 ERROR [STDERR] org.milyn.SmooksException: Failed to filter source.

      2010-10-19 15:22:34,856 ERROR [STDERR]              at org.milyn.delivery.sax.SmooksSAXFilter.doFilter(SmooksSAXFilter.java:68)

      2010-10-19 15:22:34,856 ERROR [STDERR]              at org.milyn.Smooks._filter(Smooks.java:341)

      2010-10-19 15:22:34,856 ERROR [STDERR]              at org.milyn.Smooks.filter(Smooks.java:319)

      2010-10-19 15:22:34,856 ERROR [STDERR]              at org.milyn.Smooks.filter(Smooks.java:292)

      2010-10-19 15:22:34,856 ERROR [STDERR]              at com.torontohydro.identity.XMLTransformer.getObjectMap(XMLTransformer.java:170)

      2010-10-19 15:22:34,856 ERROR [STDERR]              at com.torontohydro.message.MessageProcessorFactory.getMessageProcessor(MessageProcessorFactory.java:101)

      2010-10-19 15:22:34,856 ERROR [STDERR]              at com.torontohydro.identity.mdb.EventListener.onMessage(EventListener.java:115)

      2010-10-19 15:22:34,856 ERROR [STDERR]              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      2010-10-19 15:22:34,856 ERROR [STDERR]              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

      2010-10-19 15:22:34,856 ERROR [STDERR]              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      2010-10-19 15:22:34,856 ERROR [STDERR]              at java.lang.reflect.Method.invoke(Method.java:597)

      2010-10-19 15:22:34,856 ERROR [STDERR]              at org.jboss.invocation.Invocation.performCall(Invocation.java:359)

      2010-10-19 15:22:34,856 ERROR [STDERR]              at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.java:492)

      2010-10-19 15:22:34,856 ERROR [STDERR]              at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterceptor.java:116)

      2010-10-19 15:22:34,856 ERROR [STDERR]              at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)

      2010-10-19 15:22:34,856 ERROR [STDERR]              at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)

      2010-10-19 15:22:34,856 ERROR [STDERR]              at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)

      2010-10-19 15:22:34,856 ERROR [STDERR]              at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)

      2010-10-19 15:22:34,856 ERROR [STDERR]              at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:109)

      2010-10-19 15:22:34,856 ERROR [STDERR]              at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)

      2010-10-19 15:22:34,856 ERROR [STDERR]              at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)

      2010-10-19 15:22:34,856 ERROR [STDERR]              at org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenContainer.java:399)

      2010-10-19 15:22:34,856 ERROR [STDERR]              at org.jboss.ejb.Container.invoke(Container.java:960)

      2010-10-19 15:22:34,856 ERROR [STDERR]              at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvoker.java:1139)

      2010-10-19 15:22:34,856 ERROR [STDERR]              at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onMessage(JMSContainerInvoker.java:1452)

      2010-10-19 15:22:34,856 ERROR [STDERR]              at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:266)

      2010-10-19 15:22:34,856 ERROR [STDERR]              at org.jboss.jms.client.container.ClientConsumer.callOnMessageStatic(ClientConsumer.java:160)

      2010-10-19 15:22:34,856 ERROR [STDERR]              at org.jboss.jms.client.container.SessionAspect.handleRun(SessionAspect.java:831)

      2010-10-19 15:22:34,856 ERROR [STDERR]              at org.jboss.aop.advice.org.jboss.jms.client.container.SessionAspect14.invoke(SessionAspect14.java)

      2010-10-19 15:22:34,856 ERROR [STDERR]              at org.jboss.jms.client.delegate.ClientSessionDelegate$run_N8003352271541955702.invokeNext(ClientSessionDelegate$run_N8003352271541955702.java)

      2010-10-19 15:22:34,856 ERROR [STDERR]              at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)

      2010-10-19 15:22:34,856 ERROR [STDERR]              at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)

      2010-10-19 15:22:34,856 ERROR [STDERR]              at org.jboss.jms.client.delegate.ClientSessionDelegate$run_N8003352271541955702.invokeNext(ClientSessionDelegate$run_N8003352271541955702.java)

      2010-10-19 15:22:34,856 ERROR [STDERR]              at org.jboss.jms.client.delegate.ClientSessionDelegate.run(ClientSessionDelegate.java)

      2010-10-19 15:22:34,856 ERROR [STDERR]              at org.jboss.jms.client.JBossSession.run(JBossSession.java:199)

      2010-10-19 15:22:34,856 ERROR [STDERR]              at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:194)

      2010-10-19 15:22:34,856 ERROR [STDERR]              at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:761)

      2010-10-19 15:22:34,856 ERROR [STDERR]              at java.lang.Thread.run(Thread.java:619)

      2010-10-19 15:22:34,856 ERROR [STDERR] Caused by: org.milyn.javabean.DataDecodeException: Error decoding Date data value '2010-10-2010-10-19T04:00:00.000Z19T04:00:00.000Z' with decode format 'null'.

      2010-10-19 15:22:34,856 ERROR [STDERR]              at org.milyn.javabean.decoders.DateDecoder.decode(DateDecoder.java:51)

      2010-10-19 15:22:34,856 ERROR [STDERR]              at org.milyn.javabean.BeanInstancePopulator.decodeDataString(BeanInstancePopulator.java:506)

      2010-10-19 15:22:34,856 ERROR [STDERR]              at org.milyn.javabean.BeanInstancePopulator.populateAndSetPropertyValue(BeanInstancePopulator.java:420)

      2010-10-19 15:22:34,856 ERROR [STDERR]              at org.milyn.javabean.BeanInstancePopulator.bindSaxDataValue(BeanInstancePopulator.java:305)

      2010-10-19 15:22:34,856 ERROR [STDERR]              at org.milyn.javabean.BeanInstancePopulator.visitAfter(BeanInstancePopulator.java:238)

      2010-10-19 15:22:34,856 ERROR [STDERR]              at org.milyn.delivery.sax.SAXHandler.visitAfter(SAXHandler.java:356)

      2010-10-19 15:22:34,856 ERROR [STDERR]              at org.milyn.delivery.sax.SAXHandler.endElement(SAXHandler.java:188)

      2010-10-19 15:22:34,856 ERROR [STDERR]              at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)

      2010-10-19 15:22:34,856 ERROR [STDERR]              at org.apache.xerces.impl.XMLNamespaceBinder.handleEndElement(Unknown Source)

      2010-10-19 15:22:34,856 ERROR [STDERR]              at org.apache.xerces.impl.XMLNamespaceBinder.endElement(Unknown Source)

      2010-10-19 15:22:34,856 ERROR [STDERR]              at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)

      2010-10-19 15:22:34,856 ERROR [STDERR]              at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)

      2010-10-19 15:22:34,856 ERROR [STDERR]              at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)

      2010-10-19 15:22:34,856 ERROR [STDERR]              at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)

      2010-10-19 15:22:34,856 ERROR [STDERR]              at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)

      2010-10-19 15:22:34,856 ERROR [STDERR]              at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

      2010-10-19 15:22:34,856 ERROR [STDERR]              at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

      2010-10-19 15:22:34,856 ERROR [STDERR]              at org.milyn.delivery.sax.SAXParser.parse(SAXParser.java:49)

      2010-10-19 15:22:34,856 ERROR [STDERR]              at org.milyn.delivery.sax.SmooksSAXFilter.doFilter(SmooksSAXFilter.java:65)

      2010-10-19 15:22:34,856 ERROR [STDERR]              ... 37 more

      2010-10-19 15:22:34,856 ERROR [STDERR] Caused by: java.text.ParseException: Unparseable date: "2010-10-2010-10-19T04:00:00.000Z19T04:00:00.000Z"

      2010-10-19 15:22:34,856 ERROR [STDERR]              at java.text.DateFormat.parse(DateFormat.java:337)

      2010-10-19 15:22:34,856 ERROR [STDERR]              at org.milyn.javabean.decoders.DateDecoder.decode(DateDecoder.java:48)

      2010-10-19 15:22:34,856 ERROR [STDERR]              ... 55 more

      2010-10-19 15:22:34,856 INFO  [ESBToOIM] Performing cleanup operations