Error SyncResolver.UPDATE_ROW_CONFLICT ?

Hi everyones.
In JSC2.1 , I have a table component binding to Sqlserver 2k. When I update a field using command DataProvider.commitChanges(). I have error :
Number of conflicts while synchronizing: 1 SyncResolver.UPDATE_ROW_CONFLICT row 0 [sunm][SQLServer JDBC Driver][SQLServer]The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator.
Can everyone help you to solve problem ?
Thanks in advanced.

Number of conflicts while synchronizing: 1 SyncResolver.UPDATE_ROW_CONFLICT row 0 [sunm][SQLServer JDBC Driver][SQLServer]The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator.
I am using a table component to display data from a table.
The data provider that is binded to the table is called EmployeesDataProvider.
Any idea how to solve this problem?
Below is the code for update of the row
public String button2_action() {
// TODO: Process the button click action. Return value is a navigation
// case name where null will return to the same page.
try {
EmployeesDataProvider.commitChanges();
EmployeesDataProvider.refresh();
} catch (Exception ex) {
log("Error Description", ex);
error(ex.getMessage());
return null;
}

Similar Messages

  • Number of conflicts while synchronizing: 1 SyncResolver.UPDATE_ROW_CONFLICT

    Hi People, i�m new in this forum and i need help, i am creating a program with Visual Web JSF, i want to update a table in PostgreSQL 8.2, but i have this problem when a trying to execute de button action, the error is:
    Number of conflicts while synchronizing: 1 SyncResolver.UPDATE_ROW_CONFLICT row 0  ERROR: relation "perfil" does not existi am using a textField for Name and Description of Perfil, the information in the field is that i want to update into the table of database with a submit button. This is the code of my button action
       public String botonUpdate_action() {
            // TODO: Process the action. Return value is a navigation
            // case name where null will return to the same page.
            Object seleccionado = perfilDD.getSelected();
            try {           
                perfilDataProvider1.setCursorRow(perfilDataProvider1.findFirst("nombre", seleccionado));
                RowKey row=perfilDataProvider1.getCursorRow();
                System.out.println("La fila es: "+row.getRowId());           
                perfilDataProvider1.setValue("nombre", (String)fieldNombre.getText());           
                perfilDataProvider1.setValue("descripcion", (String)fieldDescripcion.getText()); 
                //perfilDataProvider1.refresh();
                perfilDataProvider1.commitChanges();
            } catch (Exception e) {
                System.out.println("Ocurrio un error al actualizar los datos: " + e.getLocalizedMessage());
            return null;
        }where perfilDD it�s a Drop Down List and perfil it�s the table in database.
    What can I do? help me please?
    Thanks for everything
    P.D. Sorry for my English, I�m Nicaraguan

    Thanks RaymondDeCampo but, the database is fine, I get the data from this table to put into the textFields Nombre and Descripcion. What are you think about my code? i don�t know it is correct.
    Someone has experiencied this problem?
    Thank you in advance for all your help.
    Ciao

  • SyncResolver.UPDATE_ROW_CONFLICT

    Hi,
    I am using DataProvider on each page and their cachedRowSet is normally defined in SessionBean.
    And same cachedRowSet from SessionBean is used in number of pages.
    General setting for cachedRowSet is:
    concurrency: CONCUR_UPDATABLE
    transactionIsolation: TRANSACTION_READ_COMMITTED
    On occasion, I get error when update is issued:
    Number of conflicts while synchronizing: 1 SyncResolver.UPDATE_ROW_CONFLICT row 0 attempt to update a row that has been updated or deleted by another user.Any suggestions to solve this issue?
    Thanks.

    Hi,
    Cached row sets are not thread safe, so if multiple users can access them simultaneously then you should provide some methods of synchronization for example
    // in application bean create lock object like this:
    public final Object lock = new Object();
    private void method() {
    ApplicationBean1 ab1 = getApplicationBean1();
    synchronized(ab1.lock) {
      //do data provider operations here
      dataProvider.commitChanges();
    }Also you could add dataProvider.refresh() into prerender() method, so row sets will be updated while loading page.
    regards
    Grzegorz

  • Problem whit Update Operation, Error UPDATE_ROW_CONFLICT with Oracle DB

    Hello friends!, I have a problem whit UPDATE Operation with a Oracle DataBase, but it is rare because it works in "Java Sun Application Server" and not in Tomcat (5.5.12) , displaying the following error:
    "Error :Number of conflicts while synchronizing: 1 SyncResolver.UPDATE_ROW_CONFLICT row 5 values changed in database"
    part of the file log:
    "SEVERE: Error Description
    java.lang.RuntimeException: Number of conflicts while synchronizing: 1 SyncResolver.UPDATE_ROW_CONFLICT row 5 values changed in database
         at com.sun.data.provider.impl.CachedRowSetDataProvider.commitChanges(CachedRowSetDataProvider.java:878)
         at ido02004.EditPerson.saveButton_action(EditPerson.java:519)
    For any change of columns for table in Data Base.
    The code used in the page (EditPerson.jsp) is:
    public void init() {
    Object pid = getSessionBean1().getCurrentPersonId();
    RowKey personRowKey = ido_personsDataProvider.findFirst("PERSON_ID", pid);
    ido_personsDataProvider.setCursorRow(personRowKey);
    public String saveButton_action() {
    try {
    ido_personsDataProvider.setValue("USER_ID", userDD.getSelected());
    ido_personsDataProvider.setValue("STATUS", statusDD.getSelected());
    ido_personsDataProvider.setValue("NAME", name.getValue());
    ido_personsDataProvider.setValue("FUNCTION", function.getValue());
    ido_personsDataProvider.setValue("ADDRESS", address.getValue());
    ido_personsDataProvider.setValue("EMAIL", email.getValue());
    ido_personsDataProvider.setValue("PHONE", phone.getValue());
    ido_personsDataProvider.setValue("VALUATION", valuation.getValue());
    ido_personsDataProvider.commitChanges();
    catch (Exception ex) {
    log("Error Description", ex);
    error("Error :"+ex.getMessage());
    return null;
    Please, Some idea of why gives the error? Help!
    Thanks in advance!
    Ren�
    P.D. Excuse my English.

    Hi All!
    New Info:
    System.out.println(" date created : "+ido_personsDataProvider.getValue("DATE_CREATED"));
    System.out.println(ido_personsDataProvider.getCachedRowSet().getMetaData().getColumnClassName(13));When these lines are printed in Java Sun Application Server for JSC show this:
    [#|2006-05-05T17:12:50.264-0500|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    date created : 2006-04-24 00:00:00.0|#]
    [#|2006-05-05T17:12:50.264-0500|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    java.sql.Timestamp|#]
    When these lines are printed in Tomcat show this:
    date created : 2006-04-24
    java.sql.Timestamp
    Why? the values of this date is different in one or another server. Problem of driver JDBC? I use driver: to ojdbc14.jar, in Tomcat for the connection to the BD Oracle. Maybe this originates error UPDATE_ROW_CONFLICT...
    Please, any idea?
    Thanks!

  • Error UPDATE_ROW_CONFLICT with Oracle DB

    Hi all,
    I have a problem in UPDATE Operation with a Oracle DataBase, it works in Sun Application Server and not in Tomcat (5.5.12):
    code:
    try {
            RowKey[] selectedRowKeys = getTableRowGroup1().getSelectedRowKeys();
            for(int i=0; i< selectedRowKeys.length; i++){
                info("course selected"+courseinformationDataProvider.getValue("COURSECODE", selectedRowKeys));
    Object course_code=courseinformationDataProvider.getValue("COURSECODE", selectedRowKeys[i]);
    getSessionBean1().getCourseinformationRowSet1().setObject(1,course_code);
    courseinformationDataProvider1.setValue("STATUS","T");
    courseinformationDataProvider1.commitChanges();
    courseinformationDataProvider1.refresh();
    info("Row(s) Updated");
    } catch (Exception e) {
    log("Exception occurred!!", e);
    error("Exception"+e);
    It throws exception while i try to run in tomcat5.5.7
    Exceptionjava.lang.RuntimeException: Number of conflicts while synchronizing: 1 SyncResolver.UPDATE_ROW_CONFLICT row 0 values changed in database
    plz give some ideas..
    Thanks in advance.....

    A very similar thread. No solution there, however..
    http://swforum.sun.com/jive/thread.jspa?threadID=94761

  • UPDATE_ROW_CONFLICT error, get the details (columns, values)

    Hi,
    I am getting the following error:
    Error :Number of conflicts while synchronizing: 1 SyncResolver.UPDATE_ROW_CONFLICT row 0 attempt to update a row that has been updated or deleted by another user
    has anybody an idea how to get more information about the conflic?
    In what column is the conflic ? The values ?
    regards,
    Andorn

    Hi,
    Please go through the tutorial titled "Performing Inserts, Updates, and Deletes" which is available at: http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/inserts_updates_deletes.html
    Also, go through the below forum threads:
    http://swforum.sun.com/jive/thread.jspa?threadID=95174&tstart=15
    http://forum.sun.com/jive/thread.jspa?forumID=123&threadID=65088
    Hope this helps.
    RK

  • CachedRowSet date field and SyncResolver

    When I attempt to accept changes to my CachedRowSetImpl I get conflict errors if my query includes a date field.I assume this is some sort of precision error. To get around this problem I attempt to catch the SyncProviderException. My code is copied directly from the JavaDoc for SyncResolver with the exception. Now I get this error
    java.sql.SQLException: Invalid cursor position
         at com.sun.rowset.CachedRowSetImpl.rowDeleted(CachedRowSetImpl.java:3893)
         at com.sun.rowset.CachedRowSetImpl.internalPrevious(CachedRowSetImpl.java:3766)
         at com.sun.rowset.CachedRowSetImpl.previous(CachedRowSetImpl.java:3731)
         at com.sun.rowset.internal.SyncResolverImpl.nextConflict(SyncResolverImpl.java:461)
         at aims.app.reefmonitoring.db.MasterSampleRowSet.save(MasterSampleRowSet.java:98)
    This is my code
    try {
    this.acceptChanges(con);
    } catch (SyncProviderException spe) {
    SyncResolver resolver = spe.getSyncResolver();
    // Object crsValue; // value in the RowSet object
    Object resolverValue; // value in the SyncResolver object
    Object resolvedValue; // value to be persisted
    try {
    int row = resolver.getRow();
    while(resolver.nextConflict()) {
    if(resolver.getStatus() == SyncResolver.UPDATE_ROW_CONFLICT) {
    row = resolver.getRow();
    // this.absolute(row);
    int colCount = this.getMetaData().getColumnCount();
    for(int j = 1; j <= colCount; j++) {
    if (resolver.getConflictValue(j) != null) {
    // crsValue = this.getObject(j);
    resolverValue = resolver.getConflictValue(j);
    // compare crsValue and resolverValue to determine
    // which should be the resolved value (the value to persist)
    resolvedValue = resolverValue;
    resolver.setResolvedValue(j, resolvedValue);
    catch (SQLException e) {
    e.printStackTrace();
    }

    Call rowset.acceptChanges() on the rowset (not the SyncResolver) to synchronize changes with the database using the new resolved values.

  • UPDATE_ROW_CONFLICT

    Dear all,
    I get a great problem that I can't update records in dataprovider, I got the following message
    "java.lang.RuntimeException: Number of conflicts while synchronizing: 5 SyncResolver.UPDATE_ROW_CONFLICT row 5 attempt to update a row that has been updated or deleted by another user"
    And the code is as follows-
    try {
    getSessionBean1().getAbcRowSet().setObject(1, "123");
    getSessionBean1().getAbcDataProvider().refresh();
    if (getSessionBean1().getAbcDataProvider().cursorFirst()) {
    do {
    getSessionBean1().getAbcDataProvider().setValue("status", "1");
    } while (getSessionBean1().getAbcDataProvider().cursorNext());
    getSessionBean1().getAbcDataProvider().commitChanges();
    getSessionBean1().getAbcDataProvider().refresh();
    } catch (Exception e) {
    info (""+e);
    }

    I have no idea.
    But I suggest you set printStatements and check what is logged.
    http://blogs.sun.com/jfbrown/entry/creator_2_cachedrowset_logging

  • Invalid Column Name Problem

    Hi..
    I have a table component and that is bound to a Database Table.
    I have button name "UPDATE" which commits changes to DB.
    When I press "UPDATE" button an error occurs...
    Number of conflicts while synchronizing: 1 SyncResolver.UPDATE_ROW_CONFLICT row 0  [sunm][SQLServer JDBC Driver][SQLServer]Invalid column name 'date'.I dont have any column name "date".
    I tried my best but not yet successful..
    Thanks
    Tariq

    Hi RK,
    Here is the SQL Statement
    SELECT ALL dbo.DailyFlyingProg.FormationNo,
                        dbo.DailyFlyingProg.TailNo,
                        dbo.DailyFlyingProg.Pakno_Front,
                        dbo.DailyFlyingProg.Pakno_Rear,
                        dbo.DailyFlyingProg.MissionID,
                        dbo.DailyFlyingProg.Config,
                        dbo.DailyFlyingProg.Ready,
                        dbo.DailyFlyingProg.Take_Off,
                        dbo.DailyFlyingProg.Ess_Exe,
                        dbo.DailyFlyingProg.Area,
                        dbo.DailyFlyingProg.Stack_EAC
    FROM dbo.DailyFlyingProg
    WHERE dbo.DailyFlyingProg.Date1 = ? Thanks
    Tariq

  • Problem update a date field

    Hi,
    I have one table with a date field.
    For display all rows in a table component i'm using a dateTimeConverter object with format 'dd/MM/aaaa' and work fine.
    Bat when i update a data provider with follow code:
    public String update_action() {
    // TODO: Process the button click action. Return value is a navigation
    // case name where null will return to the same page.
    try {
    myDataProvider.commitChanges();
    myDataProvider.refresh();
    } catch(Exception e) {
    error("One error: " + e.getMessage());
    return null;
    return from brawser the follow message:
    Number of conflicts while synchronizing: 1 SyncResolver.UPDATE_ROW_CONFLICT row 2 Data Exception -- No Applicable Cast Operator. from SQL type BINARY to SQL type DATE
    Anyone help me!
    Thanks.

    If you are getting the date from a calendar you have to convert it before storing it, for example, in the following code, the date got from the calendar is converted to a java.sql.Date
    java.sql.Date date1 = new java.sql.Date(calendar1.getSelectedDate().getTime());
    I hope this helps =)

  • SUN TEAM: Bugs in update and delete a record with long query

    Creator Team,
    In my opinio there is a bug issue with update and delete a record with a complex sql query. I�m using oracleXE and ojdbc14.ar with tomcat
    In just two page I�m receving the following msg (I have 12 pages doing the same thing with less complex queries)
    * Number of conflicts while synchronizing: 1 SyncResolver.DELETE_ROW_CONFLICT row 2 won't delete as values in database have changed: 2006-11-29
    * Cannot commit changes: Number of conflicts while synchronizing: 1 SyncResolver.UPDATE_ROW_CONFLICT row 0 values changed in database
    when i tried to delete or commit the updated changes in the register...
    The interesting is that this code function with jdbc of jsc...
    My query is bellow:
    SELECT ALL PATRIMONIO.TB_BEM.INCODIGOBEM,
    PATRIMONIO.TB_BEM.VATOMBAMENTO,
    PATRIMONIO.TB_BEM.VAMATERIAL,
    PATRIMONIO.TB_BEM.INCODIGOSETOR,
    PATRIMONIO.TB_SETOR.VANOME AS NOMESETOR,
    PATRIMONIO.TB_BEM.INCODIGOFORNECEDOR,
    PATRIMONIO.TB_FORNECEDOR.VANOME AS NOMEFORNECEDOR,
    PATRIMONIO.TB_BEM.DACHEGADA ,
    PATRIMONIO.TB_BEM.DASAIDAPREVISTA,
    PATRIMONIO.TB_BEM.DASAIDAEFETIVA,
    PATRIMONIO.TB_BEM.VAMARCA,
    PATRIMONIO.TB_BEM.VAMODELO,
    PATRIMONIO.TB_BEM.VADESBAIXABEM,
    PATRIMONIO.TB_BEM.INCODIGOTIPOAQUISICAO,
    PATRIMONIO.TB_TIPOAQUISICAO.VANOME AS NOMETIPOAQUISICAO
    FROM PATRIMONIO.TB_BEM , PATRIMONIO.TB_TIPOAQUISICAO, PATRIMONIO.TB_SETOR, PATRIMONIO.TB_FORNECEDOR
    WHERE PATRIMONIO.TB_BEM.INCODIGOTIPOAQUISICAO = PATRIMONIO.TB_TIPOAQUISICAO.INCODIGOTIPOAQUISICAO
    AND PATRIMONIO.TB_BEM.INCODIGOSETOR = PATRIMONIO.TB_SETOR.INCODIGOSETOR
    AND PATRIMONIO.TB_BEM.INCODIGOFORNECEDOR = PATRIMONIO.TB_FORNECEDOR.INCODIGOFORNECEDOR
    AND PATRIMONIO.TB_BEM.INCODIGOBEM LIKE ?
    AND PATRIMONIO.TB_BEM.VATOMBAMENTO LIKE ?
    AND PATRIMONIO.TB_BEM.VAMATERIAL LIKE ?
    AND PATRIMONIO.TB_SETOR.VANOME LIKE ?
    AND PATRIMONIO.TB_FORNECEDOR.VANOME LIKE ?
    ORDER BY PATRIMONIO.TB_BEM.VATOMBAMENTO ASC
    Why this problem is happing? Did you had some solution for that? Is the problem because the query is too long?!
    please help me!
    Gustavo Callou

    Hello people,
    I�m doing this to try to solution that bug:
    This code is working fine... but I do not understand why I�m receiving the nullpointer exception!??!!?
    // create a new rowset
    CachedRowSetXImpl pkRowSet = new CachedRowSetXImpl();
    try {
    RowKey rk = tableRowGroup1.getRowKey();
    if (rk != null) {
    // set the rowset to use the Patrimonio database
    pkRowSet.setDataSourceName("java:comp/env/jdbc/Patrimonio");
    String query = "DELETE FROM TB_BEM WHERE INCODIGOBEM = "+tb_bemDataProvider.getValue("INCODIGOBEM", rk).toString();
    pkRowSet.setCommand(query);
    pkRowSet.setTableName("TB_BEM");
    // execute the rowset -- which will contain a single row and single column
    pkRowSet.execute();
    pkRowSet.next();
    info("Apagado");
    } catch (Exception ex) {
    log("ErrorDescription", ex);
    error(getApplicationBean1().trateException(ex.getMessage()));
    } finally {
    pkRowSet.close();
    Please someone help me!!!
    Gustavo Callou

  • Project works when tested but RowConflicts when deployed

    I have a project page with some pretty simple code to open a table and update it. The fields are all open for update and virtual forms configured to participate in a save action. The save works and commits the changes to the database (oracle) when using the creator studio to build/run the project. However, when I deploy the WAR to the Sun Application server using the same driver setup, I get a ROW_UPDATE_CONFLICT error on the rows that have been modified. This is a complete show stopper. What am I missing here?
    javax.servlet.ServletException: Number of conflicts while synchronizing: 3 SyncResolver.UPDATE_ROW_CONFLICT row 2 values changed in database
    root cause
    java.lang.RuntimeException: Number of conflicts while synchronizing: 3 SyncResolver.UPDATE_ROW_CONFLICT row 2 values changed in database

    I got exactly the same thing as you did, except that I am using Tomcat 5.5.17 instead.
    It has wasted me a lot of time.
    Message was edited by:
    Mountainer

  • Incorrect arguments to mysql_stmt_execute

    Hi there,
    i'm spending 2 days by trying to solve an apparently stupid problem:
    I'm using DataProvider and RowSet in a simple jsf page. The table I want to update is composed by 3 FK and 1PK(auto-increment). DBMS=MySQL.
    I can insert without problems by using setInsertableColumns.
    The problem arises when I try to update. This is the code:
    !!!! CODE snippet !!!!
    CachedRowSetX crs = (CachedRowSetX)listino_dettaglioDataProvider.getCachedRowSet();
    crs.setUpdatableColumns( new boolean[] { true, true, true, true,false } ) ;
    mDataProvider.setValue("t.PRO_ID",id,proid); // FK field
    ...toher FKs...
    mDataProvider.setValue("t.PRICE",id,price); // simple field
    ...NO PK setting...just row update...
    mDataProvider.commitChanges();
    !!!THIS the ERROR:!!!
    Number of conflicts while synchronizing: 1 SyncResolver.UPDATE_ROW_CONFLICT row 1 Incorrect arguments to mysql_stmt_execute
    !!!THIS IS PRINTSTATEMENTS OUTPUT!!!!
    INSERT INTO dbmultisite2.t (PRO_ID, PRICE, FAS_ID, LIS_ID) VALUES (?, ?, ?, ?)
    SELECT PRO_ID, PRICE, FAS_ID, LIS_ID, LISDET_ID FROM dbmultisite2.t WHERE PRO_ID = ? AND PRICE = ? AND FAS_ID = ? AND LIS_ID = ? AND LISDET_ID = ?
    Paramm[1]=(java.lang.Integer,1) Paramm[2]=(java.math.BigDecimal,0.10) Paramm[3]=(java.lang.Integer,12155) Paramm[4]=(java.lang.Integer,17) Paramm[5]=(java.lang.Integer,21)
    Writer: executing pre-update SELECT
    !!!! END !!!!
    so my questions are:
    - why INSERT????
    - what argument is incorrect?? I ask this because when you go wrong this a column the jdbc says "ColsXYZ error...." but, in this case, the stmt is wrong but no more info I can get.
    - I used the same approce with other tables with/out FKs,PK and I have no problem...
    can some1 give me an explanation?
    tnx
    michelangelo

    solved.
    the question is mysql related. downalod last mysql-jdbc-driver
    no jsf problem... :)..fortunately
    michelangelo

  • 10g table edit

    Hi All .
    I am facing a problem in 10g, when i log in as a normal user in the dbconsole and click in adminstartor&gt;schema&gt; table&gt;
    and i find the list of all tables in my schema, but when i try to edit it gives me the following error.
    pls help me solve the problem.
    500 Internal Server Error
    java.lang.NullPointerException
    at oracle.sysman.emo.adm.schema.table.DBTableConstraintsInitializer.initializeConstraintColumns(DBTableConstraintsInitializer.java:170)
    at oracle.sysman.emo.adm.schema.table.DBTableConstraintsInitializer.initialize(DBTableConstraintsInitializer.java:76)
    at oracle.sysman.emo.adm.ComponentDBObject.initialize(ComponentDBObject.java:177)
    at oracle.sysman.emo.adm.schema.table.TableConstraints.initialize(TableConstraints.java:140)
    at oracle.sysman.db.adm.schm.TableGeneralController.initUIBean(TableGeneralController.java:808)
    at oracle.sysman.db.adm.schm.TableGeneralController.setRequestAttributes(TableGeneralController.java:583)
    at oracle.sysman.db.adm.schm.TableController.setRequestAttributes(TableController.java:1891)
    at oracle.sysman.db.adm.DBController.handleEvent(DBController.java:3120)
    at oracle.sysman.emSDK.svlt.PageHandler.handleRequest(PageHandler.java:376)
    at oracle.sysman.db.adm.RootController.handleRequest(RootController.java:169)
    at oracle.sysman.db.adm.DBControllerResolver.handleRequest(DBControllerResolver.java:114)
    at oracle.sysman.emSDK.svlt.EMServlet.myDoGet(EMServlet.java:688)
    at oracle.sysman.emSDK.svlt.EMServlet.doGet(EMServlet.java:291)
    at oracle.sysman.eml.app.Console.doGet(Console.java:285)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind[http://Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
    at oracle.sysman.emSDK.svlt.EMRedirectFilter.doFilter(EMRedirectFilter.java:101)
    at com.evermind[http://Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
    at oracle.sysman.db.adm.inst.HandleRepDownFilter.doFilter(HandleRepDownFilter.java:138)
    at com.evermind[http://Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20)
    at oracle.sysman.eml.app.ContextInitFilter.doFilter(ContextInitFilter.java:269)
    at com.evermind[http://Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:600)
    at com.evermind[http://Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
    at com.evermind[http://Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:793)
    at com.evermind[http://Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
    at com.evermind[http://Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
    at com.evermind[http://Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
    at java.lang.Thread.run(Thread.java:534)

    I�m using oracleXE with the ojdbc14.jar... and tomcat
    In just two page I�m receving the following msg
    * Number of conflicts while synchronizing: 1 SyncResolver.DELETE_ROW_CONFLICT row 2 won't delete as values in database have changed: 2006-11-29
    * Cannot commit changes: Number of conflicts while synchronizing: 1 SyncResolver.UPDATE_ROW_CONFLICT row 0 values changed in database
    when i tried to delete or commit the updated changes in the register...
    My query is bellow:
    SELECT ALL PATRIMONIO.TB_BEM.INCODIGOBEM,
    PATRIMONIO.TB_BEM.VATOMBAMENTO,
    PATRIMONIO.TB_BEM.VAMATERIAL,
    PATRIMONIO.TB_BEM.INCODIGOSETOR,
    PATRIMONIO.TB_SETOR.VANOME AS NOMESETOR,
    PATRIMONIO.TB_BEM.INCODIGOFORNECEDOR,
    PATRIMONIO.TB_FORNECEDOR.VANOME AS NOMEFORNECEDOR,
    PATRIMONIO.TB_BEM.DACHEGADA ,
    PATRIMONIO.TB_BEM.DASAIDAPREVISTA,
    PATRIMONIO.TB_BEM.DASAIDAEFETIVA,
    PATRIMONIO.TB_BEM.VAMARCA,
    PATRIMONIO.TB_BEM.VAMODELO,
    PATRIMONIO.TB_BEM.VADESBAIXABEM,
    PATRIMONIO.TB_BEM.INCODIGOTIPOAQUISICAO,
    PATRIMONIO.TB_TIPOAQUISICAO.VANOME AS NOMETIPOAQUISICAO
    FROM PATRIMONIO.TB_BEM , PATRIMONIO.TB_TIPOAQUISICAO, PATRIMONIO.TB_SETOR, PATRIMONIO.TB_FORNECEDOR
    WHERE PATRIMONIO.TB_BEM.INCODIGOTIPOAQUISICAO = PATRIMONIO.TB_TIPOAQUISICAO.INCODIGOTIPOAQUISICAO
    AND PATRIMONIO.TB_BEM.INCODIGOSETOR = PATRIMONIO.TB_SETOR.INCODIGOSETOR
    AND PATRIMONIO.TB_BEM.INCODIGOFORNECEDOR = PATRIMONIO.TB_FORNECEDOR.INCODIGOFORNECEDOR
    AND PATRIMONIO.TB_BEM.INCODIGOBEM LIKE ?
    AND PATRIMONIO.TB_BEM.VATOMBAMENTO LIKE ?
    AND PATRIMONIO.TB_BEM.VAMATERIAL LIKE ?
    AND PATRIMONIO.TB_SETOR.VANOME LIKE ?
    AND PATRIMONIO.TB_FORNECEDOR.VANOME LIKE ?
    ORDER BY PATRIMONIO.TB_BEM.VATOMBAMENTO ASC
    Why this problem is happing? Did you had some solution for that? Is the problem because the query is too long?! In jsc with the jdbc from the app... this is working fine.
    please help me!

  • Number of conflicts while synchronizing: 4 SyncResolver.INSERT_ROW_CONFLICT

    Hi All,
    I have a problem saving edits and new rows to a data table.
    I get the following error Number of conflicts while synchronizing: 4 SyncResolver.INSERT_ROW_CONFLICT
    This is described as :
    Indicates that a conflict occurred while the RowSet object was attempting to insert a row into the data source. This means that a row with the same primary key as the row to be inserted has been inserted into the data source since the last synchronization.
    I can see however that the code is generating new primary keys as it should so I am baffled.
    The code for the addItem button and save changes is shown below.
    Any insight welcome
    Thanks
    Jim
    public String addItemButton_action() {
    try {
    RowKey rk = productsDataProvider.appendRow();
    productsDataProvider.setCursorRow(rk);
    productsDataProvider.setValue("PRODUCTS.PRODUCTINFOID",new Integer(0));
    productsDataProvider.setValue("PRODUCTS.PRODUCTID",new String("A"));
    productsDataProvider.setValue("PRODUCTS.INFO",new String("B"));
    productsDataProvider.setValue("PRODUCTS.RPRICE",new Integer(3));
    productsDataProvider.setValue("PRODUCTS.WPRICE",new Integer(5));
    productsDataProvider.setValue("PRODUCTS.STYLE",new String("C"));
    productsDataProvider.setValue("PRODUCTS.TYPE",new String("D"));
    productsDataProvider.setValue("PRODUCTS.STOCK",new Integer(8));
    productsDataProvider.setValue("PRODUCTS.DELAY",new Integer(9));
    productsDataProvider.setValue("PRODUCTS.COLOUR",new String("E"));
    productsDataProvider.setValue("PRODUCTS.MATERIAL",new String("F"));
    productsDataProvider.setValue("PRODUCTS.SIZE",new String("G"));
    productsDataProvider.setValue("PRODUCTS.ROOM",new String("H"));
    productsDataProvider.setValue("PRODUCTS.SHOW",new String("bool"));
    productsDataProvider.setValue("PRODUCTS.SUPPLIERID",supplierDD.getSelected());
    } catch (Exception ex) {
    log("Error Description", ex);
    return null;
    // Get the next key using result of queery on MaxProducts data provider
    public String saveChanges_action() {
    try {
    CachedRowSetDataProvider maxProducts = getSessionBean1().getMaxProductsDataProvider();
    maxProducts.refresh();
    maxProducts.cursorFirst();
    int newProductInfoID = ((Long)maxProducts.getValue("MAXPRODUCTSINFOID")).intValue();
    //Navigate through rows with data provider
    if (productsDataProvider.getRowCount()>0){
    productsDataProvider.cursorFirst();
    do {
    if(productsDataProvider.getValue("PRODUCTS.PRODUCTINFOID").equals(new Integer(0))){
    log("In the start of the if..."+newProductInfoID);
    error("In the start of the if..."+newProductInfoID);
    productsDataProvider.setValue("PRODUCTS.PRODUCTINFOID", new Integer(newProductInfoID));
    newProductInfoID++;
    //log("In the if...");
    //error("In the if...");
    }while (productsDataProvider.cursorNext());
    productsDataProvider.commitChanges();
    log("After commitChanges(...");
    error("After commitChanges...");
    } catch (Exception ex) {
    log("Couldnae save the changes", ex);
    error("Couldnae save the changes"+ ex.getMessage());
    return null;
    }

    have you tried using an auto increment field for your primary key in your database table - you can then use the cached rowset's setInsertableColumns() method to include all but the primary key field, and your db autogenerates the next value(s) on insert - it seems to working swimingly on MySQL and saves a lot of messy code
    (you can can still do all your field assignments with the dataprovider)
    Paul.

Maybe you are looking for

  • How to track session in Webdynpro Java application

    Hi All, How to get the session reference of any Webdynpro Java Application . My purpose is that thr is one WD application is getting launched , now if suppose user didn't perform any action on it and session for that application got expired . After t

  • Doubt In File Content Conversion

    HI, I need a  help on creating a header line with tab spaces example name   <tabspace>         NO    <tabspace>         EMP ID   i know the option of using addHeaderLine but in this how to leave the tab spaces between the header fileds. i have tried

  • How to hide JSESSIONID in first-page Url?

    Hi! Is it possible to hide JSESSIONID in url of first accessed page in application? (In non-SSL config,copying this param allows any client to gain access to server session, which is previously authenticated, and thus avoid JAAS authentication. This

  • Help on project for the university

    hi, i'am making a practical work about software testing on mobile devices. i have a mac so i want to use xcode and the aspen simulater with instruments (to make the software testing) . but a need a aplication to test . i have found some aplications f

  • I DID DOWNLOAD ADOBE SHOCKWAVE PLAYER...BUT I CANT MAKE IT OPEN ANY OF MY GAMES OR VIDEO....PLEASE HELP

    I DOWNLOADED ADOBE SHOCK WAVE PLAYER BUT IT WONT OPEN ANY OF MY GAMES OR VIDEOS . DID IT MANY TIMES BUT I CANT MAKE IT OPEN CAN ANY ONE HELP ME