1 Reply Latest reply on Sep 24, 2008 10:08 AM by Tom Fennelly

    Error about transform_XML2POJO

    ls shuai Newbie

      hi!
      When I run the example transform_XML2POJO,I get following error

      2008-09-24 10:23:19,255 DEBUG [org.milyn.delivery.ContentDeliveryConfigBuilder] SAX/DOM support characteristics of the Resource Configuration map:
       DOM SAX Resource ('x' equals supported)
       ---------------------------------------------------------------------
       x x Target Profile: [[org.milyn.profile.profile#default_profile]], Selector: [order], Selector Namespace URI: [null], Resource: [org.milyn.javabean.BeanInstanceCreator], Num Params: [5]
       x x Target Profile: [[org.milyn.profile.profile#default_profile]], Selector: [order], Selector Namespace URI: [null], Resource: [org.milyn.javabean.BeanInstancePopulator], Num Params: [5]
       x x Target Profile: [[org.milyn.profile.profile#default_profile]], Selector: [order], Selector Namespace URI: [null], Resource: [org.milyn.javabean.BeanInstancePopulator], Num Params: [5]
       x x Target Profile: [[org.milyn.profile.profile#default_profile]], Selector: [order], Selector Namespace URI: [null], Resource: [org.milyn.javabean.BeanInstancePopulator], Num Params: [5]
       x x Target Profile: [[org.milyn.profile.profile#default_profile]], Selector: [order], Selector Namespace URI: [null], Resource: [org.milyn.javabean.BeanInstancePopulator], Num Params: [5]
       x x Target Profile: [[org.milyn.profile.profile#default_profile]], Selector: [order], Selector Namespace URI: [null], Resource: [org.milyn.javabean.BeanInstancePopulator], Num Params: [5]
       x x Target Profile: [[org.milyn.profile.profile#default_profile]], Selector: [order], Selector Namespace URI: [null], Resource: [org.milyn.javabean.BeanInstancePopulator], Num Params: [5]
       x x Target Profile: [[org.milyn.profile.profile#default_profile]], Selector: [order customer], Selector Namespace URI: [null], Resource: [org.milyn.javabean.BeanInstanceCreator], Num Params: [5]
       x x Target Profile: [[org.milyn.profile.profile#default_profile]], Selector: [order customer], Selector Namespace URI: [null], Resource: [org.milyn.javabean.BeanInstancePopulator], Num Params: [5]
       x x Target Profile: [[org.milyn.profile.profile#default_profile]], Selector: [order customer], Selector Namespace URI: [null], Resource: [org.milyn.javabean.BeanInstancePopulator], Num Params: [5]
       x x Target Profile: [[org.milyn.profile.profile#default_profile]], Selector: [order customer], Selector Namespace URI: [null], Resource: [org.milyn.javabean.BeanInstancePopulator], Num Params: [5]
       x x Target Profile: [[org.milyn.profile.profile#default_profile]], Selector: [order customer], Selector Namespace URI: [null], Resource: [org.milyn.javabean.BeanInstancePopulator], Num Params: [5]
       x x Target Profile: [[org.milyn.profile.profile#default_profile]], Selector: [order orderlines orderline], Selector Namespace URI: [null], Resource: [org.milyn.javabean.BeanInstanceCreator], Num Params: [6]
       x x Target Profile: [[org.milyn.profile.profile#default_profile]], Selector: [order orderlines orderline], Selector Namespace URI: [null], Resource: [org.milyn.javabean.BeanInstancePopulator], Num Params: [5]
       x x Target Profile: [[org.milyn.profile.profile#default_profile]], Selector: [order orderlines orderline], Selector Namespace URI: [null], Resource: [org.milyn.javabean.BeanInstancePopulator], Num Params: [5]
       x x Target Profile: [[org.milyn.profile.profile#default_profile]], Selector: [order orderlines orderline product], Selector Namespace URI: [null], Resource: [org.milyn.javabean.BeanInstancePopulator], Num Params: [5]
       x x Target Profile: [[org.milyn.profile.profile#default_profile]], Selector: [order orderlines orderline product], Selector Namespace URI: [null], Resource: [org.milyn.javabean.BeanInstancePopulator], Num Params: [5]
       x x Target Profile: [[org.milyn.profile.profile#default_profile]], Selector: [order orderlines orderline product], Selector Namespace URI: [null], Resource: [org.milyn.javabean.BeanInstancePopulator], Num Params: [5]
       x x Target Profile: [], Selector: [context-object], Selector Namespace URI: [http://milyn.codehaus.org/smooks], Resource: [org.milyn.delivery.dom.serialize.ContextObjectSerializationUnit], Num Params: [0]
       x x Target Profile: [
      ], Selector: [ghost-element], Selector Namespace URI: [http://milyn.codehaus.org/smooks], Resource: [org.milyn.delivery.dom.serialize.GhostElementSerializationUnit], Num Params: [0]
      
      
      
      2008-09-24 10:23:19,255 INFO [org.milyn.delivery.ContentDeliveryConfigBuilder] All configured XML Element Content Handler resource configurations can be applied using the SAX or DOM Stream Filter. Defaulting to DOM Filter. Set 'global-parameters:stream.filter.type'. Turn on debug logging for more info.
      2008-09-24 10:23:19,255 DEBUG [org.milyn.delivery.ContentDeliveryConfigBuilder] You can explicitly select the Filter type as follows:
       <resource-config selector="global-parameters">
       <param name="stream.filter.type">SAX/DOM</param>
       </resource-config>
      2008-09-24 10:23:19,270 DEBUG [org.milyn.delivery.ContentDeliveryConfigBuilder] Using the DOM Stream Filter.
      2008-09-24 10:23:19,286 DEBUG [org.milyn.delivery.dom.SmooksDOMFilter] No assembly units configured for device [org.milyn.profile.Profile#default_profile]
      2008-09-24 10:23:19,286 DEBUG [org.milyn.delivery.dom.SmooksDOMFilter] Starting processing phase [org.milyn.profile.Profile#default_profile]
      2008-09-24 10:23:19,286 DEBUG [org.milyn.delivery.dom.SmooksDOMFilter] Applying processing resource [Target Profile: [[org.milyn.profile.profile#default_profile]], Selector: [order], Selector Namespace URI: [null], Resource: [org.milyn.javabean.BeanInstanceCreator], Num Params: [5]] to element [/Order] before applying resources to its child elements.
      2008-09-24 10:23:19,286 DEBUG [org.milyn.javabean.BeanInstanceCreator] Bean [orderHeader] instance created.
      2008-09-24 10:23:19,286 DEBUG [org.milyn.delivery.dom.SmooksDOMFilter] Applying processing resource [Target Profile: [[org.milyn.profile.profile#default_profile]], Selector: [order], Selector Namespace URI: [null], Resource: [org.milyn.javabean.BeanInstancePopulator], Num Params: [5]] to element [/Order] before applying resources to its child elements.
      2008-09-24 10:23:19,302 DEBUG [org.milyn.delivery.dom.SmooksDOMFilter] Applying processing resource [Target Profile: [[org.milyn.profile.profile#default_profile]], Selector: [order], Selector Namespace URI: [null], Resource: [org.milyn.javabean.BeanInstancePopulator], Num Params: [5]] to element [/Order] before applying resources to its child elements.
      2008-09-24 10:23:19,302 ERROR [STDERR] org.milyn.SmooksException: Unable to filter InputStream for target profile [org.milyn.profile.Profile#default_profile].
      2008-09-24 10:23:19,302 ERROR [STDERR] at org.milyn.delivery.dom.SmooksDOMFilter.filter(SmooksDOMFilter.java:287)
      2008-09-24 10:23:19,302 ERROR [STDERR] at org.milyn.delivery.dom.SmooksDOMFilter.doFilter(SmooksDOMFilter.java:235)
      2008-09-24 10:23:19,302 ERROR [STDERR] at org.milyn.Smooks.filter(Smooks.java:288)
      2008-09-24 10:23:19,302 ERROR [STDERR] at org.milyn.SmooksUtil.filterAndSerialize(SmooksUtil.java:101)
      2008-09-24 10:23:19,302 ERROR [STDERR] at org.jboss.soa.esb.actions.converters.SmooksTransformer.process(SmooksTransformer.java:331)
      2008-09-24 10:23:19,302 ERROR [STDERR] at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.process(ActionProcessingPipeline.java:316)
      2008-09-24 10:23:19,302 ERROR [STDERR] at org.jboss.soa.esb.listeners.message.MessageAwareListener$TransactionalRunner.run(MessageAwareListener.java:530)
      2008-09-24 10:23:19,302 ERROR [STDERR] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
      2008-09-24 10:23:19,302 ERROR [STDERR] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
      2008-09-24 10:23:19,302 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
      2008-09-24 10:23:19,302 ERROR [STDERR] Caused by: org.milyn.javabean.DataDecodeException: Error decoding Date data value 'Wed Nov 15 13:45:28 EST 2006' with decode format 'EEE MMM dd HH:mm:ss z yyyy'.
      2008-09-24 10:23:19,302 ERROR [STDERR] at org.milyn.javabean.decoders.CalendarDecoder.decode(CalendarDecoder.java:40)
      2008-09-24 10:23:19,302 ERROR [STDERR] at org.milyn.javabean.BeanInstancePopulator.decodeDataString(BeanInstancePopulator.java:377)
      2008-09-24 10:23:19,302 ERROR [STDERR] at org.milyn.javabean.BeanInstancePopulator.populateAndSetPropertyValue(BeanInstancePopulator.java:291)
      2008-09-24 10:23:19,302 ERROR [STDERR] at org.milyn.javabean.BeanInstancePopulator.bindDomDataValue(BeanInstancePopulator.java:224)
      2008-09-24 10:23:19,302 ERROR [STDERR] at org.milyn.javabean.BeanInstancePopulator.visitBefore(BeanInstancePopulator.java:168)
      2008-09-24 10:23:19,302 ERROR [STDERR] at org.milyn.delivery.dom.SmooksDOMFilter$ElementProcessor.processMapping(SmooksDOMFilter.java:710)
      2008-09-24 10:23:19,302 ERROR [STDERR] at org.milyn.delivery.dom.SmooksDOMFilter$ElementProcessor.process(SmooksDOMFilter.java:664)
      2008-09-24 10:23:19,302 ERROR [STDERR] at org.milyn.delivery.dom.SmooksDOMFilter$ElementProcessor.access$000(SmooksDOMFilter.java:625)
      2008-09-24 10:23:19,302 ERROR [STDERR] at org.milyn.delivery.dom.SmooksDOMFilter.filter(SmooksDOMFilter.java:352)
      2008-09-24 10:23:19,302 ERROR [STDERR] at org.milyn.delivery.dom.SmooksDOMFilter.filter(SmooksDOMFilter.java:285)
      2008-09-24 10:23:19,302 ERROR [STDERR] ... 9 more
      2008-09-24 10:23:19,302 ERROR [STDERR] Caused by: java.text.ParseException: Unparseable date: "Wed Nov 15 13:45:28 EST 2006"
      2008-09-24 10:23:19,302 ERROR [STDERR] at java.text.DateFormat.parse(DateFormat.java:335)
      2008-09-24 10:23:19,302 ERROR [STDERR] at org.milyn.javabean.decoders.CalendarDecoder.decode(CalendarDecoder.java:36)
      2008-09-24 10:23:19,302 ERROR [STDERR] ... 18 more
      2008-09-24 10:23:19,302 WARN [org.jboss.soa.esb.listeners.message.ActionProcessingPipeline] Unexpected exception caught while processing the action pipeline: header: [ To: JMSEpr [ PortReference < <wsa:Address jms://127.0.0.1:1099/queue/quickstart_transform_pojo_esb/>, <wsa:ReferenceProperties jbossesb:java.naming.factory.initial : org.jnp.interfaces.NamingContextFactory/>, <wsa:ReferenceProperties jbossesb:java.naming.provider.url : localhost/>, <wsa:ReferenceProperties jbossesb:java.naming.factory.url.pkgs : org.jnp.interfaces/>, <wsa:ReferenceProperties jbossesb:destination-type : queue/>, <wsa:ReferenceProperties jbossesb:specification-version : 1.1/>, <wsa:ReferenceProperties jbossesb:connection-factory : ConnectionFactory/>, <wsa:ReferenceProperties jbossesb:persistent : true/>, <wsa:ReferenceProperties jbossesb:acknowledge-mode : AUTO_ACKNOWLEDGE/>, <wsa:ReferenceProperties jbossesb:transacted : false/>, <wsa:ReferenceProperties jbossesb:type : urn:jboss/esb/epr/type/jms/> > ] MessageID: 5cc02780-e01f-407d-b608-3570928e1c06 RelatesTo: jms:correlationID#5cc02780-e01f-407d-b608-3570928e1c06 ]
      org.jboss.soa.esb.actions.ActionProcessingException: Message transformation failed.
       at org.jboss.soa.esb.actions.converters.SmooksTransformer.process(SmooksTransformer.java:359)
       at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.process(ActionProcessingPipeline.java:316)
       at org.jboss.soa.esb.listeners.message.MessageAwareListener$TransactionalRunner.run(MessageAwareListener.java:530)
       at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
       at java.lang.Thread.run(Thread.java:595)
      Caused by: org.milyn.SmooksException: Unable to filter InputStream for target profile [org.milyn.profile.Profile#default_profile].
       at org.milyn.delivery.dom.SmooksDOMFilter.filter(SmooksDOMFilter.java:287)
       at org.milyn.delivery.dom.SmooksDOMFilter.doFilter(SmooksDOMFilter.java:235)
       at org.milyn.Smooks.filter(Smooks.java:288)
       at org.milyn.SmooksUtil.filterAndSerialize(SmooksUtil.java:101)
       at org.jboss.soa.esb.actions.converters.SmooksTransformer.process(SmooksTransformer.java:331)
       ... 5 more
      Caused by: org.milyn.javabean.DataDecodeException: Error decoding Date data value 'Wed Nov 15 13:45:28 EST 2006' with decode format 'EEE MMM dd HH:mm:ss z yyyy'.
       at org.milyn.javabean.decoders.CalendarDecoder.decode(CalendarDecoder.java:40)
       at org.milyn.javabean.BeanInstancePopulator.decodeDataString(BeanInstancePopulator.java:377)
       at org.milyn.javabean.BeanInstancePopulator.populateAndSetPropertyValue(BeanInstancePopulator.java:291)
       at org.milyn.javabean.BeanInstancePopulator.bindDomDataValue(BeanInstancePopulator.java:224)
       at org.milyn.javabean.BeanInstancePopulator.visitBefore(BeanInstancePopulator.java:168)
       at org.milyn.delivery.dom.SmooksDOMFilter$ElementProcessor.processMapping(SmooksDOMFilter.java:710)
       at org.milyn.delivery.dom.SmooksDOMFilter$ElementProcessor.process(SmooksDOMFilter.java:664)
       at org.milyn.delivery.dom.SmooksDOMFilter$ElementProcessor.access$000(SmooksDOMFilter.java:625)
       at org.milyn.delivery.dom.SmooksDOMFilter.filter(SmooksDOMFilter.java:352)
       at org.milyn.delivery.dom.SmooksDOMFilter.filter(SmooksDOMFilter.java:285)
       ... 9 more
      Caused by: java.text.ParseException: Unparseable date: "Wed Nov 15 13:45:28 EST 2006"
       at java.text.DateFormat.parse(DateFormat.java:335)
       at org.milyn.javabean.decoders.CalendarDecoder.decode(CalendarDecoder.java:36)
      
      


      what can be the reason?
      Thanks

        • 1. Re: Error about transform_XML2POJO
          Tom Fennelly Master

          The important part is...

          Caused by: org.milyn.javabean.DataDecodeException: Error decoding Date data value 'Wed Nov 15 13:45:28 EST 2006' with decode format 'EEE MMM dd HH:mm:ss z yyyy'.


          Someone else had this problem and it was environmental. Can't seem to find the other post to find the cause :-(