Cannot commit updates

work in jdev 11.1.2.3
I create a EO/VO and drag and drop the data control to a jspx page with SUBMIT button.
and also I drap and drop COMMIT, ROLLBACK button into the same page from the data contral panel.
(and set the partial submit property to TRUE for these three button).
and it runs:
1.The SUBMIT is enabled, COMMIT, ROLLBACK are disabled when the page show.
2.edit some fields on the page, and press SUBMIT, and the COMMIT, ROLLBACK are enabled.
3.press the COMMIT, and it looks OK-refresh the page, shows the updated data for the fields. but I check the database in ORACLE SQL DEVELOPER. the data has not been changed yet.
Why the COMMIT cannot work?
Thanks.
BAO

Hi,Rajdeep
Thank you very much for your kindness and patience to send me the sample you created! I'v download and have a try. Here is the results:
1.Since there is a 1-1 (id,id) relation between VO1 and VO3, we cannot create new records for VO3 without violating PK constraint for EO.
so I delete all VO3 page components and re-drag and drop VO1 from data control into the page again.
--now the TREE display and adf-FORM components are all based on the same VO1, and also add createinsert, delete button for the page.
and to my suprise, the newly created adf FORM components include all attributes from EO (employeeid,firstname,lastname,departmentid,email,hiredate...)
--but the VO1 query only include 3 attributes (employeeid,firstname,lastname)
-- and these three attributes can be seen under the DATA CONTROL structrue tree.
and I went on..
2.At the EmployeesEO attributes tab page, set the EmployeeId.type to DBSequence.--to create PK- employeeid automatically.
3.Run the testView.jspx page.
all seems ok even now:
--the TREE at left panel display rightly.
--the navigate button functions rightly for the right panel's emp form.and the records can be synced between the tree and the form.
--DELETE->SUBMIT->COMMIT is ok.
--edit some field ->SUBMIT-COMMIT is ok.
but when I press CREATINSERT :
--only three fields(employeeid,firstname,lastname) left on the page, others dispeared, and empoyeeid = -2,
--press SUBMIT, warnnings to fill required fields showed: email,hiredate,jobid are requiring input.
--press SUBMIT again, all fields(more than the above three) appeared again now. and filling all fields.
--press SUBMIT again, no warnings.
--press COMMIT, an error popup showed: ORA-01400: cannot insert a NULL ("HR"."EMPLOYEES"."EMPLOYEE_ID")
ORA-06512: 在 line 1.
--change employeeid = 2,
--press COMMIT again.
--data were saved succussfully now.
BUT there are must have something wrong in the above process.
and if i :
At the EmployeesEO attributes tab page, set the EmployeeId.type to integer.
and run Test.jspx:
the tree and form cannot display correctly nowand there is an error on the log file:
java.lang.ClassCastException: java.lang.Integer cannot be cast to oracle.jbo.domain.DBSequence
Can you help me further to solve these problems?
Thank you again.
BAO
Edited by: user6715237 on 2013-3-26 上午4:35

