Exception : The RowSet is not write enabled

I am using oracle jdbc cached row set to store data from a table. while trying to insert a row in the row set, and hence into the database, i am getting the following exception:
Exception : The RowSet is not write enabled
Any solutions please...

Not all databases support updatable resultsets (though all the major ones do, I think)
You should query the database and result set meta data to find out what it is capable of using the standard JDBC API functions. If the database doesn't support a feature that your code depends on then you can't continue. The alternative is to make your code flexible enough to work on all systems.

Similar Messages

  • OracleCachedRowSet error: The RowSet is not write enabled

    Hello,
    I'm trying to used OracleCachedRowSet class from the ocrs12.jar (Oracle 9.2 Client) with an Oracle 9i Database.
    When I try to insert a new row in the row set I get the error message "The RowSet is not write enabled, SQL State: null". I don't know what I have to do to write enable the row set. I think I do the same as described in Appendix A of the Manual JDBC Developer's Guide and Reference. I also tried to set the concurrency to ResultSet.CONCUR_UPDATABLE. Unfortunately I didn't find the JavaDoc API documentation of this class. It is not included in the Oracle/JDBC documentation.
    The code looks like this:
    OracleCachedRowSet rowSet = new OracleCachedRowSet ();
    rowSet.setUrl("jdbc:oracle:oci:@MYDB");
    rowSet.setUsername("MYDB");
    rowSet.setPassword("MYPWD");
    rowSet.setCommand(sqlStatement);
    rowSet.setType(ResultSet.TYPE_SCROLL_INSENSITIVE);
    rowSet.setConcurrency(ResultSet.CONCUR_UPDATABLE);
    rowSet.execute();
    System.out.println ("--- Row set after first select ---");
    printResultSet (rowSet);
    rowSet.moveToInsertRow ();
    rowSet.updateString ("KUNDENID","4711");
    rowSet.updateString ("VORNAME","Fred");
    rowSet.updateString ("NACHNAME","Mayr");
    rowSet.insertRow();
    The row set contains the right data after the select statement is executed!
    What is wrong? Where do I find the API documentation?
    Thomas Mayr

    Hello Avi,
    thanks for your reply (even if it's nor vey helpful). I read off course the general description of the standard Java interface CachedRowSet (which is implemented by OracleCachedRowSet). I also implemented the scenario with Sun's reference implementation CachedRowSetImpl. This works by the way with this code fragment (however this implementation has other bugs). I think each implementation needs a certain set of properties which are be defined by the interface? The SQL statement executed is set by the method setCommand() and the statement string is "SELECT KUNDENID,NACHNAME,VORNAME FROM JDBCTEST" (sorry this is missing in the code fragment). The row set is also populated with the content of the table, so the statement execution works. I also tried to populate the row set with a result set created by a prepared statement. But the error message when updating the row set is the same. The code looks like this:
    PreparedStatement ps = dbConnection.prepareStatement(sqlStatement,
    ResultSet.TYPE_SCROLL_INSENSITIVE,
    ResultSet.CONCUR_UPDATABLE);
    ResultSet resultSet = ps.executeQuery ();
    rowSet.populate (resultSet);
    Note that the code fragment is not part of a productive code. It is a test case for row sets which I like to use in a productive code in a completly different scenario. Explicit insert, update or delete statements are not an alternative!

  • Inner Exception The provider is not compatible with the version of Oracle

    I am using the 64 bit ODP and Net 2.0 SDK in a C# program which runs standalone and is also hosted by another win32 process.
    When running standalone it works ok. But when being hosted by another process, I get the following exceptions thrown when i create a connection:
    INFO 2007-01-10 12:38:26,843 265ms frmCCMain LogMessage - Exception During Batch Processing1: [The type initializer for 'Oracle.DataAccess.Client.OracleConnection' threw an exception.]
    INFO 2007-01-10 12:38:26,843 265ms frmCCMain LogMessage - Inner Exception The provider is not compatible with the version of Oracle client
    I checked the DllPath value under the ODP.NET key and it points to the directory where OraOps10w.dll is installed. I also tried copying that Dll into the host process working directory and searched and found no other versions of that DLL.

    Yes, this sounds like you may be using the 9.2 client with ODP.NET and ASP.NET Providers for 11g. Usually, you can stop and start IIS to resolve this. IIS will then pick up that the 11g client directory is first in the Windows PATH, ahead of the 9.2 client directory, then use that for any subsequent Oracle client calls.

  • I got the notice: "could not write application to hard disc" after I downloaded Adobe 14.0 ,  what do I do?

    What do I do next?  After a download of Adobe 14.0 the error said "could not write application to hard disc" I never seen this before.

    Bygrace which Adobe software or service is your question in reference too?

  • Recently my keyboard on my macbook pro died. i backed up the machine to my Seagate 500GB hard drive, successfully, and sent the notebook in for repairs. Now that the macbook is repaired, i can read from the seagate, but not write to it. It says read only.

    Recently my Macbook Pro's keyboard failed. Using my wireless keyboard, i managed to backup everything to my 500gb Seagate external hard drive. I sent the machine in, had the keyboard repaired, and now the machine is back, and i am loading my content back onto the macbook. My problem is that the drive is now read only, and i have searched for all the obvious fixes. The lock on the permissions secion of the info block on the drive. (not present). I have even tried disk utility, but all the options are greyed out.
    I am a graphic designer, and so i use my external drive extensively to move artwork around, so it is important that i can make it writable. It worked perfectly on this very same machine, two weeks ago, and nothing has changed on the drive, so i can only assume it is a software issue on the operating system.
    I have read through all the forums, etc, and can find nothing that works. I am loath to change anything on the drive, as it was working perfectly on this system before the system went in for its repair.
    Any help would be greatly appreciated.
    -Captain Zub-

    Please post a screenshot of Disk Utility that shows what you mean. Be careful not to include any private information.
    Start a reply to this message. Click the camera icon in the toolbar of the editing window and select the image file to upload it. You can also include text in the reply.

  • To buy an app, I updated my forgotten security questions. Successfully changed, I went to purchase the app again, except the questions would not appear for me to answer.

    talked to a person on the phone already, and went into the apple store today. also brought my macbook pro with me, to have them help. it went successfully changing them. The problem is they will not appear for me to answer when proving my identity on the app store!!!!

    Security Questions
    https://discussions.apple.com/thread/5232504?tstart=0

  • With some (not all) sites that require passwords, how do I get Firefox to resume saving passwords when the site is not in the exception list?

    For some banking sites that require passwords, I am 99.3% sure I at some time said "never remember passwords." Now I want to change my mind. When I go to Options/Options/Security/Remember.../Exceptions, the sites are not listed, but I still am not asked the question 'Want to remember....'

    Thanks for your help and your quick reply, cor-el!
    I did install the view passwords bookmarklet; it worked properly. I installed the saved-password-editor, and I think I entered all fields correctly, although (1) I was not sure of the meaning of the field 'submit prefix' and used the 'guess from current page' button, and (2) I winged it using the default on both the username field name and the password field name because the guess button simply said 'fill this form based on a likely login form on the current page.' [Does the button pick up that name?]
    After fumbling a while, everything got to working! So, THANKS! Although I'm still not sure what the 'view passwords' bookmarklet does for me, since I do know the needed passwords.
    I'm going to leave this open for one more day, since as a first-time user I don't know whether messages are added (such as explanations to my above minor issues) after I acknowledge the problem solved. I'll do that tomorrow.

  • OdiStartScen threw "The scenario did not end properly" Exception

    Hello,
    I tried to use ODI to do the "CDC", but OdiStartScen, which i used to start the scenario continually, threw "The scenario did not end properly" Exception at the end of process of my package. The process is "OidWaitForLogData --> extend window --> interface --> purge window --> OdiStartScen";
    java.lang.Exception: The scenario did not end properly.
         at com.sunopsis.dwg.dbobj.SnpScen.a(SnpScen.java)
         at com.sunopsis.dwg.dbobj.SnpScen.localExecuteSync(SnpScen.java)
         at com.sunopsis.dwg.tools.StartScen.actionExecute(StartScen.java)
         at com.sunopsis.dwg.function.SnpsFunctionBaseRepositoryConnected.execute(SnpsFunctionBaseRepositoryConnected.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execIntegratedFunction(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlS.treatTaskTrt(SnpSessTaskSqlS.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.i(e.java)
         at com.sunopsis.dwg.cmd.g.y(g.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Thread.java:595)
    OdiStartScen "-SCEN_NAME=JOURNALIZEPACKAGEDEMOSCEN" "-SCEN_VERSION=002" "-CONTEXT=GLOBAL" "-LOG_LEVEL=5" "-SYNC_MODE=1" "-ODI_USER=SUPERVISOR" "-ODI_PASS=d,yXgLJMwXJsIhe0qMX.X9PPn"
    Does anyone have an idea of what is the problem ?
    regards

    (From ODI user's guide/MODEL/ Change Data Capture)
    Using Changed data in Consistent journalizing is similar to simple journalizing regarding interface design. It requires extra steps before and after processing the changed data in the interfaces, in order to enforce changes consistently within the set.
    Operations Before Using the Changed Data
    The following operations should be undertaken before using the changed data when using consistent set journalizing:
    Extend Window: The Consistency Window is a range of available changes in all the tables of the consistency set for which the insert/update/delete are possible without violating referential integrity. The extend window operation (re)computes this window to take into account new changes captured since the latest Extend Window operation. This operation is implemented using a package step with the Journalizing Model Type. This operation can be scheduled separately from other journalizing operations.
    Lock Subscribers: Although the extend window is applied to the entire consistency set, subscribers consume the changes separately. This operation performs a subscriber(s) specific "snapshot" of the changes in the consistency window. This snapshot includes all the changes within the consistency window that have not been consumed yet by the subscriber(s). This operation is implemented using a package step with the Journalizing Model Type. It should be always performed before the first interface using changes captured for the subscriber(s).
    Designing Interfaces
    The changed data in consistent set journalizing are also processed using interfaces sequenced into packages.
    Designing interfaces when using consistent set journalizing is similar to simple journalizing, except for the following differences:
    The changes taken into account by the interface (that is filtered with JRN_FLAG, JRN_DATE and JRN_SUBSCRIBER) are not automatically purged at the end of the interface. They can be reused by subsequent interfaces. The unlock subscriber and purge journal operations (see below) are required to commit consumption of these changes, and remove useless entries from the journal respectively.
    In consistent mode, the JRN_DATE column should not be used in the journalizing filter. Using this timestamp to filter the changes consumed does not entirely ensure consistency in these changes.
    Operations after Using the Changed Data
    After using the changed data, the following operations should be performed:
    Unlock Subscribers: This operation commits the use of the changes that where locked during the Lock Subscribers operations for the subscribers. It should be processed only after all the changes for the subscribers have been processed. This operation is implemented using a package step with the Journalizing Model Type. It should be always performed after the last interface using changes captured for the subscribers. If the changes need to be processed again (for example, in case of an error), this operation should not be performed.
    Purge Journal: After all subscribers have consumed the changes they have subscribed to, entries still remain in the journalizing tables and should be deleted. This is performed by the Purge Journal operation. This operation is implemented using a package step with the Journalizing Model Type. This operation can be scheduled separately from the other journalizing operations.
    To create an Extend Window, Lock/Unlock Subscriber or Purge Journal step in a package:
    Open the package where the operations will be performed.
    Drag and drop the model for which you want to perform the operation.
    In the Type list, select Journalizing Model.
    Check the option boxes corresponding to the operations you want to perform.
    Enter the list of subscribers into the Subscribers group if performing lock/unlock subscribers operations.
    Click OK.

  • I have a powerpoint that I created on PC.  I downloaded "Slideshark" to convert it so I can play it on ipad.  Worked well, EXCEPT for the music was not embedded.  Can anyone help me to find out why the music is not attached.

    I have powerpoint that I created on my Pc.  I downloaded "slideshark" to convert it so i can play it on my ipad.  Everything was great (fonts, animations, colour)  EXCEPT the music did not come through..What is the reason for this??

    Perhaps you should ask the developers of the app you used to convert this presentation?

  • Could not write the AIF file (session error)

    I receive the error "Could not write the AIF file (session error)" when trying to record to Sound Track using any of my USB input microphones. Does anybody know how to resolve the problem?
    Also, does anybody have any suggestions about what product to use to produce good multi-track audio files. I am interested in both a hardware and a software solution. It seems that using the standard Apple software that comes on the new G5s does not offer any good solutions.

    Update to Snow Leopard then update Final Cut Studio. Chances are your problem will have been fixed.
    In my experience, in previous iterations of STP there were a number of serious bugs related to saving files. Running everything up-to-date, however, I am no longer having those problems (knock on wood).

  • DD_DOMA_GET not remote enabled but system is 4.7

    Backend system is 4.7 that i try to connect from web dynPro project (portal)..It gives error say that
    "RFC_ERROR_SYSTEM_FAILURE: The function module "DD_DOMA_GET" not released for 'remote' calls."
    I have searched forum beceuse of the function is not remote enabled 4.6 and proposing to implement 717836,718320 snotes...But my system is 4.7 and these snotes are not suitable for my backend (4.7) system.
    What can i do?
    Best regards..

    Hi Tuncer Gorgun,
    Check whether your JCO Connections are active or not. If they are active, then the problem is with RFC only. If you need to activate the RFC , you can contact the BASIS team to do it.
    Thanks
    Suresh

  • Could not write value ManageLLRouting

    I encountered the error "could not write value ManageLLRouting to key \SYSTEM\CurrentControlSet\Services\Bonjour Service\Parameters. Verify that you have sufficient access to that key, or contact your support personnel.". I am already the adminstrator and after many times of uninstall and reinstall of itunes following the proper steps as well as disable my anti-virue (Trend Micro), the problem still persist.
    Please help if you have any ideas as I cannot synchronise itune with my newly bought Ipad air.
    Thanks

    See Troubleshooting issues with iTunes for Windows updates.
    For "Could not open key/write value" errors when reinstalling try b noir's user tip:
    "Could not open key: UNKNOWN\Components\[LongStringOfLettersAndNumbers]\
    [LongStringOfLettersAndNumbers]" error messages when installing iTunes for Windows but apply it to the branch in question.
    tt2

  • BAPI_GET_PAYSLIP_PDF not remote enabled

    Hey All,
    I would like to use BAPI_GET_PAYSLIP_PDF through a web service, but the BAPI is not remote enabled.  Anyone know why?  I tried copying it to a 'Z' version and set the remote enabled option, but it still does not work when testing the web service.

    Don't copy it. Create a wrapper like this and give it a try and don;t forget to make it REMOTE enabled.
    FUNCTION zbapi_get_payslip_pdf.
    *"*"Local Interface:
    *"  IMPORTING
    *"     VALUE(EMPLOYEENUMBER) LIKE  BAPI7004-PERNR
    *"     VALUE(SEQUENCENUMBER) LIKE  BAPI7004_RL-SEQUENCENUMBER
    *"     VALUE(PAYSLIPVARIANT) LIKE  BAPI7004-PAYSLIP_VARIANT
    *"  EXPORTING
    *"     VALUE(RETURN) LIKE  BAPIRETURN1 STRUCTURE  BAPIRETURN1
    *"     VALUE(PAYSLIP) TYPE  XSTRING
    *"     VALUE(PDF_FSIZE) TYPE  I
      CALL FUNCTION 'BAPI_GET_PAYSLIP_PDF'
        EXPORTING
          employeenumber = employeenumber
          sequencenumber = sequencenumber
          payslipvariant = payslipvariant
        IMPORTING
          return         = return
          payslip        = payslip
          pdf_fsize      = pdf_fsize.
    ENDFUNCTION.

  • Error : the class does not match the class of the persisted object

    Hi I am new to Java.. I got an exception "the class does not match the class of the persisted object for cl = java.util.Vector : __SUID = -2767605614048989439, getSUID(cl) = 1".. What it implies? I got Serialized stream and Object from Web Server.. How to resolve this Exception? I nead to Deserialize this stream...

    ArulPrabhu wrote:
    Friend... I agree with u... Every thing Ok... I am not having the option to make change on the server side... I call a webrequest for the URI - "http://www.nseindia.com/chartdata?mkttype=N&series=EQ&symbol=RPOWER&charttype=ONLINE_STOCK".. From that i got response as Serialized Object Stream... Which is the data made available to all through their applet "Chart".. But i need it for my Custom Project.. I know the Structure of class they have serialized... Is their any chance to parce Data from that Stream..
    Three words.
    You are doomed.
    Whatever you end up doing will not be serialization. It will be reverse engineering of a old (dead) format that could go all pear shaped on you when you least expect it. One of the worst problems in using a solution where you reverse engineer, try and guess hackery your way through a proprietary semi (or totally) undocumented format is that it is really impossible to test your code with any degree of certainty. Does your code actually work? Or does it only work because you haven't seen some totally unexpected (but legal for the format) format yet?
    Get the producer to produce XML instead of "serialized" data. This is a much better route for you to go down.
    If you decide to keep on your path then grab a DataInputStream and go somewhere else because you'll have to figure out the format of another languages serialized data on a place that isn't this site.

  • Could not write file .project

    Hi, i need help.
    I have a lot of components in a workspace but when i want to
    make a reference into them flexbuilder send me next error-messaje:
    could not write file d:\......\.project
    i have seen and this file is not an "only read" file, and i
    have permission to write it...
    I have also copy this proyect, and test it in other
    computer...
    Could you help me?
    Thanks in advance

    I have a flex 3 workspace with a lot of components
    (libraries). I need to import one of this components(library 1)
    from another one(library 2), to register a cairmgorn event in
    library 2´s controller.
    When i click with the rigtht button over library 2, and
    select in the menu, properties option, then select proyect
    references and then select library 1, when i press ok, flex send me
    the error, "could not write file /library2.../.project"
    because of that error when i restart my flexbuilder, no any
    reference is in my library 2 component.
    Also, if i try to select propertys, flex library build path,
    and then library path tab, i add proyect and select library 1
    component, flex let me select it, and press ok, but doesn't let me
    use hes propertys and components, like i not doing anything, and
    when i restart my flex builder, this library path has dissapear.
    Thanks in advance.

Maybe you are looking for

  • Elements 10 won't open an image from menu bar

    Trying to open an image and no explorer window opens, same for save as. I can drag and drop an image in. I have had this version for a couple of years now with no problems.

  • VMware Fusion's "Split into 2 GB files" and Time Machine

    Hi everyone, does anybody know for sure it Fusion's option to split VMs into 2 GB files make for a more efficient TM backup? I know that normally the VM image is seen as 1 large file by TM and therefore gets backuped again if you just had the VM open

  • Select value then navigate to another page

    All, I am doing something which sounded simple but doesnt seem work for me. Ive a select List item and when a value is selected on change eg EMP_ID value i need to pass that selected value to another/navigate to another page and pass that values to t

  • Is there a way to sort files Alphabetically?

    I have a few files on my numbers screen and I think it be easier to find what I am looking for if it was alphabetically. I know the search option is there and I can use that but sometimes a guy just needs options.

  • Any way to reset my Security Questions without having to contact Apple via phone?

    I forgot my security questions and could not make any purchases since app store asked me those question everytime I tried to buy something. I realise that Apple provides a excellent customer servise allowing users to leave their phone numbers online