Receiving the same operation twice causes execption

Hi,
We modified your example "109.CorrelationSets" to let the seller invoke AsyncPurchaseResponse twice, and let the buyer receive twice. The seller can send the message twice, however, the process generates a error message:
"NullPointerException" has been caught by a catch block,
after receiving the first AsyncPurchaseResponse, and the instance is cancelled.
The question is, can we invoke the same operation more than once? I saw a similar question in the post "Extending the 109.CorrelationSets scenario ". I know I can avoid this probblem by using different operations in the same portType, but in general this won't work because you don't know how many times the operation will be used.
I attached the modified seller.bpel and buyer.bpel. There is no change in wsdl files.
Thanks in advance for the help!
Feng
buyer.bpel
     <sequence>
          <!-- receive PO from customer-->
          <receive partnerLink="Customer" portType="buyer:Buyer" operation="purchase" variable="input" createInstance="yes">
               <correlations>
                    <correlation set="PurchaseOrder" initiate="yes"/>
               </correlations>
          </receive>
          <!-- send PO to seller-->
          <invoke partnerLink="Seller" portType="seller:Seller" operation="AsyncPurchase" inputVariable="input">
               <correlations>
                    <correlation set="PurchaseOrder" initiate="no" pattern="out"/>
               </correlations>
          </invoke>
          <!-- receive POResponse from seller-->
          <receive partnerLink="Seller" portType="seller:Buyer" operation="AsyncPurchaseResponse" variable="output">
               <correlations>
                    <correlation set="PurchaseOrder" initiate="no"/>
                    <correlation set="Invoice" initiate="yes"/>
               </correlations>
          </receive>
<!-- *********** add one more receive here *********-->
          <receive createInstance="no" partnerLink="Seller" portType="seller:Buyer" operation="AsyncPurchaseResponse" variable="output">
               <correlations>
                    <correlation set="PurchaseOrder" initiate="no"/>
                    <correlation set="Invoice" initiate="no"/>
               </correlations>
          </receive>
          <invoke partnerLink="Customer" portType="buyer:Customer" operation="onResult" inputVariable="output">
          </invoke>
     </sequence>
seller.bpel
     <sequence>
          <!-- receive PO from buyer-->
          <receive partnerLink="Buyer" portType="seller:Seller" operation="AsyncPurchase" variable="input" createInstance="yes">
               <correlations>
                    <correlation set="PurchaseOrder" initiate="yes"/>
               </correlations>
          </receive>
          <assign>
               <!-- initialize the output -->
               <copy>
               </copy>
          </assign>
          <wait for="PT3S"/>
          <!-- send INV to buyer-->
          <invoke partnerLink="Buyer" portType="seller:Buyer" operation="AsyncPurchaseResponse" inputVariable="output">
               <correlations>
                    <correlation set="PurchaseOrder" initiate="no" pattern="out"/>
                    <correlation set="Invoice" initiate="yes" pattern="out"/>
               </correlations>
          </invoke>
<!-- ************send another INV to buyer*************-->
          <wait for="PT3S"/>
          <invoke partnerLink="Buyer" portType="seller:Buyer" operation="AsyncPurchaseResponse" inputVariable="output">
          </invoke>
     </sequence>

Hi
any resolutions on this ? i run into a similar error where i call a Service(WSIF -EJBBinding) in a loop.
thanks
Sam

