Transaction Locking Problem in JDBC with ResultSet : ORA-17090.

I have a locking concern using JDBC. I select a set of records to determine if they
need to to be updated by a set of generated results (from else where in the program).
If the results are not in this cursored set of records selected they are to be INSERTED
else they (if they are in the select set) they are to be UPDATED.
I set up a ResultSet using concurrancy parameters so that I can scroll through them for
each of the program results to check. If I set up the ResultSet with TYPE_SCROLL_INSENSITIVE,
CONCUR_UPDATABLE, I get a possible race condition if I am accessing teh same records
through some other program such as toad. As such the first record is not checked (if my
cursor in toad is on this first record) and as such is duplicated.
If I set up the ResultSet with TYPE_SCROLL_SENSITIVE, CONCUR_READ_ONLY. This fixes this
concurrancy problem but occassionally I get the following error which is Oracle based and
not documented:
java.sql.SQLException: operation not allowed: Unsupported syntax for refreshRow()
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:251) at
oracle.jdbc.driver.SensitiveScrollableResultSet.refreshRow(SensitiveScrollableResultSet.java:171)
at oracle.jdbc.driver.SensitiveScrollableResultSet.handle_refetch(SensitiveScrollableResultSet.java:239)
at oracle.jdbc.driver.SensitiveScrollableResultSet.next(SensitiveScrollableResultSet.java:83)
at sfwmd.hisa.oneflow.TimeSeries.load(TimeSeries.java:2502)
at sfwmd.hisa.oneflow.OneParameter.main(OneParameter.java:808)
which translates to an ORA-17090 (operation not allowed)
{NOTE: I do NOT call ResultSet.refreshRow() anywhere in my program}
I do not see any methods in ResultSet for record locking, outside of the mentioned parameters
in the constructor. The database (updates and inserts) changes are all batched and executed
AFTER this ResultSet is released.
-James Fox
[email protected]

post ur code..

