9 Replies Latest reply on Aug 3, 2008 7:04 AM by Tracy Mcgrady

    Question about the example transform_XML2POJO

    Tracy Mcgrady Newbie

      When I run the quickstarts example transform_XML2POJO,there is a exception as follows confused me.Can someone give me a hand?I am a beginer.
      What's this exception mean?And how to do?
      I didn't change any config in the example.


      15:32:04,828 INFO [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.
      15:32:04,843 ERROR [STDERR] org.milyn.SmooksException: Unable to filter InputStream for target profile [org.milyn.profile.Profile#default_profile].
      15:32:04,843 ERROR [STDERR] at org.milyn.delivery.dom.SmooksDOMFilter.filter
      (SmooksDOMFilter.java:287)
      15:32:04,859 ERROR [STDERR] at org.milyn.delivery.dom.SmooksDOMFilter.doFilt
      er(SmooksDOMFilter.java:235)
      15:32:04,859 ERROR [STDERR] at org.milyn.Smooks.filter(Smooks.java:288)
      15:32:04,859 ERROR [STDERR] at org.milyn.SmooksUtil.filterAndSerialize(Smook
      sUtil.java:101)
      15:32:04,859 ERROR [STDERR] at org.jboss.soa.esb.actions.converters.SmooksTr
      ansformer.process(SmooksTransformer.java:331)
      15:32:04,875 ERROR [STDERR] at org.jboss.soa.esb.listeners.message.ActionPro
      cessingPipeline.process(ActionProcessingPipeline.java:316)
      15:32:04,875 ERROR [STDERR] at org.jboss.soa.esb.listeners.message.MessageAw
      areListener$TransactionalRunner.run(MessageAwareListener.java:530)
      15:32:04,875 ERROR [STDERR] at java.util.concurrent.ThreadPoolExecutor$Worke
      r.runTask(ThreadPoolExecutor.java:650)
      15:32:04,875 ERROR [STDERR] at java.util.concurrent.ThreadPoolExecutor$Worke
      r.run(ThreadPoolExecutor.java:675)
      15:32:04,921 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
      15:32:04,921 ERROR [STDERR] Caused by: org.milyn.javabean.DataDecodeException: E
      rror decoding Date data value 'Wed Nov 15 13:45:28 EST 2006' with decode format
      'EEE MMM dd HH:mm:ss z yyyy'.
      15:32:04,921 ERROR [STDERR] at org.milyn.javabean.decoders.CalendarDecoder.d
      ecode(CalendarDecoder.java:40)
      15:32:04,921 ERROR [STDERR] at org.milyn.javabean.BeanInstancePopulator.deco
      deDataString(BeanInstancePopulator.java:377)
      15:32:04,921 ERROR [STDERR] at org.milyn.javabean.BeanInstancePopulator.popu
      lateAndSetPropertyValue(BeanInstancePopulator.java:291)
      15:32:04,921 ERROR [STDERR] at org.milyn.javabean.BeanInstancePopulator.bind
      DomDataValue(BeanInstancePopulator.java:224)
      15:32:04,921 ERROR [STDERR] at org.milyn.javabean.BeanInstancePopulator.visi
      tBefore(BeanInstancePopulator.java:168)
      15:32:04,953 ERROR [STDERR] at org.milyn.delivery.dom.SmooksDOMFilter$Elemen
      tProcessor.processMapping(SmooksDOMFilter.java:710)
      15:32:04,953 ERROR [STDERR] at org.milyn.delivery.dom.SmooksDOMFilter$Elemen
      tProcessor.process(SmooksDOMFilter.java:664)
      15:32:04,953 ERROR [STDERR] at org.milyn.delivery.dom.SmooksDOMFilter$Elemen
      tProcessor.access$000(SmooksDOMFilter.java:625)
      15:32:04,953 ERROR [STDERR] at org.milyn.delivery.dom.SmooksDOMFilter.filter
      (SmooksDOMFilter.java:352)
      15:32:04,953 ERROR [STDERR] at org.milyn.delivery.dom.SmooksDOMFilter.filter
      (SmooksDOMFilter.java:285)
      15:32:04,984 ERROR [STDERR] ... 9 more
      15:32:04,984 ERROR [STDERR] Caused by: java.text.ParseException: Unparseable dat
      e: "Wed Nov 15 13:45:28 EST 2006"
      15:32:04,984 ERROR [STDERR] at java.text.DateFormat.parse(DateFormat.java:33
      5)
      15:32:04,984 ERROR [STDERR] at org.milyn.javabean.decoders.CalendarDecoder.d
      ecode(CalendarDecoder.java:36)
      15:32:04,984 ERROR [STDERR] ... 18 more
      15:32:04,984 WARN [ActionProcessingPipeline] Unexpected exception caught while
      processing the action pipeline: header: [ To: JMSEpr [ PortReference < <wsa:Addr
      ess jms://127.0.0.1:1099/queue/quickstart_Business_Rules_Request_ESB/>, <wsa:Ref
      erenceProperties jbossesb:java.naming.factory.initial : org.jnp.interfaces.Namin
      gContextFactory/>, <wsa:ReferenceProperties jbossesb:java.naming.provider.url :
      localhost/>, <wsa:ReferenceProperties jbossesb:java.naming.factory.url.pkgs : or
      g.jnp.interfaces/>, <wsa:ReferenceProperties jbossesb:destination-type : queue/>
      , <wsa:ReferenceProperties jbossesb:specification-version : 1.1/>, <wsa:Referenc
      eProperties jbossesb:connection-factory : ConnectionFactory/>, <wsa:ReferencePro
      perties jbossesb:persistent : true/>, <wsa:ReferenceProperties jbossesb:acknowle
      dge-mode : AUTO_ACKNOWLEDGE/>, <wsa:ReferenceProperties jbossesb:transacted : fa
      lse/>, <wsa:ReferenceProperties jbossesb:type : urn:jboss/esb/epr/type/jms/> > ]
       MessageID: ba9beb4c-a98a-4941-b86c-21cfca924c04 RelatesTo: jms:correlationID#ba
      9beb4c-a98a-4941-b86c-21cfca924c04 ]
      org.jboss.soa.esb.actions.ActionProcessingException: Message transformation fail
      ed.
       at org.jboss.soa.esb.actions.converters.SmooksTransformer.process(Smooks
      Transformer.java:359)
       at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.process(
      ActionProcessingPipeline.java:316)
       at org.jboss.soa.esb.listeners.message.MessageAwareListener$Transactiona
      lRunner.run(MessageAwareListener.java:530)
       at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
      utor.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 pr
      ofile [org.milyn.profile.Profile#default_profile].
       at org.milyn.delivery.dom.SmooksDOMFilter.filter(SmooksDOMFilter.java:28
      7)
       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(Smooks
      Transformer.java:331)
       ... 5 more
      Caused by: org.milyn.javabean.DataDecodeException: Error decoding Date data valu
      e '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.ja
      va:40)
       at org.milyn.javabean.BeanInstancePopulator.decodeDataString(BeanInstanc
      ePopulator.java:377)
       at org.milyn.javabean.BeanInstancePopulator.populateAndSetPropertyValue(
      BeanInstancePopulator.java:291)
       at org.milyn.javabean.BeanInstancePopulator.bindDomDataValue(BeanInstanc
      ePopulator.java:224)
       at org.milyn.javabean.BeanInstancePopulator.visitBefore(BeanInstancePopu
      lator.java:168)
       at org.milyn.delivery.dom.SmooksDOMFilter$ElementProcessor.processMappin
      g(SmooksDOMFilter.java:710)
       at org.milyn.delivery.dom.SmooksDOMFilter$ElementProcessor.process(Smook
      sDOMFilter.java:664)
       at org.milyn.delivery.dom.SmooksDOMFilter$ElementProcessor.access$000(Sm
      ooksDOMFilter.java:625)
       at org.milyn.delivery.dom.SmooksDOMFilter.filter(SmooksDOMFilter.java:35
      2)
       at org.milyn.delivery.dom.SmooksDOMFilter.filter(SmooksDOMFilter.java:28
      5)
       ... 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.ja
      va:36)
       ... 18 more
      15:32:05,156 WARN [ActionProcessingPipeline] No fault address defined for fault
       message! To: JMSEpr [ PortReference < <wsa:Address jms://127.0.0.1:1099/queue/q
      uickstart_Business_Rules_Request_ESB/>, <wsa:ReferenceProperties jbossesb:java.n
      aming.factory.initial : org.jnp.interfaces.NamingContextFactory/>, <wsa:Referenc
      eProperties jbossesb:java.naming.provider.url : localhost/>, <wsa:ReferencePrope
      rties jbossesb:java.naming.factory.url.pkgs : org.jnp.interfaces/>, <wsa:Referen
      ceProperties jbossesb:destination-type : queue/>, <wsa:ReferenceProperties jboss
      esb:specification-version : 1.1/>, <wsa:ReferenceProperties jbossesb:connection-
      factory : ConnectionFactory/>, <wsa:ReferenceProperties jbossesb:persistent : tr
      ue/>, <wsa:ReferenceProperties jbossesb:acknowledge-mode : AUTO_ACKNOWLEDGE/>, <
      wsa:ReferenceProperties jbossesb:transacted : false/>, <wsa:ReferenceProperties
      jbossesb:type : urn:jboss/esb/epr/type/jms/> > ] MessageID: ba9beb4c-a98a-4941-b
      86c-21cfca924c04 RelatesTo: jms:correlationID#ba9beb4c-a98a-4941-b86c-21cfca924c
      04