Issue with same order being modified in multiple sessions upon simultaneous multiple login.

Hi,
I am facing a issue in the following scenario.
1. User logs into the site from firefox and chrome browsers with the same login credentials simultaneously.
2. From Firefox session, the user removes some items from his cart.
3. Now the user refreshes the cart page in chrome. The console throws a "RemovedItemException" and the page breaks.
Reason:
This issue occurs since both the user sessions are referring the same order object. The session scoped ShoppingCart component object holds the references to the commerce items that have been modified / removed from the order in other session. Now when it tries to access these objects, it throws a "RemovedItemException". In our site the error gets thrown from the mincart page fragment which first tries to access the removed items. I can put a <c:catch> tag to wrap and catch the exception but how can this be gracefully handled?
Please provide any ideas, solutions or suggestions if you have encountered a similar issue.
Below is the stack trace of the error:
Caused by: org.apache.jasper.JasperException: An exception occurred processing JSP page /cart/json/cartItems.jsp at line 16
13: <c:set var="itemsQuantity" value="${0}"/>
14: <c:forEach var="item" items="${items}">
15: <dsp:param name="item" value="${item}"/>
16: <dsp:getvalueof var="commerceItemClassType" param="item.commerceItemClassType"/>
17: <c:if test="${commerceItemClassType != 'giftWrapCommerceItem'}">
18: <c:set var="itemsQuantity" value="${itemsQuantity + item.quantity}"/>
19: </c:if>
Stacktrace:
at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:498)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:411)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:322)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:638)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:543)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:480)
at atg.servlet.WrappingRequestDispatcher.include(WrappingRequestDispatcher.java:116)
at atg.servlet.ServletUtil.invokeInclude(ServletUtil.java:3858)
at atg.taglib.dspjsp.IncludeTag.doEndTag(IncludeTag.java:812)
at org.apache.jsp.cart.json.cartContentsData_jsp._jspx_meth_dsp_005finclude_005f1(cartContentsData_jsp.java:701)
at org.apache.jsp.cart.json.cartContentsData_jsp._jspx_meth_c_005fotherwise_005f1(cartContentsData_jsp.java:673)
at org.apache.jsp.cart.json.cartContentsData_jsp._jspx_meth_c_005fchoose_005f1(cartContentsData_jsp.java:585)
at org.apache.jsp.cart.json.cartContentsData_jsp._jspx_meth_dsp_005fpage_005f1(cartContentsData_jsp.java:528)
at org.apache.jsp.cart.json.cartContentsData_jsp._jspService(cartContentsData_jsp.java:121)
... 178 more
Caused by: atg.repository.RemovedItemException: Attempt to use an item which has been removed: commerceItem:ci2126000003
at atg.adapter.gsa.ItemTransactionState.<init>(ItemTransactionState.java:385)
at atg.adapter.gsa.GSAItem.getItemTransactionState(GSAItem.java:2358)
at atg.adapter.gsa.GSAItem.getItemTransactionState(GSAItem.java:2301)
Thanks,
Tejas

Hi Nitin,
Thanks for the approach. However, this is an OOTB issue in CommerceReferenceStore module (was able to reproduce the same behavior in a OOTB CRS application as well) . The issue can occur not only when accessing a removed commeceitem but also during the checkout stages if user modifies the cart in a different session during checkout, the application would throw similar errors.
Is there a way using which i can reload the order object (something like refreshOrder pipeline) whenever i see a similar error? I did not find any OOTB droplet that can reload the order object from the DB.
Please suggest.
Thanks,
Tejas

