Rollback problem!

I created a form that is being invoked from a command button to add new record (it is java application using swing and adf bc).
When "add new record" form opens and i decide to close the form without commiting changes to database (clicking the rollback button on message dialog), form closes fine and no changes have been commited but i also receive error:
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
     at oracle.jbo.uicli.binding.JUCtrlAttrsBinding$mySetEnabledThread.run(JUCtrlAttrsBinding.java:53)
     at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
     at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
     at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
     at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
what am i doing wrong?

Hi,
I have had the same problem. See: BUG 5642176 in 10.1.3.2 ? "AWT-EventQueue-0" java.lang.NullPointerException
Kuba

Similar Messages

  • Reproducible ZfDAgent rollback problem w/ HP4

    I'm beginning to test ZfDAgent 7.0 SP1 IR4 HP4. I have an HP3 machine
    (WinXPsp3). During the install of HP4, it rolls back. Unfortunately, it's
    not truly rolled back. The agent is left completely broken. If I reinstall
    HP3, reboot, then it's fine, but re-trying the upgrade to HP4 causes the
    same situation again.
    I have an MSI log with full logging (voicewarmup) enabled, but I'm not sure
    how to decode where exactly the problem is.
    Anyone?
    Thank you.

    On 2/27/2011 1:06 PM, grimlock wrote:
    >
    > ecyoung;2061791 Wrote:
    >> This may be the issue:
    >> "ZDM 7 HP4 agent install fails with 1603 error due to truncated
    >> Environment
    >> Path"
    >> 'ZDM 7 HP4 agent install fails with 1603 error due to truncated
    >> Environment Path'
    >> (http://www.novell.com/support/viewCo...7463&sliceId=1)
    >>
    >> <[email protected]> wrote in message
    >> news:[email protected]. ..
    >>> No, sorry. They weren't able to reproduce it at Novell, but it
    >> wasn't a
    >>> formally submitted SR.
    >>>
    >>> "hennys"<[email protected]> wrote in message
    >>> news:[email protected]...
    >>>>
    >>>> Hi,
    >>>>
    >>>> Did you ever get this solved ?
    >>>>
    >>>> I'm having the same problem. Agent starts rolling back. After
    >> reboot
    >>>> and reinstall, again rollback.
    >>>>
    >>>> Kind regards,
    >>>>
    >>>> Hen
    >>>> imayroam;2003889 Wrote:
    >>>>> I'm having the same issue w/ the Zen agent install.
    >>>>>
    >>>>> Could I have a look at that log?
    >>>>>
    >>>>> Thanks!
    >>>>
    >>>>
    >>>> --
    >>>> Regards,
    >>>>
    >>>> Hen
    >>>>
    >> ------------------------------------------------------------------------
    >>>> hennys's Profile: 'View Profile: hennys - NOVELL FORUMS'
    >> (http://forums.novell.com/member.php?userid=233)
    >>>> View this thread: 'Reproducible ZfDAgent rollback problem w/ HP4'
    >> (http://forums.novell.com/showthread.php?t=413684)
    >>>>
    >>>
    >>>
    >
    > I came across this issue when upgrading to the HP5 agent. It was only
    > on one specific hardware platform of about 6 machines, so it was
    > isolated. The solution I came up with (as of 5 minutes ago because I
    > just spent some time playing with it) is as follows.
    >
    > use MSIZAP to kill the installer information. Reboot to safe mode.
    > Rename c:\program files\novell\zenworks to zenworks.old.
    >
    > Install the HP5 agent.
    >
    > Delete the zenworks.old folder.
    >
    > This is NOT practical if you have a significant number of workstations
    > in an organization affected, but for 6, I'll live with it.
    >
    > After installation, I did a test uninstall/reinstall of the HP5 agent
    > to verify that it was no longer broken for removal/reinstall.
    >
    >
    Spoke too soon, I have one machine that this doesn't work on. Product
    is removed, and no longer reinstalls. It rolls back during the install.
    Might be a similar issue to what you're having. Attempting to attach
    an MSI log file via nntp, we'll see how that goes. (edit, not allowed).
    Happy to e-mail it if someone wants to see it.
    I can always start a new thread for this, but I suspect it's related.
    This is the HP5 agent.

  • EJB Entity transaction rollback problem

              Hello,
              I have created 2 beans one is a Stateless Session and the other a Bean Managed Entity Bean. The SS Bean has methods to retrieve an Oracle Connection from a DataSource defined connection pool, and to close a connection. The entity bean I have created is responsible for insterting a new record into one of the tables in my database.
              I have a client app that calls the ejbCreate method on the entity bean at which point the Entity EJB takes control, gets a valid connection from the SS EJB, runs a simple working SQL SELECT statement (obtaining correct values), and then attempts to perform an insert into a table using a prepared statement. My problem is that the application runs fine without any errors and all calls are made and all calls seem to be working fine. I have checked to make sure that the Datasource I am using is AutoCommit= false and it is and there are no exceptions being thrown in my EJB's but yet it appears as though the SQL statements executeUpdate() command is not being committed as their is no rows created in the database. Does anyone know what I may be doing wrong. I have all ACL parameters set up correctly and as I stated before the entire app runs without errors and I do have a SELECT statment that is working properly within the same method as the INSERT statement which is not!!! Please send any suggestions!!
              Justin
              

              I am using CMT, it is activated by default on Entity Beans I believe. The bean itself is marked as TX_REQUIRED so I believe all the methods automatically are all TX_REQUIRED.
              Here is my Bean ejbCreate Method, My PK class, and my ejb-jar.xml file-- I've pasted them below for convenience.
              ejbCreate:
                   public CustomerPK ejbCreate(String aUserName, String aPassword, String aFirstName,
                        String aMiddleInit, String aLastName, String aEmailAddr)
                        throws javax.ejb.CreateException {
                   Connection conn=null;
                   long nextPrsnID;
                   long nextCustID;
                   if (verifyParams(aUserName, aPassword, aFirstName, aMiddleInit,
                        aLastName, aEmailAddr)) {
                   if (isUniqueUserName(aUserName)) {
                   try {
                        conn=getConnection();
                        conn.setAutoCommit(false);
                        nextPrsnID=addPerson(conn,aFirstName,aMiddleInit,aLastName); // adds a person to the person table consists of just simple SQL
                        nextCustID=addCustomer(conn,nextPrsnID, aUserName,aPassword, aEmailAddr); //adds a customer to the customer table
                        // SET THE BEAN MANAGED PUBLIC VARIABLES
                        this.userName=aUserName;
                        this.password=aPassword;
                        this.firstName=aFirstName;
                        this.middleInit=aMiddleInit;
                        this.lastName=aLastName;
                        this.emailAddr=aEmailAddr;
                        this.personID=nextPrsnID;
                        this.custID=nextCustID;
                        conn.commit(); // with this statement here the transaction goes through otherwise the DB will not be updated
                   catch (Exception e){
                        throw new javax.ejb.CreateException("Experiencing Database Problems-- Unrecoverable Error"); // rollback transaction
                   finally{
                        cleanup(conn,null); // close the connection
                   else {           // UserName already exists
                   throw new javax.ejb.CreateException("Sorry username already exists please choose another one");
                   else {          // Registration parameters were not verifiable
                   throw new javax.ejb.CreateException("Registration paramater rules were violated");
                   CustomerPK custPK=new CustomerPK(nextCustID);
                   return custPK;
              EJB CUSTOMER PRIMARY KEY CLASS:
              public class CustomerPK implements java.io.Serializable {
              // PRIMARY KEY VARIABLES
              public long CustomerID;
              public CustomerPK(long aCustomerID) {
              this.CustomerID=aCustomerID;
              public CustomerPK() {
              public String toString(){
              return ((new Long(CustomerID)).toString());
              public boolean equals(Object aComparePK){
              if (this.CustomerID==((CustomerPK)aComparePK).CustomerID){
                   return true;
              return false;
              public int hashCode(){
              return ((new Long(CustomerID).toString()).hashCode());
              } // END-CLASS
              CUSTOMER ejb-jar.xml
              <?xml version="1.0"?>
              <!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN' 'http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd'>
              <ejb-jar>
              <enterprise-beans>
              <entity>
                   <ejb-name>Customer</ejb-name>
                   <home>CustomerHome</home>
                   <remote>Customer</remote>
                   <ejb-class>CustomerBean</ejb-class>
                   <persistence-type>Bean</persistence-type>
                   <prim-key-class>CustomerPK</prim-key-class>
                   <reentrant>False</reentrant>
                   <resource-ref>
              <res-ref-name>jdbc/DeveloperPool</res-ref-name>
              <res-type>javax.sql.DataSource</res-type>
              <res-auth>Container</res-auth>
              </resource-ref>
              </entity>
              </enterprise-beans>
              <assembly-descriptor>
              <container-transaction>
                   <method>
                   <ejb-name>Customer</ejb-name>
                   <method-intf>Remote</method-intf>
                   <method-name>*</method-name>
                   </method>
                   <trans-attribute>Required</trans-attribute>
              </container-transaction>
              </assembly-descriptor>
              </ejb-jar>
              "Cameron Purdy" <[email protected]> wrote:
              >Are you using CMT? Have you marked the methods as REQUIRED?
              >
              >Peace,
              >
              >--
              >Cameron Purdy
              >Tangosol, Inc.
              >http://www.tangosol.com
              >+1.617.623.5782
              >WebLogic Consulting Available
              >
              >
              >"Justin Jose" <[email protected]> wrote in message
              >news:[email protected]...
              >>
              >> Hello,
              >>
              >> I have created 2 beans one is a Stateless Session and the other a Bean
              >Managed Entity Bean. The SS Bean has methods to retrieve an Oracle
              >Connection from a DataSource defined connection pool, and to close a
              >connection. The entity bean I have created is responsible for insterting a
              >new record into one of the tables in my database.
              >> I have a client app that calls the ejbCreate method on the entity bean at
              >which point the Entity EJB takes control, gets a valid connection from the
              >SS EJB, runs a simple working SQL SELECT statement (obtaining correct
              >values), and then attempts to perform an insert into a table using a
              >prepared statement. My problem is that the application runs fine without
              >any errors and all calls are made and all calls seem to be working fine. I
              >have checked to make sure that the Datasource I am using is AutoCommit=
              >false and it is and there are no exceptions being thrown in my EJB's but yet
              >it appears as though the SQL statements executeUpdate() command is not being
              >committed as their is no rows created in the database. Does anyone know
              >what I may be doing wrong. I have all ACL parameters set up correctly and
              >as I stated before the entire app runs without errors and I do have a SELECT
              >statment that is working properly within the same method as the INSERT
              >statement which is not!!! Please send any suggestions!!
              >>
              >> Justin
              >
              >
              

  • Update/Rollback Problem

    Hi
    I have a problem, I ran an update query by accident updating around 4.2 million rows by accident. After around 10 seconds I hit "Cancel" in TOAD and then hit rollback.
    However it looks as though it is still processing some 4 hours later as shown using the query below.
    select a.sid, a.serial#, b.sql_text
    from v$session a, v$sqlarea b
    where a.sql_address=b.address
    and a.username='USER'
    Is there anyway I can get it to stop safely and rollback?
    Any help would be much appreciated.
    Thanks,
    Mark.
    Edited by: MarkV on Feb 5, 2010 5:00 PM
    Edited by: MarkV on Feb 5, 2010 5:11 PM

    If you check the used_ublk from v$transaction for your session, you should be able to see if the amount is changing over time. If it's going down, then it's still rolling back. If it's going up, then it's still updating.
    You could ask your DBA to kill the process for you, but it's unlikely that that would speed things up any, as it's still got to finish rolling back!

  • CUCM upgrade from 6.1(2) to 6.1(3b) - rollback problems...

    Hi all,
    I have upgraded our test lab CUCM server from 6.1(2) to 6.1(3b). Although we have a genuine MCS server bought from Cisco, we run only the demo licencing on the server (simply because we only have a few test phones and gateways running on the server).  We have rebuilt this server a few times so we may have had more licences installed previously - the 'demo' licencing seems to allow me test all i need to.
    The upgrade to 6.1(3b) seemed to go ok.   My only concern was the time it took after the CUCM server restarted for the IP phones to 'register' - seemed to take 30 mins or more before they jumped into life and re-registered etc?  Is that normal?  (I suspect the CallManager Service took a while to start?)
    However, I have had a few problems when trying to rollback the upgrade to the older partition. I followed the Cisco doco and all seemed to work ok, the CLI showed it selecting the old partition on the reboot, and then starting services for 6.1(2) [lots of green [OK] messages etc)
    Upon the full restart of the server, i noticed that the CallManager Service and the Cisco Messaging Service were NOT running!   I tried all i could think of to get these to restart:Went to Service Activation – stopped and restarted the CallManager service and the other one.  Then went back to Feature Services. CallManager was ‘running’ then after i refresh the page it reverts to ‘Not Running’ !   IP Phones therefore do NOT register.
    Tried a restart of the server (same partition) - Watching CLI during reboot – all green [OK] messages. No errors reported that i can see. IP phones still dont register when server restarts. The two services remain 'Not Running'
    I then restarted using 'switch' and ran the upgraded CUCM version - this started fine, and all ran ok!  Phones regsitered, all seems fine!
    I have attached a few screenshots, not sure if they are relevant or of any use.
    Has anyone seen this issue before after an upgrade?  I am not overly comcerned becaue the 'upgrade' worked, but it would be nice to know i can rollback if i need to do incase of any issues.
    Is there anywhere in CUCM i can check to see if the failed services are generating an error message or a reason for them not starting?
    Thoughts appreciated
    Rgds

    Hey Andy,
    Hope all is well buddy!
    The problems you are seeing here are most likely "purely" License related due to the changes
    that were implemented between 6.1(2) and 6.1(3). I don't see this being a problem with permanent
    "production" Licenses. Have a look;
    Cisco Unified Communications Manager Releases 7.1(2) and 6.1(3) introduce these licensing enhancements.
    Description
    Cisco Unified Communications Manager Releases 7.1(2) and 6.1(3) identify the state of a license; that is, if it is missing, if it is a demo license, or if it is an uploaded license. In addition, Cisco Unified Communications Manager Administration warns you whether Cisco Unified Communications Manager currently operates with demo licenses, with an insufficient number of licenses, or with an incorrect software feature license.
    GUI Changes
    The following windows display the state of licenses in Cisco Unified Communications Manager
    Administration:
    - Cisco Unified Communications Manager currently operates with demo licenses, so upload the appropriate license files.
    - Cisco Unified Communications Manager currently operates with an insufficient number of licenses, so upload additional license files.
    - Cisco Unified Communications Manager does not currently use the correct software feature license. In this case, the Cisco CallManager service stops and does not start until you upload
    the appropriate software version license and restart the Cisco CallManager service.
    License File Upload (System > Licensing > License File Upload)-This window displays a message
    that uploading the license file removes the demo licenses for the feature.
    http://www.aironet.info/en/US/docs/voice_ip_comm/cucm/rel_notes/6_1_3/cucm-rel_note-613a.html#wp472518
    Now for the Cisco Messaging Service
    This is only used in "Legacy" integrations which I'm guessing is not
    the setup for your lab, so you should be good to go here.
    Cisco Messaging Interface Service
    The Cisco Messaging Interface allows you to connect a simplified message desk interface (SMDI)-compliant external **Third Party** voice-mail system with the Cisco CallManager. The CMI service provides the communication between the voice-mail system and Cisco CallManager. The SMDI defines a way for a phone system to provide a voice-mail system with the information needed to intelligently process incoming calls.
    Hope this helps!
    Rob
    Please support CSC Helps Haiti
    https://supportforums.cisco.com/docs/DOC-8895
    https://supportforums.cisco.com/docs/DOC-8727

  • JDev11g : Rollback problem

    I have a table with LOV which is filtered by view accessor ( id is binded into viewCriteria of second VO (filtered one) )
    Looks like this:
    VO1(in adf table with LOV) ----conected by view accessor (variable id is binded to VO2 vievCriteria)---&gt; VO2
    I get a problem when i create new insert put inside row some values and click on another row and then rollback.
    The LOV becomes empty and i get error that query on sevond (VO2) cannot be executed (I think that is because the bind variable is unset during rollback).
    Error is:
    VCs converted to RowMatch:  ( (WorkOrderId = :WOid_bind ) )
    VO2&gt;#q computed SQLStmtBufLen: 173, actual=135, storing=165
    SELECT ID, NAME, ID_2 FROM Table1 WHERE ( ( (ID_2 = ? ) ) ) ORDER BY NAME
    Bind params for VO2
    Binding param 1: 148
    Binding param 2: 148
    ViewObject: VO2 close single-use prepared statements
    QueryCollection.executeQuery failed...
    java.sql.SQLException: Invalid column index
    Does anybody know how to solve this problem ?
    Thank you in advance, Rok Kogov&scaron;ek
    I find out where problem is happpening, while the thing is working is only one parameter binded (*Binding param 1: 148*
    ) but when i try scenario which crashes the application parameter is binded twice (*Binding param 1: 148* Binding param 2: 148
    Edited by: Rok Kogovšek on Nov 17, 2008 3:17 AM

    this link may help you
    Ora-01555, snapshot too old: rollback segment number 2 with name "_SYSSMU1
    Khurram                                                                                                                                                                                                                                           

  • Kernel rollback problem

    Hi all,
    Because of the oss-commercial problem with 2.6.22, I decided to rollback the kernel to 2.6.21.6:
    pacman -U /var/cache/.....
    after a reboot, X failed to start because nvidia driver is for 2.6.22. So I did the same rollback thing for the nvidia module. Then I get a "API mismatch" complain from the nvidia driver. What should I do now?
    Thanks,

    I remember that I installed the generic nvidia driver for the first time after I had experienced something similar to what you're describing.  Ultimately I found installing nvidia drivers "the hard way" to be much easier (and cleaner) than keeping track of multiple packages for multiple kernels - especially since I do have multiple kernels installed, some of them custom compiled...  The installation script for the generic nvidia drivers is well written and easy to use, it installs/reinstalls drivers without any fuss/problems.
    As for why the arch package drivers failed?  I'm not sure...   but I'm sure someone else will be more helpful   Good luck.

  • Weblogic 10.0, JTA -JDBC ejb rollback problem

    Hi,
    I have one statless-session bean, with bean managed transaction.
    ejbmethod()
    utx=getUserTransaction();
    try{
    utx.begin();
    method1(); //in this i am updating few table in DB -DB connection is taken in the same method and closed there
    method2(); // calling a stored procedure to do smthing etc
    method3(); //update smthing else
    utx.commit();
    }catch()
    utx.rollback()
    the rollback does not happen properly.
    The code is not wrong, no nested transaction, db changes does not get rolled back.
    My question is , what is the relation between JTA configuration and DB Connection pool?
    Is there any specific configuration in weblogic fot JTA?
    How to configure the JTA log in weblogic 10?

    For guaranteed transaction atomicity in general, if your application updates multiple transactional resources, an XA-enabled version of the JDBC driver is required to participate in such a global 2PC transaction. If you are absolutely sure that the datasource in question is the only resource accessed in the transaction, then you can mark this datasource as 1PC in the WLS console. Even, if you application enlists multiple resources in a transaction, using the [LLR optimization|http://download.oracle.com/docs/cd/E12840_01/wls/docs103/jta/llr.html] you are still able to use exactly one non-XA resource that must be a LLR datasourse without losing the atomicty guarantee. In order to use LLR, you have to make sure that you don't cache a the LLR datasource connection beyond transaction boundaries, i.e., you need to obtain a new connection from the LLR datasource for every transaction. See http://download.oracle.com/docs/cd/E12840_01/wls/docs103/jdbc_admin/jdbc_datasources.html for more details.
    Edited by: Gera Shegalov on Mar 17, 2009 4:44 PM

  • Rollback problem during import

    Hello experts,
    please help.
    I have the following error when importing table data to my
    Oracle 8.1.7 database.
    IMP-00058: ORACLE error 1562 encountered
    ORA-01562: failed to extend rollback segment number 16
    ORA-01237: cannot extend datafile 3
    kind regards
    Yogeeraj

    You have two options. Either give your Rollback Segment
    tablespace more room to grow, or you could try using the
    commit=y parameter on your import. This will periodically commit
    transactiosn during the import. Although off the top of my head,
    I don't remember what it is based off of. Maybe buffer.

  • JCheckBox rollback problem.. Urgent

    Hi All,
    I hv 2 JChkbox and 2JTextField. I want the prev state of the JCheckBox when the cancel button is clicked.
    Ex:
    I hv Maximum value and Minimumvalue checkboxes.
    When the checkbox is not selected I'm enabling the corresponding textboxes.
    The problem is, When i open my panel and the Chk boxes is selected and i deselect both the chkboxes. I enter min valu = 10 and max val = 5 and i click the cancel button. Now when i click the cancel the chkboxes sh go to prev state as they are when the panel is opened.
    Is there any way to trace it out or any methods to it.
    Kindly help me. As it is very Urgent.
    Thnks in advance
    SS

    Isn't it a simple matter of remembering the state of the check boxes etc (in other words their 'model' data) when the dialog is popped up and then restoring them to that state if cancel is pressed?

  • Transaction rollback problem

    Hi,
    Transaction is not rolled back if a stored procedure is called from BMP.
    The flow is as follows:
    Stateless Session Bean --> BMP Bean --> DAO -->method 1, method 2
    method 1 has a call to Stored Procedure which does update operations on DB.
    method 2 has JDBC insert queries
    After completion of method1, there is an exception in method 2. Hence transaction done by the method 1 should be rolled back. But the behavior is different. The Stored Procedure updates are committed even though there is an exception in method 2.
    We are using CMT and Required attribute is set for the beans. We are throwing EJBException in all catch blocks.
    Any suggestions? App server is JBoss 4.2.2
    Thanks.

    update operations in what way? Are there DDL operations in there? If so, then this is an implicit commit and you cannot roll the changes back.
    What does the documentation of the DBMS say about stored procedures anyway? Might be that a stored procedure call is implicitly committed by the DBMS.

  • Pls help:  Transaction rollback

    Hi
    We are facing an problem in WLS10. Although I have configured the JTA TimeoutSeconds to 1800 sec, I always hit transaction rollback problem when 30 sec passed. Appreciate your help on this problem.
    DataSource Configuration:
    <jdbc-driver-params>
    <driver-name>oracle.jdbc.xa.client.OracleXADataSource</driver-name>
    </jdbc-driver-params>
    <jdbc-connection-pool-params>
    <max-capacity>50</max-capacity>
    <test-table-name>SQL SELECT 1 FROM DUAL</test-table-name>
    </jdbc-connection-pool-params>
    <jdbc-data-source-params>
    <jndi-name>jdbc/rms/ctleave</jndi-name>
    <jndi-name></jndi-name>
    <global-transactions-protocol>TwoPhaseCommit</global-transactions-protocol>
    </jdbc-data-source-params>
    JTA configuration:
    -r-- AbandonTimeoutSeconds 86400
    -r-- BeforeCompletionIterationLimit 10
    -r-- CheckpointIntervalSeconds 300
    -r-- ForgetHeuristics true
    -r-- MaxResourceRequestsOnServer 50
    -r-- MaxResourceUnavailableMillis 1800000
    -r-- MaxTransactions 10000
    -r-- MaxUniqueNameStatistics 1000
    -r-- MaxXACallMillis 120000
    -r-- Name LEAVE2FE2
    -r-- Notes null
    -r-- SecurityInteropMode default
    -r-- SerializeEnlistmentsGCIntervalMillis 30000
    -r-- TimeoutSeconds 1800
    -r-- Type JTA
    -r-- UnregisterResourceGracePeriod 30
    -r-x freezeCurrentValue Void : String(attributeName)
    -r-x isSet Boolean : String(propertyName)
    -r-x unSet Void : String(propertyName)
    Exception log:
    Exception Occured, Failure creating new instance of RowMapper, org.apache.beehive.controls.api.ControlException: RowToObjectMapper: SQLEx
    ception: Unexpected exception while enlisting XAConnection java.sql.SQLException: Transaction rolled back: Transaction timed out after 30 seconds
    BEA1-00A6A99F8ED0E04484B3
    at weblogic.jdbc.jta.DataSource.enlist(DataSource.java:1419)
    at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:1331)
    at weblogic.jdbc.wrapper.JTAConnection.getXAConn(JTAConnection.java:189)
    at weblogic.jdbc.wrapper.JTAConnection.checkConnection(JTAConnection.java:64)
    at weblogic.jdbc.wrapper.ResultSetMetaData.preInvocationHandler(ResultSetMetaData.java:37)
    at weblogic.jdbc.wrapper.ResultSetMetaData_oracle_jdbc_driver_OracleResultSetMetaData.getColumnCount(Unknown Source)
    at org.apache.beehive.controls.system.jdbc.RowToObjectMapper.<init>(RowToObjectMapper.java:63)
    at sun.reflect.GeneratedConstructorAccessor141.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    at org.apache.beehive.controls.system.jdbc.RowMapperFactory.getMapper(RowMapperFactory.java:160)
    at org.apache.beehive.controls.system.jdbc.RowMapperFactory.getRowMapper(RowMapperFactory.java:85)
    at org.apache.beehive.controls.system.jdbc.DefaultObjectResultSetMapper.arrayFromResultSet(DefaultObjectResultSetMapper.java:93)
    at org.apache.beehive.controls.system.jdbc.DefaultObjectResultSetMapper.mapToResultType(DefaultObjectResultSetMapper.java:61)
    at org.apache.beehive.controls.system.jdbc.JdbcControlImpl.execPreparedStatement(JdbcControlImpl.java:370)
    at org.apache.beehive.controls.system.jdbc.JdbcControlImpl.invoke(JdbcControlImpl.java:228)
    ...

    Hi. Can you turn on JTA logging? The output will show each step in the
    transaction. This should be in the transaction newsgroup.
    Joe
    Shen XiaoChun wrote:
    Hi
    We are facing an problem in WLS10. Although I have configured the JTA TimeoutSeconds to 1800 sec, I always hit transaction rollback problem when 30 sec passed. Appreciate your help on this problem.
    DataSource Configuration:
    <jdbc-driver-params>
    <driver-name>oracle.jdbc.xa.client.OracleXADataSource</driver-name>
    </jdbc-driver-params>
    <jdbc-connection-pool-params>
    <max-capacity>50</max-capacity>
    <test-table-name>SQL SELECT 1 FROM DUAL</test-table-name>
    </jdbc-connection-pool-params>
    <jdbc-data-source-params>
    <jndi-name>jdbc/rms/ctleave</jndi-name>
    <jndi-name></jndi-name>
    <global-transactions-protocol>TwoPhaseCommit</global-transactions-protocol>
    </jdbc-data-source-params>
    JTA configuration:
    -r-- AbandonTimeoutSeconds 86400
    -r-- BeforeCompletionIterationLimit 10
    -r-- CheckpointIntervalSeconds 300
    -r-- ForgetHeuristics true
    -r-- MaxResourceRequestsOnServer 50
    -r-- MaxResourceUnavailableMillis 1800000
    -r-- MaxTransactions 10000
    -r-- MaxUniqueNameStatistics 1000
    -r-- MaxXACallMillis 120000
    -r-- Name LEAVE2FE2
    -r-- Notes null
    -r-- SecurityInteropMode default
    -r-- SerializeEnlistmentsGCIntervalMillis 30000
    -r-- TimeoutSeconds 1800
    -r-- Type JTA
    -r-- UnregisterResourceGracePeriod 30
    -r-x freezeCurrentValue Void : String(attributeName)
    -r-x isSet Boolean : String(propertyName)
    -r-x unSet Void : String(propertyName)
    Exception log:
    Exception Occured, Failure creating new instance of RowMapper, org.apache.beehive.controls.api.ControlException: RowToObjectMapper: SQLEx
    ception: Unexpected exception while enlisting XAConnection java.sql.SQLException: Transaction rolled back: Transaction timed out after 30 seconds
    BEA1-00A6A99F8ED0E04484B3
    at weblogic.jdbc.jta.DataSource.enlist(DataSource.java:1419)
    at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:1331)
    at weblogic.jdbc.wrapper.JTAConnection.getXAConn(JTAConnection.java:189)
    at weblogic.jdbc.wrapper.JTAConnection.checkConnection(JTAConnection.java:64)
    at weblogic.jdbc.wrapper.ResultSetMetaData.preInvocationHandler(ResultSetMetaData.java:37)
    at weblogic.jdbc.wrapper.ResultSetMetaData_oracle_jdbc_driver_OracleResultSetMetaData.getColumnCount(Unknown Source)
    at org.apache.beehive.controls.system.jdbc.RowToObjectMapper.<init>(RowToObjectMapper.java:63)
    at sun.reflect.GeneratedConstructorAccessor141.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    at org.apache.beehive.controls.system.jdbc.RowMapperFactory.getMapper(RowMapperFactory.java:160)
    at org.apache.beehive.controls.system.jdbc.RowMapperFactory.getRowMapper(RowMapperFactory.java:85)
    at org.apache.beehive.controls.system.jdbc.DefaultObjectResultSetMapper.arrayFromResultSet(DefaultObjectResultSetMapper.java:93)
    at org.apache.beehive.controls.system.jdbc.DefaultObjectResultSetMapper.mapToResultType(DefaultObjectResultSetMapper.java:61)
    at org.apache.beehive.controls.system.jdbc.JdbcControlImpl.execPreparedStatement(JdbcControlImpl.java:370)
    at org.apache.beehive.controls.system.jdbc.JdbcControlImpl.invoke(JdbcControlImpl.java:228)

  • High 'transaction rollback' (statistic# = 172) investigation

    Hi,
    I'm trying to investigate what could cause high transaction rollback .
    First think was ora-0001 unique constraint violation but I can't see any err=1:
    grep err=1 ora_1544382.trc
    in trace file .
    Do You have any idea what else can cause hight transaction rollback problem in JDBC connections (maybe somekind of timeouts) ?
    There is no clue in 10046 trace with lvl 12 maybe other trace ?
    Connections are made throught connection pool from Websphere Application Server dont know if thats relevant.
    Maybe some JDBC properties interfere, can't see thing in trace files.
    Database is 9.2.0.8
    Regards.
    GG

    user10388717 wrote:
    Hi,
    I'm trying to investigate what could cause high transaction rollback .
    First think was ora-0001 unique constraint violation but I can't see any err=1:
    grep err=1 ora_1544382.trc
    in trace file .
    What did you do to record the appearance of the "transaction rollbacks". Was this taking a snapshot of the session's statistics as the trace file was generated ?
    Essentially any transaction that rolls back and clears the undo segment header will report as a "transaction rollback" - including some internal transactions.
    Example 1) Inserting a row into a "child" table when the "parent" doesn't exist will error with ORA-02291 (parent not found). If this was the first DML of a transaction the resulting rollback will show as a "transaction rollback".
    Example 2) An index leaf block split picks an unsuitable block off the freelist and starts an internal transaction; when Oracle realises it was an unsuitable block the transaction rolls back.
    One quick cross-check for Dom Brooks' idea: if this is the front end code deliberately starting a transaction and rolling it back, then "user rollbacks" will be similar to "transaction rollbacks". If it's not user driven then you may have more transaction rollbacks than user rollbacks. Unfortunately, if the front-end issues a rollback after every query (i.e. without starting a transaction) then these rollbacks will show as user rollbacks but not transaction rollbacks and confuse the issue.
    Having checked your trace for error 00001, you might as well check just for "ERR".
    Regards
    Jonathan Lewis
    http://jonathanlewis.wordpress.com
    http://www.jlcomp.demon.co.uk
    To post code, statspack/AWR report, execution plans or trace files, start and end the section with the tag {noformat}{noformat} (lowercase, curly brackets, no spaces) so that the text appears in fixed format.
    "Science is more than a body of knowledge; it is a way of thinking"
    Carl Sagan                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Once Again: Transaction is not rolled back...

    Hi all,
    I'm almost at the end of my project with Toplink. but I have to solve this transaction rollback problem. Here is my previous message. any comment is more than welcome.
    The problem is this, I pass 2 objects to Toplink to update in database using activeUnitOfWork.shallowMergeClone() method.
    one of the updates fails then I expect everything to be rolled back within the same unitofwork. but NOT. the other object is quite well updated in database even though they are merged in the same unit of work... please HELP...
    here is the log :
    UnitOfWork(31228)--JTS#beforeCompletion()
    UnitOfWork(31228)--#executeQuery(WriteObjectQuery(com.vnu.publitec.axis.persistence.Parameters@7a0b))
    UnitOfWork(31228)--Connection(31249)--UPDATE PARAMETERS SET PARAM_VALUE = '26' WHERE (PARAM_NAME = 'TEST_PARAMETER_2')
    UnitOfWork(31228)--#reconnecting to external connection pool
    UnitOfWork(31228)--#executeQuery(WriteObjectQuery(com.vnu.publitec.axis.persistence.Parameters@7a06))
    UnitOfWork(31228)--Connection(31249)--UPDATE PARAMETERS SET PARAM_MAX_SIZE = 666666, PARAM_COMMENTS = 'updated by new axis...', PARAM_VALUE = '18' WHERE (PARAM_NAME = 'TEST_PARAMETER_1')
    UnitOfWork(31228)--EXCEPTION [TOPLINK-4002] (TopLink - 9.0.3 (Build 423)): oracle.toplink.exceptions.DatabaseException
    EXCEPTION DESCRIPTION: java.sql.SQLException: ORA-01438: value larger than specified precision allows for this column
    INTERNAL EXCEPTION: java.sql.SQLException: ORA-01438: value larger than specified precision allows for this column
    ...... //some more message
    UnitOfWork(31228)--JTS#afterCompletion()
    UnitOfWork(31228)--release unit of work
    ClientSession(31229)--client released
    environment information is :
    J2EE Server is Oracle9iAS (9.0.3.0.0) Containers for J2EE
    and following is a piece of sessions.xml file related to external transaction controller settings :
    <session-type>
    <server-session/>
    </session-type>
    <login>
    <datasource>java:comp/env/jdbc/xxx</datasource>
    <uses-native-sql>true</uses-native-sql>
    <uses-external-transaction-controller>true</uses-external-transaction-controller>
    <uses-external-connection-pool>true</uses-external-connection-pool>
    </login>
    <external-transaction-controller-class>oracle.toplink.jts.oracle9i.Oracle9iJTSExternalTransactionController</external-transaction-controller-class>
    thanks
    Erdem.

    Hi James,
    As Erdem is not available, I am now taking care of the issue. The datasource name in session.xml refers to the one defined in OC4J data-sources.xml "ejb-location" attribute of "data-source" element. Below, I attach the relevant sections of both files
    session.xml
    <session>
    <name>Axis_session</name>
    <project-xml>AxisCDM.xml</project-xml>
    <session-type>
    <server-session/>
    </session-type>
    <login>
    <datasource>java:comp/env/jdbc/AXIS_323DS</datasource>
    <uses-native-sql>true</uses-native-sql>
    <uses-external-transaction-controller>true</uses-external-transaction-controller>
    <uses-external-connection-pool>true</uses-external-connection-pool>
    </login>
    <external-transaction-controller-class>oracle.toplink.jts.oracle9i.Oracle9iJTSExternalTransactionController</external-transaction-controller-class>
    data-sources.xml:
    <data-source     
    class="com.evermind.sql.DriverManagerDataSource"
    name="AXIS_323DS"
    location="jdbc/AXIS_323CoreDS"
    xa-location="jdbc/xa/AXIS_323XADS"
    ejb-location="jdbc/AXIS_323DS"
    connection-driver="oracle.jdbc.driver.OracleDriver"
    username="XXX"
    password="XXX"
    url="jdbc:oracle:oci8:@ddb"
    inactivity-timeout="30"
    connection-retry-interval="1"
    />
    On the client we get the following exception:
    com.evermind.server.rmi.OrionRemoteException: Transaction was rolled back: Error in transaction: EXCEPTION [TOPLINK-4002] (TopLink - 9.0.3 (Build 423)): oracle.toplink.exceptions.DatabaseException
    EXCEPTION DESCRIPTION: java.sql.SQLException: ORA-01438: value larger than specified precision allows for this column
    On the server, we have implemented SessionSynchronization to monitor the transaction. afterCompletion method gets a boolean value "true" indicating that the transaction was comitted.
    Any database operation that was successful before the erroneous case was saved in DB.
    Thanks,
    Melih

  • The new MERGE statement in Oracle 9i

    Has anyone used the new Merge statement to process large amounts of data? Currently we use PL/SQL to update/insert into our tables when we are loading large amounts of data (close to one million rows) because we can set commit points and avoid rollback problems. I am wondering if we use Merge instead how this will affect rollback? Are we still going to have to code for this problem?
    Thanks in advance!

    Thanks for the suggestions. Our problem is that the base table contains 50 million rows and seven indexes, and each month we try to insert/update one million rows. Some of the data in the base table is historical so if we implemented your solution we would lose any records not being updated.
    What I am really trying to determine is if the MERGE statement has any redo log ramifications. Will we run in rollback space problems if we implement it instead of running PL/SQL in the following format:
    FOR cur_rec in c1 LOOP
    UPDATE table a
    SET col a = cur_rec.col a, ...
    WHERE ...
    IF SQL%NOTFOUND THEN
    INSERT (col a , col b, col c...)
    VALUES (cur_rec.col a, cur_rec.col b...);
    END IF;
    We commit every 10,000 records (as determined by SQL%ROWCOUNT). This can be time comsuming and Oracle claims that the new MERGE command will avoid costly overhead and reduce data scans. However, I am concerned that we may hit rollback problems if we implement a straight SQL statement such as MERGE. Any thoughts?

Maybe you are looking for

  • How to validate SQL scripts

    Hi, How to Validate SQL scripts? I am having set of sql files i wish to run one by one if there is any error at one file i need to notify to the user.I have created Bat file in-order to execute in a sequence.how to validate in bat file say 01.sql ---

  • HT5649 how to use songs as a ringtone?

    How can i use my I tunes songs as a ringtone? kindly provide tutorials and detail process.

  • Import/optimize question

    I'm importing videos shot with my digital camera which takes great HD movies. I notice when I import them into iMovie 11, some of them will come out more grainy than the original. I'm selecting the Optimize video checkbox when importing. Is this what

  • Does Translation hub supports English to Chinese translation?

    Hi, I'm using Translation Hub to translate my existing 10g English Froms into 10g Chinese Forms using the Translation Hub tool available in Oracle Dev Suite. While Installing the Translation Hub database into an existing UTF8 database I get the below

  • My iPod keeps shutting down and restarting while listening to Podcast

    Can someone help? I will be in the middle of a podcast and it just restarts. It just starting doing that. I don't think he does it when I am listening to music. Is it a Podcast thing or is it an iPod thing?