8 Replies Latest reply on Jul 6, 2007 8:36 AM by Burr Sutter

    Urgent Help Please : ActionProcessingPipeline] Failed to sen

    Srikanth Val Newbie

      Hi JBoss team,

      I am trying to have two providers like jms-provider and fs-provider in signle jboss-esb and both are not dependent on each other.
      fs-provider just reads a file from directory and try to post to a queue.This example i pikced from samples section.I get the follwoing exception below when i start esb in standalone mode. Please help.....

      [java] 22:35:45,125 INFO [main][SmooksTransformer] All Smooks configuratio
      ns are now loaded.
      &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
      [java] Body: Hello World In A File
      &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
      [java] 22:36:03,343 INFO [pool-2-thread-1][SmooksTransformer] Registering
      JBoss ESB Message-Exchange as Smooks Useragent: [from-type:text/xml:partsOrder:f
      rom:Parts123:OrderDispatchService:to-type:text/xml:postOrder:to:ERP_1:PartSalesO
      rderService]. Profiles: [[from-type:text/xml:partsOrder, from:Parts123:OrderDis
      patchService, to-type:text/xml:postOrder, to:ERP_1:PartSalesOrderService]]
      [java] [Fatal Error] :1:1: Content is not allowed in prolog.
      [java] 22:36:03,421 ERROR [pool-2-thread-1][ActionProcessingPipeline] Faile
      d to send error to address null.
      [java] org.jboss.soa.esb.couriers.CourierException: No deliverAsync courier[java] at jboss.internal.soa.esb.couriers.TwoWayCourierImpl.deliver
      (TwoWayCourierImpl.java:166)
      [java] at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.
      faultTo(ActionProcessingPipeline.java:436)
      [java] at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.
      process(ActionProcessingPipeline.java:287)
      [java] at org.jboss.soa.esb.listeners.message.MessageAwareListener$1.ru
      n(MessageAwareListener.java:301)
      [java] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Thread
      PoolExecutor.java:650)
      [java] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPool
      Executor.java:675)
      [java] at java.lang.Thread.run(Thread.java:595)



      <jms-provider name="JBossMQ" connection-factory="WSMQQueueConnectionFactory"
      jndi-context-factory="org.jnp.interfaces.NamingContextFactory"
      jndi-URL="localhost" >
      <jms-bus busid="bluebirdGwChannel">
      <jms-message-filter dest-type="QUEUE" dest-name="wsmq/parts123_transform_gw"/>
      </jms-bus><jms-bus busid="bluebirdEsbChannel">
      <jms-message-filter dest-type="QUEUE" dest-name="wsmq/parts123_transform_esb"/>
      </jms-bus> <jms-bus busid="quickstartGwChannel">
      <jms-message-filter dest-type="QUEUE"
      dest-name="wsmq/parts123_xml_transform_gw" />
      </jms-bus><jms-bus busid="quickstartEsbChannel">
      <jms-message-filter dest-type="QUEUE"
      dest-name="wsmq/parts123_xml_transform_esb" />
      </jms-bus><jms-bus busid="quickstartGwChannel">
      <jms-message-filter dest-type="QUEUE"
      dest-name="wsmq/parts123_transform_Response" />
      </jms-bus> <jms-bus busid="filestartEsbChannel">
      <jms-message-filter dest-type="QUEUE"
      name="wsmq/parts123_transform_Response"
      selector="type='fromHelloworldFileAction'"/></jms-bus></jms-provider>
      <fs-provider name="FSprovider1"><fs-bus busid="helloFileChannel" > <fs-message-filter directory="d:\jboss-esb\samples\quickstarts\helloworld_file_action\build\dirs\input"
      input-suffix=".dat" work-suffix=".esbWorking" post-delete="false" post-directory="d:\jboss-esb\samples\quickstarts\helloworld_file_action\build\dirs\output"
      post-suffix=".sentToEsb" error-delete="false" error-directory="d:\jboss-esb\samples\quickstarts\helloworld_file_action\build\dirs\error"
      error-suffix=".IN_ERROR"/></fs-bus> </fs-provider>
      <jms-listener name="JMS-Gateway"busidref="bluebirdGwChannel"
      maxThreads="1" is-gateway="true" /><jms-listener name="jmsTransformer" busidref="bluebirdEsbChannel"
      maxThreads="1"/> <fs-listener name="FileGateway"
      busidref="helloFileChannel" maxThreads="1" is-gateway="true"
      poll-frequency-seconds="1" /> <jms-listener name="helloWorldFileAction"busidref="filestartEsbChannel"
      maxThreads="1" /><action name="displayBeforeTransformer"class="com.bluebird.integration.parts123.transformation.pojo.MyJMSListenerAction"
      process="displayMessage" />
      <property name="from" Parts123:OrderDispatchService" /><property to-type" value="text/xml:postOrder" /><action convertPOJO2Message" class="com.bluebird.integration.Parts123Action" /> <action name="returnToSender"
      com.bluebird.integration.parts123.transformation.pojo.MyJMSListenerAction" process="sendResponse" />

        • 1. Re: Urgent Help Please:Failed to senerror to address null
          Srikanth Val Newbie

           

          "srikanth_vals" wrote:
          Hi JBoss team,

          I am trying to have two providers like jms-provider and fs-provider in signle jboss-esb and both are not dependent on each other.
          fs-provider just reads a file from directory and try to post to a queue.This example i pikced from samples section.I get the follwoing exception below when i start esb in standalone mode. Please help.....

          [java] 22:35:45,125 INFO [main][SmooksTransformer] All Smooks configuratio
          ns are now loaded.
          &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
          [java] Body: Hello World In A File
          &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
          [java] 22:36:03,343 INFO [pool-2-thread-1][SmooksTransformer] Registering
          JBoss ESB Message-Exchange as Smooks Useragent: [from-type:text/xml:partsOrder:f
          rom:Parts123:OrderDispatchService:to-type:text/xml:postOrder:to:ERP_1:PartSalesO
          rderService]. Profiles: [[from-type:text/xml:partsOrder, from:Parts123:OrderDis
          patchService, to-type:text/xml:postOrder, to:ERP_1:PartSalesOrderService]]
          [java] [Fatal Error] :1:1: Content is not allowed in prolog.
          [java] 22:36:03,421 ERROR [pool-2-thread-1][ActionProcessingPipeline] Faile
          d to send error to address null.
          [java] org.jboss.soa.esb.couriers.CourierException: No deliverAsync courier[java] at jboss.internal.soa.esb.couriers.TwoWayCourierImpl.deliver
          (TwoWayCourierImpl.java:166)
          [java] at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.
          faultTo(ActionProcessingPipeline.java:436)
          [java] at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.
          process(ActionProcessingPipeline.java:287)
          [java] at org.jboss.soa.esb.listeners.message.MessageAwareListener$1.ru
          n(MessageAwareListener.java:301)
          [java] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Thread
          PoolExecutor.java:650)
          [java] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPool
          Executor.java:675)
          [java] at java.lang.Thread.run(Thread.java:595)


          <jbossesb xmlns="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.0.1.xsd" parameterReloadSecs="5">
          <providers><jms-provider name="JBossMQ" connection-factory="WSMQQueueConnectionFactory"
          jndi-context-factory="org.jnp.interfaces.NamingContextFactory"
          jndi-URL="localhost" >
          <jms-bus busid="bluebirdGwChannel">
          <jms-message-filter dest-type="QUEUE" dest-name="wsmq/parts123_transform_gw"/>
          </jms-bus><jms-bus busid="bluebirdEsbChannel">
          <jms-message-filter dest-type="QUEUE" dest-name="wsmq/parts123_transform_esb"/>
          </jms-bus> <jms-bus busid="quickstartGwChannel">
          <jms-message-filter dest-type="QUEUE"
          dest-name="wsmq/parts123_xml_transform_gw" />
          </jms-bus><jms-bus busid="quickstartEsbChannel">
          <jms-message-filter dest-type="QUEUE"
          dest-name="wsmq/parts123_xml_transform_esb" />
          </jms-bus><jms-bus busid="quickstartGwChannel">
          <jms-message-filter dest-type="QUEUE"
          dest-name="wsmq/parts123_transform_Response" />
          </jms-bus> <jms-bus busid="filestartEsbChannel">
          <jms-message-filter dest-type="QUEUE"
          name="wsmq/parts123_transform_Response"
          selector="type='fromHelloworldFileAction'"/></jms-bus></jms-provider>
          <fs-provider name="FSprovider1"><fs-bus busid="helloFileChannel" > <fs-message-filter directory="d:\jboss-esb\samples\quickstarts\helloworld_file_action\build\dirs\input"
          input-suffix=".dat" work-suffix=".esbWorking" post-delete="false" post-directory="d:\jboss-esb\samples\quickstarts\helloworld_file_action\build\dirs\output"
          post-suffix=".sentToEsb" error-delete="false" error-directory="d:\jboss-esb\samples\quickstarts\helloworld_file_action\build\dirs\error"
          error-suffix=".IN_ERROR"/></fs-bus> </fs-provider></providers> <services> <service category="MyTransformationServicesESB" name="MyTransformationServiceESB" description="ESB: Takes XML in and produces a POJO"><listeners>
          <jms-listener name="JMS-Gateway"busidref="bluebirdGwChannel"
          maxThreads="1" is-gateway="true" /><jms-listener name="jmsTransformer" busidref="bluebirdEsbChannel"
          maxThreads="1"/> <fs-listener name="FileGateway"
          busidref="helloFileChannel" maxThreads="1" is-gateway="true"
          poll-frequency-seconds="1" /> <jms-listener name="helloWorldFileAction"busidref="filestartEsbChannel"
          maxThreads="1" /></listeners><actions><action name="displayBeforeTransformer"class="com.bluebird.integration.parts123.transformation.pojo.MyJMSListenerAction"
          process="displayMessage" /> <action name="transform" class="org.jboss.soa.esb.actions.converters.SmooksTransformer">
          <property name="from" Parts123:OrderDispatchService" /><property name="from-type" value="text/xml:partsOrder" /><property name="to" value="ERP_1:PartSalesOrderService" /><property to-type" value="text/xml:postOrder" /></action><action convertPOJO2Message" class="com.bluebird.integration.Parts123Action" /><action name="displayAfterTransformer" class="com.bluebird.integration.parts123.transformation.pojo.MyJMSListenerAction" process="displayMessage" /> <action name="returnToSender"
          com.bluebird.integration.parts123.transformation.pojo.MyJMSListenerAction" process="sendResponse" /> <action name="action1" class="com.bluebird.integration.MyAction" process="displayMessage" />
          </actions></service></services></jbossesb>


          • 2. Re: Urgent Help Please : ActionProcessingPipeline] Failed to
            Burr Sutter Master

            Can you make the jboss-esb.xml more readable? And do you have an idea in that file where the problem may be?

            • 3. Re: Urgent Help Please : ActionProcessingPipeline] Failed to
              Mark Little Master

              Plus, which version of JBossESB are you using?

              • 4. Re: Urgent Help Please : ActionProcessingPipeline] Failed to
                Srikanth Val Newbie

                <?xml version = "1.0" encoding = "UTF-8"?>


                <jms-provider name="JBossMQ" connection-factory="WSMQQueueConnectionFactory"
                jndi-context-factory="org.jnp.interfaces.NamingContextFactory" jndi-URL="localhost" >
                <jms-bus busid="bluebirdGwChannel">
                <jms-message-filter dest-type="QUEUE" dest-name="wsmq/parts123_transform_gw"/>
                </jms-bus>
                <jms-bus busid="bluebirdEsbChannel">
                <jms-message-filter dest-type="QUEUE" dest-name="wsmq/parts123_transform_esb"/>
                </jms-bus>
                <jms-bus busid="quickstartGwChannel">
                <jms-message-filter dest-type="QUEUE" dest-name="wsmq/parts123_xml_transform_gw" />
                </jms-bus>
                <jms-bus busid="quickstartEsbChannel">
                <jms-message-filter dest-type="QUEUE" dest-name="wsmq/parts123_xml_transform_esb" />
                </jms-bus>
                <jms-bus busid="quickstartGwChannel">
                <jms-message-filter dest-type="QUEUE" dest-name="wsmq/parts123_transform_Response" />
                </jms-bus>
                <jms-bus busid="filestartEsbChannel">
                <jms-message-filter dest-type="QUEUE" dest-name="wsmq/parts123_transform_Response"
                selector="type='fromHelloworldFileAction'"/> </jms-bus>
                </jms-provider>
                <fs-provider name="FSprovider1">
                <fs-bus busid="helloFileChannel" >
                <fs-message-filter
                directory="d:\jboss-esb\samples\quickstarts\helloworld_file_action\build\dirs\input" input-suffix=".dat"
                work-suffix=".esbWorking"post-delete="false"
                post-directory="d:\jboss-esb\samples\quickstarts\helloworld_file_action\build\dirs\output" post-suffix=".sentToEsb"
                error-delete="false" error-directory="d:\jboss-esb\samples\quickstarts\helloworld_file_action\build\dirs\error"
                error-suffix=".IN_ERROR"/> </fs-bus> </fs-provider>



                <jms-listener name="JMS-Gateway" busidref="bluebirdGwChannel" maxThreads="1" is-gateway="true"/>
                <jms-listener name="jmsTransformer" busidref="bluebirdEsbChannel" maxThreads="1"/>
                <fs-listener name="FileGateway" busidref="helloFileChannel" maxThreads="1" is-gateway="true"poll-frequency-seconds="1" />
                <jms-listener name="helloWorldFileAction" busidref="filestartEsbChannel" maxThreads="1"/>
















                • 5. Re: Urgent Help Please : ActionProcessingPipeline] Failed to
                  Srikanth Val Newbie

                  <?xml version = "1.0" encoding = "UTF-8"?>


                  <jms-provider name="JBossMQ" connection-factory="WSMQQueueConnectionFactory"
                  jndi-context-factory="org.jnp.interfaces.NamingContextFactory" jndi-URL="localhost" >
                  <jms-bus busid="bluebirdGwChannel">
                  <jms-message-filter dest-type="QUEUE" dest-name="wsmq/parts123_transform_gw"/>
                  </jms-bus>
                  <jms-bus busid="bluebirdEsbChannel">
                  <jms-message-filter dest-type="QUEUE" dest-name="wsmq/parts123_transform_esb"/>
                  </jms-bus>
                  <jms-bus busid="quickstartGwChannel">
                  <jms-message-filter dest-type="QUEUE" dest-name="wsmq/parts123_xml_transform_gw" />
                  </jms-bus>
                  <jms-bus busid="quickstartEsbChannel">
                  <jms-message-filter dest-type="QUEUE" dest-name="wsmq/parts123_xml_transform_esb" />
                  </jms-bus>
                  <jms-bus busid="quickstartGwChannel">
                  <jms-message-filter dest-type="QUEUE" dest-name="wsmq/parts123_transform_Response" />
                  </jms-bus>
                  <jms-bus busid="filestartEsbChannel">
                  <jms-message-filter dest-type="QUEUE" dest-name="wsmq/parts123_transform_Response"
                  selector="type='fromHelloworldFileAction'"/> </jms-bus>
                  </jms-provider>
                  <fs-provider name="FSprovider1">
                  <fs-bus busid="helloFileChannel" >
                  <fs-message-filter
                  directory="d:\jboss-esb\samples\quickstarts\helloworld_file_action\build\dirs\input" input-suffix=".dat"
                  work-suffix=".esbWorking"post-delete="false"
                  post-directory="d:\jboss-esb\samples\quickstarts\helloworld_file_action\build\dirs\output" post-suffix=".sentToEsb"
                  error-delete="false" error-directory="d:\jboss-esb\samples\quickstarts\helloworld_file_action\build\dirs\error"
                  error-suffix=".IN_ERROR"/> </fs-bus> </fs-provider>

                  • 6. Re: Urgent Help Please : ActionProcessingPipeline] Failed to
                    Srikanth Val Newbie




                    <jms-listener name="JMS-Gateway" busidref="bluebirdGwChannel" maxThreads="1" is-gateway="true"/>
                    <jms-listener name="jmsTransformer" busidref="bluebirdEsbChannel" maxThreads="1"/>
                    <fs-listener name="FileGateway" busidref="helloFileChannel" maxThreads="1" is-gateway="true"poll-frequency-seconds="1" />
                    <jms-listener name="helloWorldFileAction" busidref="filestartEsbChannel" maxThreads="1"/>
















                    • 7. Re: Urgent Help Please : ActionProcessingPipeline] Failed to
                      Srikanth Val Newbie

                      hi i am just surprised that i could not able to paste the tag in forum..it shows blank...any how i have confgured
                      <jms-listener name="JMS-Gateway" busidref="bluebirdGwChannel" maxThreads="1" is-gateway="true"/>
                      <jms-listener name="jmsTransformer" busidref="bluebirdEsbChannel" maxThreads="1"/>
                      <fs-listener name="FileGateway" busidref="helloFileChannel" maxThreads="1" is-gateway="true"poll-frequency-seconds="1" />
                      <jms-listener name="helloWorldFileAction" busidref="filestartEsbChannel" maxThreads="1"/>


                      and few actions and i am using JBoss ESB 4.2 Milestone Release 2

                      • 8. Re: Urgent Help Please : ActionProcessingPipeline] Failed to
                        Burr Sutter Master

                        How about you just zip up and email me the project?

                        I'm assuming you followed the project structure of the quickstarts.

                        Burr