9 Replies Latest reply on Aug 23, 2012 10:44 AM by Anuj Dwivedi--Oracle

    B2B-50081  Duplicated exchange protocol message error

    832088
      Hi,

      I tested a scenario for ebXML inbound type. for the first time it worked correctly with no errors. i got instance created in my soa composite. but from the next time, even though i changed the input xml file name with unique message id, i'm getting the following error after acknowledgement or between the acknowledgement.

      Please help me to solve the issue.

      I'm naming the input xml as follows : <fromTradingPartner>_<DocumentType>_<Revision>_<msgType>_<msgId>.xml

      Eg:OracleServices_ebXMLType_204_1_210820128.xml

      Error

      Id     7F00000113948EE1E4B000002F2BA9C9
      Message Id     7F00000113948EE1E26000002F2BA9C5
      Refer To Message     Refer To Message
      Sender Type     
      Sender Value     
      Receiver Type     Name
      Receiver Value     MarketInc
      Sender     
      Receiver     MarketInc
      Agreement Id     
      Agreement     
      Document Type     
      Document Protocol     
      Document Version     
      Message Type     REQ
      Direction     INBOUND
      State     MSG_ERROR
      Acknowledgement Mode     NONE
      Response Mode     ASYNC
      Send Time Stamp     08/21/2012 04:55:28 PM
      Receive Time Stamp     08/21/2012 04:55:28 PM
      Document Retry Interval(Channel)     0
      Document Remaining Retry(Channel)     0
      Document Retry Interval(Agreement)     
      Document Remaining Retry(Agreement)     
      Native Message Size     0
      Translated Message Size     
      Business Action Name     
      Business Transaction Name     
      Xpath Name1     
      Xpath Value1     
      Xpath Expression1     
      Xpath Name2     
      Xpath Value2     
      Xpath Expression2     
      Xpath Name3     
      Xpath Value3     
      Xpath Expression3     
      Correlation From XPath Name     
      Correlation From XPath Value     
      Correlation From XPath Expression     
      Correlation To XPath Name     
      Correlation To XPath Value     
      Correlation To XPath Expression     
      Wire Message     Wire Message
      Application Message     Application Message
      Payload Storage     Payload Storage
      Attachment     Attachment
      Label     
      Collaboration Id     
      Collabration Name     
      Collabration Version     
      Business Action Name     
      Exchange Protocol Name     Generic HTTP
      Exchange Protocol Version     1.1
      Interchange Control Number     
      Group Control Number     
      Transaction Set Control Number     
      Error Code     B2B-50081
      Error Description     Machine Info: (localhost.localdomain) Description: Duplicated exchange protocol message error - Original B2BMessageId = 7F00000113948EE1D1B000002F2BA9BF
      Error Level     ERROR_LEVEL_COLLABORATION
      Error Severity     ERROR
      Error Text     Duplicated exchange protocol message error
        • 1. Re: B2B-50081  Duplicated exchange protocol message error
          Anuj Dwivedi--Oracle
          Name input XML as below and make sure to provide unique message id every time -

          <fromTradingPartner>_<msgId>.xml

          For example, OracleServices_123456789.xml

          Regards,
          Anuj
          1 person found this helpful
          • 2. Re: B2B-50081  Duplicated exchange protocol message error
            832088
            Thanks for your quick reply.

            Tried that too. Still the same error :(
            • 3. Re: B2B-50081  Duplicated exchange protocol message error
              DheerajKumarM
              Hi Saranya,

              ebXML uses HTTP protocol. It appears that you are using file/ftp protocol.
              Can you please elaborate the usecase ?

              Please refer to http://java.net/projects/oraclesoasuite11g/downloads/download/B2B/b2b-001-custom.zip

              Regards,
              Dheeraj
              • 4. Re: B2B-50081  Duplicated exchange protocol message error
                832088
                Dheeraj,

                Thanks for your reply.

                Yes ebXML uses HTTP protocol. I've configured the remote TP using eBMS 2.0 there I'm able to use HTTP as transport protocol. for host TP, if i try to configure the channel using generic HTTP, it doesn't allow me to validate or deploy the agreement. in fact, while defining the channel itself it says error.

                Error -: B2B-52306: Internal delivery channel MarketInc_ebMS_Channel must not use HTTP transport.
                     
                If i gave ok and proceed to agreement, the validation fails as follows.

                Messages for this page are listed below.

                Error     ebXML_2_0_AGR is not valid. Please correct the following errors.
                Error     B2B-52306: Internal delivery channel MarketInc_ebMS_Channel must not use HTTP transport.

                Please help
                • 5. Re: B2B-50081  Duplicated exchange protocol message error
                  DheerajKumarM
                  Configuring a Channel for Host means, it is to communicate with internal application. Generally this will be a JMS Queue / File channel

                  Can you please explain the end-to-end usecase in detail?

                  Regards,
                  Dheeraj
                  • 6. Re: B2B-50081  Duplicated exchange protocol message error
                    832088
                    I tried simple ebXML inbound use case only.

                    1.I created custom ebXML 2.0 document definition
                    2.created eBMS Channel for remote TP.
                    3.created Generic File Channel for host TP
                    3.created an agreement in the remote TP with these two channels and the document definition
                    4.Created a soa project in the jdeveloper with B2B adapter as sender(inbound), mediator to transform the xml to opaque(for .dat format) and then a JMS adapter as producer to put the the .dat file.


                    I tried this in 2 different ways:

                    If i configured the agreement without using the host channel (no channel for host and ebms channel for remote), instance for soa is been created with error since it is unable to convert to opaque format.

                    If i configured the agreement using the host channel (file channel for host and ebms channel for remote), no instance is been created in the soa but i can able to see the .dat file in the file channel's folder.In the reports page, msg and ack are generated correctly with one more error "duplicated protocol error".

                    Please help.
                    • 7. Re: B2B-50081  Duplicated exchange protocol message error
                      Anuj Dwivedi--Oracle
                      Saranya,

                      How are you sending the message to your B2B?
                      2.created eBMS Channel for remote TP.
                      Make sure that you are not giving URL of same B2B here? It should have URL of your remote trading partner (could be another B2B).
                      3.created Generic File Channel for host TP
                      Not required. If you simply want to pass the message to SOA then need not to create any channel in host tp configuration. By default messages will be sent to IP_IN_QUEUE and B2B adapter (configured with AQ interface) will pick the message from here.
                      instance for soa is been created with error since it is unable to convert to opaque format.
                      For opaque, no conversion is required. Just simply assign the content of incoming payload to the outbound variable (JMS adapter input variable)

                      Regards,
                      Anuj
                      • 8. Re: B2B-50081  Duplicated exchange protocol message error
                        832088
                        Thanks Anuj.

                        Worked now :)

                        I'm sending through generic file only. But one more problem is,

                        I changed the JMS to file adapter (write) in the soa composite. soa instance and b2b part are clear. the file which is written using file write adapter is empty. Please help
                        • 9. Re: B2B-50081  Duplicated exchange protocol message error
                          Anuj Dwivedi--Oracle
                          the file which is written using file write adapter is empty
                          It is an assignment issue. Check the audit trail of instance and make sure that value from inbound variable is actually being copied to outbound variable. Also make sure to use opaque schema in your B2B adapter (On the Document Definition Handling page, select the option Opaque on the Advanced tab).

                          Regards,
                          Anuj