ActivateStateForUndo and passivateStateForUndo . We need explain.

I have problem with delete record if i generate Exception.
I am analyse source of jHeadStart and discover than passivateStateForUndo work incorrect
i comment
request.setAttribute("undoId",undoId);
this line , my web application work correct
protected void passivateStateForUndo(DataActionContext daContext)
mLog.debug("Executing passivateStateForUndo so we can restore deleted rows when transaction fails");
// We have created an ArrayList of rows to be deleted and at the end of the
// model update we first passivate the current state, then remove all the rows.
// We do this because when the commit fails because of some busines rules,
// we have to undo the deletion of the rows so we can display them again on
// the UIX page. We cannot do a simple rollback because then we would loose
// the changes made to other records as well. (With JSP as View this is not
// the case, because then we use Form Beans to re-display the entered values)
HttpServletRequest request = daContext.getHttpServletRequest();
DCBindingContainer container = daContext.getBindingContainer();
// get the am through commit binding
JUCtrlActionBinding ab = (JUCtrlActionBinding)container.findCtrlBinding(COMMIT);
if (ab!=null)
ApplicationModule am = ab.getDataControl().getApplicationModule();
String undoId = am.passivateStateForUndo("beforeModelUpdate", null, 0);
// container.refreshControl();
// request.setAttribute("undoId",undoId);
else
mLog.debug("Cannot passivateStateForUndo, no Commit binding found to get to the application module");
and i correct delete some records,
why?

activateStateForUndo and passivateStateForUndo are ADF BC functionality, which can be compared to 'middle tier savepoints'. As the inline documentation explains, it is very important that this is done to ensure correct handling of deleted rows. If we would not do that, the end user would not be able to correct his mistake if he tried to delete a row that he was not allowed to delete.
From other posts you made I know that this situation only occurs in a very specific situation for you, namely when you throw a JboException on the 'remove()' method of the EntityImpl.
Before we can investigate this further, we'll need to know which JHeadstart and JDeveloper version you are using, and a description of how we can reproduce this situation in a standard HR application.
Kind regards,
Peter Ebell
JHeadstart Team

