Problem during updating database

Hi,
  I am creating purchase order for a material, system allows me to create the one and if i save system gives the order number also,  but if i check the same in display or change it says no document exists and gives the info message
  " Express document update was terminated received from the author abap"
system gives the message almost all the time
what may be the probable cause?????
Pavan

Hi,
I think some custom modification has been done . Check that part may be that modification is not working properly,
Thanks
Dipak

Similar Messages

  • Problem during updating batch master

    Hi All,
    I am facing problem during batch updation. There is one RF program for creation of goods movement. After material document is created the batch needs to be updated. I have called BAPI_BATCH_CHANGE for updating country of origin, vendor batch and Z function module for updating revision level. Sometimes all fields gets updated properly and sometimes they dont. I have debug program and there is no coding problem. If i debug then all fields get updated properly. I am unable to trace then error. Is this logical database problem? If not then what can be the issue.
    Please help.
    Thanks in advance.
    Regards,
    Shobhit

    Hi Shobhit,
    Are you using the FM BAPI_TRANSACTION_COMMIT, to commit after the BAPI is called, if yes, this might be causing the data not to be saved for the customer function module, when you use the COMMIT, all the LUW will be cleared and the the data after commit won't be saved....
    so do the COMMIT work, after your customer function module, or call your function module before the BAPI,,,,once all FM's are called, then do the commit, it will work.
    Thanks,
    Srini.

  • Problem in update database statistics

    when i run
    update database statistics
    when it completed it becomes red
    then i check it out
    log file  there i found error
    BR0301E SQL error -904 at location stats_ind_collect-3, SQL statement:                                                                       
    'BEGIN DBMS_STATS.GATHER_INDEX_STATS (OWNNAME => '"SAPECC"', INDNAME => '"SNAP~0"', ESTIMATE_PERCENT => NULL, DEGREE => NULL, NO_INVALIDATE => FALSE); END;                                                                      
    ORA-00904: : invalid identifier                                                                               
    ORA-06512: at "SYS.DBMS_STATS", line 10621                                                                               
    ORA-06512: at "SYS.DBMS_STATS", line 10645                                                                               
    ORA-06512: at line 1                                                                               
    BR0886E Checking/collecting statistics failed for index SAPECC.SNAP~0                                                                        
    BR0280I BRCONNECT time stamp: 2009-11-03 10.56.12                                                                               
    BR0301E SQL error -904 at location stats_ind_collect-3, SQL statement:                                                                       
    'BEGIN DBMS_STATS.GATHER_INDEX_STATS (OWNNAME => '"SAPECC"', INDNAME => '"SNAP~DSX"', ESTIMATE_PERCENT => NULL, DEGREE => NULL, NO_INVALIDATE
    ORA-00904: : invalid identifier                                                                               
    ORA-06512: at "SYS.DBMS_STATS", line 10621                                                                               
    ORA-06512: at "SYS.DBMS_STATS", line 10645                                                                               
    ORA-06512: at line 1                                                                               
    BR0886E Checking/collecting statistics failed for index SAPECC.SNAP~DSX                                                                      
    what will i do
    please suggest something

    Hi Anant ,
    I think you need to update your brtool patch as described in [Note 874911 - Workaround for ORA-31603 (BR0996E) during reorganization|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=874911].
    Hope it will solve your problem as it is due to bug in oracle.
    Regards,
    Gagan Deep Kaushal

  • How to determine different errors during update database with JDBC 2.0

    During updating my database (MS Access 2000) using JDBC 2.0, I entered a value for the primary key field which has existed
    in the database. However, when executing the method "udpateRow()" it gives me an error message "Error in row" and the
    database was not updated.
    When I update an Integer field with a non-integer value (e.g: Characters ), it also gives me the same error message. When I
    update a Date field with a non-date value, it still displays the same error message.
    How can I determine for each of the cases from the SQLException thrown that the actual error has occurred since I want to
    display a different customized message indicating the different errors that occurred during updating??
    Currently, part of my code is as follows:
              int currentRow = rs.getRow();
              String values[] = new String[ rsmd.getColumnCount() ];
              // Initialize values[] begins here:
              for( int count = 1; count <= rsmd.getColumnCount(); count++ ) {
                   rs.updateObject( count, values[ count - 1 ] );
              try{
                   rs.updateRow();
              catch( SQLException e ) {
                   System.out.println( e.getMessage() );
                   rs.cancelRowUpdates();
                   rs.absolute( currentRow );
    Can someone please help me solve this problem?? THANKS.. :)

    Rather than attempting to figure out which column value causes the update to fail, I would try validating the input data before you attempt to use it in a SQL update. Of course, this would only be useful if you know what data types the inputs are supposed to be in advance of running the update.
    William

  • Problems during updates

    hi to all,
    I've a strange problem during the software update.
    If I move some application from /Applications to a sub-folder (e.g. /Applications/MyApps) then the software updates does not notify the available updates.
    This behaviour occurs for examples for iLife (iWeb, iDVD, etc...)
    In order to update the software I have to move again, for examples, iDVD from /Applications/MyApps to /Applications.
    Have someone the response to this? How can I resolve this problems?
    Thansk to all
    MacBook 13.3"   Mac OS X (10.4.8)  

    Hi alex,
    first of all: WELCOME TO THE DISCUSSIONS!
    You cannot resolve this issue since it is not a problem but a "feature" of most Apple programs. If you want to use software update you have to leave all Apple programs in their default location.
    If this answered your question please consider granting some stars: Why reward points?

  • ERP EHP4 Installation Problem in Update Database registry Phase.

    Hi,
    We are installing ERP 6.0 EHP4 Ready SR1 on AIX6.1 (6100-03-01-0921)  and DB2 v9.1.0.7.
    During installation in phase Update Database Registry, we are getting below error:
    SQL1042C  An unexpected system error occurred
    If any body has faced this error earlier, then please suggest.
    Thanks
    Sunny

    Hi,
    Please find below the latest entries in db2diag.log:
    2009-12-14-20.15.17.555605-330 I25354A304         LEVEL: Event
    PID     : 630830               TID  : 1           PROC : db2stop2
    INSTANCE: db2ged               NODE : 000
    FUNCTION: DB2 UDB, base sys utilities, DB2StopMain, probe:260
    DATA #1 : String, 43 bytes
    System controller termination is completed.
    2009-12-14-20.15.17.555785-330 I25659A383         LEVEL: Event
    PID     : 630830               TID  : 1           PROC : db2stop2
    INSTANCE: db2ged               NODE : 000
    FUNCTION: DB2 UDB, base sys utilities, DB2StopMain, probe:270
    DATA #1 : String, 26 bytes
    Active EDUs to be waited :
    DATA #2 : Hexdump, 4 bytes
    0x0FFFFFFFFFFFCF70 : 0000 0001                                  ....
    2009-12-14-20.15.17.565945-330 I26043A381         LEVEL: Event
    PID     : 630830               TID  : 1           PROC : db2stop2
    INSTANCE: db2ged               NODE : 000
    FUNCTION: DB2 UDB, base sys utilities, DB2StopMain, probe:280
    DATA #1 : String, 24 bytes
    There is no active EDUs.
    DATA #2 : Hexdump, 4 bytes
    0x0FFFFFFFFFFFCF70 : 0000 0000                                  ....
    2009-12-14-20.15.17.830570-330 E26425A301         LEVEL: Event
    PID     : 630830               TID  : 1           PROC : db2stop2
    INSTANCE: db2ged               NODE : 000
    FUNCTION: DB2 UDB, base sys utilities, DB2StopMain, probe:911
    MESSAGE : ADM7514W  Database manager has stopped.
    STOP    : DB2 DBM
    2009-12-14-20.15.24.936396-330 I26727A1630        LEVEL: Event
    PID     : 545014               TID  : 1           PROC : db2start
    INSTANCE: db2ged               NODE : 000
    FUNCTION: DB2 UDB, base sys utilities, sqleStartStopSingleNode, probe:1130
    DATA #1 : String, 31 bytes
    /db2/db2ged/sqllib/adm/db2star2
    DATA #2 : Hexdump, 256 bytes
    0x0FFFFFFFFFFF9C20 : 2F64 6232 2F64 6232 6765 642F 7371 6C6C    /db2/db2ged/sqll
    0x0FFFFFFFFFFF9C30 : 6962 2F61 646D 2F64 6232 7374 6172 3200    ib/adm/db2star2.
    0x0FFFFFFFFFFF9C40 : 4E4F 4D53 4700 0000 0000 0000 0000 0000    NOMSG...........
    0x0FFFFFFFFFFF9C50 : 0000 0000 0000 0000 0000 0000 0000 0000    ................
    0x0FFFFFFFFFFF9C60 : 0000 0000 0000 0000 0000 0000 0000 0000    ................
    0x0FFFFFFFFFFF9C70 : 0000 0000 0000 0000 0000 0000 0000 0000    ................
    0x0FFFFFFFFFFF9C80 : 0000 0000 0000 0000 0000 0000 0000 0000    ................
    0x0FFFFFFFFFFF9C90 : 0000 0000 0000 0000 0000 0000 0000 0000    ................
    0x0FFFFFFFFFFF9CA0 : 0000 0000 0000 0000 0000 0000 0000 0000    ................
    0x0FFFFFFFFFFF9CB0 : 0000 0000 0000 0000 0000 0000 0000 0000    ................
    0x0FFFFFFFFFFF9CC0 : 0000 0000 0000 0000 0000 0000 0000 0000    ................
    0x0FFFFFFFFFFF9CD0 : 0000 0000 0000 0000 0000 0000 0000 0000    ................
    0x0FFFFFFFFFFF9CE0 : 0000 0000 0000 0000 0000 0000 0000 0000    ................
    0x0FFFFFFFFFFF9CF0 : 0000 0000 0000 0000 0000 0000 0000 0000    ................
    0x0FFFFFFFFFFF9D00 : 0000 0000 0000 0000 0000 0000 0000 0000    ................
    0x0FFFFFFFFFFF9D10 : 0000 0000 0000 0000 0000 0000 0000 0000    ................
    2009-12-14-20.15.25.077684-330 E28358A856         LEVEL: Warning
    PID     : 602312               TID  : 1           PROC : db2star2
    INSTANCE: db2ged               NODE : 000
    FUNCTION: DB2 UDB, license manager, sqllcRequestAccess, probe:1
    MESSAGE : ADM12007E  There are "89" day(s) left in the evaluation period for
              the product "DB2 Enterprise Server Edition". For evaluation license
              terms and conditions, refer to the IBM License Acceptance and License
              Information document located in the license directory in the
              installation path of this product. If you have licensed this product,
              ensure the license key is properly registered. You can register the
              license via the License Center or db2licm command line utility. The
              license file can be obtained from your licensed product CD.
    2009-12-14-20.15.25.174108-330 E29215A384         LEVEL: Warning
    PID     : 667782               TID  : 1           PROC : db2wdog 0
    INSTANCE: db2ged               NODE : 000
    FUNCTION: DB2 UDB, routine_infrastructure, sqlerInitFmpTable, probe:30
    DATA #1 : String, 16 bytes
    agentCachingFmp:
    DATA #2 : String, 3 bytes
    OFF
    DATA #3 : String, 5 bytes
    Flag:
    DATA #4 : Boolean, 1 bytes
    false
    2009-12-14-20.15.26.288917-330 E29600A1208        LEVEL: Event
    PID     : 602312               TID  : 1           PROC : db2star2
    INSTANCE: db2ged               NODE : 000
    FUNCTION: DB2 UDB, base sys utilities, DB2StartMain, probe:911
    MESSAGE : ADM7513W  Database manager has started.
    START   : DB2 DBM
    DATA #1 : Build Level, 152 bytes
    Instance "db2ged" uses "64" bits and DB2 code release "SQL09017"
    with level identifier "02080107".
    Informational tokens are "DB2 v9.1.0.7", "s090308", "U823509", Fix Pack "7".
    DATA #2 : System Info, 224 bytes
    System: AIX gpldeve1 1 6 00C1EF854C00
    CPU: total:8 online:4 Threading degree per core:2
    Physical Memory(MB): total:14336 free:10662
    Virtual  Memory(MB): total:35328 free:31640
    Swap     Memory(MB): total:20992 free:20978
    Kernel   Params: msgMaxMessageSize:4194304 msgMaxQueueSize:4194304
                     shmMax:68719476736 shmMin:1 shmIDs:131072
                     shmSegments:68719476736 semIDs:131072 semNumPerID:65535
                     semOps:1024 semMaxVal:32767 semAdjustOnExit:16384
    Cur data size (bytes)  = 0x7FFFFFFFFFFFFFFF
    Cur stack size (bytes)  = 0x7FFFFFFFFFFFFFFF
    Cur core size (bytes)  = 0x0000000077359400
    nofiles (descriptors)  = 0x7FFFFFFFFFFFFFFF
    2009-12-14-20.18.03.426764-330 E30809A597         LEVEL: Warning (OS)
    PID     : 544840               TID  : 1           PROC : db2set
    INSTANCE: db2ged               NODE : 000
    FUNCTION: DB2 UDB, oper system services, sqloqcurdir, probe:100
    MESSAGE : ZRC=0x840F0001=-2079391743=SQLO_ACCD "Access Denied"
              DIA8701C Access denied for resource "", operating system return code
              was "".
    CALLED  : OS, -, unspecified_system_function
    OSERR   : EACCES (13) "Permission denied"
    DATA #1 : File name, 0 bytes
    Object not dumped: Address: 0x0FFFFFFFFFFFE688 Size: 0 Reason: Zero-length data
    2009-12-14-20.18.03.429260-330 I31407A290         LEVEL: Event
    PID     : 544840               TID  : 1           PROC : db2set
    INSTANCE: db2ged               NODE : 000
    FUNCTION: DB2 UDB, oper system services, db2set_main, probe:40
    CHANGE  : CFG DB2SET: DB2_WORKLOAD: From: "SAP" To: "SAP"
    Thanks
    Sunny

  • Problem with updating database

    Hi, gurus. here is the snippet of my program, dont know why it doesnt work properly.
    //this the first java bean, storing user's form inputs
    public class FirstPageBean
      private String userName;
      private String docType;
      private int index;
      public FirstPageBean()
           userName = "admin";
           docType = "book";
           index = 0;
      public void setUserName(String name) {userName = name;}
      public String getUserName(){userName = userName.trim(); return userName;}
      public void setDocType(String docType){this.docType = docType;}
      public String getDocType(){docType = docType.trim(); return docType;}
      public void setIndex(int index){this.index = index;}
      public int getIndex(){index = index.trim(); return index;}
    //the second java bean is basically the same fashion as the first one.
    The problem is in the following sinppet of the third java bean.
    Instead of instoring the user's inputs into a table in my database,
    what i actually get from this entries are all their default values,
    like "admin" for userName, "book" for docType etc. The first and
    second bean have been tested and they successfully instored user's
    inputs into their conresponding properties. But i just cant figure
    out why these values are not successfully retrived from the
    ControllerBean.
    public class ControllerBean
       //blah blah....
       public void update(){
       String userName = new FirstPageBean().getUserName();
       String docType = new FirstPageBean().getDocType();
       int index = new FirstPageBean().getIndex();
       Connection conn = connect();
       PreparedStatement stat = conn.prepareStatement("insert into movie values (?,?,?)");
                    stat.setString(1, userName);
                    stat.setInt(2, index);
                    stat.setString(3, docType);
       stat.executeUpdate();
    }Any help would be deeply appreciated. thanx in advance.

    Wherever it is that you accept input from the user for the three values, assign them to the three fields you use for the SQL statement.
    If you really want to use the getXxx and setXxx methods, instantiate a single FirstPageBean and use the setXxx methods.
    FirstPageBean FPB = new FirstPageBean();
    FPB.setUserName( userNameFromInput );
    FPB.setDocType( docTypeFromInput );
    FBP.setIndex( indexFromInput);
    Connection conn = connect();  
    PreparedStatement stat = conn.prepareStatement("insert into movie values (?,?,?)");               
    stat.setString(1, FPB.getUserName);               
    stat.setInt(2, FPB.getIndex);               
    stat.setString(3, FPB.getDocType);  
    stat.executeUpdate();I haven't compiled this but you should get the idea.
    HTH
    Walk Good

  • Problems during update

    just after a few days where my new iPod Nano works great with all the stored music and potcasts I want to solve the 'volume problem' with an update to version 1.1.1.
    While bad thinks may happen - during the upgrade process my notebook 'go to sleep' and therefore terminates the upgrade process. What is the result?
    1) iPod Nano shows the new software version in his menu and is 'so far' usable
    2) The space previously used for music .. seems to be still allocated.
    3) The iPod menu shows not a single stored title, album .. and seems to be logical 'empty'
    4) My trey to restore the whole iPod using the update software wasn’t successful because 'iPod couldn’t be found' (hung up in the 'please connect your iPod' menu)
    5) Connecting the iPod shows up the drive letter under Windows - trying to open the drive results in an error 'such as drive not available'
    Is there anything I can do except asking for a hardware exchange?
    Any help is very welcome.
    Thanks a lot - Hans

    After loading global setting -> Unit of Measure in BI, repeat the DTP for UOM0MATE should solve the issue.
    Here are the steps...
    Go to RSA1 -> Modeling( On left side) -> Source System(Select sorce system on left).
    right click on source system ( on right ) and click on Transfer Global Setting.
    check Units of measurement, select rebuid tables and execute.
    after transferring global setting run the DTP again for UOM0MATE.
    The data should load properly without any error.

  • Toplink 11.1.1.1.0 Locking problem during update using ServerSession

    Hi,
    I m using toplink as ORM tool in my project. I have a scenario wherein I m using ServerSession and acquiring UnitOfWork. I do locking on the orm entity using following code.
    ExpressionBuilder builder = new ExpressionBuilder();
         Expression expr = builder.get("id").equal(id);
         Employee employee = (Employee )uow.readObject(Employee .class, expr);                    
    try {
              uow.refreshAndLockObject(employee, ObjectLevelReadQuery.LOCK_NOWAIT);
         } catch (Exception e){
              throw new LockedException(); //Custom exception
    The execution fails with the following error details.
    Exception [TOPLINK-4002] (Oracle TopLink - 10g Release 3 (10.1.3.3.0) (Build 070428)): oracle.toplink.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: ORA-01747: invalid user.table.column, table.column, or column specification
    Error Code: 1747
    Call:SELECT ID, UDF_VALUE_20, UDF_VALUE_21, CATEGORY FROM EMPLOYEE WHERE (ID = 20001) FOR UPDATE OF * NOWAIT
    Query:ReadObjectQuery(com.ofss.elcm.domain.ge.Liability)
         at oracle.toplink.exceptions.DatabaseException.sqlException(DatabaseException.java:290)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:581)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:441)
         at oracle.toplink.publicinterface.Session.executeCall(Session.java:728)
         at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:117)
         at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:103)
         at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.selectOneRow(DatasourceCallQueryMechanism.java:501)
         at oracle.toplink.internal.queryframework.ExpressionQueryMechanism.selectOneRowFromTable(ExpressionQueryMechanism.java:862)
         at oracle.toplink.internal.queryframework.ExpressionQueryMechanism.selectOneRow(ExpressionQueryMechanism.java:837)
         at oracle.toplink.queryframework.ReadObjectQuery.executeObjectLevelReadQuery(ReadObjectQuery.java:415)
         at oracle.toplink.queryframework.ObjectLevelReadQuery.executeDatabaseQuery(ObjectLevelReadQuery.java:811)
         at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:620)
         at oracle.toplink.queryframework.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:779)
         at oracle.toplink.queryframework.ReadObjectQuery.execute(ReadObjectQuery.java:388)
         at oracle.toplink.queryframework.ObjectLevelReadQuery.executeInUnitOfWork(ObjectLevelReadQuery.java:836)
         at oracle.toplink.publicinterface.UnitOfWork.internalExecuteQuery(UnitOfWork.java:2604)
         at oracle.toplink.publicinterface.Session.executeQuery(Session.java:993)
         at oracle.toplink.publicinterface.Session.executeQuery(Session.java:950)
         at oracle.toplink.publicinterface.Session.refreshAndLockObject(Session.java:2632)
    However if I load the UnitOfWork using DatabaseSession it works fine and build the query like this.
    SELECT ID, UDF_VALUE_20, UDF_VALUE_21, CATEGORY  FROM EMPLOYEE WHERE (ID = 20001) FOR UPDATE NOWAIT
    Thanks in Advance.
    Srini

    Hi Chris,
    Yes you are right, databasePlatform is set in the sessions.xml. However I have created two sessions.xml one for database session and the other for server session. In both the cases the file content is same except for session name.
    database-session.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <!--<?xml version="1.0" encoding="Cp1252"?>-->
    <toplink-sessions version="11g Release 1 (11.1.1.1.0)" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <session xsi:type="server-session">
    <name>database-session</name>
    <event-listener-classes/>
    <logging xsi:type="toplink-log">
    <log-level>finest</log-level>
    </logging>
    <primary-project xsi:type="xml">META-INF/employee.xml</primary-project>
    <login xsi:type="database-login">
    <platform-class>oracle.toplink.platform.database.oracle.Oracle10Platform</platform-class>
    <!--<external-connection-pooling>true</external-connection-pooling>
    --><!-- Thru Junit Testing -->
         <user-name>Test1</user-name>
                   <password>Test1</password>
    <sequencing>
    <default-sequence xsi:type="table-sequence">
    <name>Default</name>
    <preallocation-size>100</preallocation-size>
    </default-sequence>
    </sequencing>
    <!-- Thru Junit Testing -->
                   <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
                   <connection-url>jdbc:oracle:thin:@testDB:1521:ORCL</connection-url>
    <!--<datasource lookup="string">jdbc/TestDataSource</datasource>
    --></login>
    <connection-pools>
    <read-connection-pool>
    <name>ReadConnectionPool</name>
    </read-connection-pool>
    <write-connection-pool>
    <name>default</name>
    </write-connection-pool>
    </connection-pools>
    <connection-policy/>
    </session>
    </toplink-sessions>
    server-session.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <!--<?xml version="1.0" encoding="Cp1252"?>-->
    <toplink-sessions version="11g Release 1 (11.1.1.1.0)" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <session xsi:type="server-session">
    <name>server-session</name>
    <event-listener-classes/>
    <logging xsi:type="toplink-log">
    <log-level>finest</log-level>
    </logging>
    <primary-project xsi:type="xml">META-INF/employee.xml</primary-project>
    <login xsi:type="database-login">
    <platform-class>oracle.toplink.platform.database.oracle.Oracle10Platform</platform-class>
    <!--<external-connection-pooling>true</external-connection-pooling>
    --><!-- Thru Junit Testing -->
         <user-name>Test1</user-name>
                   <password>Test1</password>
    <sequencing>
    <default-sequence xsi:type="table-sequence">
    <name>Default</name>
    <preallocation-size>100</preallocation-size>
    </default-sequence>
    </sequencing>
    <!-- Thru Junit Testing -->
                   <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
                   <connection-url>jdbc:oracle:thin:@testDB:1521:ORCL</connection-url>
    <!--<datasource lookup="string">jdbc/TestDataSource</datasource>
    --></login>
    <connection-pools>
    <read-connection-pool>
    <name>ReadConnectionPool</name>
    </read-connection-pool>
    <write-connection-pool>
    <name>default</name>
    </write-connection-pool>
    </connection-pools>
    <connection-policy/>
    </session>
    </toplink-sessions>
    And I m loading the xmls uring singleton java class.
    import java.io.IOException;
    import oracle.toplink.exceptions.TopLinkException;
    import oracle.toplink.sessions.DatabaseSession;
    import oracle.toplink.threetier.ServerSession;
    import oracle.toplink.tools.sessionconfiguration.XMLSessionConfigLoader;
    import oracle.toplink.tools.sessionmanagement.SessionManager;
    * This class represents the DBSessionManager. This class will be responsible
    * for creating the server session and multiple client session. The server session
    * would be loaded from sessions.xml file and the client session will be created
    * on the server session but the client session would use the external connection
    * to make the transactions, it would not use the connection that is being created
    * during loading the server session.
    * @author
    public class DBSessionManager {
    * This attribute will hold the value for DBSession Manager.
    private static DBSessionManager instance;
    * This attribute will hold the value for session file path
    private static final String SERVER_SESSIONS_XML = "META-INF/server-sessions.xml";
    private static final String DATABASE_SESSIONS_XML = "META-INF/database-sessions.xml";
    private static final String DATABASE_SESSION = "database-session";
    private static final String SERVER_SESSION = "server-session";
    * This attribute will hold the value for session file
    private String serverSessionConfigLocation = SERVER_SESSIONS_XML;
    * This attribute will hold the value for session file
    private String databaseSessionConfigLocation = DATABASE_SESSIONS_XML;
    * This attribute will hold the value for session name.
    private static final String DEFAULT_SESSION_NAME = "default";
    * This attribute will hold the value for session name
    private String sessionName = SERVER_SESSION;
    private boolean standalone = false;
    private static Session toplinkSession = null;
    * This is attribute which tell the session type<br>
    * Supported values are
    * <li> DATABASE is DatabaseSession </li>
    * <li> SERVER is ServerSession </li>
    private static final String TOPLINK_SESSION_TYPE = "TOPLINK_SESSION_TYPE";
    * Default Constructor.
    * This constructor will create the server session.
    //     private DBSessionManager() {
    // // setSessionType();
    //     toplinkSession = new Session();
    // if(standalone) {
    // toplinkSession.setDatabaseSession(buildDatabaseSession());
    // } else {
    // ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
    // toplinkSession.setServerSession((ServerSession) buildServerSession(this.configLocation, this.sessionName, classLoader));
    private DBSessionManager() {
    // setSessionType();
    toplinkSession = new Session();
    toplinkSession.setDatabaseSession(buildDatabaseSession());
    ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
    toplinkSession.setServerSession((ServerSession)buildServerSession(this.serverSessionConfigLocation, this.sessionName,classLoader));
    * This method will return the instance of DBSessionManager class.
    * @return
    public static DBSessionManager getInstance() {
    if (instance == null) {
    synchronized (DBSessionManager.class) {
    if (instance == null) {
    instance = new DBSessionManager();
    return instance;
    public boolean isStandalone() {
    return standalone;
    * This method will load the server session from the sessions.xml file.
    * @param configLocation
    * @param sessionName
    * @param sessionClassLoader
    * @return ServerSession
    * @throws TopLinkException
    private ServerSession buildServerSession(String configLocation,
    String sessionName,
    ClassLoader sessionClassLoader) throws TopLinkException {
    ServerSession serverSession =
    (ServerSession)SessionManager.getManager().getSession(new XMLSessionConfigLoader(SERVER_SESSIONS_XML),
    SERVER_SESSION,
    // Session name
    this.getClass().getClassLoader(), false, // shouldLoginSession
    false, // shouldRefreshSession
    true) // shouldCheckClassLoader
    serverSession.login();
    return serverSession;
    * Use to get server session
    * @return ServerSession
    private ServerSession getServerSession() {
    return toplinkSession.getServerSession();
    * This method is used to release client session. The client session should<br>
    * be released so that the server does not hang refusing new client session<br>
    * requests. <br>
    * It has been observed in local setups that the server hangs after firing<br>
    * 30 to 40 requests even in a single thread if the client session is not<br>
    * released.
    * @param clientSession
    public void releaseClientSession() {
    toplinkSession.releaseClientSession();
    private DatabaseSession buildDatabaseSession() {
    XMLSessionConfigLoader loader =
    new XMLSessionConfigLoader(DATABASE_SESSIONS_XML);
    SessionManager sessionManager = SessionManager.getManager();
    DatabaseSession session =
    (DatabaseSession)sessionManager.getSession(loader, DATABASE_SESSION,
    DBSessionManager.class.getClassLoader(),
    true, true, true);
    // SessionLog log = new TopLinkLog();
    // Do not change the log level here. SessionLog.FINE logs DML statements
    // and few other 'nonsenses'. DML statements are enough to debug an
    // issue. All TopLink logs are logged as debug messages by LogUtil.
    // log.setLevel(SessionLog.FINE);
    return session;
    public Session getSession() {
    return toplinkSession;
    * This method read the session type from elcm.properties and set the value for standalone attribute.<br>
    * If the session is type of database the value is true, if the session is server session the value is false.
    private void setSessionType() {
    try {
    String sessionType =
    ELCMApplicationGlobals.getInstance().getProperty(TOPLINK_SESSION_TYPE);
    if (DATABASE_SESSION.equalsIgnoreCase(sessionType)) {
    standalone = true;
    } else if (SERVER_SESSION.equalsIgnoreCase(sessionType)) {
    standalone = false;
    } catch (IOException e) {
    e.printStackTrace();
    Please review and let me know if I m missing anything or wrongly implemented.
    Thanks,
    Srini

  • Problem during updating N93i

    hi ...
    i live in iran and during using nokia update software when in starts to preparing the installation the eror "unable to retrieve phone information" "the connection to phone is busy" has been shown. i do it several times and there is no running program on my phone during installation.
    i don`t know if there is a solution 4 me or not(maybe this problem relates to my country!)
    here is my version : 11.0.009 and my code is : 0540927

    The problem isn´t in any matter related to your country.
    For me that sounds like a driver problem... Have you tried uninstalling all Nokia software, rebooting, and installing it again?
    Let us know if the problem was solved or not.
    By clicking the "Kudos!" or the "Solution?" button on the right you can say "Thank You" and you´ll show the author and others that the post is useful.
    The day we stop improving is the day we stop being good.

  • I have a 8gb A1288 (2nd Gen) ipod touch having huge problem during update, please help

    I have a 8gb A1288 (2nd Gen) ipod that has been working fine till now. The device asked for a software update and downloaded the necessary software. During the update process; however, something happened and the computer started not recognizing the device now. On the device screen there is a symbol asking for me to connect the cable to itunes but even if I connect it to the computer, the device is not recognized. Resetting the device didn't solve the problem. Could you please help?

    Hello!
    Tried DFU mode? This stands for Device Firmware Update and/or Download Firmware Upgrade.
    This is how to put your device into DFU:
    1. Connect to A computer with iTunes open, Turn off (Whilst still connected)
    2. Hold Home + Sleep/wake together for 10 seconds.
    3. Let go of sleep wake BUT keep holding home for 10 seconds.
    This shoould result in a message on your PC/Mac screen. Follow the steps and it should work. Let me know of the results.
    ~Naomi =P

  • Problem in update database record with torque

    Can anybody correct my mistake. please........
    Torque.init("E:/Upendra_working_directory/msh2.0/Torque.properties");
    System.out.println("State:     " + Torque.isInit());
    System.out.println("Connection Sucessfully........");
    Criteria crit = new Criteria();
    crit.add(AttachmentPeer.DISPOSITION, "buildfail09.xml");//selecting particular record
    List attachment = AttachmentPeer.doSelect(crit);
    System.out.println(attachment.size());
    Attachment obj = (Attachment)attachment.get(0);
    System.out.println("Attachment Location:     "+ obj.getAttachmentName());
    System.out.println("Attachment MessageID     "+ obj.getMessageId());
    obj.setAttachmentName("sssss"); //setting new value
    AttachmentPeer.doUpdate(obj); //update
    obj.save();
    System.out.println(Attachment Location:     (afterupdate)"+ obj.getAttachmentName());
    console print updated value.but if i check the table in database, it is not updated.
    Thanks in advance

    For anyone referencing this... I had missed adding the field to the MapBuilder so I can definitely suggest that you check the field is present everywhere it should be as no errors will be found if its only looking for the first 4 fields but you want 5 fields to be updated!!

  • Strange problem when updating database

    I have an odd problem with a small application that is written in VB.NET, reading from and updating an SQL Express 2012 server.  The app pulls a datareader from a view and then loops through it and sends each record to an offsite db via an http post. 
    It then goes and marks the record sent using an update query to set a sync bit value in the main key table.  It then goes to the next record in the reader and repeats the process (or that was the idea). 
    What happens when it runs is that the update operation fails with a “Connection timeout or server instance not found “ error.  I have checked the usual culprits, it connects to the server to retrieve the reader OK using the same connect string, the
    user in the connect string has appropriate permissions to the table in question, etc.  The event log only shows an unhandled exception, the timeout message appears in the local debugger.  The exact same update runs successfully on another table for
    a different operation and on my dev machine, so it seems to be something about that particular table. 
    If I log in to SQL management studio as the user that I have in the connection string and update a record in the table using the same syntax as the update query in the application it succeeds.  Very strange.
    Troubleshooting is somewhat complicated by a need to be very careful with the machine that the problem is occurring on.  It is an in-production machine that I can only access via Logmein and is a 20 hour plane flight away.  So I have to be very
    cautious not to bork it up.  Any thoughts on how to proceed?

    I have an odd problem with a small application that is written in VB.NET, reading from and updating an SQL Express 2012 server.  The app pulls a datareader from a view and then loops through it and sends each record to an offsite db via an http post. 
    It then goes and marks the record sent using an update query to set a sync bit value in the main key table.  It then goes to the next record in the reader and repeats the process (or that was the idea). 
    What happens when it runs is that the update operation fails with a “Connection timeout or server instance not found “ error.  I have checked the usual culprits, it connects to the server to retrieve the reader OK using the same connect string, the user
    in the connect string has appropriate permissions to the table in question, etc.  The event log only shows an unhandled exception, the timeout message appears in the local debugger.  The exact same update runs successfully on another table for a
    different operation and on my dev machine, so it seems to be something about that particular table. 
    If I log in to SQL management studio as the user that I have in the connection string and update a record in the table using the same syntax as the update query in the application it succeeds.  Very strange.
    Troubleshooting is somewhat complicated by a need to be very careful with the machine that the problem is occurring on.  It is an in-production machine that I can only access via Logmein and is a 20 hour plane flight away.  So I have to be very cautious
    not to bork it up.  Any thoughts on how to proceed?

  • Problem in updating  Database

    Hi to all users
    When i'm updating a field in database using Set Method, it's not reflected in the database, when i call get Method i get the new value. Why it's so.
    Thanks in advance

    hi filipjava
    I'm able to insert the values to the database but i haven't tried yet deleting it. Return type of ejbCreate is void in my bean. Why should it return null. I'm using two PK class. for inserting and updating. Here is my PK class Code.
    public class WBSUpdatePK implements java.io.Serializable {
    public String wbs_id;
    public WBSUpdatePK(){
    public WBSUpdatePK(String wbs_id){
    this.wbs_id = wbs_id;
    public boolean equals(Object obj)
    if (obj instanceof WBSUpdatePK)
    WBSUpdatePK c = (WBSUpdatePK)obj;
    if (c.wbs_id == null)
    return wbs_id == null;
    return c.wbs_id.equals(wbs_id);
    return false;
    public int hashCode()
    System.out.println("inside hashcode"+wbs_id.hashCode());
    return wbs_id.hashCode();
    public String toString(){
    return wbs_id.toString();
    }

  • HT4623 Problem during updating software to iOS 6.1.2

    I have connected my iPhine 4S to the iTunes on my laptop (running Win XP) and continued with an update to iOS 6.1.2. I lost my internet connection during the update and i am not able to continue with the update later on and not able to switch on my phone.iTunes is suggesting me to restore my phone. how do i continue with the software update without restoring the phone to factory settings? Any help?

    You can't you'll have to restore your phone to factory settings http://support.apple.com/kb/HT1808
    Hopefully you have a backup to restore to.

Maybe you are looking for