Problem in concurrent update in ADF BC (compare to oracle forms)

Hi,
I am using JDeveloper 10.1.3.3.
I created a simple form on EMP table using JSF/ADF BC template and then I browsed the EMP form with 2 separate browsers.
Both browser were on the same record (for example SMITH record). I changed the value of salary in one browser and commit the change. Then, in the second browser I changed the value of salary to something else and commit. As I expected I got JBO-25014: RowInconsistentException. (a similar error was shown when we used Oracle Forms and updated one record from 2 separate sessions).
I pressed the commit button for the second time and surprisingly enough,the changes committed successfully !!!
In oracle Forms you had to re-query to be able to change when an error like this happened and normally it should be the same in ADF BC. The strange part is that the framework detects that the record has been changed and prevents committing operation but just for one time!!!
I tried locking mode to both optimistic and pessimistic but there was no difference.
Is it any way to achieve the same functionality we had in oracle forms in the past?
Any help would be highly appreciated.
Thanks in advance,
Navid

Hi,
I think this can be explained the best with the fact that the web is stateless. If you mark a record for update, which you do when you submit it. Then it should get locked in the database. After commit you release the lock and whoever wants to override the value you put in can do this. I don't think that a lock should be released only if a user re-queries the data. You can code this in though: just requery the records on error
Frank

