8 Replies Latest reply on May 16, 2008 10:19 AM by andre1001

    Upgrading Smooks JavaBean?

    andre1001

      Hi,

      I've got some problems and just wondering if upgrading Smooks libs solve my problem (ESB comes with milyn-smooks-javabean-0.3.jar and Smooks download comes with milyn-smooks-javabean-1.0.jar).

      Are there any other dependencies?


      The problem:

      Following these instructions (http://milyn.codehaus.org/Smooks+User+Guide) I built this:

      <?xml version='1.0' encoding='UTF-8'?>
      <smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.0.xsd">
      
       <resource-config selector="lista">
       <resource>org.milyn.javabean.BeanPopulator</resource>
       <param name="beanId">listNota</param>
       <param name="beanClass">java.util.ArrayList</param>
       <param name="bindings">
       <binding selector="${nota}"/>
       </param>
       </resource-config>
      
       <resource-config selector="nota">
       <resource>org.milyn.javabean.BeanPopulator</resource>
       <param name="beanId">nota</param>
       <param name="beanClass">com.testesoa.Nota</param>
       <param name="bindings">
       <binding property="idNota" selector="nota @orderId" type="Long"/>
       <binding property="itens" selector="${listItem}" type="Long"/>
       </param>
       </resource-config>
      
      </smooks-resource-list>
      

      I get this:

      09:45:29,937 WARN [ActionProcessingPipeline] Unexpected exception caught while processing the action pipeline: header: [ To: JMSEpr [ PortReference < <wsa:Address jms://localhost/queue/entradaNotas_file_esb/>, <wsa:ReferenceProperties jbossesb:destination-type : queue/>, <wsa:ReferenceProperties jbossesb:specification-version : 1.1/>, <wsa:ReferenceProperties jbossesb:connection-factory : ConnectionFactory/>, <wsa:ReferenceProperties jbossesb:message-selector : type='fromHelloworldFileAction'/>, <wsa:ReferenceProperties jbossesb:persistent : true/>, <wsa:ReferenceProperties jbossesb:acknowledge-mode : 1/> > ] MessageID: ID:JBM-278543 RelatesTo: jms:correlationID#42be1c1a-3337-412a-a700-62bc4359ec26 ]
      org.jboss.soa.esb.actions.ActionProcessingException: Message transformation failed.
       at org.jboss.soa.esb.actions.converters.SmooksTransformer.process(SmooksTransformer.java:357)
       at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.process(ActionProcessingPipeline.java:316)
       at org.jboss.soa.esb.listeners.message.MessageAwareListener$1.run(MessageAwareListener.java:303)
       at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
       at java.lang.Thread.run(Thread.java:619)
      Caused by: org.milyn.cdr.SmooksConfigurationException: Binding configuration must contain a 'property' key: [binding: null]
       at org.milyn.javabean.BeanPopulator.buildConfig(BeanPopulator.java:259)
       at org.milyn.javabean.BeanPopulator.getExpansionConfigurations(BeanPopulator.java:233)
       at org.milyn.delivery.dom.ContentDeliveryConfigImpl$ContentDeliveryExtractionStrategy.addCDU(ContentDeliveryConfigImpl.java:560)
       at org.milyn.delivery.dom.ContentDeliveryConfigImpl$ContentDeliveryExtractionStrategy.applyStrategy(ContentDeliveryConfigImpl.java:460)
       at org.milyn.delivery.dom.ContentDeliveryConfigImpl$SmooksResourceConfigurationTableIterator.iterate(ContentDeliveryConfigImpl.java:620)
       at org.milyn.delivery.dom.ContentDeliveryConfigImpl$SmooksResourceConfigurationTableIterator.access$400(ContentDeliveryConfigImpl.java:589)
       at org.milyn.delivery.dom.ContentDeliveryConfigImpl.extractContentDeliveryUnits(ContentDeliveryConfigImpl.java:286)
       at org.milyn.delivery.dom.ContentDeliveryConfigImpl.load(ContentDeliveryConfigImpl.java:172)
       at org.milyn.delivery.dom.ContentDeliveryConfigImpl.getInstance(ContentDeliveryConfigImpl.java:128)
       at org.milyn.container.standalone.StandaloneExecutionContext.<init>(StandaloneExecutionContext.java:101)
       at org.milyn.container.standalone.StandaloneExecutionContext.<init>(StandaloneExecutionContext.java:70)
       at org.milyn.Smooks.createExecutionContext(Smooks.java:185)
       at org.jboss.soa.esb.actions.converters.SmooksTransformer.process(SmooksTransformer.java:325)
       ... 5 more