Similar Messages

  • Double contacts as "iPhone"...my phone saves the same number twice, once with a 1 before the area code and one without it. It causes two different threads in my texts even of they're saved as the same contact

    my phone saves the same number twice, once with a 1 before the area code and one without it. It causes two different threads in my texts even of they're saved as the same contact

    My wife is having the same problems as a reciever. She works in a school as a teaching assistant and her teacher sends messages that are mixed with previous texts from ages ago.
    Can anyone shed some light on this problem or is it only her and this poster?
    2m42s

  • I Keep Receiving The Same Text Messages Multiple Times

    Every single time someone texts me, it doesn't matter who, I will receive the same message from them multiple times. At first I thought it was just them resending their message but I asked and they said no. After a few days it started happening with all my contacts that I text. Sometimes it's every other text message and sometimes it only happens a couple of times but it's extremely annoying. It got so bad that I had to bump up my plan to Unlimited Messaging just so that I wouldn't go over my limit because I think that it's counting the multiple messages! Also, I've tried updating my phone and that didn't work.
    Does anyone have any tips or solutions to this problem? Any help would be greatly appreciated!! Thanks.

        Hi cbf10,
    I am sorry to learn of the erratic duplicate messages you are receiving from several contacts. Let's narrow the potential issues that may be causing this behavior. Are you using a 3rd party application to send/receive text messages (i.e. Handcent, Go SMS, etc...)? Have you altered the operating system software in any way? What is your software version, baseband, kernel and built number?
    Clearing messaging data/cache as applicable may resolve the issue: Menu>Settings>Applications>ManageApplications>All>Messaging>Clear Data/Cache. Try it and keep us posted.
    AntonioC_VZWSupport
    Follow us on Twitter at www.twitter.com/VZWSupport

  • I'm among about 140 people who received the same email. I want to include all of those addresses in a new group. Is it possible to create the group without having to manually enter each of the 140 addresses?

    I'm among about 140 people who received the same email. How can I create a new group for these people without manually entering all 140 addresses?

    Hi  SDGNOM,
    According to your description, my understanding is that you want to export  list to Excel with all columns in your SharePoint.
    For the SharePoint RPC protocol method, SharePoint export to excel will take the list id as well as the view id. So we cannot export list to Excel with all the columns without having to depend on the fields
    chosen in the default view.
    Reference:http://msdn.microsoft.com/en-us/library/ms478653.aspx
    For a workaround, you can achieve your demand via PowerShell. Here is a  template you can refer to:
    Param(
    [Parameter(Mandatory=$True)]
    [string]$webUrl,
    [Parameter(Mandatory=$True)]
    [string]$outPath
    $web = Get-SPWeb $webUrl
    write-host ("Path: " + $outPath)
    foreach($list in $web.Lists)
    $exportlist = $null
    $exportlist = @()
    $list.Items | foreach {
    $hash = $null
    $hash = @{}
    foreach($fld in $_.Fields ){
    Try {
    $hash.add($fld.Title, $_[$fld.Title])
    Catch [System.Management.Automation.MethodInvocationException]
    # Eating an error caused by duplicate column names.
    Finally
    #"End"
    write-host ("Exported: " + $_.Title)
    $obj = New-Object PSObject -Property $hash #@{
    $exportlist += $obj
    $expath = $outPath + '\' + $list.Title + '.csv'
    $exportlist | Export-Csv -path $expath #$oPath
    Reference:
    http://porchcode.blogspot.com/2013/04/exporting-sharepoint-list-items-to-csv.html
    Thanks,
    Eric
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support,
    contact [email protected]
    Eric Tao
    TechNet Community Support

  • I have elements 5 on a vista pc. Elements will not open I receive the message "Attempt to access invalid address". Ihave re-installed but still receive the same message. Any ideas please.

    I have elements 5 on a vista pc. Elements will not open I receive the message "Attempt to access invalid address". I have re-installed but still receive the same message. Any ideas please.

    Make sure your user account has full administrative permissions.  Then, at this stage of the game, I would take the following steps:
    - Re-create the Preferences file following these instructions:
    Re-create the Photoshop Elements preferences file to eliminate problems that a damaged preferences file might cause.
    Note: When you use this solution, Photoshop Elements will create a new preferences file and you will lose custom settings associated with your current preferences file. However, the file you rename in step 2 is your original preferences file. If you determine that the preferences file is not causing the problem, then you can restore your custom settings by undoing the instructions below.
    To re-create the Photoshop Elements preferences file:
    Quit Photoshop Elements.
    Locate the Adobe Photoshop Elements preferences files. In Photoshop Elements 5.0, there are two preferences files, one for Organizer and one for Editor:
    Users\[ user ]\AppData\Roaming\Adobe\Photoshop Elements\5.0\Organizer\psa.prf
    Users\[ user ]\AppData\Roaming\Adobe\Photoshop Elements\5.0\Editor\Photoshop Elements 5 Prefs.psp
    Rename the extension for the files (for example, to psa.old).
    Start Photoshop Elements. Photoshop Elements creates a new preferences file.
    I doubt that this will fix your problem, however, it is always the first thing to try.  If it does not, take these steps:
    - Uninstall Photoshop Elements
    - Run the Windows Installer CleanUp Utility (http://support.microsoft.com/kb/290301)
    - Reinstall Elements
    - Reinstall the 5.0.2 patch
    Good luck,
    Juergen

  • Cannot borrow the same book twice

    I recently borrowed a library book but was unable to finish reading before it expired.  So, I put my name in the waiting list and am now ready to read it again.  However, ADE gives me a "Document license expired" error.  Does this mean I can't borrow the same book twice?
    Note that I've deleted all he books from my library, so there should be no record of the previous borrowing.
    Thanks!

    What Jim Lester is saying is that there's a problem with other software that
    is causing this error, and Adobe and that software manufacturer are 'working
    on it'.  While that doesn't really answer your question, at least you know
    it's not your fault.
    I'd contact your library and tell them the problem you have.  Maybe they've
    worked out a solution that bypasses the software 'bug'.
    ================

  • Deployed the same report twice

    I am running SQL2008 R2, with Visual Studio 2005. I thought I selected to build the reports in VS, but must have selected build and deploy.
    I have deployed the same report twice. Both reports have exactly the same file name. The original report has been configured with for a while. The new report i accidentally deployed recently.
    I have tried going into the properties of the new report via the Report Manager and selecting DELETE, but it generates an rsINTERNALERROR.
    The subscriptions for the 2 reports are different. How do i remove the second deployed report?

    Hi totallychibi,
    If I understand correctly, you want to deploy the original report to report server. However, for some reason, the new one report is deployed. As per my understanding, a report will overwrite the same name report when we deploy it to the same folder on report
    server. So we can directly deploy the original report to replace the new one to fix this issue.
    As to rsInternalError, we can review the report server log files to determine the specific cause for this message. By default, the log files are located at \Microsoft SQL Server\MSRS10_50.<instancename >\Reporting Services\LogFiles.
    If there are any misunderstanding, please elaborate the issue for further investigation.
    Regards,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Using the same subreport twice

    I'm trying to use the same subreport twice in the same
    report, passing it different parameters that modify its query, but
    I keep getting a data binding error. I'm pretty sure what's causing
    it is the fact that I'm using the same subreport twice because if I
    save a copy of the same subreport with a different name and include
    it instead of repeating the same subreport things work fine. Any
    good reason why using the same subreport twice shouldn't work, or
    any solution t o this problem?

    Most certainly - you add the second audio track to the second audio stream for the track (A2). You can then set your menu buttons to play the track with either version of the audio. This is generally how things are done when there is a directors commentary, or where there are different types of audio (say, Dolby 5.1 and a standard stereo track for the same footage) that the viewer can choose between.
    Have a read of this, too:
    http://www.editorsbin.com/authoring/setupandresume.html
    There's a lot of additional info there to help you on your way.

  • What if i accidentally purchased the same song twice?

    i just purchased some songs with a gift card & just noticed that i've got the same song twice! not sure how it happened--it's happened before & i was wondering what to do about it....can you get the money back for that? thanks lots!

    Hi, sarabette.
    I would recommend reporting a problem with the purchase via the steps in the article below.  You can either do this via the email invoice received or by accessing your purchase history.
    How to report an issue with your iTunes Store, App Store, Mac App Store, or iBookstore purchase
    http://support.apple.com/kb/ht1933
    iTunes Store & Mac App Store: Seeing your purchase history and order numbers
    http://support.apple.com/kb/ht2727
    Cheers,
    Jason H.

  • When i watch vids on any website i see the same vid twice. One on top of the other with a green line dividing them

    When i watch vids on any website i see the same vid twice. One on top of the other with a green line dividing them
    == This happened ==
    Every time Firefox opened
    == Today

    First of all, Firefox support SUCKS! I am looking onto Opera or Chrome.
    Here is my solution. I have WinXP 64 bit with a Nvidia card. I had the same issue and all I had to do is update the video drivers and it fixed the problem. Try this out.

  • Hi i have download os x mavericks system preferences go to users & groups click on account picture scroll down to Linked click on Linked i have the same picture twice how do i delete these pictures

    hi i have download os x mavericks system preferences go to users & groups click on account picture scroll down to Linked click on Linked i have the same picture twice how do i delete these pictures

    I am not connected even though I am.
    It is showing you are connected, but the signal strength is low.
    bookmarks
    Those are what is in the Favorites bar. They can be changed by deleting the from the Favorites bar. To add others, add them to the Favories bar.
    How can you remove that app?
    You can't.
    Un-install CleanMyMac. It can damage the entire system.
    Myth of the Dirty Mac
    CleanMyMac - Uninstall
    CleanMyMac2 Un-install
    If you are going to re-install, make sure you have 1 or preferably 2 full backups using Time Machine and/or a clone.
    Try booting into the Safe Mode using your normal account.  Disconnect all peripherals except those needed for the test. Shut down the computer and then power it back up after waiting 10 seconds. Immediately after hearing the startup chime, hold down the shift key and continue to hold it until the gray Apple icon and a progress bar appear. The boot up is significantly slower than normal. This will reset some caches, forces a directory check, and disables all startup and login items, among other things. When you reboot normally, the initial reboot may be slower than normal. If the system operates normally, there may be 3rd party applications which are causing a problem. Try deleting/disabling the third party applications after a restart by using the application un-installer. For each disable/delete, you will need to restart if you don't do them all at once.
    Safe Mode
    Safe Mode - About

  • How to send IP Addr in an alert and receive the same?

    1. I have an 'alert handler' process that's sending an alert using 'Create Alert' activity.
    2. I have a listening/receiving process that get's triggered by this alert from the 'alert handler' process.
    3. The listening/receving process telnet's to a router. I want the listening/receiving process to extract the IP Address of the router from the alert that triggered this listening proecess.
    4. I tried sending the IP address of the router as 'Parameter 1' using the 'Create Alert' activity in the 'alert handler' process.
    5. In the receiving process, in order to telnet to the router, I chose 'Execute on this target reference' option for the 'Open Terminal' acitivity, but was unable to access 'Paramter 1' of the alert. It shows greyed out.
    Question:
    What is the best way to send the IP address of the router in the alert and receive the same in the listening process such that I can telnet to that router in the listening process?
    Please note: tried creating a 'terminal target'...there is no way for me to supply IP address info from outside into terminal target...looks like terminal target only takes a hard coded IP address or host name.
    Will appreciate your prompt response please.
    thanks,
    Jamal

    We discussed this, but just to post here. To view alert or other tasks parameters via the reference variable fields you have to select the show advanced checkbox.

  • How do I use the same photo twice in a slideshow created in iPhoto'11?

    I created a slideshow in iPhoto'11 and would like to use the first slide also as the last slide.
    How can I use the same photo twice?

    Seems you have to duplicate the photo in your Library to add the same picture twice.

  • How can I retrieve the same figure twice in report?

    Hi guys,
    If we have the same selection twice in the same report, it only retrieves the figure once (see example below, were the same period has been chosen twice). Is there any setting I can adjust, so it will retrieve the figures for double-selected members also?
    Thanks,
    Dorthe

    Hi Dorthe,
    No issues in my system (BW 7.3, BPC SP12, EPM SP16 patch1):
    B.R. Vadim

  • HT204053 my wife and i have seperate itunes accounts is there a way we can link our accounts to share songs so we dont have to pay for the same song twice?

    When the first ipad came out i set it up and created an itunes account, since then she got an iphone and an ipad and everything was good. I had an android but wanted to try out the iphone. When i set it up ut jumpled all of our contacts, apps, and everythin. it was a mess.
         Since, i purchased and ipad 2 and an iphone and to keep our stuff from combing i used a different computer and created an new apple ID for myself so our info wouldnt combine, I was wondering if i did the right thing or if i should have went about it a different way. I was going to see if there was a way when she purchased a song i could get it. I dont want to pay for the same song twice and only want to share songs. If i cant do this can i copy her library and paste it into my itunes??
    Any help wouldl be greatly apprecieated we both have icloud set up but i cant figure out the best solution.

    Welcome to the world of digital media. Your can't really transfer it. I don't know what the rules are about transferring to your spouse but I do know that in some cases when you die, your heirs cannot inherit your digital media. This is why there is still an advantage to buying the CD since the usage rights belong to whomever holds the physical media.
    A possible workaround is to burn the songs to a music CD with yout account (tracks only without song titles) and then having your wife upload it as a regular music CD onto her account. It's been a while since i've done this so I'm not sure if it would work now.
    Please note that I'm not advocating copyright and/or TOS violations. I'm only suggesting ways to copy music for your own personal use which has traditonally been permitted. I only did this because I wanted to convert iTunes songs to mp3 files so I could burn them onto a data CD for use in my car. It would make sense that since married couples are a joint entity, this would be personal use.
    Also, I'm not a lawyer so don't take this as legal advice.

Maybe you are looking for

  • What web service & xml will be used for deleting the packged epub/pdf file from Admin Console

    What web service & xml will be used for deleting the packged epub/pdf file from Admin Console? I am able to delete the files from Admin console directy but not able to get which web service is calling on deleting the file from admin console: Mangal

  • How to install english language verion of Zen V pluss Applicat

    Hi, I am trying to install the latest software for Zen V plus, but instead of asking for the language it goes immeditately to Chinese. I suspect this is due to the fact that i have chinese language? (PRC) installed on my computer, but it is NOT the l

  • Photoshop 7.0  problems.

    I have photoshop 7.0 and have had no problems for years. Today when I was editing a photo it froze. It happened again when I click Image >adjustments>brightness and contrast....it freezes and won't let me close photoshop. I can minimize photoshop and

  • Calling  r25con32.exe  from the command prompt

    how to call r25con32.exe from the run prompt.

  • Question about using arrays

    I have a web page written with combination of Front Page and Java is included. I have 4 drop down boxes which work in sequence. select an item in the first, it then asks you to select in the second box, then 3rd then in the final 4th box. This was se