Restore Save Point issue

We are facing a strange problem.
We have a popup taskflow with an implicit savepoint. Inside the taskflow we do a createInsert on a VO. In the popup we have a "cancel" button that return from the popup with the "restore save point" checked.
In our development environment we never found any issues. Last week, we installed the application in a "quality" environment, where we have many users using the system, and some times the restore save point apparently does not work and the application stays with inconsistent state (the VO's current row lost their bindings).
best regards,
Nuno

Hi,
Try this,
1. Change the locking mode in App module to "Optimistic" if its not.
2. Your managed bean should implements Serializable.
Thanks
Gopi

Similar Messages

  • Issues with Restoring Save Point

    hi,
    I'm attempting to programmatically restore a save point in a taskflow. The problem I'm having is that, only two of the fields are being populated. These two fields are drop-down lists bound to data controls. I also have a data control field which is also exposed as a drop-down list that isn't restored, and also several input text fields and a radio button that's also not restored. Could someone please help me out?

    Hi,
    You might try doing an executeQuery() on the relevant view objects after your restore - possibly a clearCache() AND an executeQuery(). That way, it shouldn't matter what has been submitted and not. Your table or form should show the data as it was before any changes were made (submitted or not).
    Regards,
    Andreas
    Edited by: AndreasNielsen on 2011-07-18 11:21

  • FRM-40512 ORACLE ERROR UNABLE TO ISSUE SAVE POINT COMAND

    Dear Friends
    I am getting this FRM-99999 ERRORE 408 OCCURRED FRM-40655 SQL ERROR FORCED ROLLBACK CLEAR FROM AND RE-ENTER TRANACTION.
    FRM-40512 ORACLE ERROR UNABLE TO ISSUE SAVE POINT COMAND.
    I am calling the form using the following script :
    :global.command_line := 'C:\SALES\NEW_ITEMS.FMX' ;
    CALL_FORM(:global.command_line);
    go_block('COP_ORDER_DETAILS');
    go_record(:global.l_n_curr_rec2);
    :COP_ORDER_DETAILS.ITEM_CODE :=:GLOBAL.ITEM_CODE_VAR;
    :COP_ORDER_DETAILS.COLOR := :GLOBAL.COLOR_CODE ;
    :COP_ORDER_DETAILS.SHAPE_CODE := :GLOBAL.SHAPE_CODE ;
    :COP_ORDER_DETAILS.DELIVERY_QUANTITY := :GLOBAL.QTY ;
    :COP_ORDER_DETAILS.VOLUME := :GLOBAL.VOLUME;
    It works fine for one record, when I try to create another record by calling the called form it gives the above messages.
    Waiting for your valuable replay.
    Best regards
    Jamil

    Hi!
    May you try to open your form, compile all pl/sql (shift-ctrl-k) and compile the form (ctrl-t).
    Take a look at triggers like pre-insert, on-insert, post-insert and key-commit.
    What's happen there?
    I don't know, if the default username feature in 10g is still supported.
    So may the logon ( '/' ...) fails and for this the login screen os shown.
    Regards

  • Save point restore

    Hi,
    How to restore savce point on load of the page.
    I have done it on button click,but i want to load savepoint on page load.
    Please let me know.
    Thanks.

    Hi,
    I am using the following code in the phaselistener and its getting called, but the resotring is not happening when this executes.
    The save point is present in the table.
    public void afterPhase(PhaseEvent e) {
    System.out.println("inside after phase");
    SavePointManager spmanager = ControllerContext.getInstance().getSavePointManager();
    SavePoint savepoint = spmanager.getSavePoint("a2b867bd-d8ab-4997-907e-a9f5d63d155a");
    System.out.println(savepoint.getAttributes());
    Is there any other configuration required for restoring other than this?
    ControllerContext.getSavePointManager().restoreSavePoint is not found
    Edited by: 811407 on Jan 10, 2011 4:29 AM

  • Save point with POJO DataControl not saving model state

    Hi Guys,
    JDEV 11.1.1.6 64bit
    I was able to get save points working with ADF BC (AppMod, View & Entity objects)
    but when I tried to do the exact same with Pojo DataControls, I won't save
    the current state of the model - meaning things are not "selected" to the
    proper record when the SP is restored. I don't get any errors, it just
    shows the wrong data.
    Example:
    The BTF is marked as must have transaction(tried either way), but this is Pojo, and doesn't support Trx.
    edit-emp-dept.jspx (with BTF Region)
    BTF START
        STEP 1: RichTable with bindings to Pojo DataControl (value="#{bindings.allDepts.collectionModel}")
                     (user selects the 3 record => sales department)
        STEP 2: Edit Sales Dept & on click to next step create SP
        STEP 3: View Emps (Rich Table of ALL emps in that DEPT)
        STEP 4: Edit Emp
        FINAL: COMMIT (save to pojo list) or CANCEL (don't save to pojo list)
    /BTF END
    At STEP 1 -> STEP 2, the SP is created, and when I close the browser at STEP2, 3  or 4, and
    restart, and choose SP to restore, it takes me to proper page (STEP 2)  but the wrong Department is
    selected to edit (it shows "Finance" instead of "Sales") & if I hit my ADF back button, it shows
    the table with "finance" selected.  In the ADF BC world it works perfectly.
    I know the docs say: the ADF Model is saved, so the question is why bindings.allDepts.collectionModel
    not "saved" here for Pojo DC and the ADF BC af:table value="#{bindings.DepartmentsView1.collectionModel}"
    it is "saved".
    Thanks for any insight or work-around.
    Sincerely,
    Joel
    edit-emp-dept.jspx:
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <jsp:directive.page contentType="text/html;charset=UTF-8"/>
      <f:view>
        <af:document id="d1">
          <af:form id="f1">
            <af:region value="#{bindings.btfpojodc1.regionModel}" id="r1"/>
          </af:form>
        </af:document>
      </f:view>
    </jsp:root>

    Hi,
    the problem with POJO DC and other non-ADF BC models is that they don't passivate their state. In JDeveloper 12c we allow developers to extend their POJO classes with ADF lifecycle methods that allows them to save the model state themselves. Its a known issue that the transaction state cannot be saved for non-ADF BC models. I checked the bug database for bugs filed against this behavior but could not find one- I can imagine that with 12c we would have a chance to allow developers to handle passivation / activation for non-ADF BC model states. So if this is a feature you need then filing an enhancement request would make sense
    Frank

  • Adobe Reader X save location issue

    Hi All, i would like to seek expert helps on Adobe Reader save location issues. After we upgrade from Adobe Reader 9 to Adobe Reader X.
    There are changes on how save location works in Adobe Reader X
    If save PDF via Internet Explorer – the save location will according to last save location, HOWEVER
    If save PDF via Adobe Reader X – the save location will set according to location the file is being open
    Let me show you what i mean over the pictures
    I open a reader_X_help.pdf using Adobe Reader X and then save the file using Ctrl+Shift+S at: C:\Users\xxxx\Documents\My last location save
    refer my last save location.jpg
    Now i want to save another new file back to C:\Users\xxxx\Documents\My last location save, I open the file Adobe file2.pdf located at desktop and when i do Ctrl+Shift+S, the location point to my desktop and not C:\Users\xxxx\Documents\My last location save
    refer my last save location change to desktop.jpg
    I have tested this features in Adobe Reader 9 and it's different whereby it's will point according to my last location save.
    There is no issue with computer as i have 3 machine running different enviroment, Windows XP SP3, Windows 7 Enterprise, and all using same version of Adobe Reader X version 10.0.1.
    So my questions & concern:
    Is there any way to change the save location features same as Adobe Reader 9?
    If YES, how to do it? By Computer Changes or Adobe Reader X packages modification using Adobe Customization tools?
    If NO, Where can i find this source of documentation stated about this new changes so i can publish this information in HP website as new design changes to avoid complaint or negative feedback.
    Looking forward for expert reply as soon.
    Thank you very much and Have a great day.
    Best Regards
    Edmund Lau
    [email address removed by host]

    Solved it!
    1-go to "edit", select Preferences.
    2-select from the left pane: Security (enhanced)
    3-click on "add folder path" button just below the big white box
    4-pick a folder of your choice and click "ok". (your selected folder path will appear in that white box above the "add folder path" button in step 3)
    5-if you want to add additional folders, just repeat steps 3 & 4
    6-once you are done, click "ok" on the preferences screen and click "ok" again to accept the changes.
    Yes, it seems illogical, but it worked.
    I tested by closing the Reader (X), then surfed the web and did what Neher5 was explaining he/she wanted to do just after opening a pdf from a website and lo-and-behold,  it worked!. No more "save to temp folder" issues.
    Hope this helps.

  • How to use Save Point in Batch Execution of  java transaction updates .

    HI.. ALL
    This is going to be very important to all and if needed history should be rewritten...
    Does any one.... Any one has ever thought of Execution of a Batch - jdbc using Save Points Concept ???
    If this has been ever implemented than I am sorry for my comments..
    If NOT---
    Then any one has idea or code or any thoughts or alternatives for this... This goes like this-->
    If we have a batch file which has All Inserts , Updates and delete statements and we are reading that file in java program and executing the file in a batch execution.. Now java provides only 2 option 'START AND END' for batch execution. But ever dreamed about having Save Points in execution of a batch ?
    You might be thinking why Save points needed in batch? if any one wants to have save points then they can go with normat step by step execution of the jdbc calls Why in batch ?
    Trust me this is very important in various areas of development which will bring an ease of writing the program efficently..
    Does any one have any idea in this regard of having SavePoints in batch execution is highly welcome.
    Thanks
    wahed
    Edited by: wahed on Aug 8, 2008 12:53 AM

    If your database supports SAVEPOINT savepoint_name sql and ROLLBACK [WORK] [ TO [ SAVEPOINT ] savepoint_name] sql, you can try to add those sqls into your sql batch.

  • No Controller Transaction - No Save Point on TaskFlow Entry

    All,
    We have an application built on ADF using JPA as the backend. We are not using BC4J. In all taskflows we have the following settings
    1. No Controller Transaction
    2. No Save Point on TaskFlow Entry (Unchecked). i.e. a Save Point is created for on each task flow entry.
    However, I read in one of performance guidelines to select the "No Save Point on TaskFlow Entry " when No Save point is required as it saves the expensive model passivation at the taskflow startup.
    My question is, does the "No Save Point on TaskFlow Entry " selection has any effect when "No Controller Transaction" option is selected. Does ADF try to passivate the model even when controller is not managing transaction when "No Save Point on TaskFlow Entry" transaction is unchecked.
    I tried to test it in my local environment by checking the "No Save Point on TaskFlow Entry " but could not really conclude whether it has any siginificant performance improvement.
    Any inputs on thsi would be of real help in deciding whether to go ahead and select this option in all our taskflows.
    Thanks,
    Rama

    Rama,
    I can't say from any experience whether it has any effect even with no controller transaction.
    However, it doesn't sound as if you'll be using the savepoints, so it seems safe to me to disable the save points.
    John

  • Should we use same datasource for Internal connection and Save Point ?

    Hi,
    AM configuration has an internal db connection setting, adf-config.xml also has an db connection setting for Save Point, should we all set to the same database source of the system or should we create a seperate datasource which is used only for AM internal db connection and Save Point?
    jdev: 11.1.2.1
    Many thanks!

    Hi,
    its all up to you and whether you have security concerns if the save point is saved with the business data.
    Frank

  • Save Points to override APEX DML functions

    I have some APEX pages that run some underlying procedures which do DML functions on 6 different tables. At the start of each of the DML functions which are in PL/SQL packages, I have set Save Points. I process thru a number of additional pages and reach a point where I may need to commit or rollback all those prior changes. Whenver I try to rollback I get ORA-01086 Savepoint 'xxx' never established. How can I check to see if the savepoint gets created so I can determine why the rollback function doesn't work.

    It's likely that APEX is performing a commit during processing, and thus erasing your savepoints.
    See +{thread:id=708781}+ and +{thread:id=2130631}+ for discussion on when APEX will commit. If any of the processing will cause APEX to perform a commit, see if it's possible to reorganize things so that APEX session state processing occurs before/after your transactional processing.
    (Please update your forum profile with a better handle than "user8014695")

  • Dragging rotated and nested symbol causes registration point issues

    Has anyone noticed registration point issues when trying to drag a nested symbol or if you place a symbol on the stage and manually roated it with the rotate tool?
    I have been tryig to master the science of this and am still having a helluva time. It looks like it thinks your mouse is the 0,0 point and instantly jumps the symbol you are attemping to drag.
    Has anyone else noticed this and figured out a workaround?
    I noticed if I dynamically place the symbol it doesnt have this issue but I would prefer to not be forced into that

    Yes there is. After you have paused at the IN-point, hit shift + left arrow, this will mark the IN-point. Play to OUT-point, pause, shift + left arrow and the clip is selected from the two points.

  • Is it possible to completely disable duplicate and revert and restore "Save as ..."?

    Is it possible to completely disable duplicate and revert and restore "Save as ..."?

    I don't know about disabling duplicate but this TUAW article explains creating & changing the keyboard shortcuts.

  • Save Point for Cancel Functionality

    Hi all,
    I followed Frank's document below on how to implement the Cancel functionality using "Explicit ADFm Save Points in ADF Taskflows":
    http://www.oracle.com/technology/products/jdev/tips/fnimphius/cancelform/cancelForm_wsp.html
    However when running the application with logging turned on, there was this warning message:
    *******WARNING*****: createSavepoint not supported for DCBeanDataControl.*
    Upon some digging, I found that the createSavePoint method in DCBeanDataControl returns null, while its base class DCJboDataControl calls the application module's passivateStateForUndo() method.
    I hope to implement the save point functionality declaratively, can someone tell me how to obtain the DCJboDataControl class instead of DCBeanDataControl so that the createSavePoint method works?
    Thanks!
    Hai Liang

    John,
    I think there might be a problem with our view project not "knowing" that the model layer is using ADF BC. The situation is like this, we first built the ADF BC model project (the EOs, VOs and AMs). Then we went on to create a viewController project (in the same Application workspace). Because the Applications Modules from the model project appear in the Application > Data Controls tab, we just used the AMs there and assumed that the viewController project is aware that it is using ADF BC components.
    Is there some setting we have to define inside the viewController project to make it "aware" that the model layer utilizes ADF BC and thus enable the "savepoint cancel" functionality?
    Thanks!
    Hai Liang

  • Vanishing Point issue - cs6

    Why does cs6 or the cs5 stop working when I use the vanishing point. i have a file showing an open dictionary. I am mapping the opened  page in this dictionary. The page has a curved profile. To this curved profile I would be pasting another seperate page (of the same size) from another file. My grid size is about 100. I am using the angle adjustment to help map the curved profile.

    Good day!
    Why does cs6 or the cs5 stop working when I use the vanishing point.
    What exactly do you mean?
    Is there a crash? If so someone else might be able to get relevant information from the crash report.
    Could you please post a screenshot or lores?
    Might a Warp on a Smart Object not also work? (Naturally this does not address the Vanishing Point issue itself.)
    Regards,
    Pfaffenbichler

  • How to create more than one save point in session

    Hi,
    I'm using Jdev 12c.
    I'm trying to use the SavePoint in ADF. When I try to use createSavepoint() function of SavePointManager to create savepoint I met a problem is only one row of savepoint is created in DB (table ADF uses to kept the savepoint in DB) and it overrides the old row whether how many times I uses createSavePoint() function. I want to when I call createSavePoint(), a new row of savepoint is created instead of overriding . Below is my code:
            ControllerContext controllerContext = ControllerContext.getInstance();
            String savePointId = null;
            if (controllerContext != null) {
                SavePointManager savePointManager =
                    controllerContext.getSavePointManager();
                if (savePointManager != null) {
                    //creating the save point
                    savePointId = savePointManager.createSavePoint();
                    //putting the save point id into session scope
                    ADFContext.getCurrent().getSessionScope().put("savePointId",
                                                                  savePointId);
    Could anybody help me this problem?
    Thank you very much.

    Dear Frank,
    Thank you so much for your answer. Beside the save point functionality to save the state and values on the screen, do you know other ways to do the same function? Once again, thank you so much.
    Linh Nguyen.

Maybe you are looking for