Similar Messages

  • Problem connecting JDBC with SQLServer 2005

    * While executing the following JDBC code with SQLServer 2005, it throws Exception
    * I dont wts wrong in my code, (Note: I have included the sqljdbc.jar in my path)
    * Pls let me know the problems in my code
    * Thanks, Following is my code and error
    CODE:
    import java.sql.*;
    public class JDBCwithJava {
         public void work() {
               // Create a variable for the connection string.
               String connectionUrl = "jdbc:sqlserver://localhost:1433;" +"databaseName=empdb";
               // Declare the JDBC objects.
               Connection con = null;
               Statement stmt = null;
               ResultSet rs = null;
               try {
                    //Load the driver
                  Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
                  // Establish the connection.
                  con = DriverManager.getConnection(connectionUrl);
                  System.out.println("Database Successfully Connected...!");
                  //Connection Info
                  DatabaseMetaData dm = con.getMetaData();
                 System.out.println("Driver Information");
                 System.out.println("\t Driver Name: "+ dm.getDriverName());
                 System.out.println("\t Driver Version: "+ dm.getDriverVersion ());
                 System.out.println("\n Database Information ");
                 System.out.println("\t Database Name: "+ dm.getDatabaseProductName());
                 System.out.println("\t Database Version: "+ dm.getDatabaseProductVersion());
                  // Create and execute an SQL statement that returns some data.
                  String SQL = "select  * from emptable";
                  stmt = con.createStatement();
                  rs = stmt.executeQuery(SQL);
                  // Iterate through the data in the result set and display it.
                  while (rs.next()) {
                     System.out.println(rs.getInt(1) + " " + rs.getString(2));
               // Handle any errors that may have occurred.
               catch (Exception e) {
                  e.printStackTrace();
               finally {
                  if (rs != null)
                       try {
                            rs.close();
                      catch(Exception e) {
                  if (stmt != null) try { stmt.close(); } catch(Exception e) {}
                  if (con != null) try { con.close(); } catch(Exception e) {}
         public static void main(String ar[]){
              JDBCwithJava call = new JDBCwithJava();
              call.work();
    OUTPUT with ERROR:
    com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host  has failed. java.net.ConnectException: Connection refused: connect
         at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(Unknown Source)
         at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(Unknown Source)
         at com.microsoft.sqlserver.jdbc.SQLServerConnection.loginWithoutFailover(Unknown Source)
         at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(Unknown Source)
         at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(Unknown Source)
         at java.sql.DriverManager.getConnection(Unknown Source)
         at java.sql.DriverManager.getConnection(Unknown Source)
         at JDBCwithJava.work(JDBCwithJava.java:17)
         at JDBCwithJava.main(JDBCwithJava.java:58)* Please give me your suggestion about the above program.........

    JavaImran wrote:
    RoyGrini wrote :
    Looks like login problems. Username/password or windows authentication logon problem.        * I didnt give any UN and Pwd for my database.........And the
    at com.microsoft.sqlserver.jdbc.SQLServerConnection.loginWithoutFailover(Unknown Source)gives you a 'connection refused'
    Try with providing a SQL username/password. Maybe that will work
    - Roy

  • Locking problem - unique documents with external numbers

    Hello,
    I have following problem:
    In external system documents are generated with unique numbers. When they come to SAP (via RFC calls) corresponding documents in SAP are created with internal SAP numbering (the external document number is saved in "Ref. Doc No." field).
    Recently we had a situation when the external documents were posted twice (with two different internal SAP numbers). There is a check if the document with "Ref. Doc No." already exists in database table but it doesn't work when double posting is performed in very short period of time (the document from first posting is not yet written in DB while the second posting checks if it is already there - in result the second posting is also performed).
    I thought about using ENQUEUE/DEQUEUE mechanism but it seems to work only on records which are already in DB table.
    Do you have any idea what "lock mechanism" could be used in this case?

    Boinjour,
    You said :
    "I thought about using ENQUEUE/DEQUEUE mechanism but it seems to work only on records which are already in DB table."
    My point of view is that you can lock an entry that is not already existing in the DB.                                          
    Example : in the transaction code se11 try to create a LOCK OBJECT named eztest. During this creation and before saving, open an other sap session and try to create the same object. You will have an error message because a lock already exist.
    The entry is locked but does not exist in DB.
    "Do you have any idea what "lock mechanism" could be used in this case?"
    Create a specific lock object with Lock parameter = a sap field to will correspond to the external number.
    ==> It will generate 2 function modules (ENQUEUE and DEQUEUE).
    In the abap that is integrating incoming data :
    add a CALL to the "ENQUEUE" function module ===> try to lock an entry
    If the lock was OK (return code of enqueue function module is 0)
    Then you continue
    Else.
    The entry that you are trying to lock is already locked.
    ENDIF.
    Cordialement,
    Chaouki.
    It is easy to test :
    Cordialement,
    Chaouki.

  • Locking problem in adf with jheadstart

    I use jheadstart 10.1.2.0.19 and jdeveloper 10.1.2 latest patch and the same oc4j server
    I got the following error , I have already changed the locking mode on the application module
    with pessimistisch locking mode I got the following error
    05/11/14 14:17:49 [82167] DCUtil.findSpelObject(217) DCUtil.findSpelObject - Tokenizer : HoofdGebeurtenissenChildUIModel
    05/11/14 14:17:49 [82168] DCUtil.findSpelObject(275) DCUtil.RETURNING oracle.jbo.uicli.binding.JUFormBinding
    05/11/14 14:17:49 [82169] DCBindingContainer.refreshControl(1460) **** refreshControl() for BindingContainer :HoofdGebeurtenissenChildUIModel
    05/11/14 14:17:49 [82170] DCBindingContainer.refreshControl(1460) **** refreshControl() for BindingContainer :HoofdGebeurtenissenChildUIModel
    05/11/14 14:17:49 [82171] OracleSQLBuilderImpl.doEntitySelect(556) OracleSQLBuilder Executing Select on: GEBEURTENISSEN (true)
    05/11/14 14:17:49 [82172] OracleSQLBuilderImpl.buildSelectString(2382) Built select: 'SELECT ID, GBT_ID, UITVOERINGSDATUM, SUB_TYPE, KORTE_OMSCHRIJVING, OMSCHRIJVING, CATEGORIE, GROEP, PUB_DAGRAP, GEPARAFEERD, GEPARAFEERD_DOOR, GEPARAFEERD_OP, CRE_DT, CRE_DOOR, MUT_DT, MUT_DOOR FROM GEBEURTENISSEN Gebeurtenissen'
    05/11/14 14:17:49 [82173] OracleSQLBuilderImpl.doEntitySelect(591) Executing LOCK...SELECT ID, GBT_ID, UITVOERINGSDATUM, SUB_TYPE, KORTE_OMSCHRIJVING, OMSCHRIJVING, CATEGORIE, GROEP, PUB_DAGRAP, GEPARAFEERD, GEPARAFEERD_DOOR, GEPARAFEERD_OP, CRE_DT, CRE_DOOR, MUT_DT, MUT_DOOR FROM GEBEURTENISSEN Gebeurtenissen WHERE ID=:1 FOR UPDATE NOWAIT
    05/11/14 14:17:49 [82174] OracleSQLBuilderImpl.doLoadFromResultSet(1130) LoadFromResultSet failed (1)
    05/11/14 14:17:49 [82175] JUCtrlValueBinding.setInputValue(1773) CtrlAttrs: Caching exception :oracle.jbo.AttributeLoadException: JBO-27021: Kan waarde voor CustomDatum niet laden bij index 1 met Java-object van type oracle.jbo.domain.Number vanwege java.sql.SQLException.
    05/11/14 14:17:49 [82176] OracleSQLBuilderImpl.doEntitySelect(556) OracleSQLBuilder Executing Select on: GEBEURTENISSEN (true)
    05/11/14 14:17:49 [82177] OracleSQLBuilderImpl.doEntitySelect(612) Reusing prepared LOCK statement
    05/11/14 14:17:49 java.sql.SQLException: Definities ontbreken.
    05/11/14 14:17:49      at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:137)
    05/11/14 14:17:49      at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:174)
    05/11/14 14:17:49      at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:239)
    05/11/14 14:17:49      at oracle.jdbc.driver.NumberCommonAccessor.getBytes(NumberCommonAccessor.java:5437)
    05/11/14 14:17:49      at oracle.jdbc.driver.OracleResultSetImpl.getBytes(OracleResultSetImpl.java:660)
    05/11/14 14:17:49      at oracle.jbo.domain.Number$1$facClass.createDatum(Number.java:103)
    05/11/14 14:17:50      at oracle.jbo.server.OracleSQLBuilderImpl.doLoadFromResultSet(OracleSQLBuilderImpl.java:1085)
    05/11/14 14:17:50      at oracle.jbo.server.AttributeDefImpl.loadFromResultSet(AttributeDefImpl.java:1519)
    05/11/14 14:17:50      at oracle.jbo.server.OracleSQLBuilderImpl.doEntitySelect(OracleSQLBuilderImpl.java:692)
    05/11/14 14:17:50      at oracle.jbo.server.EntityImpl.doSelect(EntityImpl.java:5150)
    05/11/14 14:17:50      at oracle.jbo.server.EntityImpl.lock(EntityImpl.java:3464)
    05/11/14 14:17:50      at oracle.jbo.server.EntityImpl.setAttributeValueInternal(EntityImpl.java:2191)
    05/11/14 14:17:50      at oracle.jbo.server.EntityImpl.setAttributeValue(EntityImpl.java:2115)
    05/11/14 14:17:50      at oracle.jbo.server.AttributeDefImpl.set(AttributeDefImpl.java:1780)
    05/11/14 14:17:50      at oracle.jbo.server.EntityImpl.setAttributeInternal(EntityImpl.java:1033)
    05/11/14 14:17:50      at org.tennet.bobs.frontoffice.model.adfbc.businessobjects.GebeurtenissenImpl.setOmschrijving(GebeurtenissenImpl.java:301)
    with optimistisch locking mode
    05/11/14 14:40:49 [15487] OracleSQLBuilderImpl.setSavepoint(1300) OracleSQLBuilder: SAVEPOINT 'BO_SP'
    05/11/14 14:40:49 [15488] OracleSQLBuilderImpl.doEntitySelect(556) OracleSQLBuilder Executing Select on: GEBEURTENISSEN (true)
    05/11/14 14:40:49 [15489] OracleSQLBuilderImpl.buildSelectString(2382) Built select: 'SELECT ID, GBT_ID, UITVOERINGSDATUM, SUB_TYPE, KORTE_OMSCHRIJVING, OMSCHRIJVING, CATEGORIE, GROEP, PUB_DAGRAP, GEPARAFEERD, GEPARAFEERD_DOOR, GEPARAFEERD_OP, CRE_DT, CRE_DOOR, MUT_DT, MUT_DOOR FROM GEBEURTENISSEN Gebeurtenissen'
    05/11/14 14:40:49 [15490] OracleSQLBuilderImpl.doEntitySelect(591) Executing LOCK...SELECT ID, GBT_ID, UITVOERINGSDATUM, SUB_TYPE, KORTE_OMSCHRIJVING, OMSCHRIJVING, CATEGORIE, GROEP, PUB_DAGRAP, GEPARAFEERD, GEPARAFEERD_DOOR, GEPARAFEERD_OP, CRE_DT, CRE_DOOR, MUT_DT, MUT_DOOR FROM GEBEURTENISSEN Gebeurtenissen WHERE ID=:1 FOR UPDATE NOWAIT
    05/11/14 14:40:49 [15491] OracleSQLBuilderImpl.doLoadFromResultSet(1130) LoadFromResultSet failed (1)
    05/11/14 14:40:49 [15492] OracleSQLBuilderImpl.rollbackToSavepoint(1330) OracleSQLBuilder: ROLLBACK WORK TO SAVEPOINT 'BO_SP'
    05/11/14 14:40:49 [15493] DCBindingContainer.reportException(154) DCBindingContainer.reportException :oracle.jbo.AttributeLoadException
    05/11/14 14:40:49 [15494] Diagnostic.printStackTrace(405) oracle.jbo.AttributeLoadException: JBO-27021: Kan waarde voor CustomDatum niet laden bij index 1 met Java-object van type oracle.jbo.domain.Number vanwege java.sql.SQLException.      
    at oracle.jbo.server.OracleSQLBuilderImpl.doLoadFromResultSet(OracleSQLBuilderImpl.java:1132)      
    at oracle.jbo.server.AttributeDefImpl.loadFromResultSet(AttributeDefImpl.java:1519)      
    at oracle.jbo.server.OracleSQLBuilderImpl.doEntitySelect(OracleSQLBuilderImpl.java:692)      at oracle.jbo.server.EntityImpl.doSelect(EntityImpl.java:5150)      
    at oracle.jbo.server.EntityImpl.lock(EntityImpl.java:3464) at oracle.jbo.server.EntityImpl.beforePost(EntityImpl.java:3925)      
    at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:4066)      at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:2937)      at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:2748)      
    at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:1922)      
    at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2115)      
    at oracle.adf.model.bc4j.DCJboDataControl.commitTransaction(DCJboDataControl.java:962)      
    at oracle.adf.model.binding.DCDataControl.callCommitTransaction(DCDataControl.java:1215)      
    at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:954)      
    at oracle.jheadstart.controller.strutsadf.action.JhsDataAction.onCommit(JhsDataAction.java:1579)      
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)      
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)      
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)      
    at java.lang.reflect.Method.invoke(Method.java:324)      
    at oracle.adf.controller.lifecycle.PageLifecycle.handleEvent(PageLifecycle.java:544)      
    at oracle.adf.controller.struts.actions.StrutsPageLifecycle.handleEvent(StrutsPageLifecycle.java:252)      
    at oracle.adf.controller.struts.actions.StrutsUixLifecycle.handleEvent(StrutsUixLifecycle.java:249)      
    at oracle.adf.controller.lifecycle.PageLifecycle.processComponentEvents(PageLifecycle.java:477)
    thanks edwin

    Edwin,
    The following erro in the log:
    05/11/14 14:40:49 [15494] Diagnostic.printStackTrace(405) oracle.jbo.AttributeLoadException: JBO-27021: Kan waarde voor CustomDatum niet laden bij index 1 met Java-object van type oracle.jbo.domain.Number vanwege java.sql.SQLException.
    seems to be the problem. May be your EO attribute definitions do not match corrcetly with underling table column types?
    What steps do you perform in the application (first insert, then update?) before you get the error?
    Can you reproduce this in the ADF BC Tester?
    Steven Davelaar,
    JHeadstart Team.

  • Problem in UPDATE with EXTRACTVALUE : ORA-00600

    Hi all,
    I have some trouble with this update query :
    UPDATE enveloppe_message
       SET ems_date_modification = SYSDATE,
           ems_login_modification = 'pipo',
           ems_dn_emet = EXTRACTVALUE (ems_xml, '/DataPDU/Header/Message/Sender/DN', 'xmlns="urn:swift:saa:xsd:saa.2.0"'),
           ems_dn_dest = EXTRACTVALUE (ems_xml, '/DataPDU/Header/Message/Receiver/DN', 'xmlns="urn:swift:saa:xsd:saa.2.0"'),
           ems_reference_tech = EXTRACTVALUE (ems_xml, '/DataPDU/Header/Message/SenderReference', 'xmlns="urn:swift:saa:xsd:saa.2.0"')
    WHERE ems_id = 1130;I get this error message :
    ORA-00600: code d'erreur interne, arguments : [koklismem111: BFILE locator], [], [], [], [], [], [], [], [], [], [], []But if I do this :
    SELECT EXTRACTVALUE (ems_xml, '/DataPDU/Header/Message/Sender/DN', 'xmlns="urn:swift:saa:xsd:saa.2.0"') AS a,
           EXTRACTVALUE (ems_xml, '/DataPDU/Header/Message/Receiver/DN', 'xmlns="urn:swift:saa:xsd:saa.2.0"') AS b,
           EXTRACTVALUE (ems_xml, '/DataPDU/Header/Message/SenderReference', 'xmlns="urn:swift:saa:xsd:saa.2.0"') AS c
      FROM enveloppe_message
    WHERE ems_id = 1130;It's ok and I get these datas :
    a : ou=abc,ou=ghf,o=bvhdjdie,o=lkljg
    b : ou=dfg,ou=fkd,o=nbjfkkdk,o=bnfjd
    c : jkldfjsdlflsnvkllkfkfllcklqsjkckldand thus, this query become ok ????
    UPDATE enveloppe_message
       SET ems_date_modification = SYSDATE,
           ems_login_modification = 'pipo',
           ems_dn_emet = 'ou=abc,ou=ghf,o=bvhdjdie,o=lkljg',
           ems_dn_dest = 'ou=dfg,ou=fkd,o=nbjfkkdk,o=bnfjd',
           ems_reference_tech = 'jkldfjsdlflsnvkllkfkfllcklqsjkckld'
    WHERE ems_id = 1130;Does anyone have some idea ????
    Thanks.

    Thanks a lot Marco for the link on the FAQ.
    But I don't understand how to use a non default namespace... sorry!
    Finally, this query is okay :
    SELECT xmlcast(xmlquery('declare default element namespace "urn:swift:saa:xsd:saa.2.0"; $p/DataPDU/Header/Message/Sender/DN' passing ems_xml as "p" returning content) as varchar2(4000)) AS a,
           xmlcast(xmlquery('declare default element namespace "urn:swift:saa:xsd:saa.2.0"; $p/DataPDU/Header/Message/Receiver/DN' passing ems_xml as "p" returning content) as varchar2(4000)) AS b,
           xmlcast(xmlquery('declare default element namespace "urn:swift:saa:xsd:saa.2.0"; $p/DataPDU/Header/Message/SenderReference' passing ems_xml as "p" returning content) as varchar2(4000)) AS c
      FROM enveloppe_message
    WHERE ems_id = 1130;But this one, not !
    UPDATE enveloppe_message
       SET ems_date_modification = SYSDATE,
           ems_login_modification = 'pipo',
           ems_dn_emet = xmlcast(xmlquery('declare default element namespace "urn:swift:saa:xsd:saa.2.0"; $p/DataPDU/Header/Message/Sender/DN' passing ems_xml as "p" returning content) as varchar2(4000)),
           ems_dn_dest = xmlcast(xmlquery('declare default element namespace "urn:swift:saa:xsd:saa.2.0"; $p/DataPDU/Header/Message/Receiver/DN' passing ems_xml as "p" returning content) as varchar2(4000)),
           ems_reference_tech = xmlcast(xmlquery('declare default element namespace "urn:swift:saa:xsd:saa.2.0"; $p/DataPDU/Header/Message/SenderReference' passing ems_xml as "p" returning content) as varchar2(4000))
    WHERE ems_id = 1130;I get the same error :
    ORA-00600: code d'erreur interne, arguments : [koklismem2: insufficient locator len], [0], [86], [], [], [], [], [], [], [], [], []Maybe these optimizations don't solve my initial problem !?

  • File access/locking problems, most notably with AutoCAD

    A number of sporadic problems of AutoCAD users who've been working away
    suddenly not able to write to the file they've been working on. If
    multiple people try to use the same Xrefs, often some will get that the
    file is corrupted report by AutoCAD.
    What is reproducible is one of the Xref problems and it has given us a
    bit of a work around to keep working.
    To Reproduce:
    Start AutoCAD(2009), open a file with base(Xref)
    Save the base (no change needed) without closing, and refresh
    the base disappears from view, and when we look in the 'Xref Manager'
    we see that the Base has a status of 'Needs Recovery'. This applies
    even when multiple people had the Xref in read only view, that it is
    now unavailable, but when the full drawing is shut down and reopened
    by the one who had saved, the Xref is just fine.
    Autosave is not triggering the problem.
    This has been reproduced on the newest version of ACAD as well, just
    slightly different wording of errors.
    OES2 sp3 servers (in VMWare) with mostly XPsp3 clients but a few
    Windows 7 ones as well. The clients mostly have the newest clients
    installed, but there are some of the XP boxes with 4.91.4 still on
    them.
    Just migrated the main data volume from NetWare 6.5.8 to OES2 Linux and
    immediately started having the problem. 100% of file access is via
    NCP. no CIFS is configured, to the point we have cross-protocol-locks
    set to 0 (Zero, i.e. Off).
    I think I've been through every combination of file locking settings of
    server vs workstation without any apparent change.
    Still working out different tests to do to find what makes a
    difference.
    Observations that might just lead to clues toward the root cause:
    - On NetWare, if a user left files open over night, we could still see
    those being listed as opened in Monitor. Past history with these users
    is that there was always several showing as open every night even when
    we were sure they'd all been gone for hours. Now when we check the all
    the volumes late in the evening, they've been showing no files open.
    perhaps that is a clue to a problem in lock tracking.
    - While still at OES2 sp2, the pilot team kept giving vague
    descriptions of problems using ACAD against files on OES2, but those
    all went away after applying SP3, so after 2 months of one small group
    running ACAD against files stored on OES2-linux, we migrated the bulk
    of the data as the last volume from a failing NetWare 6.5.8 cluster
    (recreating SBDs was getting tiring).
    Andy Konecny
    KonecnyConsulting.ca in Toronto
    Andy's Profile: http://forums.novell.com/member.php?userid=75037

    Originally Posted by HvdHeuvel
    On Tue, 19 Jul 2011 14:19:33 +0000, Andy Konecny wrote:
    > In article <NvZTp.3150$[email protected]>, Hans van den
    > Heuvel wrote:
    >> This sounds as bug #691870
    >>
    > yup, it is, and that bug has actually been marked as a duplicate of
    > another and has been merged. The other related to opening and saving
    > PDF files, which we were also hitting as well. One user who had to
    > generate many PDFs off of a set of drawings was particularly nailed by
    > this.
    >
    > I have the FTF and applied it last night, just had to chase a few
    > stragglers to take a break to activate it since doing so does briefly
    > break links (reports/broadcasts as server 'down', but only for a
    > minute). The users are much happier this morning, got very nice
    > greetings as I arrived on-site. So far no sign of any other related
    > issues.
    Glad to hear that your (and our) customer's life became less complicated.
    Keep up doing the good work !
    Best regards
    Hans
    Hi Hans,
    i have just helped a customer to migrate their data from NW65SP8 to OES2SP3 and hit the same problem with the CAD group using AutoCAD 2004 on Windows XP with NC491SP3 + some Postpatches
    Do we have a release date for the next OES2 SP3 Scheduled Maintenace Patch?
    The last available is from May and has been apparently released the 31st of May.
    Do we have a chance to get the ftf in someway?
    Many thanks in advance and best regards,
    Stefano Barello
    LANworks AG - IT Engineering

  • Problem in jdbc with Apache

    i wanne make my ResultSet Scrool
    when i make it
    causes Apache server to fail
    but when i use the same code in console application
    it gave me my result well
    when i make resultset in my jsp code forward only
    it run but not gave me valid date
    i see that the problem is in Apache
    thanx for help

    post ur code..

  • Paging problem in jsp with resultset

    Could you please take a look at this post.
    http://forum.java.sun.com/thread.jspa?threadID=632626&tstart=10

    public class PagingBean{
       private int pageSize;
       private int pagePointer;
       private int pages;
       private int startPage;
       private int lastPage;
       private List dataList;
       private List resultantList;
       //respective getters and setters
       // write getResultantList() method in such a way that it gives the resultantList which is to be displayed as per persisted   values of all other properties in Bean and use it for displaying on your view.
    }write your backing bean / Action Class to manage the respective persisted values according to the actions done.
    Or if you are not intrested in re-inventing the wheel please go ahead and use custom built solutions.
    please google for finding such.
    could startup with the one below
    http://java-source.net/open-source/jsp-tag-libraries
    REGARDS,
    RaHuL

  • Locking problem with Postgresql

    I'm having some intermittent deadlock problems with Postgresql (7.1 and
    7.2) and Kodo 2.2.3 and 2.2.4.
    It appears to be a conflict between my JDO and my JDBC code. I reduced
    the problem section to the
    method found below.
    I am running 10 threads concurrently in this test script. Each thread
    is calling the "runQuery()" method
    below which creates a PersistenceManager, starts a transaction, runs an
    unrelated JDBC query, and
    then commits the transaction.
    The transaction is unrelated to the JDBC query, but it seems to
    interfere with it. After a random number
    of transactions, it locks up. Now that I've upgraded to 7.2 and 2.2.4,
    it doesn't seem to lock with an
    "UPDATE waiting" message like it did with 7.1 and 2.2.3, but the script
    still hangs. It's strange,
    because if I remove the superfluous Transaction "begin" and "commit", it
    runs fine.
    Any ideas on what might cause this?
    Thanks,
    -Mike
    private void runQuery() throws AppException {
    PersistenceManager pm=JDOFactory.getPersistenceManager();
    Transaction tx = pm.currentTransaction();
    tx.begin();
    tx.commit();
    Connection conn=null;
    Long listrunid=new Long (281);
    try {
    conn = JDOFactory.getConnection();
    String sql="update summaryreport set
    totalforwarded=totalforwarded+1 where listrunid=listrun.id and
    listrun.publicid=?";
    PreparedStatement stmt = conn.prepareStatement(sql);
    stmt.setLong(1, listrunid.longValue());
    _log.debug("executing: "+stmt);
    int result=stmt.executeUpdate();
    _log.debug("done executing: "+stmt);
    if (result==0) {
    _log.error("Nothing to update for id="+listrunid);
    catch (SQLException ex) {
    _log.error("SQLException: "+ex.getMessage());
    throw new AppException (ex.getMessage());
    finally {
    if (conn!=null) {
    try {conn.close();}
    catch(SQLException ex) {
    _log.warn(ex.getMessage());
    Mike Bridge

    Hi Patrick,
    You're right, that should be in a finally clause. However, my script seems
    to hang after about 10 to 30 of the 1000 iterations.
    -Mike
    Patrick Linskey wrote:
    Mike Bridge <[email protected]> writes:
    Hi-
    Here's a standalone program that shows the problem. If you remove the
    "tx.begin()" and "tx.commit()" lines,
    it seems to work fine. With them, I get some odd NullPointerExceptions at
    the start, then later it hangs.FTR, it looks like the hang is caused by the bit where threadDone() is
    only invoked when an exception is not thrown. If you move the
    threadDone() invocation to a finally clause, the hang will probably go
    away.
    -Mike
    import java.util.*;
    import javax.jdo.*;
    import java.sql.*;
    import com.solarmetric.kodo.impl.jdbc.*;
    * create table testtable (id INT, value INT);
    * insert into testtable(id, value) VALUES (1,0);
    public class ConcurrentTest {
    private static JDBCPersistenceManagerFactory factory = null;
    public boolean threadsaredone=false;
    public int iterations=0;
    public int threadsdone=0;
    public static Connection getConnection() throws SQLException {
    javax.sql.DataSource ds = (javax.sql.DataSource)
    factory.getConnectionFactory();
    return ds.getConnection ();
    public static PersistenceManager getPersistenceManager () {
    return factory.getPersistenceManager ();
    static {
    factory = new JDBCPersistenceManagerFactory ();
    factory.setNontransactionalRead (true);
    factory.setRetainValues (true);
    factory.setOptimistic (true);
    private void runQuery() {
    PersistenceManager pm=getPersistenceManager();
    Transaction tx = pm.currentTransaction();
    tx.begin();
    Connection conn=null;
    PreparedStatement stmt=null;
    int id=1;
    try {
    conn = getConnection();
    if (conn==null) {
    System.out.println("Connection is null");
    System.exit(1);
    String sql="update testtable set value=value+1 where id=?";
    stmt= conn.prepareStatement(sql);
    stmt.setLong(1, id);
    // System.out.println("executing: "+stmt);
    int result=stmt.executeUpdate();
    // System.out.println("done executing: "+stmt);
    if (result==0) {
    System.out.println("Nothing to update for id="+id);
    catch (SQLException ex) {
    System.out.println("SQLException: "+ex.getMessage());
    finally {
    if (conn!=null) {
    try {conn.close();}
    catch(SQLException ex) {System.out.println(ex.getMessage());}
    if (stmt!=null) {
    try {stmt.close();}
    catch(SQLException ex) {System.out.println(ex.getMessage());}
    tx.commit();
    public synchronized void threadDone(int threadid) {
    threadsdone++;
    System.out.println("Thread "+threadid+" is done");
    public synchronized void iterationstarted() {
    iterations++;
    System.out.println(" ** Starting iteration "+iterations);
    public void launch(int maxthreads, int repperthread) {
    runQuery();
    for (int i=0; i<maxthreads; i++) {
    System.out.println("launching thread "+i);
    Thread mythread=new MyThread(this, i, repperthread);
    mythread.start();
    while ( threadsdone<maxthreads ) {
    try {
    Thread.currentThread().sleep(2000);
    catch (InterruptedException ex) {
    System.out.println("Interrupted: "+ex.getMessage());
    System.out.println("threads reported finished: "+threadsdone);
    System.out.println("DONE!");
    public static void main (String[] args) {
    int maxthreads=10;
    int repperthread=100;
    ConcurrentTest ct=new ConcurrentTest();
    ct.launch(maxthreads, repperthread);
    private class MyThread extends Thread {
    ConcurrentTest testobj;
    int threadid;
    int repetitions;
    public MyThread(ConcurrentTest testobj, int threadid, int repetitions)
    this.testobj=testobj;
    this.threadid=threadid;
    this.repetitions=repetitions;
    public void run() {
    try {
    for (int i=0; i<repetitions; i++) {
    iterationstarted();
    System.out.println(" START iteration "+i+" for thread "+threadid);
    testobj.runQuery();
    System.out.println(" FINISH iteration "+i+" for thread "+threadid);
    testobj.threadDone(threadid);
    catch (Exception ex) {
    ex.printStackTrace();
    System.out.println("ERROR: "+ex.getMessage());
    Patrick Linskey [email protected]
    SolarMetric Inc. http://www.solarmetric.com
    Mike Bridge

  • CATS IDoc inbound problem - Transaction lock, LR002

    Customer is posting CATS records via interface from externa system to IDoc for CATS processing. Either the create BAPI (BAPI_...) is used or if there is a change to an already existing posting (BAPI_...). For his i have slightly modified the SAP standard existing FM for CATS inbound processing (IDOC_) to handle both scenarios, create and change. I basically examine CATS data from external system and if it is already existing then I call the change BAPI and if not found the I call the create BAPI.
    We have no problem posting with these BAPIs when there postings are imported one by one. But, when several CATS postings arrive at the same second then not all postings are handled correctly. We receive error message "Transaction locked by user XXX" (error message e002(lr)) and XXX is the background communication user. No luck using "Where used" for error 002 in message class LR either. Also tried tracing with trans SE30 but no luck there either.  Data is always different but can be for the same personell number. User is correct and not locked - it is the transaction (like CAT2) thats SAP standard reports as locked. Some postings go through alright but then after a few corrrect posting this problem pops up. Very frustating.
    Code is correct as it seems only to be a "overflow" problem. Config and data is also correct. Customer was also facing the very same error using the same BAPIs called via RFC and not via IDoc.
    Reason to change to IDoc was of course to set the posting as synchronous thus avoiding this "overflow" problem. In standard SAP is IDocs processed in parallell which is fine in many circumstances but not here. Or it might be OK as long as this error don't occur but have found no way so far. Customer is in production and this must be solved. We also tried this in a band new upgraded ECC 6.0 EhP5 system as customer is in the process of upgrading. Same error.
    I have found very few hints when searching through Google, SAPNet, SDN etc. This is one of the very few links I found: [Locking problem with FM EDI_DATA_INCOMING;
    So I checked this in trans WE46 but as customer is running ECC 6.0 EhP3 we have no such option. Then tried trans nOYEAn setting the parameter "Synchronous processing" but I do not understand how this is supposed to work. Problem stills remains. The values are stored in table EDICONFIG and here parameter INBSYNC is used for the synchrounous setting as of my understanding but we only have this for a user called EDIADMIN and that is certainly not our background user. I don't understand how to set this parameter correctly I guess. SAP help doen't give more insight either - at least not for me.
    Does anyone have a suggestion how to solve this problem? Anyone solved this before and willing to share a solution?
    << Moderator message - Please do not promise points >>
    I maybe beed to send this to SAP OSS but trying this option first.
    To me this is puzzling. Find very few references which normally means few have encountered this. Strange. CATS BAPI interfacing must be used by a lot of companies.
    BR, Johan
    Edited by: Rob Burbank on Nov 7, 2011 2:36 PM

    Hi Johan,
    These kind of problems arise when there is a very little time gap between two successive postings. So put a 'WAIT UP TO 2 SECONDS' between each of the postings. This will give time for the previous posting to perform the updates even before the next posting hits the same transaction. This will solve your problem.

  • Use direct JDBC with CMP entity bean in one transaction

    I am trying to use direct JDBC call with CMP entity bean within a session
    bean method that requires transaction. The problem is that it appears these
    are not in the same transaction. When I use the JDBC call, the CMP entity
    bean update to the DB has not been committed yet.
    We are using Weblogic 5.1 SP6. The DB is Oracle.
    What I do for the JDBC is get a new connection from the pool using weblogic
    jdbc pool driver.
    Any help would be appreciated.
    Patrick

    Hi. You can do JDBC and invoke CMP EJBs and have this all treated
    as one transaction, if your hand-written code explicitly starts
    a JTS transaction, then uses the jts driver or a TxDataSource to
    get the JDBC connection. Then your code can call transactional
    EJBs and their work will be included in the transaction you started.
    Assuming the bean work went OK, and your manual JDBC went OK, you
    can manually commit the UserTransaction at that time. This is 5.1
    talk. For 6.0, with @PC, this may be even easier...
    Joe
    Patrick Shen wrote:
    >
    But if I do that, then they would not be in the same transaction anymore.
    Is there any way to use JDBC with CMP Entity bean in the same transaction?
    Patrick
    "L'artiste" <[email protected]> wrote in message
    news:[email protected]...
    Are you calling all the CMP create in the session Bean ? If so, beforeyou
    make the JDBC call from the session bean, the CMP in 2. should commit. Try
    to set its attribute to TX_REQUIRES_NEW. This way, the calling client will
    block until this transaction is done (committed) before the execution
    continues. There might be some overhead involved in doing so if you are
    anticipating a lot of users.
    "Patrick Shen" <[email protected]> wrote in message
    news:[email protected]...
    What I am trying to do is:
    In a Session bean method -
    1. create a new CMP entity bean (a new row in DB table)
    2. create another new CMP entity bean that uses previous bean as foreignkey
    3. use JDBC to update the row just created
    And all these 3 calls have to be in one transaction.
    Thanks,
    Patrick
    "L'artiste" <[email protected]> wrote in message
    news:[email protected]...
    Can you give a little bit more information?
    Do you have methods in your session bean that creates this CMP entitybeans?
    It looks like
    you might wanna try to change the isolation level to
    TRANSACTION_READ_COMITTED
    to preven dirty_read.
    "Patrick Shen" <[email protected]> wrote in message
    news:[email protected]...
    I am trying to use direct JDBC call with CMP entity bean within a
    session
    bean method that requires transaction. The problem is that it
    appears
    these
    are not in the same transaction. When I use the JDBC call, the CMP
    entity
    bean update to the DB has not been committed yet.
    We are using Weblogic 5.1 SP6. The DB is Oracle.
    What I do for the JDBC is get a new connection from the pool usingweblogic
    jdbc pool driver.
    Any help would be appreciated.
    Patrick
    PS: Folks: BEA WebLogic is expanding rapidly, with both entry and advanced positions
    for people who want to work with Java, XML, SOAP and E-Commerce infrastructure products.
    We have jobs at Nashua NH, Liberty Corner NJ, San Francisco and San Jose CA.
    Send resumes to [email protected]

  • Problem with ResultSet in a loop

    hi,
    i have a probleme with ResultSet when, my code is bellow
    ResultSet rs = stmt.executeQuery(sql);
    sql="SELECT NAME FROM prestationtemp";
    rs = stmt.executeQuery(sql);
    String sqlDel="";
    while (rs.next())
    sqlDel="Delete from prestation where NAME="+rs.getString("NAME");
    stmt.executeQuery(sqlDel);
    the problem is that the loop iterate just once like if there is just one record, and if I remove stmt.executeQuery(sqlDel); from the loop it iterate normaly.
    thanks in advance.

    you will need to use 2 Statments e.g.
    Statement stmt1 = connection.createStatement();
    Statement stmt2 = connection.createStatement();
    ResultSet rs = stmt.executeQuery(sql);
    sql="SELECT NAME FROM prestationtemp";
    rs = stmt1.executeQuery(sql);
    String sqlDel="";
    while (rs.next())
    sqlDel="Delete from prestation where NAME="+rs.getString("NAME");
    stmt2.executeQuery(sqlDel);
    } When you reuse a Statement, any resultsets previously created are automatically closed.
    Looking at your code, it seems that you only need 1 SQL call:
    Delete from prestation where NAME in (SELECT NAME FROM prestationtemp)
    Much more efficient!

  • Problem in Jdbc connectivity with Oracle8i!!

    can you tell me,
    how can i connect jdbc with oracle 8i.
    i written a connectivity code with oci8.
    here is that two lines.
    Class.forName("oracle.jdbc.driver.OracleDriver");
    m_conn = DriverManager.getConnection("jdbc:oracle:oci8:@qit-uq-cbiw_orcl","scott","tiger");
    i was able to compile the script.But when i try to run this with jsp,then it was showing me an error saying "no driver specified".
    pls help me to sort out this problem.
    thanx
    SR-
    shiju.dreamcenter.net
    null

    Shiju,
    You need to include the port and SID in your connect string. So if your port is 1521 and your SID is ORCL, your connect string becomes
    "jdbc:oracle:oci8:@qit-uq-cbiw_orcl:1521:ORCL"
    Blaise
    null

  • I cant use the highlight, underline, or strikethrough function in a specific pdf file. The file isnt locked. I used to highlight texts from that file before the latest update. The problem occurs only with that file. Urgent need. Please help. Thanks!

    i cant use the highlight, underline, or strikethrough function in a specific pdf file. The file isnt locked. I used to highlight texts from that file before the latest update. The problem occurs only with that file. Urgent need. Please help. Thanks!

    Chester31,
    Thank you very much for sharing your file with us!  Now that we are able to reproduce the problem at our end, you may stop sharing the file on Acrobat.com.
    Do you know when this problem (for not being able to add new highlight/strikeout/underline) has started?  Did you update your iOS from 7.x to 8.0 recently?
    We will continue investigating the problem and let you know what we find.
    Thank you again for your help.

  • Problem with TSNNAMES.ORA

    Hi all,
    I have a problem with tsnnames.ora file. After i installed obiee and when i careated dsn and when i test it the connection is failed. My OS is windows vista and i cant find the path for the TSNNAMES.ORA in my system. Any help is highly appreciated
    Thank You All

    Hi User,
    The best thing to do to ensure connectivity with Oracle databases is a tnsping command. If you can tnsping it, then OBIEE should be able to connect to it.
    Here's how you do that:
    1. Go to Start -> Run -> cmd
    2. type in: tnsping <tns entry name> e.g: tnsping ORCL
    3. View the response. The response will tell you if it connected successfully, and which tns file it used.
    Good luck and let me know if this helps.
    -Joe

Maybe you are looking for

  • How do I merge 105 PDF's into a Single PFD?

    How do I merge 105 pdf's into a single PDF. I have already tried doing this in PREVIEW, selecting all, and then saving, and saving as. But it is for me, to no avail. When I re-open, all I get is the first page. please help.

  • New PC: How to update my libraries FROM my IPod?

    I have been using ITunes and Ipod for some time. Now I bought a new Laptop, uploaded the latest ITunes and connected my IPod. I hoped it would be able to sync the libraries exactly from my IPod. However, it only uploads the songs that I bought thru t

  • Portable but powerful?

    I'm very sorry if this has been asked a million times before but so far I haven't found anyone with quite the same requirements as me. So currently I am looking at getting a macbook mainly for graphics (Photoshop/Illustrator) but I will be doing a lo

  • 30 days back data from selected date

    Hi Gurus, I have date prompt in a format (02/01/1998(MM/DD/YYYY)12:00:00 AM) and I have report with 4 columns in the 1st column date 2ed column sales 3ed column 30 days back date 4th column 30 days back sales. Date | Sales | 30 days Back date(from th

  • MM fonts and Macromedia Apps and Tiger

    Hi, I have a problem with macromedia products ( freehand 11.02 and Flash MX 2004) and MM fonts. When I try to convert text to outlines. The bold version of any MM font change to the book version of that font. An example Ocean Sans 768, change to the