RowInconsistentException does not show for the 2nd time

Hi,
I have a simple page with a few input fields and a save button.
The input fields are derived from a ViewObject based on a single Entity Object.
I open the page in two browsers. I follow the below steps:
1) make changes in first browser
2) make change in second browser
3) save changes in first browser - it is successful
4) click on save on second browser - a RowInconsistentException is thrown
5) click on save again in the second browser - the changes gets saved, I was expecting the exception to be thrown again, but it is not thrown.
I tried debugging it by printing the posted attributes (Entitiy.getPosetdAttribute()) before saving.
On step-4 the posted attributes are different then the ones in DB, so the exception is thrown, that is fine.
But on step-5 the posted attributes are same as the ones in the DB, (it looks like they are updated from the DB again on step-4) and the exception is not thrown.
But in my page I want the save in step-5 to fail so that the user has to requery the page. How can I do that?
Any Idea!!
Thanks,
Anil

If you want to keep getting the JBO-25014 and not refresh the values from the database:
boolean[] attributeChanges;int numberOfAttributes;
public void lock() {   
Object[] currValues = saveCurrentValues();  
try {        super.lock();    }
catch (RowInconsistentException e) {        revert();        resetCurrentValues(currValues);        throw(e);    }}
private Object[] saveCurrentValues() { 
attributeChanges = new boolean[getAttributeCount()];    numberOfAttributes = getAttributeCount();    // Save the current values of the attributes (so that we can restore them later)   
Object[] currValues = new Object[numberOfAttributes];      
for (int i=0; i<numberOfAttributes; i++) {       
currValues[i] = getAttribute(i);        attributeChanges[i] = isAttributeChanged(i);    }    return currValues;}  
private void resetCurrentValues(Object[] currValues) {   
for (int i=0; i<numberOfAttributes; i++) {         // Set the EO instance with the saved values                   System.out.println("Attr["+ i + "] :" +currValues[i]);                 
if (attributeChanges[i]) {           
populateAttributeAsChanged(i, currValues[i]);         }
else {            
populateAttribute(i, currValues[i]);         }    }}
Sorry about the formatting. The new forum mess everything up
Timo