Similar Messages

  • No ACL deny logs for Traffic not matched by Static Object NATs and ACL. Need Help.

    I start noticing that I do not see any denied traffic coming in on my ACL.  To better explain, lets say I have this config.
    ### Sample Config ###
    object network webserver
    host 192.168.1.50
    nat (dmz, outside) static X.X.X.X service tcp www www
    access-list inbound extended permit ip any4 object webserver eq www
    If I generate a traffic from the outside let's say a traffic that is trying to access X.X.X.X via TCP Port 8080 which obviously does not have any NAT entry to it going to my DMZ, I don't see the ACL denies it anymore but instead comes back with a Drop Reason: (nat-no-xlate-to-pat-pool) . On the packet trace I got this. (Below) it seems that does not even hit the ACL as there is no xlate found for it, at least to what the drop reason says.
    Phase: 1
    Type: CAPTURE
    Subtype:
    Result: ALLOW
    Config:
    Additional Information:
    MAC Access list
    Phase: 2
    Type: ACCESS-LIST
    Subtype:
    Result: ALLOW
    Config:
    Implicit Rule
    Additional Information:
    MAC Access list
    Phase: 3
    Type: ROUTE-LOOKUP
    Subtype: input
    Result: ALLOW
    Config:
    Additional Information:
    in   0.0.0.0         0.0.0.0         Outside
    Result:
    input-interface: Outside
    input-status: up
    input-line-status: up
    output-interface: Outside
    output-status: up
    output-line-status: up
    Action: drop
    Drop-reason: (nat-no-xlate-to-pat-pool) Connection to PAT address without pre-existing xlate
    Before, using a regular Static PAT on ASA Versions 8.2(5) below, I could get the deny logs (ASA-4-106023). Generally, I use these logs, and are quite important for us specially during auditing.
    My question is how can I generate logs for these type of dropped traffic on the ASA 9.1 Version? 
    Any comments/suggestions are gladly appreciated :)
    Regards,
    John

    I believe, but am not 100% sure, that the reason you are not seeing the ACL drop but a no NAT matched is because of the changes from 8.2 to 8.3 in the order of how things are done.  In 8.3 and later you need to secify the real IP address when allowing packets in, and this is because NAT happens before the ACL is matched.  So since there is no match on the NAT the packet is dropped then and there, never reaching the stage where ACLs are checked.
    As to seeing drops in the ACL log...You might want to try adding an ACL that matches the NATed IP...but I don't think you will have much success with that either.  My guess is that there is no way around this...at least no way I know of.
    Please remember to select a correct answer and rate helpful posts

  • Do the Cache, CacheStore, and CacheLoader all need to run in the same JVM?

    do the Cache, CacheStore, and CacheLoader all need to run in the same JVM?
    Any help is appreciated.
    Thanks.

    they can be in differnt DP with no problem.
    Now question:
    1-MOH multicast/Unicast? (Multicast MOH ONLY support G711, so that could explain changing the DP fixnig the problem)
    [You can create a DP/region for MOH if multicast to talk G711 to everybody and the problem will get fix]
    Please Kudos/rate if this help!

  • I keep getting the message when I open Muse CC, that the latest version is here and that i need to download it... But when i click "Download Latest Version" and it takes me to the applications manager it tell me that Muse is "Up to date"..... I also downl

    I keep getting the message when I open Muse CC, that the latest version is here and that i need to download it... But when i click "Download Latest Version" and it takes me to the applications manager it tell me that Muse is "Up to date"..... I also downloaded a template from Muse and it tells me when I open it that i also need the latest version... Can anyone explain why Iam getting this message and Why I can not up date?... Much appreciated

    Download the creative cloud desktop app using the below link:-
    Download Adobe Creative Cloud apps | Free Adobe CC trial
    And then check if you get install Button for Muse CC 2014.3
    Regards,
    Neha

  • Installing 9ias step by step and/or workarounds needed!

    Hi:
    Is there any document (technet or metalink) explaining step by step instructions and/or workarounds needed to install 9iAS infrastructure and complete ias (forms, reports, portal, wireless) on same machine (WINDOWS 2000)?
    I've installed it on one machine but my REPORTS server do not work and i don't know anything else to do to put it working (the reports server startup and after that shutdowns immediatly without any warning).
    Is there any issue found after releasing 9iAS for Windows 2000?
    Would appreciate any help.

    This will definitely be my endgame.
    But since this code just came out, I am not willing to jump direct to it, yet.
    Also, I haven't found much documentation on how to make this transition, i.e., exactly what settings on the ASA will make it replace the IPN, and if any changes need to be made on the Admin/Policy/MnT server.
    Then as soon as I make that transition, I will be able to rebuild the 3315 (have 2) to be failover between the two locations.

  • Hello, we have both Creative Cloud and Creative Cloud for teams. Can you help me with the difference and if i need to have both?

    Hello, we have both Creative Cloud membership and Creative Cloud for team. Can you help me with the difference and if i need to have both? We have 9 employees that are using it. Just not sure if i'm paying for something i don't need.
    Thank you

    Please refer to Creative Cloud Help | Creative Cloud / Common Questions
    CC is for retail use with 20 GB of storage space, CCT is where number of seats are purchased & assigned by one program admin where each seat gets 100GB of storage space.
    You can not have both the CC & team in one account as it will only provide you added storage space of 120 GB but you can activate the CC any of them or either of them twice as CC is based on Adobe ID.
    Regards
    Rajshree

  • Need lightroom 4.4 asmac is 10.6.8 and not compatible with anything higher. Does this come with the creative cloud? Would really like a disc but that doesn't seem to happen anymore. Currently have cs4 and d7100 hence need 4.4 to open raw Any idea

    need lightroom 4.4 asmac is 10.6.8 and not compatible with anything higher. Does this come with the creative cloud? Would really like a disc but that doesn't seem to happen anymore. Currently have cs4 and d7100 hence need 4.4 to open raw Any ideas? Is this now customer service or does adobe have a customer service team . Site not user friendly. Thanks

    Graham Giles wrote:
    Have you seen this type of problem before? I think it could be a serious issue for anyone in a similar position.
    No; but then, I've not had occasion to use TDM. I've been using firerwire drives for over 10 years, both FW400 and FW800, with no issues except a bit of instability using a B&W G3 machine.
    TDM should be safe. Using cautious, manual copying of files from the Target machine to the Host machine should not result in unexpected loss of files or damage to the Target drive's directories. It should behave exactly the same as if it were an external (to the Host) firewire drive.
    •  I don't suppose there is anything I can do to 'put back' lost items from a separate Time Machine drive which has an up to date backup on it.
    There is probably a way to do that - seems to me that's one of the reasons for a Time Machine volume.
    On the other hand, if the Time Machine volume is rigidly linked to the now-absent OS on the original drive, there may be no way to effectively access the files in the TM archive.
    I know that using a cloned drive would work well in this instance.
    I have no experience with Time Machine, so perhaps someone who has will chime in with suggestions.
    With the machine in TDM with the other machine, have you tried running Disk Utility to see if you can effect repairs to the drive?

  • HT3986 I've had MS Office:mac 2011 on my imac for around 18 months now.  Outlook has just disappeared and when I find the file and open it it tells me that there is a problem and I may need to re-install it.  I've just done this using the installation dis

    I've had MS Office:mac 2011 on my imac for around 18 months now.  Outlook has just disappeared and when I find the file and open it it tells me that there is a problem and I may need to re-install it.  I've just done this using the installation disc which, then said the installation had been successful.
    Outlook is still not working.  Can anyone please advise me on what to do next.

    Remove MS Office 2011 completely (here are instructions) and reinstall it.
    It's not a simple or fast process but it is important to follow all of the steps in order to get all the files that Office scatters around. This will not affect your data files, only MS Office and its preferences.

  • Upgrade of our 10.4.11 laptop to 10.5 is accomplished and we now need to upgrade Quicktime and iTunes; however, the user name and password is now not working after the upgrade to 10.5.

    Object is to sync address and calendar between laptop with Max OS 10.4.11 and iPhone. Upgrade of our 10.4.11 laptop to 10.5 is accomplished and we now need to upgrade Quicktime and iTunes; however, the user name and password for the laptop is now not working after the upgrade to 10.5., though it was working prior to the upgrade, for file sharing.

    @ BDAqua > I tried your suggestion but no luck. holding opt+command just gave me a blue screen and it rebotted, pushing the disk out of the drive. Yes, the macbook has 1 gb of ram. I realize that the min req. call for 2 gb of ram so i've got an order in for another dimm to put into the machine. Thanks for your suggestions.
    @ a_brody > Yes. The machine was plugged into a power source. The disk promts you to do that and i recall aspect this form other installs. Thanks for the reminder tho! ( btw your second post is like greek to me man!) 
    @ Kuncklesmac > You're right about Snow Leopard being an upgrade from Leopard. I'm aware of this. And yes previously i've been told by Apple that I needed the Box Set (not the family pack.  i am using the family pack for OS Snow Leopard) to upgrade my 10.4.11 mac - they never mentioned adding ram but i figured that out on my own and an apple specialist recommended it when i purchased Snow Leopard and confirmed that I coul duse the Snow Leopard to upgarde from Tiger (10.4.11). I've also read extensively (as i said above) that it isn't necessary (always) to buy the box set. Several 10.4.11 users report having upgraded using the Snow Leopard upgrade disk only (not the Box Set) without trouble on intel macs (also see the apple link i posted). So i'm just ondering how they did it and i cannot. 
    Thanks fo rall yor help!

  • I have updated to itunes 10.5 and now it doesn't recognize our iphones and says we need a driver installer but then throws a notice saying an error occured. Anyone know anything about this?  :)

    I have updated to itunes 10.5 on my Mac computer and now it doesn't recognize my iphones and says i need to install a device driver but when i try to install it it throws up a notification saying an error occured and to contact the makers of my device 's suppot website.  Anyone know?

    Have you tried repairing your application from within the Control Panel?

  • My ipod touch is telling me that the skype and twitter apps need updating. When I try to run them they fail. I have tried deleting the apps via itunes but it doesn't work and I have tried updating the apps via itunes and it says they are updated.

    My ipod touch is telling me that the Skype and Twitter apps need updating.  When I try to update them they both fail. I have tried numerous times.  I have tried connecting the ipod to itunes and removing the apps, to reload them but that does not work either.  If I try and update the apps through itunes the system tells me they are updated.  Can anyone assist please?

    - Try a reset. It cures amny ills
    Reset iPod touch:  Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Have you tried deleting them from the iPod and then redownloading them dorectly to the iPod?
    Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • Have CS5 and CS6.  Need to reduce size of file from 6Mb to 2 Mb for contest purposes without losing original

    Have CS5 and CS6.  Need to reduce size of file from 6Mb to 2 Mb for contest purposes without losing original

    Just save the document to a new jpeg file name using a lower quality setting or re-size the image down in  size the save a high quality smaller new jpeg image.

  • I have a macbook pro with a mini display port out and would like to know how to connect the video from my mac to a TV with old RCA input video, or a TV with S-video imput. How can I do this, and do I need a video converter?

    I have a MacBook Pro that I want to hook up the Mini Display Port video out to a TV with RCA video imput, or a TV with S-video iimput.
    How do I do this, and do I need a video converter?
    Dennis

    there's an adaptor for mini dvi to s-video
    a well known auction site would yield results if apple don't stock it

  • My Apple TV all of a sudden refuses to show my movies from my MacBook and says it needs to set time network. What is that?

    My Apple TV all of a sudden refuses to show the movies from my MacBook and says it needs to set time network. What is that?

    Welcome to the Apple Community.
    The Apple TV should set it's time automatically from the network time server, if it isn't doing this try restarting the Apple TV by removing ALL the cables for a 30 seconds, if this fails try resetting or restoring it.

  • My ipods disabled and it needs to connect to itunes. During the restore a window pops up and says i need to type the password into my ipod but i can't. what do i do?

    My ipods disabled and it needs to connect to itunes. During the restore a window pops up and says i need to type the password into my ipod but i can't. what do i do?

    Then try DFU mode and then restore.
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings

Maybe you are looking for

  • How to upload multiple items of sales order?

    I have extracted open sales order and transferred it to an excel file. Some SO doument has multiple items on one SO. If I will upload that SO document (with multiple items) into a new server, how am I suppose to itemize that this document has multipl

  • Add tooltip text to a Custom Toolbar Item (attached to Skin)

    Hi Everyone, Does anyone know of a quick way of creating tooltip text when you hover over a custom button? I have created a Feedback button. I want the button to be labelled "Feedback" but would like the hover text to say something like " Send email

  • Fixing iBook power problem

    I wanted to share an experience I had fixing my son's iBook for a problem that seems common on this forum. The power light on the end of the charging cable was not always indicating the right color. The charging icor in the menu bar was often giving

  • Since the iOS 7.0.2 update, my iPad retina display is now experiencing white blurred screen, can you help me from this?

    Since the iOS 7.0.2 update, my iPad retina display is now experiencing white blurred screen, can you help me from this?

  • Too few parameters error

    hi, i keep getting the following error: SQLException in PAUserBean - getWorkNumber java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1.here is code: public String getWorkNumber(String Id) {      String work