Similar Messages

  • How to get updated value at run time in oracle forms

    How to get updated value form oracle database on a field in oracle forms 6.0 at run time if the same form is opened by multiple users and both have get the same maximum value if one commit the record then how other would get that maximum value with out exiting that form...

    This issue is fairly common and Forms handles the situation by displaying the error, "Record has been updated by another user. Requery to see changes." if a user tries to update a record that was updated by another user.
    If your data is in a base table block, you can check before you save by checking the value in the form against the database using the Get_Item_Property('<BLOCK.ITEM>',DATABASE_VALUE). You can compare the value returned by the built-in against the value in the field to see if they have changed. This could be a lot of work and a lot of network traffic if you are checking numerous items in your data block. Forms has a standard locking mechanism that will lock the queried record as soon as a user makes any changes. If another user queries and attempts to change the record locked by another user - they will receive a "Record Locked" message.
    Francois brings up a valid point. Perhaps you should review the link Francios provided as well as this one: How to ask questions the smart way
    It is always a good idea to review your thread before you post it and ask yourself, "Could I answer this question given the information I've provided and the way I've asked the question?"
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • For Update Query with Wait Clause from ORACLE Forms

    Hi
    We are using Oracle Forms 10g running with 10g database 10.2.0.1.0. We happend to see a query which is getting generated in AWR report like Select rowid, all_columns from TableName for Update of C1 Nowait. But no such query is really written in forms and we are aware that, Any query prefixed with rowid is definitely executing from Forms. But how the ForUpdate and Nowait clause is appended to the query.
    We have checked the following properties in the database Block
    *1) Locking Mode is set to Automatic*
    *2) Update Changed Columns only is set to YES*
    *3) Query all records is set to No (Though this particular property may not be relevant to the issue)*
    What is the property or setting which might trigger such a query from ORACLE Forms with ForUpdate and Nowait clause.
    Any ideas/suggestions on why such behaviour. Please have a healthy discussion on this. Thanks in advance.

    Why have you started another thread on the same thing?
    FOR UPDATE cursor is causing Blocking/ Dead Locking issues
    Just use one thread to avoid confusion.
    The fact that nobody has answered on the other thread for a couple of days could be to do with it being the weekend and most people are not at work.
    Either be patient or, if it's more "urgent" than that, raise a SR/Tar with Oracle metalink.

  • ADF Equivalents of Common Oracle Forms Triggers

    Hello,
    is there some document guide, explaining how different tasks and triggers are accomplished using ADF?
    I found this one:
    http://www.oracle.com/technology/products/jdev/tips/muench/formstriggers/index.html?_template=/ocom/print
    but it is a bit old and I think some of the solutions are not used anymore.
    Does this document has an updated version?
    Thanks in advance.

    Valhery,
    It is indeed an old document, but is still very applicable today.
    You may also be interested to review the material [url http://www.oracle.com/technology/products/jdev/collateral/4gl/formsdesignerj2ee.html]here
    John

  • Problem in consuming XML/SOAP based BizTalk webservice in Oracle Forms 10g

    I have a web service that i need to consume in Oracle Forms. The web service is SOAP based service and was generated using Microsoft Biztalk Server. The service accepts a complex xml message as its request and returns a similar xml message as response.
    I want to consume this service from within my Oracle Forms Application (Forms version 10.1.2.0.2).
    I followed the guidelines from http://www.oracle.com/technology/products/forms/htdocs/10gr2/howto/webservicefromforms/ws_10_1_3_from_forms.html and added a few java classes were generated from WSDL link for me but this is where I lost it.
    From the generated code, i see that i might have to create a vector which consists of the complete hierarchy of xml schema that is expected by the service. But i need some advice in how to do so.
    Has anybody worked on similar services before? Please share your experience or any helpful resources.
    Thanks.

    I have a web service that i need to consume in Oracle Forms. The web service is SOAP based service and was generated using Microsoft Biztalk Server. The service accepts a complex xml message as its request and returns a similar xml message as response.
    I want to consume this service from within my Oracle Forms Application (Forms version 10.1.2.0.2).
    I followed the guidelines from http://www.oracle.com/technology/products/forms/htdocs/10gr2/howto/webservicefromforms/ws_10_1_3_from_forms.html and added a few java classes were generated from WSDL link for me but this is where I lost it.
    From the generated code, i see that i might have to create a vector which consists of the complete hierarchy of xml schema that is expected by the service. But i need some advice in how to do so.
    Has anybody worked on similar services before? Please share your experience or any helpful resources.
    Thanks.

  • Developering ADF form in query mode (Oracle forms simulation)

    Hi,
    we have a requirement for developing the existing Oracle form using Oracle ADF. The existing Oracle form displays the form in query mode by default. We can enter the search criteria in any of the text fields and then execute query to get the results. If the user does not enter any search criteria, then the form loads specific record based on default criteria into the form. Could you please help developing similar form using ADF.
    At present I created the view object with one bind variable and dragged the view as ADF form to the jspx page. Then I am launching the form in query mode (executing the find method on the view object using operation binding at the time of loading the page). After entering the query criteria in the form, If I click on a button I am executing a method in the managed bean. In the managed bean I am executing the "Execute" operation on the view and it is working fine.
    But my problem is if the user does not enter the search criteria I have to pass default parameters to the view object and return the default record in the form.
    Can you please help in resolving the issue.
    Thanks and Regards,
    S R Prasad

    Hi Frank,
    Thank you for providing information. I created the query panel with the table by dragging all the named criteria. But this is not the look we are expecting for this form. As we have to deveop ADF form with the same behavior as oracle forms, the user must be in a position to edit the data in the same field as that of query field.
    As an example, we have to design a form for Dept table. We have to display all the columns of the dept view in the form at the time of launching the form in query mode. Once the user enters any search criteria in the form, we have to perform search and display the record(s) matching the query criteria in the same columns displayed in the form. User should not see any changes in the form layout.
    If the user does not enter any data in the form, then we have to display the record(s) in the form with the specific department id(This department id can be calculated based on the data in another table).
    Can you please help us in resolving the issue.
    Thanks and Regards,
    S R Prasad

  • Call a adf form from oracle forms 11g

    Hallo,
    I want to call a form developed in ADF from my existing oracle forms mask and then back from ADF form to the oracle forms mask.
    It this possible? Have everyone a how to for this problem?
    Thanks for your help
    Ines

    i created jar file to call it from forms
    Could you be a little bit less vague about what you exactly did?
    Anyway; see here http://bit.ly/10VVoMR
    cheers

  • Oracle Forms equivalent operations in Oracle ADF

    I need to know whether there are equivalent operations in ADF corresponding to these operations in Oracle Forms
    System.Current_block
    System.Current_record
    System.Current_form
    etc...

    As a mechanism to working out how ADF works, a suggested read is the Fusion Dev Guide: http://download.oracle.com/docs/cd/E16162_01/web.1112/e16182/toc.htm
    Once you've done this, as extension the dev guide has appendixes "F - ADF Equivalents of Common Oracle Forms Triggers" & "G Performing Common Oracle Forms Tasks in Oracle ADF" for assisting Forms programmers in moving to ADF, a feature/mind map as you will.
    However as Vinod says, don't make the mistake of thinking ADF is similar to Forms in its implementation. While Forms and ADF attempt to achieve similar results (ie. applications querying data from a db and showing to the user to view or edit), they do it in totally different technologies.
    CM.

  • Slow Problems with Oracle Forms 10g and Oracle Database 11g

    Hi, I wonder if there is a compatibility problem between Version 10.1.2.0.2 32 Oracle Forms and Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production. This is because my application runs correctly on a version of Oracle Database 10g, and when we migrated the database to an Oracle Database 11g, slowness problems came out.
    Thanks.

    We have the same issue happening with our custom forms and with some of the standard forms in EBSO. So far we have found that the form invoking a view causes ridiculous slowness in opening the form (40 mins). Using a table access has shortened the open time significantly. At this time Oracle DBAs at OOD have no clear idea why it is happening.
    we are on 11.1 database with 11.5 EBSO
    Edited by: user3223867 on Feb 4, 2011 7:55 AM

  • Integration oracle forms with ADF

    Hi
    Please provide me the steps for integration of oracle forms with ADF or any live example.
    It is very urgent. Please help...

    Hi,
    Please watch the below video. This will help you to get started .
    ADF Insider - Redeveloping and Oracle Forms Application using Oracle ADF

  • Lock table for update in adf

    dear all ,
    am using Jdeveloper 11.1.1.3 with oracle database 10g,
    now what i need to do is when inserting a new row in one of my entities i need to lock the entire database table until the commit happen...
    i'll explain to u why I need to do this,,, let say that the table x contains the following columns
    x_pk number, ( which is the primary key )
    x_serial number,
    x_type varchar2 );
    now am getting x_pk from a sequence on a database so its not a problem,
    but for x_serial it needs to be serialized per x_type , now in oracle forms developer i used to do the following in per-insert trigger on the block level-->
    lock table for update then selecting the max serial per the type then use it for setting the :x_serial that is in the same block...
    now in ADF , i should do this in the do_dml when the operation==DML_INSERT but am not sure what to write and if it will be working same as it was in the form developer
    thanks ,
    Lama

    Delta,
    I wrote a [url http://stegemanoracle.wordpress.com/2006/03/15/using-updatable-views-with-adf/]blog post some time ago for an earlier version of JDeveloper that implemented some custom locking behaviour for EOs - perhaps you can adapt the technique there to your needs?
    John

  • JBO-27123: error on DB2 mainframe update with ADF

    Good morning.
    I've got a problem with an update statement to a DB2-mainframe table via "Third Party JDBC Driver".
    I try to use Jdeveloper 10g 10.1.2 and develope an application with Struts, JSP, ADF Business Component.
    I write my entity object, view object and application module. Then I design my little application with Struts: I add a controller page and a Data Page to insert a record in a table to DB2 on a mainframe.
    When I press Commit button I have the following error:
    Validation Error
    You must correct the following error(s) before proceeding:
    JBO-27123: Errore SQL durante la preparazione dell'istruzione di chiamata. Istruzione: UPDATE TLMARK.TPROM10TIPOPROM Tprom10tipoprom SET KDSTIPOP=? WHERE KCDTIPOP=?
    Not a CALL statement.
    Where is my error?
    Thanks.

    I've already red that document, but it don't solve my problem.
    I will explain better my configuration:
    - I can't use IBM DB2 client, so I use another JDBC TYPE 4 driver to connect to mainframe DB2
    - If I try to write an application using DB2 SQL flavor and a Java type map, when I test my application module I obtain the following error
    (oracle.jbo.common.ampool.ApplicationPoolException) JBO-30003: Il pool delle applicazioni (.101F1A07052) non è riuscito ad estrarre un modulo applicativo a causa dell'eccezione riportata di seguito:
    ----- LEVEL 1: DETAIL 0 -----
    (oracle.jbo.JboException) JBO-29000: JBO-29000: JBO-29000: JBO-26061: Errore durante lapertura della connessione JDBC.
    ----- LEVEL 2: DETAIL 0 -----
    (oracle.jbo.JboException) JBO-29000: JBO-29000: JBO-26061: Errore durante lapertura della connessione JDBC.
    ----- LEVEL 3: DETAIL 0 -----
    (oracle.jbo.JboException) JBO-29000: JBO-26061: Errore durante lapertura della connessione JDBC.
    ----- LEVEL 4: DETAIL 0 -----
    (oracle.jbo.DMLException) JBO-26061: Errore durante lapertura della connessione JDBC.
    ----- LEVEL 5: DETAIL 0 -----
    (java.sql.SQLException) No suitable driver
    - If I try to write an application using SQL92 SQL flavor and a Java type map, when I test my application module, it works with select, but when I tru to update a record, I obtain the following error at commit time
    (oracle.jbo.SQLStmtException) JBO-27123: Errore SQL durante la preparazione dell'istruzione di chiamata. Istruzione: UPDATE TLMARK.TPROM10TIPOPROM Tprom10tipoprom SET KDSTIPOP=? WHERE KCDTIPOP=?
    ----- LEVEL 1: DETAIL 0 -----
    (hit.db2sql.n) Not a CALL statement.

  • Problem with links in deployed ADF application to Weblogic Server 11g

    Hi everyone !
    I have a query here, firstly, I have created an ADF application using Jdeveloper 11g and have successfully deployed (EAR file) onto the weblogic server.
    However, after testing out the application, the linking within the application does not seem to work. Whenever I click on a link or button, the page refreshes but the result is not displayed.
    What could have cause the problem?
    Thanks
    Gavin

    Are the ADF runtime libraries installed into the WebLogic server?

  • Multiple Samsung Stratosphere problems after FF1 update

    There have been multiple posts on various issues users have found after the recent Stratopshere FF1 update.  Some were replys to older posts and some only touched on a single issue.  I wanted to consolodate into one thread, and hopefully get teh attention of Verizon to maybe reply here.
    For reference, a lot has been discuss here --> https://community.verizonwireless.com/message/874446
    Summary:  Verizon and Samsung have finally updated the Stratosphere almost 1 year after release.  This updated the phone from Android 2.3.5 to Android 2.3.6.  Going by filename, this is known as the FF1 update.   This update went live at the end of August 2012, and most users were upgraded before mid September 2012.
    There were some noticable changes in this update:
    -Lock screen has changed.  The puzzle piece and glass lock options have been removed.  New options have been added, such as facial recognition unlock.
    -Call answering screen has changed, introducing the option to ignore call with a message.
    -Camera now has digital zoom ability.
    -Ability to uninstall the 2 games the phone comes with (Need for Speed and Lets Golf)
    -Phone icon has changed ever so slightly
    -Wifi icon now included up and down arrows to indicate data is being sent or recieved
    -Wallpaper no longer "stretches" over multiple screens - ie, it no longer scrolls as you move from screen to screen
    -The visual voicemail app has been improved (I have personally not used this feature)
    -Callback number is now supported in text / picture messages
    -Android core OS updated from 2.3.5 to 2.3.6 (both versions are still Gingerbread)
    -Update to how the device deals with the end of scrolling.  It used to rubber-band bounce back, now it will just give a green bar and expand the bar as you scroll.  (I cannot fault Samsung for this change as this was at teh core of an Apple lawsuit and has been changed in newer versions of Android.)
    -(I am sure there are more.  please list any others you may have noticed)
    I have found some problems, and others have confirmed that this is (at least) somewhat widespread:
    -The biggest problem is with wifi connectivity.  Upon an initial connection to wifi, everything works great.  After somewhere between 15minutes and 2 hours, problems start happening.  Its as if the wifi keeps hanging or reconnecting.  Download speeds (tested with the SpeedTest.com app) slow to about one third of normal.  Apps like Facebook that require a constant connection will just time out.
    -It appears the signal strength for 3g and 4g connections is lower.  There are places where I used to get a 4g connection, and now I only get 3g.  Some palces I fall back to just 2g digital.
    Another minor issue i found was with text messages.  When you reply to a message, it no longer automatically focuses the text in the input box.  You have to first click into the box to start typing.  Not a huge deal, but one more step to take over and over.  Minor annoyence.
    At my house, I struggle to get a 3g or 4g signal.  I depend on wifi for my data connection.  So with the wifi connection problem introduced by teh FF1 update, my phone is somewhat useless to me now while at home.  Here are teh troubleshooting steps I have been through so far to attempt to fix the wifi problem:
    -Complete factory reset on my phone.  (did not help)
    -Pull battery and SIM card out of phone for 15 minutes.  (did not help)
    -Went to a Verizon store.  The guy at the store was helpful, and said he also had a Stratosphere and was getting the same wifi problems after the update.  He said all he could do was to send me out a replacement phone. I got the replacement phone, and it had the same problems.
    -I read in multiple palces that Android 2.3.6 has a bug within wifi and DHCP.  Apparently if you have a DHCP lease set to "forever", the phone will keep requesting a new address.  Setting the DHCP server on the router to something like 2 weeks, or using a static IP is supposed to solve this.  I have a NetGear N900 router, and I can not change teh DHCP lease time.  It appears, however, that my router is not sending out "forever" leases.  But just to make sure, I gave my phone a static IP.  (None of these steps made any difference).
    The only thing that temporarily fixes the problem is a reboot of the phone.  This will again give you anywhere from 15min to 2 hours of good wifi use before problems start happening.
    I have now had this update for over a week, and on 2 phones.  I still can't maintain a wifi connection for much longer than 15 minutes without problems starting up.
    I am asking Verizon or Samsung to at least confirm this issue if possible.  Maybe there are newer revs of the Stratopshere hardware that don't have this problem.  Or there is something unique about my (and apparently others) situation.  But it seems like Verizon's current stance is to offer a repalcement phone (as currently all Stratospheres are within their 1 year manufacture warranty as the phone has not been ouy for quite 1 year yet).
    I am asking for a workaround for this problem, or a true fix adressed by a new software update, or at least allow us to roll back to the original Andorid 2.3.5 software.
    I have had my original Stratosphere for almost a year with no wifi problems - then get the FF1 update and have had nothing but problems on 2 different phones.
    Thank you for your time.

    Thanks for starting a comprehensive thread on problems with this update. I want to add one more.
    I have Bluetooth in my car (a 2004 model), and previously the phone has connected to it practically instantly when I start the car. Since the update, I have never been able to connect the phone to the car by Bluetooth. Several times the phone has made a standard notification sound at the moment it should be connecting to Bluetooth, though no notification appears. I have no idea what that could mean.The car's Bluetooth shows up as paired in the list of devices in Settings > Wireless & networks > Bluetooth settings. I haven't seen this widely reported as an update issue, but perhaps some others have experienced it too.
    UPDATE: I finally did some testing, and found that the notification was to signal the extremely brief appearance of a dialog indicating that the car's Bluetooth was requesting a connection. Accepting that request let the phone connect with the car, and calls went to the car's sound system as they should. When I turned the car off and back on (just the electrical system; not wasting any gas on this!), the connection was established immediately, so apparently the acceptance only had to be done once. Nevertheless, it did have to be done, and the dialog notification disappears within seconds. I believe it would have been possible to go into Bluetooth settings and accept the connection request there if I missed the notification; but not seeing the notification, I might not know to do this.
    One further observation: When I turned the phone's Bluetooth off and back on after a connection had been established, leaving the car on the whole time, the two did not reconnect. I believe that may be different from before the update, but I'm not really sure.
    Message was updated by David Rensberger

  • Hi I am having problems downloading and updating apps on my iPad and iPhone. The message cycles between waiting and loading then I get an error message saying unable to download app. Eventually,after many attempts it works.

    Hi Guys - for a few days I have been having problems downloading and updating apps on my iPad and iPhone. The message cycles between waiting and downloading then eventually says unable to download app. Sometimes after many attempts it wil eventually work. I tested it on an old iPhone 3G and got the same problem so it is not an iOS 5 issue. My WI-FI connection is working fine. I was wondering if this is an App Store problem? Anyone else in the UK having this problem?

    Hi John
    iTunes Support wasn't of any use to me.
    I have also been having another problem - with BBC iPlayer and other video streaming not working due to insufficient bandwidth, despite my overall download speed being consistently around 50Gb.  This is also affecting AppleTV downloads
    I am using Virgin Media as my ISP, and was wondering whether you do as well.  This might be the common thread.
    -Bernard

Maybe you are looking for

  • Cannot Save my Audio Files as Apple Loops in Logic 8

    Everytime I click save it says "Check Destinations drive available Space". This happens EVERY TIME I try to save one of my own audio file as an Apple Loop! "Save As" works fine. Im not the only person asking this... Anyone? Appreciate any help...

  • NWDI in the XI scenarion, SLD

    Experts, I have created a track to transport the XI content. We are currently using 2 SLDs. the first for the XI which contains all the XI business system details and the second SDL only for NWDI. The SLD for NWDI currently has only the Software Comp

  • Copy and paste stopped working in photoshop CC

    I've been using Photoshop CC since march and this is a new issue. Not previously a problem until today. When I select and area to copy, from a JPEG or photoshop PSD photograph, and make a new file to paste it into, the new file comes up the same size

  • Problem with video chat

    Hi all!! I have been having this problem for over a month now. I have a macbook pro 10.411 and when I video chat with my brother who has a macbook with leopard our video chat only lasts a short amount of time...maybe 5 or 10 minutes at the most then

  • Indoor repeater for cisco 1300

    Hello, We have an outdoor wireless network working with two cisco 1300. One acts as a access point and the other one as a bridge. We would like to extend the coverage of the bridge... Is that possible? There's one spot inside where signal quality is