Similar Messages

  • Aggregator-created EXE does not autorun chapters the 2nd time it is viewed on a machine

    I created an .exe using the CP6 aggregator. When the .exe is opened, the first chapter runs automatically, as expected. It always runs automatically on my machine. However, when my colleague opens the .exe the first time, the first chapter runs automatically. But when she closes and re-opens the .exe, the TOC and aggregator frame are displayed, but the first chapter does not run automatically. Once she selects the first chapter in the TOC, it runs. We have tested this on 5 machines. On two of the machines, the first chapter runs automatically no matter how many times the .exe is opened/closed. On three of the machines, the first chapter runs automatically the first time the .exe is run on the machine. But once the .exe is opened on the machines for the 2nd and subsequent times, the first chapter does not automatically run.
    Additional info: One of the machines where it works properly and one of the machines where it does not work properly both had the exact same Flash Player version. So it's not a version issue. However, when we updated the Flash Player version on another machine, it seemed to "reset" the .exe. When it was opened on that machine the first time after the update, it ran the first chapter as expected. However, on subsequent attempts the first chapter did not open automatically again. So it may indeed, have something to do with Flash Player, but I'm stumped. Any help would be greatly appreciated.

    I was finally able to track this back through by starting from scratch and received an error code, which led me to this post:
    https://forums.ni.com/t5/LabVIEW/Error-2147319779-Excel-ActiveX-and-Broken-LabVIEW-Icon/td-p/2354776
    Deleting the "1.7" items solved the problem.

  • Photoshop Elements does not start for the second time

    Hello,
    our customer has problem with PS Elements 12. He can start it for the first time and everything works fine. But when he closes the program and tries to start it again, it will not start. It doesnt even say anything. No error mesages or anything. He tried to instal a trial version of PS E 13 and it does the same thing.
    He's running Win 7 SP1 64 bit
    Any sugestions? Thank you.

    Hi,
    It has been known that the Welcome screen sometimes fails to close properly and prevents a second load.
    Most people have overcome the problem by creating a shortcut direct to the two main applications.
    Organizer: "C:\Program Files (x86)\Adobe\Elements 12 Organizer\PhotoshopElementsOrganizer.exe"
    Editor: "C:\Program Files (x86)\Adobe\Photoshop Elements 12\PhotoshopElementsEditor.exe"
    Brian

  • Page does not load for the first time

    Hi,
    When I enter the URL to load the page, it does not work, i.e I get page not found message. But when I refresh(F5) the page gets loaded. This is just not for the login page but all my report and form pages and this happens only for the first time I try to access in the day. I couldnt understand why it happens? Can someone help me to understand the problem I am facing?
    Thanks

    What does the appache log says?
    Your appache server home > Apache > Apache > logs > access_log.current_date
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • SIM card not supported for the 2nd time

    My initial iphone 4 was broken beyond repair, under warranty I forked out the cash to receive a replacement. A replacement which told me my sim was not supported - receiving a replacement micro SIM from my carrier it STILL DID NOT WORK. I sent my replacement away, and received a replacement for my replacement. SIM card still not supported. SIM works fine with any other iphone 4, i've tested it on several other computers and completed full restore. Is it just me or does Apple seem to be trolling me?

    I bought an iphone from o2 yesterday and got the micro sim activated today, inserted it and itunes says the sim carrier is not supported :S yet the phone is from o2 and so is the sim! And the sim works fine in a normal o2 phone when inserted with the bigger tray.
    I have taken it out and put it in again but no luck! I rang o2 and they said they are sending me a replacement micro sim but i have read about the problem being in the phone (well at least it was in the 3gs)!
    I'm so gutted - owned an iphone for 24 hours without using it think im going to o2 and then the apple shop tomorrow! Not at all happy...

  • The previewer does not show for the project itself only the events

    I recently bought Ilife 11 and installed it, before I left ilife '09 I was working on a video in imovie, So immediately I come to work on it after installing ilife '11
    I come to find that none of my current projects would appear in the previewer at the top right, only the events. I could hear the sound of the project, but not see the actual project, I found that if i view it fullscreen I can view the project... but we all know that you need to have the previewer view so you can edit text and stuff... Is there any way to fix this problem? I kinda wanted to get my video out by next wednesday, and at this point Imovie is unusable.

    Which iPad do you  have?
    http://support.apple.com/kb/HT5887
    only certain models support air drop

  • TS1410 My iPod shuffle ( 1st or 2nd generation) will not recharge and does not show when the doc is connected to my MacBook Pro. I'm running the latest updated version of iTunes.

    My iPod shuffle ( 1st or 2nd generation) will not recharge and does not show when the doc is connected to my MacBook Pro. I'm running the latest updated version of iTunes.

    Hello Jane Benstock,
    Thank you for using Apple Support Communities
    It sounds like the next best step to take would be to reset the iPod Shuffle.
    Check out this article named Resetting iPod shuffle found here http://support.apple.com/kb/HT1655.
    All the best,
    Sterling

  • I have an event in my calendar that was sent by someone who does not work for the company anymore and I am reminded 2 times a week. How can I remove it?

    I have an event in my calendar that was sent by someone that does not work for the company anymore and I am reminded 2 times a week. How do I delete it?

    Tap on the event to open the event. Click the 'Edit' button in the event bubble, then press the 'Delete Event' button at the bottom of the Edit pop-up. It's a little different for events that come through Microsoft Exchange, you tap the event to bring up bubble and click the 'Details' button, and then press 'Decline' to remove the event.

  • When Webdynpro popup is opened for the 2nd time, image is not shown

    Hi Experts,
    We have created a WebDynpro with a popup window.
    This is shown in an iView in the portal.
    If the popup is opened for the first time it looks good.
    If the popup is opened for the 2nd time the image is not shown and the title is shown with a different font.
    If we do a preview of the iView in PCD content area, the title and image is shown and the right font is used: also when you open this for the second time.
    If the iView is in a role the problem appears.
    How can this be solved?
    Thanks in advance,
    Joeri

    Sounds like a wrong reference to a stylesheet.
    Use IE Developer Toolbar or Firefox to debug the code. Or view source (of the popup) and search for .css. Do the same for the popup that doesn't work. Check if there are differences.
    Good luck!
    Noel

  • The approver does not show in the approval preview after saving sh. cart

    Hi ,
    I would appreciate if anyone can reply me for fixing the problem.
    Problem: The approver does not show in the approval preview after the shopping cart is saved, however before saving the shopping cart it shows the approver in the approval preview. We are using two workflows: WS10000060 – Auto approval and WS10000276- 1 level spending limit approval.
    Details of the problem:
    The following steps specify the problem in detail , it is applicable for both the workflows “WS10000060 – Auto approval and WS10000276- 1 level spending limit approval.”
    1.     Shopping created
    2.     The approval preview shows the approver ( please see #1 in the attached document) before saving the shopping cart.
    3.     Shopping cart is saved.
    4.     After saving , Check status transaction shows the shopping cart in status “awaiting approval”
    5.     The section approval shows “ No workflow started , application error occurred”
    6.     T.Code SWI1 shows the workitem created for the shopping cart but in error.
    7.     The work item container does not show any agents
    I would appreciate it anyone can reply as to how to fix it ASAP.
    Best Regards
    Pawan

    Hi Disha,
    I have synchronised through SWU_OBUF several times since yesterday , but still at the same place.
    In the workflow customising - The only red entry which I have is for check entries from HR control tables under Mainiatin definition env. and Mainiatin guded procedure for gateway under guided procedure (new in SRM 5.0) .The verification workflow works fine . Also I think these entries will not impact the workflow functionalhese were red even in my earlier system .
    SLG1 shows all green entries and there are no entries in RZ20.
    I have specified task TS10008126 as general task as I want anyone who is identified by SLAapprover should be able to process the workitem and as per documentation I can specify this task as standard task.
    What should I do.. , anything am I missing .
    Thanks and Best Regards
    Pawan

  • I have an apple ID which I use to sign into icloud for my iPad and iPhone.But when I use the same ID for setting up iCloud on my Macbook it says INCORRECT ID or password, try again. I tried changing my passwords but it does not work for the macbook.

    I have an apple ID which I use to sign into icloud for my iPad and iPhone.But when I use the same ID for setting up iCloud on my Macbook it says INCORRECT ID or password, try again. I tried changing my passwords several times but it does not work for the macbook.

    You will have to provide the correct password to delete the existing account, if you have tried but are not getting the password reset email, contact Apple for assistance by going to https://expresslane.apple.com, then click More Products and Services>Apple ID>Other Apple ID Topics>Lost or forgotten Apple ID password.

  • After importing images from my card using LR 5.4, the GPS data does not show in the metadata panel. However, when I look at the imported images using Bridge, the GPS data is visible. Anybody know why LR is not seeing the GPS data? Camera is Canon 6D.

    After importing images from my card using LR 5.4, the GPS data does not show in the metadata panel. However, when I look at the imported images using Bridge, the GPS data is visible. Anybody know why LR is not seeing the GPS data? Camera is Canon 6D.

    Ok, the issue seem to be solved. The problem was this:
    The many hundred files (raw and xmp per image) have been downloaded by ftp in no specific order. Means - a couple of files in the download queue - both raw and xmps. Most of the time, the small xmp files have been finished loading first and hence the "last change date" of these xmp files was OLDER than the "last change date" of the raw file - Lightroom then seem to ignore the existence of the xmp file and does not read it during import.(a minute is enough to run into the problem)
    By simply using the ftp client in a way that all large raw files get downloaded first followed by the xmp files, we achieved that all "last changed dates" of the xmp files are NEWER than the related raw files. (at least not older)
    And then LR is reading them and all metadata information has been set / read correctly.
    So this is solved.

  • Error : DB Mapping does not exist for the Host in iSetup

    Hi Experts,
    We configured iSetup for migrating data from source to target, while configuring instance mapping has been completed successfully but while extracting data from source to target is showing below error :
    Error : DB Mapping does not exist for the Host:<host name > with Two Task: TEST
    EBS Version : 12.1.1 with 11.1.0.7 DB
    OS : RHEL 5.3 x86_64
    Any idea much Appreciated .
    Thanks in advance,
    Regards,
    900076.

    900076 wrote:
    Hi Experts,
    We configured iSetup for migrating data from source to target, while configuring instance mapping has been completed successfully but while extracting data from source to target is showing below error :
    Error : DB Mapping does not exist for the Host:<host name > with Two Task: TESTIs this the complete/exact error message?
    EBS Version : 12.1.1 with 11.1.0.7 DB
    OS : RHEL 5.3 x86_64
    Any idea much Appreciated .
    http://docs.oracle.com/cd/E18727_01/doc.121/e12899/toc.htm
    http://docs.oracle.com/cd/E18727_01/doc.121/e15842/toc.htm
    Thanks,
    Hussein

  • OTL Error - Hrs - Element link does not exist for the duration of the entry

    Hi,
    We had a few new people start just before xmas however when the person entering their record did it, they didn't date-track the additional assignment time information record to the start of the week (they did however correctly date-track their employee and assignment record) so when the timecard was filled in errors were thrown up.
    Since then I have gone back into the employees assignment time record, purged it and then re-created it effective from the week beginning.
    However when we try to enter time for them now using delegated self service, the following error is shown for the two days which were originally excluded from the date-tracked record:
    Hrs - Element link does not exist for the duration of the entry Cause: The link has been purged or date effectively deleted. Action: Check the effective start and end dates on the link definitions for this element. The original record should have been created from the 19th dec 2009 however was done from the 23rd by accident. I have since been in and replaced it with a record effective from the 19th.
    I have re-run the security list generation (we are using static list).
    The only thing I can find on metalink is 372086.1 which doesn't really describe the problem or help!!
    The people don't appear in the timekeeper form though which is strange. I really can't see any reason why their record isn't valid - no data is missing. Do I need to run a job to update the information or something?
    We are using 11.5.10.2
    Thankss

    Well would you believe it!? After much late night meddling around, I noticed one employee worked! There was absolutely no difference in any settings between his record and a persons who did not work. So I went into another employees record, changed his name and saved (correcting). Tried again and he worked fine! So, just by changing the employee name it seems to have worked for self service! I still cannot see them in timekeeper which is worrying however at least we can get time in for them now!
    If anyone knows why I may not be able to see them in timekeeper (even using an un-secured responsibility) then that would be a great help! :)

  • In iPhoto 09 Info does not show tags on aperture, time, iso etc. Other tags like place, pixels are shown. There is no little arrow on this info menu to go to full info box. How come ?

    in iPhoto 09 Info does not show tags on aperture, time, iso etc. Other tags like place, pixels are shown. There is no little arrow on this info menu to go to full info box. How come ?

    It does. Photos Menu -> Show Extended Photo Information.
    Then note the disclosure arrows as indictaed in this thread:
    https://discussions.apple.com/message/16512794#16512794
    Regards
    TD

