2 Replies Latest reply: Jan 15, 2013 7:42 AM by Anuj Dwivedi-Oracle RSS

    Consuming Binary using back end Composite

    Bruno Neves Alves
      Hello.

      I'm trying to send binary file (PDF) using File Channel to soa composites backend application. I can have sucssefully my file consumed by B2B on MSG_COMPLETE status but I don't have any new instances created on the composite that is responsible to pick up the binary message.

      Already checked and routingID is correct and the adapter is configured to consume message as opaque.

      i can find also the following error on log:



      [2013-01-09T11:45:47.567+01:00] [soa_server1] [ERROR] [] [oracle.soa.b2b.engine] [tid: Workmanager: , Version: 0, Scheduled=false, Started=false, Wait time: 0 ms\n] [userId: <anonymous>] [ecid: 5ee84412e7cadbdc:541a038c:13c157c66a5:-8000-0000000000036f2b,0] [APP: soa-infra] Error -: B2B-50029: B2B runtime error: java.lang.NullPointerException[[
      at oracle.tip.b2b.msgproc.MessageHandler.deliverMessageToFabric(MessageHandler.java:1804)
      at oracle.tip.b2b.msgproc.MessageHandler.doDeliverMessageToDestination(MessageHandler.java:655)
      at oracle.tip.b2b.msgproc.MessageHandler.deliverMessageToDestination(MessageHandler.java:265)
      at oracle.tip.b2b.msgproc.Request.putMsg(Request.java:760)
      at oracle.tip.b2b.msgproc.Request.continueRequest(Request.java:553)
      at oracle.tip.b2b.msgproc.Request.incomingRequest(Request.java:474)
      at oracle.tip.b2b.engine.Engine.processIncomingMessageImpl(Engine.java:2866)
      at oracle.tip.b2b.engine.Engine.processIncomingMessage(Engine.java:1650)
      at oracle.tip.b2b.engine.Engine.incomingContinueProcess(Engine.java:4042)
      at oracle.tip.b2b.engine.Engine.handleMessageEvent(Engine.java:3718)
      at oracle.tip.b2b.engine.Engine.processEvents(Engine.java:3205)
      at oracle.tip.b2b.engine.ThreadWorkExecutor.processEvent(ThreadWorkExecutor.java:677)
      at oracle.tip.b2b.engine.ThreadWorkExecutor.run(ThreadWorkExecutor.java:211)
      at oracle.integration.platform.blocks.executor.WorkManagerExecutor$1.run(WorkManagerExecutor.java:120)
      at weblogic.work.j2ee.J2EEWorkManager$WorkWithListener.run(J2EEWorkManager.java:184)
      at weblogic.work.DaemonWorkThread.run(DaemonWorkThread.java:30)
      Caused by: java.lang.NullPointerException
      at oracle.tip.b2b.msgproc.MessageHandler.deliverMessageToFabric(MessageHandler.java:1238)
      ... 15 more
      java.lang.NullPointerException
      at oracle.tip.b2b.msgproc.MessageHandler.deliverMessageToFabric(MessageHandler.java:1238)
      at oracle.tip.b2b.msgproc.MessageHandler.doDeliverMessageToDestination(MessageHandler.java:655)
      at oracle.tip.b2b.msgproc.MessageHandler.deliverMessageToDestination(MessageHandler.java:265)
      at oracle.tip.b2b.msgproc.Request.putMsg(Request.java:760)
      at oracle.tip.b2b.msgproc.Request.continueRequest(Request.java:553)
      at oracle.tip.b2b.msgproc.Request.incomingRequest(Request.java:474)
      at oracle.tip.b2b.engine.Engine.processIncomingMessageImpl(Engine.java:2866)
      at oracle.tip.b2b.engine.Engine.processIncomingMessage(Engine.java:1650)
      at oracle.tip.b2b.engine.Engine.incomingContinueProcess(Engine.java:4042)
      at oracle.tip.b2b.engine.Engine.handleMessageEvent(Engine.java:3718)
      at oracle.tip.b2b.engine.Engine.processEvents(Engine.java:3205)
      at oracle.tip.b2b.engine.ThreadWorkExecutor.processEvent(ThreadWorkExecutor.java:677)
      at oracle.tip.b2b.engine.ThreadWorkExecutor.run(ThreadWorkExecutor.java:211)
      at oracle.integration.platform.blocks.executor.WorkManagerExecutor$1.run(WorkManagerExecutor.java:120)
      at weblogic.work.j2ee.J2EEWorkManager$WorkWithListener.run(J2EEWorkManager.java:184)
      at weblogic.work.DaemonWorkThread.run(DaemonWorkThread.java:30)
      Error -: B2B-50029: B2B runtime error: java.lang.NullPointerException
      at oracle.tip.b2b.msgproc.MessageHandler.deliverMessageToFabric(MessageHandler.java:1804)
      at oracle.tip.b2b.msgproc.MessageHandler.doDeliverMessageToDestination(MessageHandler.java:655)
      at oracle.tip.b2b.msgproc.MessageHandler.deliverMessageToDestination(MessageHandler.java:265)
      at oracle.tip.b2b.msgproc.Request.putMsg(Request.java:760)
      at oracle.tip.b2b.msgproc.Request.continueRequest(Request.java:553)
      at oracle.tip.b2b.msgproc.Request.incomingRequest(Request.java:474)
      at oracle.tip.b2b.engine.Engine.processIncomingMessageImpl(Engine.java:2866)
      at oracle.tip.b2b.engine.Engine.processIncomingMessage(Engine.java:1650)
      at oracle.tip.b2b.engine.Engine.incomingContinueProcess(Engine.java:4042)
      at oracle.tip.b2b.engine.Engine.handleMessageEvent(Engine.java:3718)
      at oracle.tip.b2b.engine.Engine.processEvents(Engine.java:3205)
      at oracle.tip.b2b.engine.ThreadWorkExecutor.processEvent(ThreadWorkExecutor.java:677)
      at oracle.tip.b2b.engine.ThreadWorkExecutor.run(ThreadWorkExecutor.java:211)
      at oracle.integration.platform.blocks.executor.WorkManagerExecutor$1.run(WorkManagerExecutor.java:120)
      at weblogic.work.j2ee.J2EEWorkManager$WorkWithListener.run(J2EEWorkManager.java:184)
      at weblogic.work.DaemonWorkThread.run(DaemonWorkThread.java:30)
      Caused by: java.lang.NullPointerException
      at oracle.tip.b2b.msgproc.MessageHandler.deliverMessageToFabric(MessageHandler.java:1238)
      ... 15 more


      any idea ?

      Thanks
        • 1. Re: Consuming Binary using back end Composite
          Bruno Neves Alves
          Tested with txt file and is processed correctly.

          Tried with PDF, BMP ans is not.

          Even the Message status on B2B is MSG_COMPLETE on logging I'm having always:

          [2013-01-09T12:56:32.055+01:00] [soa_server1] [ERROR] [] [oracle.soa.b2b.engine] [tid: Workmanager: , Version: 0, Scheduled=false, Started=false, Wait time: 0 ms\n] [userId: <anonymous>] [ecid: 5ee84412e7cadbdc:541a038c:13c157c66a5:-8000-0000000000038aa9,0] [APP: soa-infra] Error -: B2B-50029: B2B runtime error: java.lang.NullPointerException[[
          at oracle.tip.b2b.msgproc.MessageHandler.deliverMessageToFabric(MessageHandler.java:1804)
          at oracle.tip.b2b.msgproc.MessageHandler.doDeliverMessageToDestination(MessageHandler.java:655)
          at oracle.tip.b2b.msgproc.MessageHandler.deliverMessageToDestination(MessageHandler.java:265)
          at oracle.tip.b2b.msgproc.Request.putMsg(Request.java:760)
          at oracle.tip.b2b.msgproc.Request.continueRequest(Request.java:553)
          at oracle.tip.b2b.msgproc.Request.incomingRequest(Request.java:474)
          at oracle.tip.b2b.engine.Engine.processIncomingMessageImpl(Engine.java:2866)
          at oracle.tip.b2b.engine.Engine.processIncomingMessage(Engine.java:1650)
          at oracle.tip.b2b.engine.Engine.incomingContinueProcess(Engine.java:4042)
          at oracle.tip.b2b.engine.Engine.handleMessageEvent(Engine.java:3718)
          at oracle.tip.b2b.engine.Engine.processEvents(Engine.java:3205)
          at oracle.tip.b2b.engine.ThreadWorkExecutor.processEvent(ThreadWorkExecutor.java:677)
          at oracle.tip.b2b.engine.ThreadWorkExecutor.run(ThreadWorkExecutor.java:211)
          at oracle.integration.platform.blocks.executor.WorkManagerExecutor$1.run(WorkManagerExecutor.java:120)
          at weblogic.work.j2ee.J2EEWorkManager$WorkWithListener.run(J2EEWorkManager.java:184)
          at weblogic.work.DaemonWorkThread.run(DaemonWorkThread.java:30)
          Caused by: java.lang.NullPointerException
          at oracle.tip.b2b.msgproc.MessageHandler.deliverMessageToFabric(MessageHandler.java:1238)
          ... 15 more
          java.lang.NullPointerException
          at oracle.tip.b2b.msgproc.MessageHandler.deliverMessageToFabric(MessageHandler.java:1238)
          at oracle.tip.b2b.msgproc.MessageHandler.doDeliverMessageToDestination(MessageHandler.java:655)
          at oracle.tip.b2b.msgproc.MessageHandler.deliverMessageToDestination(MessageHandler.java:265)
          at oracle.tip.b2b.msgproc.Request.putMsg(Request.java:760)
          at oracle.tip.b2b.msgproc.Request.continueRequest(Request.java:553)
          at oracle.tip.b2b.msgproc.Request.incomingRequest(Request.java:474)
          at oracle.tip.b2b.engine.Engine.processIncomingMessageImpl(Engine.java:2866)
          at oracle.tip.b2b.engine.Engine.processIncomingMessage(Engine.java:1650)
          at oracle.tip.b2b.engine.Engine.incomingContinueProcess(Engine.java:4042)
          at oracle.tip.b2b.engine.Engine.handleMessageEvent(Engine.java:3718)
          at oracle.tip.b2b.engine.Engine.processEvents(Engine.java:3205)
          at oracle.tip.b2b.engine.ThreadWorkExecutor.processEvent(ThreadWorkExecutor.java:677)
          at oracle.tip.b2b.engine.ThreadWorkExecutor.run(ThreadWorkExecutor.java:211)
          at oracle.integration.platform.blocks.executor.WorkManagerExecutor$1.run(WorkManagerExecutor.java:120)
          at weblogic.work.j2ee.J2EEWorkManager$WorkWithListener.run(J2EEWorkManager.java:184)
          at weblogic.work.DaemonWorkThread.run(DaemonWorkThread.java:30)
          Error -: B2B-50029: B2B runtime error: java.lang.NullPointerException
          at oracle.tip.b2b.msgproc.MessageHandler.deliverMessageToFabric(MessageHandler.java:1804)
          at oracle.tip.b2b.msgproc.MessageHandler.doDeliverMessageToDestination(MessageHandler.java:655)
          at oracle.tip.b2b.msgproc.MessageHandler.deliverMessageToDestination(MessageHandler.java:265)
          at oracle.tip.b2b.msgproc.Request.putMsg(Request.java:760)
          at oracle.tip.b2b.msgproc.Request.continueRequest(Request.java:553)
          at oracle.tip.b2b.msgproc.Request.incomingRequest(Request.java:474)
          at oracle.tip.b2b.engine.Engine.processIncomingMessageImpl(Engine.java:2866)
          at oracle.tip.b2b.engine.Engine.processIncomingMessage(Engine.java:1650)
          at oracle.tip.b2b.engine.Engine.incomingContinueProcess(Engine.java:4042)
          at oracle.tip.b2b.engine.Engine.handleMessageEvent(Engine.java:3718)
          at oracle.tip.b2b.engine.Engine.processEvents(Engine.java:3205)
          at oracle.tip.b2b.engine.ThreadWorkExecutor.processEvent(ThreadWorkExecutor.java:677)
          at oracle.tip.b2b.engine.ThreadWorkExecutor.run(ThreadWorkExecutor.java:211)
          at oracle.integration.platform.blocks.executor.WorkManagerExecutor$1.run(WorkManagerExecutor.java:120)
          at weblogic.work.j2ee.J2EEWorkManager$WorkWithListener.run(J2EEWorkManager.java:184)
          at weblogic.work.DaemonWorkThread.run(DaemonWorkThread.java:30)
          Caused by: java.lang.NullPointerException
          at oracle.tip.b2b.msgproc.MessageHandler.deliverMessageToFabric(MessageHandler.java:1238)
          ... 15 more
          • 2. Re: Consuming Binary using back end Composite
            Anuj Dwivedi-Oracle
            AFAIK, binary transfer is only supported through JMS/File/FTP/SFTP protocols. It is not supported with AQ or default mode of integration.

            Regards,
            Anuj