Similar Messages

  • Java.sql.SQLException: You cannot commit during a managed transaction!

    Hi all,
    I'm just trying to get the tutorial Car EJP app to work with Jboss 3.2.1
    When creating a new car record by calling the car.edit() method it reaches
    the line
    pm.makePersistent (car);
    and then throws the exception
    com.solarmetric.kodo.runtime.FatalDataStoreException:
    com.solarmetric.kodo.runtime.FatalDataStoreException:
    java.sql.SQLException: You cannot commit during a managed transaction!
    [code=0;state=null]
    When checking the jboss log, it is clear that kodo is trying to commit the
    sequence update :
    at
    org.jboss.resource.adapter.jdbc.WrappedConnection.commit(WrappedConnection.java:477)
    at
    com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.commit(SQLExecutionManagerImpl.java:783)
    at
    com.solarmetric.kodo.impl.jdbc.schema.DBSequenceFactory.updateSequence(DBSequenceFactory.java:267)
    at
    com.solarmetric.kodo.impl.jdbc.schema.DBSequenceFactory.getNext(DBSequenceFactory.java:111)
    at
    com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.newDataStoreId(JDBCStoreManager.java:598)
    at
    com.solarmetric.kodo.runtime.PersistenceManagerImpl.makePersistentFilter(PersistenceManagerImpl.java:1418)
    at
    com.solarmetric.kodo.runtime.PersistenceManagerImpl.makePersistent(PersistenceManagerImpl.java:1348)
    at com.titan.kodojdotest.ejb.CarBean.edit(CarBean.java:51)
    How should i get this to work ????
    tx for your help,
    Roger.

    It appears that you are using ConnectionFactoryName. First be sure to
    set a ConnectionFactory2Name which will be a non-transactional (in terms
    of global transaction) DataSource for sequence generation for which you
    are seeing here. There are also some issues with JBoss's connection
    pooling on certain dbs if you are still seeing the problem after this.
    If so, try setting ConnectionURL, ConnectionPassword, etc explicitly
    Roger Laenen wrote:
    Hi all,
    I'm just trying to get the tutorial Car EJP app to work with Jboss 3.2.1
    When creating a new car record by calling the car.edit() method it reaches
    the line
    pm.makePersistent (car);
    and then throws the exception
    com.solarmetric.kodo.runtime.FatalDataStoreException:
    com.solarmetric.kodo.runtime.FatalDataStoreException:
    java.sql.SQLException: You cannot commit during a managed transaction!
    [code=0;state=null]
    When checking the jboss log, it is clear that kodo is trying to commit the
    sequence update :
    at
    org.jboss.resource.adapter.jdbc.WrappedConnection.commit(WrappedConnection.java:477)
    at
    com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.commit(SQLExecutionManagerImpl.java:783)
    at
    com.solarmetric.kodo.impl.jdbc.schema.DBSequenceFactory.updateSequence(DBSequenceFactory.java:267)
    at
    com.solarmetric.kodo.impl.jdbc.schema.DBSequenceFactory.getNext(DBSequenceFactory.java:111)
    at
    com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.newDataStoreId(JDBCStoreManager.java:598)
    at
    com.solarmetric.kodo.runtime.PersistenceManagerImpl.makePersistentFilter(PersistenceManagerImpl.java:1418)
    at
    com.solarmetric.kodo.runtime.PersistenceManagerImpl.makePersistent(PersistenceManagerImpl.java:1348)
    at com.titan.kodojdotest.ejb.CarBean.edit(CarBean.java:51)
    How should i get this to work ????
    tx for your help,
    Roger.
    Steve Kim
    [email protected]
    SolarMetric Inc.
    http://www.solarmetric.com

  • Cannot commit or rollback  a JDBC Connection from CAF project

    Hi Everybody,
    I'm working in CE 7.10. I have a CAF Project that gets a JDBC connection from a Custom Datasource to an external Database.
    Here is the code:
      try
        Context ctx = new InitialContext();
        DataSource ds = (DataSource) ctx.lookup("jdbc/MYDATABASE");               
        con = ds.getConnection();
        con.setAutoCommit(false);
        Statement statement = con.createStatement();
        String updateStatement = "UPDATE TABLE...";
        statement.executeUpdate(updateStatement);
        con.commit();
        catch(SQLException sqle){
             con.rollback();
    I got the following exception on line "con.setAutoCommit(false);":  --> "Cannot begin JDBC transaction from this connection of "MYDATABASE" DataSource. JTA transaction has already started."
    and the following on line "con.commit() / con.rollback()" : --> "Cannot commit JDBC transaction from this connection of "MYDATABASE" DataSource. This resource participates in a JTA transaction."
    If I run the same code from a webDynpro or a J2EE project it works ok, but not from a CAF Application Service. I tried to do it in a simple Class in the CAF Project and call this clas from the Application service, but I get the same error.
    Any Ideas??
    Thanks a lot!
    Regards.

    Solved with   "SessionContext.setRollbackOnly()" instruccion.
    Regards.

  • Cannot commit changes: [SQL0204] OPENCUT99 in C104504M type *FILE not found

    Hi,
    Just i have created an browser application to see an AS400 file,also I have been followed the Developer book to UPDATE this file but I'm ready to update I'm getting this message
    Cannot commit changes: [SQL0204] OPENCUT99 in C104504M type *FILE not found
    someone can helpme with this issue

    This is the more appropriate place for this but it is a crosspost:
    http://forum.java.sun.com/thread.jspa?messageID=4467711

  • Oracle.jbo.JboException: Cannot insert/update Array without context informa

    Hi guys,
    i get this error:
    "oracle.jbo.JboException: Cannot insert/update Array without context information"
    on the line:
    t.commit();
    where
    Transaction t=this.getTransaction();
    Thank you

    Hi,
    this
    +"As soon as page runs , i m getting the below error on server logs and also getting the same error once page page loads , user click on SellectmnayListBOx components on screen ."+
    cannot be the full story you tell. The exception is thrown in the context of a prepareForDML, which is called on entities for the Create / Update and Delete use case. I also see a failed rollback. So there must be something you do before this happens during a page refresh
    Frank

  • IPOD cannot be update - 40 GB Click Wheel

    Upgraded Itunes & Ipod to latest software versions and can't synch up ipod with Itunes. Have followed ALL steps to recify...uninstall, empty temp directory,standalone Quicktime,reinstall latest. Install goes fine but when I connect Ipod it begins to update from itunes but after about 9G or 2500 songs it says complete (I have over 7500 songs). When I go to update again I get the error message "The iPOD cannot be updated. The disk could not be read from or written to." Please help!

    Well it was worth a try...after restoring iPOD, set it up and started auto download from iTunes...once again, everything seemed to be going fine...got up to 2615 songs and it started slowing down while updating ipod and ipod statred making little noises..at 2636 songs it said ipod update complete..my ipod still said do not disconnect so I ejected and still said same thing..no songs updated although it said they had.....reconnected and only 5 songs shoed...clicked on update again and got the message "windows delayed write failed..windows was unable to save all the data for the file G: the data has been lost. This error may be caused by a failure of your computer hardware or network connection. please try to save the file elsewhere....the other message that i have been getting is "This ipod Neil's Ipod cannot be updated. The disk could not be read from or written to"

  • ERROR MESSAGE: The IPOD cannot be updated.

    Please help!! Have tried everything can think of including, resetting, retrying, restarting, reinstalling and restoring. ITunes automatically starts downloading when you connect but then only transfers the first 50 or so songs in the library, and then says update complete. When you ask it to then update the IPOD through file menu an error message comes up saying 'The IPOD cannot be updated, the disk could not be read from or written to.' There is no problem with the IPOD, because I have been able to update it via another PC, it just won't update via the laptop even though the ITunes has been set up on the laptop as the ITunes I want to use.
    Click wheel   Windows XP  

    To all concerned: There is a new Apple Support Document regarding this error:
    -36 or "Disk cannot be read from or written to" error syncing iPod in iTunes
    Maybe this helps.
    Alexander.

  • Ipod cannot be updated....

    Ok so I put music on my nano no problem, but when I try to put pictures on it, it gives me the following error message...
    The Ipod cannot be updated. The disk could not be read from or written to.
    What do I do???

    Welcome to Apple Discussions!
    Are you transferring pics from a folder or through a program?
    btabz

  • When I update my nano ipod I get an error message "User ipod cannot be updated.  The disk couldnot be read from or written to."   How can I overcome this error message.

    In the iTunes window, when I update my nano ipod, I get an error message "User ipod cannot be updated.  The disk could not be read from or written to."   How can I overcome this error message.

    Hello there dilip77707,
    It sounds like you are getting this error message that your iPod cannot be read from or written to when you are trying to update your iPod Nano. I recommend the troubleshooting from the following article to help you get that resolved. Its pretty straight forward, just start at the top and work your way down as needed:
     'Disk cannot be read from or written to' when syncing iPod or 'Firmware update failure' error when updating or restoring iPod
    Thank you for using Apple Support Communities.
    All the very best,
    Sterling

  • "cannot be updated because Itunes selected no longer exist"

    Hello. When I hooked up my Ipod for the first time it sucked up the 800+ MP3 files from My Music folder. Now I want to update my library and delete them all from the Ipod (not my hard drive) and start over with songs from the Itunes folder.
    I unchecked all of the songs in the library and reconnected, but it will not delete them and I get this error message:
    "Cannot be updated because one or more of the Itunes playlists selected to update no longer exist"
    I'm thinking I need to "reboot" the Ipod and clear out the memory but I don't know how. Or somehow figure out how to get around this error. Can anyone help???
    Thanks!

    Have a look at this.
    http://discussions.apple.com/thread.jspa?threadID=121728&tstart=150

  • Songs on the iPods "administrators iPod" cannot be updated because all of t

    When I try to update my mini iPod I get the following message. Songs on the iPod "administrator's iPod" cannot be updated because all of the playlists selected for updating no longer exists.
    Any thoughts on where they have gone? what should I do?

    Have a look at this post by forum member Hudgie it may help explain things: Hudgie - iPod cannot sync because one or more playlists are missing

  • Songs on Owner's ipod cannot be updated because playlists no longer exist

    I recently uploaded new CDs into my itunes library. When I tried to sync it said that it could only sync an owner's selection. I agreed because I was in a hurry. Later I came back to delete some of the songs that I do not use and I get the message "Songs on Owner's ipod cannot be updated because all of the playlists selected for syncing no longer exist." I tried to delete some of the unused playlists and now my ipod is blank with not a single song on it. I want to get my playlists back and my music back.

    You will have to create a couple of new playlists to use to sync your iPod, then your iPod preferences will need to be change to sync on those specific playlists.

  • "Songs on iPod 'jerm' cannot be updated because all of the playlists..."

    I recently bought a 1GB iPod Nano from a dude on craigslist and I updated it once, but when I try to update it now a message comes up that reads:
    "Songs on iPod 'jerm' cannot be updated because all of the playlists selected for updating no longer exist."
    Also, when I updated it yesterday, it said that the iPod didn't have room for all of the songs on my iTunes...but I only have like 75 regular-length songs on there and the 1GB is supposed to hold 240. Anyone know what's up with that?
    After it informed me of this last thing, it made me a playlist of a "selection" of songs from the iTunes and updated it with those.
    I deleted that playlist today...may that be related to my first question?
    All of this doesn't make sense. Can anyone shed a little light on the subject?
    Thanks
    Sony VAIO   Windows XP  

    I had this problem with my 4GB iPod nano and I tried everything that you said to try. I did accidentally delete the iPod Selection playlist and I tried to make a new smart playlist. When I did this I got an error message that said "The smart playlist contains one or more conditions which are empty of conflict with one another. This will result in never matching any item. Are you sure you want to save this playlist?" I tried to upload an old library onto my iTunes and it was successful, however, my iPod would still not sync. Do you know what i can do to fix this?
    thank you.

  • "Songs on the iPod "____" cannot be updated because all of the playlists...

    "Songs on the iPod "Harold Kim's iPod" cannot be updated because all of the playlists selected for updating no longer exist."
    Im not sure what this means or how to fix it. any sort of advice or help would be greatly appreciated.

    You get this problem when the option 'Sync Music - Selected playlists' is being used to sync your iPod. If the playlist selected is deleted from iTunes the iPod no longer has a location to sync from and you get an error. (Syncing selected playlists by the way is a useful setting to use when the iPod is smaller than the iTunes library). However you can make a new one or make use of an existing one.
    Open iTunes and create a playlist to update your iPod from, call it -My iPod for example (the dash will position it at the top of the playlists in Sources). You can make it a smart playlist that picks the songs for you or just a normal one and drag whatever content you want to have into the playlist. If you are making a smart playlist limit it to just less than the size of your iPod (for example 3700MB for a 4G iPod Nano. Now connect your iPod and when it appears in the Source list click on the iPod icon to bring up the preference tabs in the main pane. Go to the Music tab and choose Sync Music and the Selected playlists radio button. Choose the playlist you just made from the selection and click Apply. You can also sync from any existing playlists by choosing the same setting, you just need to make sure that the size of the playlists don't exceed the capacity of your iPod:
    How to create a Smart Playlist with iTunes
    Syncing Music to iPod
    To make a random playlist go to File>New Smart Playlist.
    Uncheck "Match the following rule"
    Check "Limit to" put "3700" in the number box, choose "MB" from the first list box, choose "Random" from the next list box. Check "Live Updating"
    When you want to change the selection in the smart playlist just delete everything in it and it will add a new selection. When you want to change the normal playlist just delete out what you don't want and drag in a new selection.
    Syncing selected playlists is just like syncing your whole library only on a smaller scale and more "selectively". When your iPod is is set to sync selected playlists it automatically picks up any changes you made to that playlist in iTunes since you last connected. Anything you added to the playlist will be added to the iPod, anything you deleted from it will be deleted from the iPod. In other words the iTunes playlist and the iPod are kept "in sync".

  • Songs on the iPod  cannot be updated beaucse all of the playlists .....

    I was trying to update my ipod and my ipod only has 52 songs but my libary has 92 songs. i tried to updated it by left clicking where it said my "RISHI"S IPOD" and clicked update...and this message said "Songs on the iPod "Rishi's iPod" cannot be updated becuase all of the playlists selected for updating no longer exist."
    HELP PLEASE WHAT DO I DO!!????

    This should sort out your missing playlist problem: Hudgie - iPod cannot sync because one or more playlists are missing

Maybe you are looking for

  • Can't erase a Seagate external drive

    I want to erase the usual 'PC' related files which come as standard with new drives, but as soon as I select erase it gives me the waring: Disk Erase failed with error: File system formatter failed. I have tried to erase 2 different drives and both t

  • HSQLDB not correctly shutdown

    i am using hsqldb1.8.0 and trying to access the standlone database thru hibernate.. my hibernate configuration file contains <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD//EN

  • Slideshow-Exported PDF is a bit washed out

    I exported my first Slideshow to a PDF file. Looking at the PDF using the Mac Preview program the images were a bit washed out compared to the images within lightroom. So I tried exporting some of the images to the desktop and comparing them to the i

  • Please Help! LR5 glitches driving me nuts

    I've installed & am using LR5. When I make virtual copies to apply presets to, LR automatically makes them go into a 1:1 ration AND auto selects the next photo as well. Also I'm having weird issues with cropping, When I try & crop, it auto zooms to 1

  • Managed ODP: InvalidCastException when returning large number

    I get an InvalidCastException "Specified cast is not valid" when trying to get a value bigger than Decimal.MaxValue as a scalar result from a select. From the stack trace and inspection of the Oracle.ManagedDataAccess.dll code I would expect OracleDa