Maybe you are looking for

  • Set IP Address on 3550 and 2950

    Hello all, This is probably a simple question. I have 3 switches that are gigastacked on top of one another. I would like to assign each switch an ip address in order to manage the switches. Below is more informaiton on the switches. SW1-3550 SW2-355

  • Prd server restore/copy on different hardware

    Hi Everyone, Our Client has  PRD SERVER running ECC 6.0   . u2022 SAP Release and Basis Release ECC 6.0, Kernel 7.0, Sup. Package level 15. u2022 ORACLE 10G u2022 Operating System : Windows (2003) NT 5.2 Build 3790 SP2 u2022 Hardware Model and Vendor

  • XML Messages generated by XI using namespace aliases...

    I have a question regarding the XML messages that are generated by XI as part of the mapping, etc. I receive e.g. the following XML document in the payload of my message sent to a legacy system: <ns1:ArticleRequest xmlns:ns1="http://www.basis.ko.com/

  • Ejecting iPod from iTunes

    It seems whenever I update my iPod, and the iPod update is complete message comes up I try to to eject my iPod, but after several seconds of no response, a message pops up saying iPod cannot be ejected because some of its files are still in use. What

  • Package compilation problem in WinXP

    I am creating a simple program to throw a dice but have some problem with packages. I have 2 files, in the directory, C:\Dgame\Dgame\Dice.java and C:\Dgame\Dgame\Dealer.java . I packaged both of them into a package called Dgame (using "package Dgame;