SOAPConnection sends duplicate payload on SocketException?

Using the version of SAAJ (1.2.2) provided in JWSDP 1.6, it appears that something within the implementation of SOAPConnection's call(message, uri) method will try to re-transmit the message if a SocketException occurs or if the connection receives a RST segment.
Does this seem correct?
I have established a test server where I consume the request sent via:
SOAPMessage response = connection.call(request, endPoint);
and do a close() on the Socket (on the server side), without sending a response back. This triggers a SocketException on the client (desired), but, in monitoring the TCP/IP traffic between the two ports, I can confirm that the contents of 'request' get transmitted twice (undesired!) by the client.
This seems like a bad idea; if I was performing a financial transaction that removed money from my account, I'd hate to have the deduction submitted twice because of some network hiccup.
What I want to do, is accept the SocketException (or whatever) in response, and handle the communications myself (not have the implementation automatically try to recover, or whatever it's doing), so that I can ask the server whether it received the original payload, and resend it if needed.
Any ideas, experience, or insight on this?
Thanks!

Hm, swapping out 1.2.2 and using the Axis 1.3 implementation results in desired behavior; an interruption to the original transaction does not result in a duplicate being sent. Not sure if this is just a matter of difference in implementation, or a bug in the JWSDP libraries ...

Similar Messages

  • Use sender from payload: Sender not in payload

    Hi,
    I am currently facing problems with a IDoc -> XI -> Proxy(XI) sceanrio.
    The Idoc is received by XI without any problems. No message mapping is required for this scenario. However, the message keeps getting stuck in the Inbound queue (SMQ2). The status text says "Use sender from payload: Sender not in payload".
    Can anyone help me out on this?
    Thanks,
    Krishneel

    Check this related problem:
    ATTRIBUTE_IDOC_METADATA : Sender not in payload
    Regards,
    Abhishek.

  • Use sender in Payload: Sender not in Payload.

    Hi,
    When R3 sends ORDRSP to XI , the BPM in XI sends a Status ( SYSTAT01 IDoc ) back to R3 without any problem. Whereas when R3 sends DELVRY03 to XI, the BPM in XI is not able to send the Status back to R3  and gets stuck in XI Queue. The reason: Use sender in Payload: Sender not in Payload.
    Both ORDRSP and DELVRY03 are using the same IDOC Receiver Channel with Take Sender from Payload checked.
    Any idea what is causing the message to get stuck in the queue.
    Thanks,
    Sreekanth

    The reason: Use sender in Payload: Sender not in Payload.
    Check below link:
    Error: Sender Not in Payload
    also there are other threads...but ultimately it is Michal's reply which everyone is refering to.
    Regards,
    Abhishek

  • Sending Duplicate emails using Mail and mBox for mac

    I have been sending duplicate emails inadvertantly recently.  It seems it's when I use mBox for mac (registered copy) in Mail to use my Hotmail with IMAP.
    I hadn't noticed it at first, but now I see everytime I send a mail I get 2 copies in my sent box.  I can turn off the store sent messages on server option to fix it (but that's the whole point of having IMAP!!), or I can turn off mBox for mac and it also seems to work (but then I can't use IMAP!).    I've also tried on the same machine from gmail, and iCloud accounts (MobileMe), and I had no issue at all.  I've also tried 2 different Hotmail accounts, and both of them send double messages every time I send. 
    I've searched for a loooooong time, and can't find anyone with a similar issue - but surely I'm not the only one?  I think anyone still using a hotmail account will eventually install something like mBox for mac if they've gone Mac recently - as I have.
    I checked the mail headers of the 2 mails, and they are quite different (masked where appropriate) -
    Mail 1 -
              From:   xxxxx <[email protected]>
              Subject:           Test 19th
              Date:           May 29, 2012 12:06:19 AM GMT+08:00
              To:   yyyyy <[email protected]>
      Content-Type:           text/plain
      Content-Transfer-Encoding:           7bit
              X-Smtp-Server:           smtp.live.com:[email protected]
              X-Universally-Unique-Identifier:           fb14cd4f-e68c-43fa-8d0b-950df8394fde
              Message-Id:           <[email protected]>
              Mime-Version:           1.0 (Apple Message framework v1278)
    Mail 2 -
              From:   xxxxx <[email protected]>
              Subject:           Test 19th
              Date:           May 29, 2012 12:06:19 AM GMT+08:00
              To:   yyyyy <[email protected]>
              X-Originating-Ip:           [zzz.zzz.zzz.zzz]
              X-Originating-Email:           [[email protected]]
              Message-Id:           <[email protected]>
              Received:           from [192.168.1.52] ([zzz.zzz.zzz.zzz]) by BLU0-SMTP71.phx.gbl over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Mon, 28 May 2012 09:06:21 -0700
      Content-Type:           text/plain
      Content-Transfer-Encoding:           7bit
              Mime-Version:           1.0 (Apple Message framework v1278)
              X-Mailer:           Apple Mail (2.1278)
              X-Originalarrivaltime:           28 May 2012 16:06:21.0350 (UTC) FILETIME=[D2B26460:01CD3CEB]
    I'm surprised I can't find anyone else with a similar issue.  I've submitted a support ticket with mBox/fluent factory, but I'm still not convinced it's their issue, and possibly a Mail on Mac issue.
    Does anybody have any suggestions?  Thanks for your help!

    @ Kokola
    Great staff!!! MBox Fluent Factory is very poor app.
    I was having problem with duplicated sent emails and cleaning up my inbox, sent items and deleting emails. Try to contact them via email for over 3 months and never got a reply!
    I just used the suggested configuration and my Entourage (email app for MAC) is working perfetcly. I can visualise all my online folders now!
    Thank you so much!
    mBox never addressed the issue and the duplicated emails reached new levels of annoyance but the good thing is that Hotmail and Outlook.com finally rolled out support for IMAP.
    Incoming Mail Server: imap-mail.outlook.com
    Outgoing Mail Server: smtp-mail.outlook.com
    http://windows.microsoft.com/en-us/windows/outlook/send-receive-from-app
    No more duplication issues once you switch over, and no need for a third party (mBox)software to bridge the missing feature gap.

  • Error in SXMB_MONI as"Copy Sender from Payload: Sender Is Missing in Payloa

    Hi Folks,
    I am working on file to IDOC scenario. If I am testing in ESR and ID my interface is working fine. But when I am testing end to end I am getting below error. Please find the below error.
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--
    Call Adapter
      -->
    - <SAP:Error SOAP:mustUnderstand="" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
      <SAP:Category>XIAdapter</SAP:Category>
      <SAP:Code area="IDOC_ADAPTER">ATTRIBUTE_IDOC_METADATA</SAP:Code>
      <SAP:P1>Copy Sender from Payload: Sender Is Missing in Payload</SAP:P1>
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:Stack>Error: Copy Sender from Payload: Sender Is Missing in Payload</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Can u ppl please suggest me how to resolve this error.Ur help is highly appreciated.
    Thanks,
    Swathi

    You need to have a S-userid for that....check with senior members within your company....they would be having this S-userid
    Some portion from the note:
    You are using the Exchange Infrastructure and you use the IDoc adapter to send IDocs. A setting in the IDoc channel
    defines that the IDoc sender agreement is to be determined from the payload.  The payload is stored in the XI message in the
    IDoc tunnel format.  If the message has been created, for example, using a Business Process Engine (BPE) process, the IDoc
    inbound property may no longer be available in the XI message. This results in the error described above.
    TIll you get access to the SAP Note:
    In mapping enable the EDI_DC40 segment in your IDOC...fill SEGMENT, SNDPOR, SNDPRT, SNDPRN ....map them as constant
    then in IDOC channel check take Apply Control record from payload (or take sender from payload)
    Regards,
    Abhishek.
    Edited by: abhishek salvi on Dec 24, 2010 4:51 PM

  • IDOC Error - Copy Sender from Payload: Sender Is Missing in Payload

    Hi,
    I have following scenario.
    SOAP adapter ---> PI   -
    > IDOC Receiver -
    > ECC
    THe IDOC has a required node that is disabled and IDOC revicer communication channel has checkd following options.
    Apply control record value from pay load
    Take Sender from Payload
    The soap message is mapped to IDOC structure. While testing I received following error.
    <SAP:Code area="IDOC_ADAPTER">ATTRIBUTE_IDOC_METADATA</SAP:Code>
      <SAP:P1>Copy Sender from Payload: Sender Is Missing in Payload</SAP:P1>
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:Stack>Error: Copy Sender from Payload: Sender Is Missing in Payload</SAP:Stack>
    If you have seen similar error and please let me know how to trobleshoot. I appreciate your help.
    Thank you,
    Balaji

    Thank you for the response. I can enable EDI_DC40 segment and map required following values. 
    ·        SNDPRN
    ·        SNDPRT
    ·        SNDPFC
    ·        RCVPRN
    ·        RCVPRT
    However as we move transports to different environemnts the above values changes and I can't hard code in the mapping.
    My questions is how can I map these values such that when transport moves across different environemtns the mapping valaues are still good. Please let me know.
    Dont enable EDI_DC40 and dont select take sender ,receiver from pay load option,apply control record values from pay load.
    this case IDoc adapter reads values from configuration time andno  problem after trasporting to quality or prod.
    Regards,
    Raj

  • Error Copy Sender from Payload Sender is Missing in Payload

    Hello,
    we have a IDOC -> ccBPM -> IDOC scenario on PI7.0 SP12.
    Since SP12, we have problems in sending the ALEAUD IDOCs from the ccBPM to the R/3 getting the LUW stucked in the queue showing the error "Copy Sender from Payload: Sender Is Missing in Payload".
    In the XML for the ALEAUD the fields SNDPOR, SNDPRT and SNDPRN are filled correct and it has been working with older SP. The comm. channel is configured to take the sender from the payload and we really nead this as we send the IDOC from the ccBPM.
    Does anyone has similar problems or knows about other restrictions which may cause this error?
    Regards,
    Dirk

    Hello,
    SAP solved the problem by releasing a patch.
    If this problem also occurs on your machine then check the SAP note 1154710.
    Regards,
    Dirk

  • Error: Copy sender from payload: Sender not in payload

    Hi all.
    I generated a new WSDL with XI. when i posted it with XML Spy in SXI_MONITOR got this error:
    <SAP:Category>XIAdapter</SAP:Category>
      <SAP:Code area="IDOC_ADAPTER">ATTRIBUTE_IDOC_METADATA</SAP:Code>
      <SAP:P1>Copy sender from payload: Sender not in payload</SAP:P1>
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Error: Copy sender from payload: Sender not in payload</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
    WSDL could be wrong?
    Rgds
    RP

    Hi,
    it's not a WSLD error it's IDOC
    have a look at my answer here:
    Re: Error: Sender Not in Payload
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • My sms texts are still sending duplicates to some contacts

    i'm still finding my iPhone 5c sends duplicate sms texts to some of my contacts. Marco49 suggested one solution but I'm sorry to say that didn't solve the problem.

    Are you referring to an actual SMS, or an iMessage? If iMessage, do you have your settings set to Send As SMS if iMessage fails? It could be they are temporarily out of data range, or you could be as well, but it was just enough to begin the send. Are these text bubbles blue or green?
    If this is an actual SMS, then I suggest that you contact your carrier, as SMS is a carrier function.

  • Java library to send a payload over HTTP

    Hi All,
    I want to create a stand alone Java application which should be able to send a payload(XML doc) over HTTP to a server (an Integration Server). Are there any APIs which can create this HTTP request given a payload and send it to a specified URL over the network.
    This doesn't need to be a SOAP message, just an HTTP request with a payload. And this should be asynchronous too, ie no response is required from the server. Can this be specified in the QoS?
    Any thoughts?
    Thanks,
    Sandeep

    Hi, your idea seems to be interesting. I guess you have a web site, and you want to feed the Http request to a specific URI under the web site. This is nothing new, since WSDL supports HTTP Binding, you can use HTTP Binding to send your HTTP requests to the web site. As to the java library, I thinks JAXWS can do the job. you may turn to WSDL specification for further details about HTTP Binding. I didn't write something like this, but I think it is practical. And if you work it out, it would be very kind of you to tell me how you do it in details by sending me an email: [email protected]
    Best Regards:)
    @smile@

  • Sending duplicate text messages

    My phone is sending duplicate text messages whenever I send to my contacts.  How do I stop this?
    I've noticed this on my RAZR Maxx and now my HTC One M8. 

        Mclindy,
    Lets stop the maddness so your friends only get signal messages when you send them. I know you moved from the Maxx to the M8. Did this start right away with the M8 or did it take a little bit of time? Do you use the native Messaging app that came with the phone or one that was downloaded from the Play Store?
    SarahO_VZW
    Follow us on Twitter @VZWSupport

  • Reimaging Computers and SCCM sending duplicate updates

    We image computers with Ghost and use the same computer name they originally had on the network once they are imaged.
    The intent of the latest image is to be fully updated to this point before it is pushed (Via Ghost) to the computers.
    We fully updated the image and pushed it out to a few test PC's and we are using computer names that are already on the Domain and in SCCM.
    The problem is SCCM thinks that our imaged computers need updates.
    I believe these updates are ones that the computers didnt get before they were imaged, as like I said the image should have all the updates.
    We want to assure that the images are updated and SCCM isnt pushing duplicates to the boxes.
    My guess is that SCCM believes it is talking to the old system vs the new one with the updates.
    Does anyone have any insight on how to fix this.
    Thank you in advance.
    MILADMIN

    The problem is SCCM thinks that our imaged computers need updates.
    This is really a question for the Configuration Manager Software Updates forum..
    but why do YOU think that a NEWLY IMAGED system would not need updates?
    I believe these updates are ones that the computers didnt get before they were imaged
    I'm intensely inclined to concur. Unless you made that image since Tuesday, August 13th, it's *impossible* that the image would be fully patched! Ergo any system built from that image is, by definition, NOT fully patched and WILL need more patches.
    We want to assure that the images are updated and SCCM isnt pushing duplicates to the boxes.
    Whether the images are updated or not has absolutely nothing to do with Software Updates.
    As for duplicate patches.. for almost 20 years Windows Update and it's associated enterprise products, all based on the Windows Update Agent, have successfully patched systems without sending duplicate updates to a client -- not ONCE! Why would you be concerned
    that an architecture that's existed for over a dozen years might suddenly screw your environment up when it hasn't done so in the previous dozen years? :-)
    My guess is that SCCM believes it is talking to the old system vs the new one with the updates.
    I think you're overthinking the situation. Your guess is totally inaccurate. A *NEW* system has a *NEW* identifier (GUID), and it's impossible to confuse a newly imaged system with a previously existing system.
    The *OLD* system, at worse, is orphaned in Configuration Manager and needs to be deleted.
    Does anyone have any insight on how to fix this.
    So your assumption is that it's broken???
    Lawrence Garvin, M.S., MCSA, MCITP:EA, MCDBA
    SolarWinds Head Geek
    Microsoft MVP - Software Packaging, Deployment & Servicing (2005-2014)
    My MVP Profile: http://mvp.microsoft.com/en-us/mvp/Lawrence%20R%20Garvin-32101
    http://www.solarwinds.com/gotmicrosoft
    The views expressed on this post are mine and do not necessarily reflect the views of SolarWinds.

  • Sending inbound payload toanother receiver based on the first receiver resp

    Hi all
    Sending inbound payload to another receiver based on the first receiver response.
    My Scenario is like
    File to WebService. Once it receive the response from the web service i want to send webservice inbound payload to another file system.
    can anyone plz provide me the steps to achieve this one
    Thanks in advance
    Regards
    Rams

    File to WebService. Once it receive the response from the web service i want to send webservice inbound payload to another file system
    once again,
    File systems A -> FileA -> WS.request message -> WS
    WS responds back with WS response message
    1. now do you want to send the WS response message to File System A?
    then follow the blog mentioned in above responses
    2. do you want to send the WS response message to File System B?
    follow the blog. only difference in the receiver determination from BPM to file sys use the File system B as the receiver and configure file receiver adapter with that file systems detail
    3. do you want to send the WS request message to File System A?
    same blog only difference is after sync send step you will have to have another transformation that will map the WS request message to the req. target
    4. do you want to send the WS request message to File System A?
    same as 3. only receiver sys and CC details will change

  • Receiving and sending duplicate messages since update

    I updated my phone on Saturday, 8/9/14, and since then many of my messages are sensing twice and I am receiving messages twice. It doesn't happen every time but almost every time! It is extremely annoying. I have not downloaded any new apps and use the messaging app that came on my phone. Please figure out what is wrong and fix it.

    I have been experiencing this issue as well.    I received duplicate messages.  My phone also sends duplicate messages, sometimes hours later.   Please assist with this issue.   Information:…
    I have been experiencing this issue as well. 
    I received duplicate messages.  My phone also sends duplicate messages, sometimes hours later.
    Please assist with this issue.
    Information:
    Phone: Samsung S4
    Android Version: 4.4.2
    Software update check: No update needed
    Messaging Application used: Message+
    Preinstalled Messaging Application: Turned off
    Have tried multiple forums for assistance, considering changing carrier if not corrected.

  • Help...is there a way to send an entire text mesage thread to my email?  My phone is sending duplicate texts and everything I am reading says to delete message threads.  I have an IPhone 4. thanks

    Help...is there a way to send an entire text mesage thread to my email?  My phone is sending duplicate texts and everything I am reading says to delete message threads.  I have an IPhone 4. thanks

    You can try an app like PhoneView (Mac) or TouchCopy (Mac or PC). Both will allow you to archive text messages to your computer.

Maybe you are looking for