Similar Messages

  • When is the next ios update and will it fix/address the issue with photos not being shown in chronilogical order?

    when is the next ios update and will it fix/address the issue with photos not being shown in chronological order?

    All of us here are users just like you. We have no inside info of when Apple products or operating system updates/upgrades will be released. The next iOS may not even change the issue you have.
     Cheers, Tom

  • Issue with sales order stock that is referencing a non-existing sales order

    We have an issue with sale order stock.
    Due to user error we have ended up with a negative quant of sales order stock in a bin. Further the error was due to mis-keying of sales order number. Hence this negative quant is referencing a sales order that does not exist.
    We need to get rid of this quant.
    I thought of cycling this quant off as a solution. And hence replicated the scenario in the test system. I was able to create a TO to cycle it off but cannot clear the differences from 999 . The error I get while trying to do this is "SD document not in database or has been archived" . This error is true since the sales order actually does not exist. So cycling it off did not work.
    Can anyone suggest how we can get rid of this negative quant of sales order stock ?
    Thanks

    Hi,
    You said that your user mistyped the SO number and it resulted in a -quant. In which transaction was it possible? If I give a non existing no. SAP doesn't allow me to book.
    If I were you I would check both in WM & IM what the user had done...step-by-step...
    Negative quant comes to existance in interim storage type if we book e.g. a GI. It should have started in IM...how was your user be able to do that??? If it was possible cannot you reverse the IM booking?
    (...if all else fails...cannot you create a SO document with external number assignment with the same number?...)
    BR
    Csaba
    Edited by: Csaba Szommer on Jun 24, 2008 8:31 PM

  • Anyone else had issues with phone network being unavailable on iPhone 4 since updating to iOS 5.0.1? My iPhone 4 is continually searching for a network and does not find my provider. I swapped SIMs with another iPhone 4 on ios 4 to confirm device problem.

    Has anyone else had issues with phone network being unavailable on iPhone 4 since updating to iOS 5.0.1? My iPhone 4 is continually searching for a network and does not find AT&T, my provider. I swapped SIM cards with another iPhone 4 running ios 4 and established this is a device problem, not a SIM card problem.

    Does the device get any signal? 
    Sounds like the device may have had a hardware failure.  If it is out of warranty, the only option is the Out of Warranty replacement.
    AppleCare is only an option if it is still under the original warranty.

  • Issues with Purchase order change documents

    Hi Gurus,
    I have some peculiar issues with Purchase order. The PO line item has deletion indicator set but I can't find who set the deletion indicator. The PO change documents doesn't show anything related to deletion indicator.
    Please help to fix the Issue.
    Regards,
    Senthil

    Hi
    Check it in Tcode SE16
    Table Name CDHDR and CDPOS
    Regards,
    Raman

  • Issue with RTL order in hyperlinks on Pages 5.2

    Hello,
    I am having an issue with the Arabic order when trying to add a hyperlink to a text in Pages 5.2. When I type the sentence without the hyperlink the order is perfect, however when I add the the URL link to the selected text the sentence order becomes corrupted.
    Could you please let me know if there is some feature that I am missing to apply or is just that the RTL support on Pages 5.2 is not very good?
    Do you have a workaround to this problem?
    So far the only way to solve it that I found it was to create a transparent text box with the link over the sentence. However I would like to found a better solution to this.
    Screenshots for reference:
    Correct order without link.
    Incorrect order with link
    Thanks in advance for your time and help.
    Leo

    negative101 wrote:
    Unfortunately I need to work on Pages 5.2 due to client requeriments. And also like you mention playing with the Text Direction is does not work since it change the whole paragraph direction and not just a specific selection.
    You client insists on .pages format?
    See this for other potential options regarding text direction:
    http://support.apple.com/kb/PH14203

  • Freegoods issue with internal order CO

    Dear Experts,
    I am facing a Problem with free goods issue,
    When I am doing sales order VA01 I am entering internal order number, once I complete the process flow it is crediting stock account (24240000) and debiting the COGS FG (50014000) account.
    When I am doing sales order VA01 without internal order once I complete the process flow it is crediting Stock account (24240000)  and Debiting the Free goods expenses account(60014010) (as per business process it is correct)
    With internal order also it should post to free goods expenses account.
    Kindly help me on this I am not able to trace.

    Hi
    Please check item category TANN settings.Also check in VTLA copy control  there is a feild "Update Cost", tick the feild.
    Please go through the links which may help you
    PGI accounting
    Regards
    Srinath

  • SCM Issues with Sales Orders Created through CRM

    Hi All,
    I'm trying to ascertain any issues with ERP processing that will not update orders created through CRM, i see there was a OSS Note some time back informing that the backorder reschedule program would not update orders created in the CRM system. Is this still the case and are there any other process that we should be marking as an issue?
    Thanks

    Hi Sirisha,
    The solution depends on the exact issue you are facing.
    The CRM Sales Order is created OK, but you only see the error when you open the Sales Order?
    If this is the case, then you can follow the steps below:
    1. Find the Message ID and Message No for the error message
    2. Use Program - CRM_MESSAGES_DELETE to delete error messages from the error producing Sales Orders.
    Let me know if this is not the issue you are facing.
    Regards,
    Nelson

  • IPad 3 iOS 8 iTunes Connectivity Issue with same PC

    Hi all,
    Thank you for reading my post.
    I have an issue with my iPad3 and iTunes. Basically, I had synced my iPad and my PC (Lenovo Thinkpad T400) a long time ago. I then formatted my laptop to keep it going and all. Now, I want to transfer an iMovie (~450 mb) by syncing but, I get an error saying that I must erase the iPad and then sync because I have a "different iTunes library" I don't know what's the point, but this is the exact same laptop running the exact same OS (MS Windows 7 Pro) and authorized (Trust this computer on iPad) but it still won't let me do this. I have a lot of pictures, videos and important emails on this iPad and under any circumstances, do not want to erase it. The iPad is 32GB and has 5gigs of free space. It doesn't connect to my Mac either.
    Please let me know if you can help at the earliest, ( gotta go places)
    Thanks a lot!!
    Matt

    Your post is quite confusing, for several reasons.
    First of all, you're talking about a Lenovo PC, but you have posted in the "iTunes for Mac" forum.  Your profile indicates you have a MacBook Pro, but it's not at all clear if that enters into your scenario.
    Secondly, it sounds like perhaps you're trying to use an iPad to do the "transfer an iMovie".  If so, that is the source of your issue.  The iPad cannot serve as a storage device to transfer iTunes data from one PC to another.  You must use your computer's backup to do that.  If you reformatted your laptop's disk, then it likely looks like a new computer to iTunes.  You must restore the old backup to move the iTunes data to the newly formatted disk.

  • Any issues with still images being too large?

    I am going to be given lots of images that were scanned at a high resolution (I think 300), so the file size and physical dimensions should be pretty large. I want to start placing these images into the timeline, even though I do not know yet which ones I will need to zoom in on and which I will not need to do anything with other than just have it display.
    1.) Are there any issues with placing lots of images like these into the timeline of a SD project at a higher resolution and larger physical dimension than maybe necessary?
    2.) If I want to use placeholder images, is there an easy way to later swap them with the real image, and have the swapped image take the properties of the placeholder image, such as the duration it lasts on screen and the fade transition before and after it?
    Thank you.

    1.) Are there any issues with placing lots of images like these into the timeline of a SD project at a higher resolution and larger physical dimension than maybe necessary?
    This is dependent on the version of FCP. If you're working with FCP 5.1.2 or later, still image processing is handled by the GPU. Depending on what graphics card you've got, it can be painfully slow even at SD resolutions because image size (pixel dimensions, not bit-depth) is what is relevant.
    2.) If I want to use placeholder images, is there an easy way to later swap them with the real image, and have the swapped image take the properties of the placeholder image, such as the duration it lasts on screen and the fade transition before and after it?
    In theory, you should be able to do a Paste Attributes and paste Contents but that functionality has been broken since FCP 5.x. It works, but not for the very thing that you'd need it to do - both images now need to be the same size, duration and matching timecode for this to work correctly in your case.
    However, you might be able to work around that limitation by trying this:
    Select your placeholder image in the timeline and copy (Commmand-C)
    Load your final image into the Viewer and press F11 to perform a Replace Edit.
    Be mindful of where your Playhead is in both the Viewer and Timeline, of course, as the Replace Edit uses the Playhead and not marked In or Out
    Select the newly replaced image and perform a Paste Attributes (Option-V), selecting the relevant attributes (Basic Motion, Crop, etc)
    Of course, this might not suit what you're looking to do since stuff like Center is pixel-based rather than percentage-based (like Crop is).

  • Different Production order number ranges with same order type

    Dear Friends,
    I am working on live project implementation.I am having four manufacturing plants.I am having one order type say PPLE, I am having two different versions say CM and CN.Now my requirement is can I maintain  two different number ranges for same order types within single plant .
    number ranges should be like,
    Plant          Version     Number ranges
    1210            CM           CM121008...
    1210            CN            CN121008
    1220            CM           CM121008
    1220             CN           CN121008
    and so on.here first two digit should be version,then plant and year followed by order number .
    Regards,
    Manoj Jadhav

    Hi manoj,
    You cant have two different number ranges for an order type in internal number range, but in external number range you can have two diffrent number ranges
    for example for one order you can start with CM1210080001 and other starting from CN1210080001.
    Just convince the client to have external number range
    Regards,
    Srini

  • Parallel processing issue withing same server

    hi,
    i need to perform parallel processing withing same server using work processes available in same server.
    suggest if this can be accomplished and explain the design if possible.

    Hello Venkata,
    You can achieve parallel processing by using CALL FUNCTION .... STARTING NEW TASK <task name>.
    In this case function module runs in asynchronous mode without stopping calling program.
    For more details you can refer following link:
    https://wiki.sdn.sap.com/wiki/display/Snippets/Easilyimplementparallelprocessinginonlineandbatchprocessing
    Thanks,
    Augustin.

  • Any issues with server 2008R2 being a backup AD when the Primary AD is a 2003 that was upgraded from NT

    Someone recently told me if a customer has a Windows 2003 server that originally came from NT which was upgraded to Windows 2000, then upgraded to 2003 as their primary AD, if you add a 2008R2 server as a backup AD, it will upgrade the forest, but there
    is an issue with the global catalog not properly replicating to the 2008R2 backup server and thus if the primary Windows 2003 server were to crash the backup 2008R2 server will not be able to authenticate users.
    Can you tell me if this is true?  It seems rather odd to me that if the 2008R2 is able to become a backup controller without any errors and does not report any AD or replication errors in the event log that it would not work if the primary AD failed.
    Thoughts?

    This is not true & never heard/seen of anything as such. The AD database either on windows 2003 or 2008 R2 contains similar objects & attributes, but few groups are only created when you transfer PDC role to windows 2008 & above DC esp if you
    are using RODC.Also, there is no concept of primary & secondary DC from windows 2000 & above. PDC & BDC concepts existed in windows NT not any more.
    The DC with GC role have bit more information because it contains partial information of the objects in other domain too. So, i would be taking backup of the windows 2008 R2 DC. As long as DLF/FFL is not enhanced you can run windows 2003 & 2008 R2 DC
    in coexistence.
    My suggestion would be transfer FSMO role on the windows 2008 R2 DC becasue may be at some point of time you would get rid of windows 2003 DC to enjoy full features of windows 2008 R2 AD.
    Awinish Vishwakarma - MVP
    My Blog: awinish.wordpress.com
    Disclaimer This posting is provided AS-IS with no warranties/guarantees and confers no rights.

  • Problems and Issues with Internal Order Transactions

    Hello I have a couple of problems with Internal Order Transactons.
    Its strange really, when I simulate in the development server. I do the following process:
    Assign Asset with IO -> Create PR with account assignment to an Asset -> Create PO with Reference to PR -> Create GR.
    Once this occurs, the transaction seems to reflect in particular reports such as List: Order by Cost Element, List: Budget/Actual/Commitments, etc.
    But when another user does a similar process in PRD, it doesnt seem to reflect in these reports.
    Also while, I cant seem to pass the GR if the Internal Order has not been released. The user was able to create a GR whose IO has not been released yet.
    These problems are quite striking to me. Does anyone know the possible causes of the situations at hand? Any feedback will be most helpful.
    Thank you all and good day.

    Ok never mind, seems I found the culprit (though the reason gives more questions than answers)! Thanks anyways

  • XML Parsing issue with same tag names at multiple levels.

    My XML has the same tag name , ID at different levels in the XML.
    <InventorySearch>
    <*ID*>ID1</*ID*>
    <interactionDate>2012-09-01T10:30:00Z</interactionDate>
    <DescribedBy>
    <value>Cycle Count extract</value>
    <Characteristic>
    <*ID*>ID2</*ID*>
    </Characteristic>
    </DescribedBy>
    <type>Cycle Count</type>
    <InventorySearchComprisedOf>
    <*ID*>ID3</*ID*>
    <quantity>
    <amount>1</amount>
    <units>EACH</units>
    </quantity>
    <itemDateComplete>2012-09-07T10:30:00Z</itemDateComplete>
    <itemStatus>Open</itemStatus>
    </InventorySearchComprisedOf>
    </InventorySearch>
    When I use the Extract function with XML Sequence, I am getting all the ID values concatenated.
    select extract(value(d),'//ID/text()').getstringval() as id1,
    extract(value(e),'//ID/text()'). getstringval() as id2
    from xxnbn_cc_response_xml_stg x,
    table(xmlsequence(extract(x.xml_column,'/InventorySearch'))) d,
    table(XMLSEQUENCE(extract(D.column_value,'//InventorySearchComprisedOf')))(+) E;
    Return values :
    ID1 - ID1ID2ID3
    ID2 - ID3
    Is this the right way to parse this type of XML?

    The answer would depend upon your version of Oracle
    select * from v$version
    and the desired result set you want to see.
    If you are 10.2 or later, than XMLTable would be easier to write, but I won't go that way until we know more about what you want to see.

Maybe you are looking for

  • PS report: multible selection for report selection criteria

    Is there a possibility to define multible selections in the report selection variables of a PS hierarchy report? I tried to define them via CJE6 -> EDIT -> General data selction and entered valiables in the FROM column and the TO column. But when I e

  • I have my HP OfficeJet Pro 8500 A connected to my Mac Book Pro on a Wireless network. It works and

    I have my Hp Officejet Pro 8500 A connected to my MAc Book Pro which is running Lion OS on a wireless network.  It works just fine and prints and everything.  The problem is a "HP Utility" window that pops up on my screen and says it is "connecting t

  • Usage of OWC-Webinterface with firefox deletes BPS-data

    Dear Experts, We know that excel OWC in bps-webinterfaces do not work with firefox. But as we cannot control the local settings at a user workstation it sometimes happens that a user opens a webinterface with firefox instead of MS IE. In this case wi

  • Appraisal Template no display in quality

    Hi, experts. I have created appraisal template in developement and then got transported to developement testing clint by SCC1 and find for testing allright. When i have transported the request to quality and production, Template is not visible in eit

  • E recruitment Approval workflow - Inbox issue

    Hi Experts, Im working in a  E recruitment module. So we have two systems one is HR system and Second one is E recruitment system. When ever the Candidate requested for the job, the candidate will be processed in E recruitment system and if the candi