Java.sql.GeneralException  caused by content ??

Hello.
I have today been writing a small program to input a 200 pages file containing all my SMS messages from my phone to a MS access database.
The problem is, that the database only accepts about 20 og the messages, when i try to add the rest, i get a java.sql.generalexception..
This is the stacktrace:
java.sql.SQLException: General error
    at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6987)
    at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7115)
    at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(JdbcOdbc.java:3111)
    at sun.jdbc.odbc.JdbcOdbcStatement.execute(JdbcOdbcStatement.java:338)
    at sun.jdbc.odbc.JdbcOdbcStatement.executeUpdate(JdbcOdbcStatement.java:288)The fields in the db i try to input is the txt: "from" and "to",
the java.sql.Date: date
and the note: message
the primary key is th date field.
For eksample; this message goes in well eneugh to the database:
from: Anders
to:Jane
Date: 15-1-2005 (the representation in a real date - not millis (copyed from access))
message: Mange tak s :)
but the folowing does not:
From:     249
To:     Anders
Date:     1107504180000
Message: Kre kunde. Din TELMORE saldo er nu p -3,71 kr. Mvh. TELMORE
(the '' is because the program on my phone dosent support danish letters...)
How come the dbms don't take the second message when the first one went in fine ??
The code for inserting into the table comes here:
    public  boolean setMessage(String afsender, String modtager, java.sql.Date date, String besked) {
        boolean ok=false;
        try {
            Statement stm =con.createStatement();
            String s1 = "INSERT INTO BESKEDER " +
                    "VALUES ("+afsender.trim()+
                    "," +modtager.trim()+
                    "," +date+
                    ","+besked.trim()+
            stm.executeUpdate(s1);
            ok = true;
            stm.close();
        } catch (Exception se) {
            System.out.println("ERR :");
            se.printStackTrace();
        return ok;
    }-- and i naturaly opens and closes the db stream properly..
Finaly, i have had the plesure that the program results in a crash in the HotSpot Virtual Machine:
# An unexpected error has been detected by HotSpot Virtual Machine:
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x7c901010, pid=2632, tid=3428
# Java VM: Java HotSpot(TM) Client VM (1.5.0_01-b08 mixed mode, sharing)
# Problematic frame:
# C  [ntdll.dll+0x1010]
# An error report file with more information is saved as hs_err_pid2632.log
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#lots of questions i know... hope somone can help me...
ciao

The problem is, that the database only accepts about 20
og the messages, when i try to add the rest, i get a
java.sql.generalexception..Probably because by trying to construct the SQL yourself, you are constructing invalid SQL due to the data.
>
lots of questions i know... hope somone can help
me...Use a prepared statement.

Similar Messages

  • Java.sql.SQLException: Error in allocating a connection. Cause: No Password

    I'm deploying an EJB Module with a CMP in SJAS from SJSE.
    I get the following exception "java.sql.SQLException: Error in allocating a connection. Cause: No PasswordCredential found" the first time a CMP tries to connect to the MS SQL Server database.
    I can connect through the Admin console (PING works fine) but this error hapens in runtime.
    The datasource classname i'm using is "com.sun.sql.jdbcx.sqlserver.SQLServerDataSource" which is suggested by the SJSE.
    Any help will be welcome...
    Nelson Marques

    If you are using Netbeans, then this link might help:
    http://forum.java.sun.com/thread.jspa?forumID=136&threadID=598423
    Otherwise, have you try this ?
    Verify your sun-ejb-jar.xml does not use default-resource-princinpal element:
    <res-ref-name>jdbc/pdisasdb</res-ref-name>
    <jndi-name>jdbc/pdisasdb</jndi-name>
    <default-resource-principal>
    <name>myname</name>
    <password>geheim</password>
    </default-resource-principal>
    </resource-ref>

  • Caused by: java.sql.SQLException: ORA-00060: deadlock detected while waitin

    Hi,
    I'm getting following exception:
    Caused by: net.sf.hibernate.exception.GenericJDBCException: could not update: [com.sample.database.hibernate.mappings.reference.impl.TaskImpl#156979998]
         at net.sf.hibernate.exception.ErrorCodeConverter.handledNonSpecificException(ErrorCodeConverter.java:90)
         at net.sf.hibernate.exception.ErrorCodeConverter.convert(ErrorCodeConverter.java:79)
         at net.sf.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:30)
         at net.sf.hibernate.persister.AbstractEntityPersister.convert(AbstractEntityPersister.java:1332)
         at net.sf.hibernate.persister.EntityPersister.update(EntityPersister.java:683)
         at net.sf.hibernate.persister.EntityPersister.update(EntityPersister.java:623)
         at net.sf.hibernate.impl.ScheduledUpdate.execute(ScheduledUpdate.java:52)
         at net.sf.hibernate.impl.SessionImpl.executeAll(SessionImpl.java:2438)
         at net.sf.hibernate.impl.SessionImpl.execute(SessionImpl.java:2392)
         at net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2260)
         at net.sf.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:61)
         at com.sample.database.hibernate.util.HibernateUtil.doSessionWork(HibernateUtil.java:83)
         ... 8 more
    Caused by: java.sql.SQLException: ORA-00060: deadlock detected while waiting for resource
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:158)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:305)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:272)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:623)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:181)
         at oracle.jdbc.driver.T4CPreparedStatement.execute_for_rows(T4CPreparedStatement.java:685)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1138)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3018)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3090)
         at com.mchange.v2.sql.filter.FilterPreparedStatement.executeUpdate(FilterPreparedStatement.java:71)
         at net.sf.hibernate.persister.EntityPersister.update(EntityPersister.java:666)
         ... 15 more
    what could be the reason??
    thanks.

    The error is coming from an application. Please check the alert log file of the database and further there will be a trace file mentioned in the alert log file in which you will have information of the object which is causing deadlock.
    Regards

  • What may be the cause of this error java.sql.SQLException: invalid sql type passed to callable statement in iplanet ussing JNDI

     

    Hi,
    The possibilities can be of various reasons, with the sql statements,
    xml descriptors, data sources, improper drivers anything. To crack down
    the solution, kindly let me know the error messages and what exactly are
    you trying to accomplish.
    Thanks & Regards
    Raj
    manimaran t wrote:
    what may be the cause of this error java.sql.SQLException: invalid sql
    type passed to callable statement in iplanet ussing JNDI
    Try our New Web Based Forum at http://softwareforum.sun.com
    Includes Access to our Product Knowledge Base!

  • DBAdapter for SQL Server Caused by java.sql.SQLException: [FMWGEN][SQLServe

    Have Oracle SOA 11.1.1.5 composite that does insert/update on SQL Server table. Using DBAdapter to connect to SQL Server for this insert/update. Number of instances is huge so every now and then getting the below error. Have another composite that does that same but in Oracle Table but never run into the below issues it's only with SQL Server database giving the below errors very often. Any idea on how to resolve this issue what could be the cause
    don't know why it throws this error *Descriptor name: [UpdateSQLServer.TableName]. Caused by java.sql.SQLException: [FMWGEN][SQLServer JDBC Driver]Object has been closed..* is there any issue with DBAdapter for SQL Server or is it a load issue as I don't see this with oracle tables
    CompositeNameService 16415534 remoteFault com.oracle.bpel.client.BPELFault:
    faultName: {{http://schemas.oracle.com/bpel/extension}remoteFault}
    messageType: {{http://schemas.oracle.com/bpel/extension}RuntimeFaultMessage}
    parts: {{ summary=Exception occured when binding was invoked.
    Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'update' failed due to: DBWriteInteractionSpec Execute Failed Exception. update failed.
    Descriptor name: [UpdateSQLServer.TableName]. Caused by java.sql.SQLException: [FMWGEN][SQLServer JDBC Driver]Object has been closed..
    Please see the logs for the full DBAdapter logging output prior to this exception.
    This exception is considered retriable, likely due to a communication failure. To classify it as non-retriable instead add property nonRetriableErrorCodes with value "0" to your
    deployment descriptor (i.e. weblogic-ra.xml). To auto retry a retriable fault set these composite.xml properties for this invoke: jca.retry.interval, jca.retry.count, and
    jca.retry.backoff. All properties are integers. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution. ,
    detail=[FMWGEN][SQLServer JDBC Driver]Object has been closed. ,code=0} Any help is appreciated.
    Thanks

    Hi,
    Currently "Test Connections On Reserve" is unchecked but wondering what benefit will it give if I make it selected anyways if it fails still the Process will error out or does it holds the process till the connection is available and then continues. Will there be a performance hit. As currently the volume is very high and if selecting the above then for each instance it will check first if connection is available and does it affect on the performance or anything else
    Also "Connection Reserve Timeout:" is set to 10 seconds.
    Thanks

  • Caused by: java.sql.SQLException: Invalid column type  OR NOT?

    He all,
    I am using JDev Studio Edition Version 11.1.2.3.0
    Oracle 11g
    Problem is simple have table
    CREATE TABLE "BILING"."MU_UREDJAJ"
    "MUURE_ID" NUMBER(32,0) NOT NULL ENABLE,
    "MUURE_BROJ_UREDJAJA" VARCHAR2(25 CHAR),
    "MUTU_ID" NUMBER(15,0),
    "MUURE_GOD_PROZ" NUMBER(4,0),
    "MUURE_GOD_OVERE" NUMBER(4,0),
    "MUVUR_ID" NUMBER(2,0),
    "MUSVL_ID" NUMBER(2,0),
    "MUSURE_ID" NUMBER(2,0),
    CONSTRAINT "MU_UREDJAJ_PK" PRIMARY KEY ("MUURE_ID")
    Created EO and VO based on this table
    here are type the JDev generated
    <Attribute
    Name="MuureId"
    IsNotNull="true"
    Precision="32"
    Scale="0"
    ColumnName="MUURE_ID"
    SQLType="NUMERIC"
    Type="java.math.BigInteger"
    ColumnType="NUMBER"
    TableName="MU_UREDJAJ"
    PrimaryKey="true"/>
    <Attribute
    Name="MuureBrojUredjaja"
    Precision="25"
    ColumnName="MUURE_BROJ_UREDJAJA"
    SQLType="VARCHAR"
    Type="java.lang.String"
    ColumnType="VARCHAR2"
    TableName="MU_UREDJAJ">
    <DesignTime>
    <Attr Name="_DisplaySize" Value="25"/>
    </DesignTime>
    </Attribute>
    When i try to insert only primary key with all null values i get error:
    [51] INFO: No app def in BindingContext for: AppModule
    [52] DCUtil, returning:oracle.jbo.uicli.binding.JUApplication, for AppModule
    [53] Replacing: null with: AppModule_MuUredjajView1_0PageDef
    [54] INFO: No app def in BindingContext for: AppModule
    [55] DCUtil, returning:oracle.jbo.uicli.binding.JUApplication, for AppModule
    [56] INFO: No app def in BindingContext for: PROJECT_GLOBAL_VARIABLES
    [57] INFO: mDCRefMap lookup failed. Does the cpx have a dataControlUsages 'dc' entry? PROJECT_GLOBAL_VARIABLES
    [58] Resolving VO:AppModule.MuUredjajView1 for iterator binding:oracle_jbo_uicli_binding_JUIteratorBinding_2
    [59] DCUtil, RETURNING: <null> for AppModule.MuUredjajView1
    [60] MuUredjajView1 ViewRowSetImpl.execute caused params to be "un"changed
    [61] Carrying over CappedRowCount:-1for ViewRowSet:MuUredjajView1
    [62] Column count: 8
    [63] executeQueryForCollection ViewObject:MuUredjajView1, RowSet:MuUredjajView1
    [64] MuUredjajView1>#q computed SQLStmtBufLen: 298, actual=271, storing=301
    [65] SELECT MuUredjaj.MUURE_ID, MuUredjaj.MUURE_BROJ_UREDJAJA, MuUredjaj.MUTU_ID, MuUredjaj.MUURE_GOD_PROZ, MuUredjaj.MUURE_GOD_OVERE, MuUredjaj.MUVUR_ID, MuUredjaj.MUSVL_ID, MuUredjaj.MUSURE_ID FROM MU_UREDJAJ MuUredjaj
    [66] ViewObject: [model.MuUredjajView]AppModule.MuUredjajView1 Created new QUERY statement
    [67] Bind params for ViewObject: [model.MuUredjajView]AppModule.MuUredjajView1
    [68] DBTransactionImpl.mDefaultSparseArrayThreshold is 20
    [69] Entity with key:oracle.jbo.Key[375681 ] owned by row:oracle.jbo.Key[375681 ]
    [70] **** refreshControl() for BindingContainer :AppModule_MuUredjajView1_0PageDef
    [71] **** refreshControl() for BindingContainer :AppModule_MuUredjajView1_0PageDef
    [72] INFO: No app def in BindingContext for: adfFacesContext
    [73] INFO: mDCRefMap lookup failed. Does the cpx have a dataControlUsages 'dc' entry? adfFacesContext
    [74] INFO: No app def in BindingContext for: adfFacesContext
    [75] INFO: mDCRefMap lookup failed. Does the cpx have a dataControlUsages 'dc' entry? adfFacesContext
    [76] OracleSQLBuilder: SAVEPOINT 'BO_SP'
    [77] OracleSQLBuilder Executing, Lock 2 DML on: MU_UREDJAJ (Insert)
    [78] INSERT buf MuUredjaj>#i SQLStmtBufLen: 165, actual=44
    [79] INSERT INTO MU_UREDJAJ(MUURE_ID) VALUES (:1)
    [80] Insert binding param 1: 400000
    [81] OracleSQLBuilderImpl.doEntityDML failed...
    [82] X/Open SQL State is: 99999
    [83] java.sql.SQLException: Invalid column type
         at oracle.jdbc.driver.OraclePreparedStatement.setObjectCritical(OraclePreparedStatement.java:11256)
         at oracle.jdbc.driver.OraclePreparedStatement.setObjectInternal(OraclePreparedStatement.java:10605)
         at oracle.jdbc.driver.OraclePreparedStatement.setObjectInternal(OraclePreparedStatement.java:11665)
         at oracle.jdbc.driver.OraclePreparedStatement.setObject(OraclePreparedStatement.java:11631)
         at oracle.jdbc.driver.OraclePreparedStatementWrapper.setObject(OraclePreparedStatementWrapper.java:253)
         at oracle.jbo.server.OracleSQLBuilderImpl.bindInsertStatement(OracleSQLBuilderImpl.java:2036)
         at oracle.jbo.server.EntityImpl.bindDMLStatement(EntityImpl.java:10466)
         at oracle.jbo.server.OracleSQLBuilderImpl.doEntityDML(OracleSQLBuilderImpl.java:415)
         at oracle.jbo.server.EntityImpl.doDML(EntityImpl.java:8518)
         at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:6775)
         at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:3264)
         at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:3067)
         at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:2071)
         at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2352)
         at oracle.adf.model.bc4j.DCJboDataControl.commitTransaction(DCJboDataControl.java:1590)
         at oracle.adf.model.binding.DCDataControl.callCommitTransaction(DCDataControl.java:1415)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1428)
         at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2169)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:731)
         at oracle.jbo.uicli.jui.JUActionBinding.actionPerformed(JUActionBinding.java:193)
         at oracle.jbo.uicli.controls.JUNavigationBar.doAction(JUNavigationBar.java:412)
         at oracle.jbo.jbotester.NavigationBar.doAction(NavigationBar.java:112)
         at oracle.jbo.uicli.controls.JUNavigationBar$NavButton.actionPerformed(JUNavigationBar.java:118)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
         at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
         at java.awt.Component.processMouseEvent(Component.java:6289)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
         at java.awt.Component.processEvent(Component.java:6054)
         at java.awt.Container.processEvent(Container.java:2041)
         at java.awt.Component.dispatchEventImpl(Component.java:4652)
         at java.awt.Container.dispatchEventImpl(Container.java:2099)
         at java.awt.Component.dispatchEvent(Component.java:4482)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
         at java.awt.Container.dispatchEventImpl(Container.java:2085)
         at java.awt.Window.dispatchEventImpl(Window.java:2478)
         at java.awt.Component.dispatchEvent(Component.java:4482)
         at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:644)
         at java.awt.EventQueue.access$000(EventQueue.java:85)
         at java.awt.EventQueue$1.run(EventQueue.java:603)
         at java.awt.EventQueue$1.run(EventQueue.java:601)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
         at java.awt.EventQueue$2.run(EventQueue.java:617)
         at java.awt.EventQueue$2.run(EventQueue.java:615)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:614)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    [84] OracleSQLBuilder: ROLLBACK WORK TO SAVEPOINT 'BO_SP'
    [85] DCBindingContainer.reportException :oracle.jbo.DMLException
    [86] oracle.jbo.DMLException: JBO-26041: Failed to post data to database during "Insert": SQL Statement "INSERT INTO MU_UREDJAJ(MUURE_ID) VALUES (:1)".
         at oracle.jbo.server.OracleSQLBuilderImpl.doEntityDML(OracleSQLBuilderImpl.java:581)
         at oracle.jbo.server.EntityImpl.doDML(EntityImpl.java:8518)
         at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:6775)
         at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:3264)
         at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:3067)
         at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:2071)
         at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2352)
         at oracle.adf.model.bc4j.DCJboDataControl.commitTransaction(DCJboDataControl.java:1590)
         at oracle.adf.model.binding.DCDataControl.callCommitTransaction(DCDataControl.java:1415)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1428)
         at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2169)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:731)
         at oracle.jbo.uicli.jui.JUActionBinding.actionPerformed(JUActionBinding.java:193)
         at oracle.jbo.uicli.controls.JUNavigationBar.doAction(JUNavigationBar.java:412)
         at oracle.jbo.jbotester.NavigationBar.doAction(NavigationBar.java:112)
         at oracle.jbo.uicli.controls.JUNavigationBar$NavButton.actionPerformed(JUNavigationBar.java:118)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
         at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
         at java.awt.Component.processMouseEvent(Component.java:6289)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
         at java.awt.Component.processEvent(Component.java:6054)
         at java.awt.Container.processEvent(Container.java:2041)
         at java.awt.Component.dispatchEventImpl(Component.java:4652)
         at java.awt.Container.dispatchEventImpl(Container.java:2099)
         at java.awt.Component.dispatchEvent(Component.java:4482)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
         at java.awt.Container.dispatchEventImpl(Container.java:2085)
         at java.awt.Window.dispatchEventImpl(Window.java:2478)
         at java.awt.Component.dispatchEvent(Component.java:4482)
         at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:644)
         at java.awt.EventQueue.access$000(EventQueue.java:85)
         at java.awt.EventQueue$1.run(EventQueue.java:603)
         at java.awt.EventQueue$1.run(EventQueue.java:601)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
         at java.awt.EventQueue$2.run(EventQueue.java:617)
         at java.awt.EventQueue$2.run(EventQueue.java:615)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:614)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    Caused by: java.sql.SQLException: Invalid column type
         at oracle.jdbc.driver.OraclePreparedStatement.setObjectCritical(OraclePreparedStatement.java:11256)
         at oracle.jdbc.driver.OraclePreparedStatement.setObjectInternal(OraclePreparedStatement.java:10605)
         at oracle.jdbc.driver.OraclePreparedStatement.setObjectInternal(OraclePreparedStatement.java:11665)
         at oracle.jdbc.driver.OraclePreparedStatement.setObject(OraclePreparedStatement.java:11631)
         at oracle.jdbc.driver.OraclePreparedStatementWrapper.setObject(OraclePreparedStatementWrapper.java:253)
         at oracle.jbo.server.OracleSQLBuilderImpl.bindInsertStatement(OracleSQLBuilderImpl.java:2036)
         at oracle.jbo.server.EntityImpl.bindDMLStatement(EntityImpl.java:10466)
         at oracle.jbo.server.OracleSQLBuilderImpl.doEntityDML(OracleSQLBuilderImpl.java:415)
         ... 52 more
    ## Detail 0 ##
    java.sql.SQLException: Invalid column type
         at oracle.jdbc.driver.OraclePreparedStatement.setObjectCritical(OraclePreparedStatement.java:11256)
         at oracle.jdbc.driver.OraclePreparedStatement.setObjectInternal(OraclePreparedStatement.java:10605)
         at oracle.jdbc.driver.OraclePreparedStatement.setObjectInternal(OraclePreparedStatement.java:11665)
         at oracle.jdbc.driver.OraclePreparedStatement.setObject(OraclePreparedStatement.java:11631)
         at oracle.jdbc.driver.OraclePreparedStatementWrapper.setObject(OraclePreparedStatementWrapper.java:253)
         at oracle.jbo.server.OracleSQLBuilderImpl.bindInsertStatement(OracleSQLBuilderImpl.java:2036)
         at oracle.jbo.server.EntityImpl.bindDMLStatement(EntityImpl.java:10466)
         at oracle.jbo.server.OracleSQLBuilderImpl.doEntityDML(OracleSQLBuilderImpl.java:415)
         at oracle.jbo.server.EntityImpl.doDML(EntityImpl.java:8518)
         at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:6775)
         at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:3264)
         at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:3067)
         at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:2071)
         at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2352)
         at oracle.adf.model.bc4j.DCJboDataControl.commitTransaction(DCJboDataControl.java:1590)
         at oracle.adf.model.binding.DCDataControl.callCommitTransaction(DCDataControl.java:1415)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1428)
         at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2169)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:731)
         at oracle.jbo.uicli.jui.JUActionBinding.actionPerformed(JUActionBinding.java:193)
         at oracle.jbo.uicli.controls.JUNavigationBar.doAction(JUNavigationBar.java:412)
         at oracle.jbo.jbotester.NavigationBar.doAction(NavigationBar.java:112)
         at oracle.jbo.uicli.controls.JUNavigationBar$NavButton.actionPerformed(JUNavigationBar.java:118)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
         at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
         at java.awt.Component.processMouseEvent(Component.java:6289)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
         at java.awt.Component.processEvent(Component.java:6054)
         at java.awt.Container.processEvent(Container.java:2041)
         at java.awt.Component.dispatchEventImpl(Component.java:4652)
         at java.awt.Container.dispatchEventImpl(Container.java:2099)
         at java.awt.Component.dispatchEvent(Component.java:4482)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
         at java.awt.Container.dispatchEventImpl(Container.java:2085)
         at java.awt.Window.dispatchEventImpl(Window.java:2478)
         at java.awt.Component.dispatchEvent(Component.java:4482)
         at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:644)
         at java.awt.EventQueue.access$000(EventQueue.java:85)
         at java.awt.EventQueue$1.run(EventQueue.java:603)
         at java.awt.EventQueue$1.run(EventQueue.java:601)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
         at java.awt.EventQueue$2.run(EventQueue.java:617)
         at java.awt.EventQueue$2.run(EventQueue.java:615)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:614)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    [87] JUErrorHandlerDlg.reportException(oracle.jbo.DMLException)

    Its funny, i have some others EO with BigInteger and its works fine. To be funny more a change to Integer and its works then i return to math.BigInteger and bug disappear its works,
    thank you Dario

  • Caused By: java.sql.SQLException: Missing IN or OUT parameter at index:: 1

    Hi,
    i have a variable email when error, which queries the E$ tables. If it finds any entry in the table it updates its count:
    select count(1) from ODI_WORK.E$_<%=odiRef.getSession("SESS_NO")%>CI_TXN_DETAIL.
    Here am attaching the session number to the E$ table as well, to help me in parallel processin. This variable "Email_when_Error" is used in my package. When i execute my package i get the following error:
    ODI-1228: Task EMAIL_WHEN_ERROR (Variable) fails on the target connection RJ_DATA_SERVER.
    Caused By: java.sql.SQLException: Missing IN or OUT parameter at index:: 1
         at oracle.jdbc.driver.OraclePreparedStatement.processCompletedBindRow(OraclePreparedStatement.java:1890)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3747)
         at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3806)
         at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1667)
         at oracle.odi.query.JDBCTemplate.executeQuery(JDBCTemplate.java:189)
         at oracle.odi.runtime.agent.execution.sql.RefreshVariableExecutor.execute(RefreshVariableExecutor.java:54)
         at oracle.odi.runtime.agent.execution.sql.SQLExecutor.execute(SQLExecutor.java:1)
         at oracle.odi.runtime.agent.execution.TaskExecutionHandler.handleTask(TaskExecutionHandler.java:50)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlV.processTask(SnpSessTaskSqlV.java:401)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2609)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlV.treatTask(SnpSessTaskSqlV.java:230)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:537)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:453)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1740)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1595)
         at oracle.odi.runtime.agent.processor.impl.StartScenRequestProcessor$2.doAction(StartScenRequestProcessor.java:580)
         at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:214)
         at oracle.odi.runtime.agent.processor.impl.StartScenRequestProcessor.doProcessStartScenTask(StartScenRequestProcessor.java:513)
         at oracle.odi.runtime.agent.processor.impl.StartScenRequestProcessor$StartScenTask.doExecute(StartScenRequestProcessor.java:1070)
         at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:123)
         at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:82)
         at java.lang.Thread.run(Thread.java:662)
    kindly tell me where i went wrong

    Hi,
    When i run the variable as refresh...even i got the E$ table not found error. But when it is a part of package, This is what i get in the code section:
    Refresh Variable RJ_PROJECT.EMAIL_WHEN_ERROR:
    BeanShell script error: Sourced file: inline evaluation of: ``out.print("select count(1) from ODI_WORK.E$") ; odiRef.getSession(\u201cSESS_NO\ . . . '' Token Parsing Error: Lexical error at line 2, column 19. Encountered: "\u201c" (8220), after : "": <at unknown location>
    BSF info: EMAIL_WHEN_ERROR at line: 0 column: columnNo
    out.print("select count(1) from ODI_WORK.E$") ;
    odiRef.getSession(\u201cSESS_NO\u201d)out.print("_CI_TXN_DETAIL") ;
    ****** ORIGINAL TEXT ******
    select count(1) from ODI_WORK.E$<%odiRef.getSession(?SESS_NO?)%>CITXN_DETAIL

  • [b]java.sql.SQLException: Io exception: Software caused connection abort: r

    hi ,
    In my application iam getting DBconnection obj from context attribute which iam using in all my sevlets & jsp's.
    The application is running fine but sometimes iam getting following exception
    java.sql.SQLException: Io exception: Software caused connection abort: recv failed
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:210)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:323)
    at oracle.jdbc.driver.OracleStatement.<init>(OracleStatement.java:417)
    at oracle.jdbc.driver.OracleConnection.privateCreateStatement(OracleConn
    ection.java:474)
    at oracle.jdbc.driver.OracleConnection.createStatement(OracleConnection.
    java:383)
    at org.apache.jsp.Vis_002dReg.GetCompNames_jsp._jspService(GetCompNames_
    jsp.java:64)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
    .java:311)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
    01)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
    atcher.java:684)
    at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationD
    ispatcher.java:575)
    at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDis
    patcher.java:498)
    at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary
    .java:1002)
    at org.apache.jsp.Vis_002dReg.VisRegCustmer3_jsp._jspService(VisRegCustm
    er3_jsp.java:320)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
    .java:311)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
    01)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    icationFilterChain.java:247)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
    ilterChain.java:193)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
    alve.java:256)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
    t.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
    alve.java:191)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
    t.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:
    2415)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
    ava:180)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
    t.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche
    rValve.java:171)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
    t.invokeNext(StandardPipeline.java:641)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
    ava:172)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
    t.invokeNext(StandardPipeline.java:641)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
    ve.java:174)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
    t.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:22
    3)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
    :594)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
    ssConnection(Http11Protocol.java:392)
    at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
    :565)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
    ool.java:619)
    at java.lang.Thread.run(Thread.java:534)
    222222 In GET COMPANY NAMES EXCEPTION
    java.lang.NullPointerException
    at org.apache.jsp.Vis_002dReg.GetCompNames_jsp._jspService(GetCompNames_
    jsp.java:101)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
    .java:311)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
    01)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
    atcher.java:684)
    at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationD
    ispatcher.java:575)
    at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDis
    patcher.java:498)
    at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary
    .java:1002)
    at org.apache.jsp.Vis_002dReg.VisRegCustmer3_jsp._jspService(VisRegCustm
    er3_jsp.java:320)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
    .java:311)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
    01)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    icationFilterChain.java:247)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
    ilterChain.java:193)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
    alve.java:256)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
    t.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
    alve.java:191)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
    t.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:
    2415)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
    ava:180)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
    t.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche
    rValve.java:171)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
    t.invokeNext(StandardPipeline.java:641)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
    ava:172)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
    t.invokeNext(StandardPipeline.java:641)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
    ve.java:174)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
    t.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:22
    3)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
    :594)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
    ssConnection(Http11Protocol.java:392)
    at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
    :565)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
    ool.java:619)
    at java.lang.Thread.run(Thread.java:534)
    can any body help me with this wat went wrong, need urgent

    Something bad happened.
    Why is this such a calamity?
    Anyway something (probably the server) closed the connection probably. Maybe a time out. Or you asked for something so dispicable the database got upset and booted you out.

  • Caused by java.sql.SQLException: No JDBC connection can be made

    Hi,
    I am using OSB11g (with soa db adapter ) to select data from DB2 Database. I am trying to just fetch like 100 records(very less).
    I get this Exception once in 4-5 tests I do . I am not sure if I have to modify any configurations, in case its timing out .
    I see something like *"To classify it as non-retriable instead add property nonRetriableErrorCodes with value "0" to your deployment descriptor (i.e. weblogic-ra.xml)."*
    I don't see the tables when I try to perform SELECT operation in db adapter. In JDev worksheet I can see the tables and records when queried.
    BEA-380002: Invoke JCA outbound service failed with connection error, exception: com.bea.wli.sb.transports.jca.JCATransportException: oracle.tip.adapter.sa.api.JCABindingException: oracle.tip.adapter.sa.impl.fw.ext.org.collaxa.thirdparty.apache.wsif.WSIFException: servicebus:/WSDL/SampleOSBEMEA/WSDL/DBOut [ DBOut_ptt::DBOut(DBOutInput_msg,DBOutOutputCollection) ] - WSIF JCA Execute of operation 'DBOut' failed due to: Pure SQL Exception.
    Pure SQL Execute of SELECT Column1, Column2 ..........Column216 from Table.
    Caused by java.sql.SQLException: No JDBC connection can be made
    because the transaction state is
    Rolledback.
    ; nested exception is:
    BINDING.JCA-11633
    Pure SQL Exception.
    Caused by java.sql.SQLException: No JDBC connection can be made
    because the transaction state is
    Rolledback.
    The Pure SQL option is for border use cases only and provides simple yet minimal functionality. Possibly try the "Perform an operation on a table" option instead. This exception is considered retriable, likely due to a communication failure. Because the global transaction is rolling back the invoke must be retried in a new transaction, restarting from the place of the last transaction commit. To classify it as non-retriable instead add property nonRetriableErrorCodes with value "0" to your deployment descriptor (i.e. weblogic-ra.xml).
    The Pure SQL option is for border use cases only and provides simple yet minimal functionality. Possibly try the "Perform an operation on a table" option instead. This exception is considered retriable, likely due to a communication failure. Because the global transaction is rolling back the invoke must be retried in a new transaction, restarting from the place of the last transaction commit. To classify it as non-retriable instead add property nonRetriableErrorCodes with value "0" to your deployment descriptor (i.e. weblogic-ra.xml).
    at oracle.tip.adapter.db.exceptions.DBResourceException.createXARetriableException(DBResourceException.java:670)
    at oracle.tip.adapter.db.exceptions.DBResourceException.createEISException(DBResourceException.java:642)
    at oracle.tip.adapter.db.exceptions.DBResourceException.pureSQLException(DBResourceException.java:711)
    at oracle.tip.adapter.db.puresql.PureSQLInteraction.executePureSQL(PureSQLInteraction.java:625)
    at oracle.tip.adapter.db.DBInteraction.executePureSQL(DBInteraction.java:1146)
    at oracle.tip.adapter.db.DBInteraction.execute(DBInteraction.java:254)
    at oracle.tip.adapter.sa.impl.fw.wsif.jca.WSIFOperation_JCA.performOperation(WSIFOperation_JCA.java:529)
    ... 63 more
    Caused by: java.sql.SQLException: No JDBC connection can be made
    because the transaction state is
    Rolledback
    at weblogic.jdbc.jts.Driver.newConnection(Driver.java:949)
    at weblogic.jdbc.jts.Driver.createLocalConnection(Driver.java:327)
    at weblogic.jdbc.jts.Driver.connect(Driver.java:173)
    at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:364)
    at org.eclipse.persistence.sessions.JNDIConnector.connect(JNDIConnector.java:126)
    at org.eclipse.persistence.sessions.JNDIConnector.connect(JNDIConnector.java:94)
    at org.eclipse.persistence.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:162)
    at org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor.connectInternal(DatasourceAccessor.java:327)
    at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.connectInternal(DatabaseAccessor.java:291)
    at org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor.reconnect(DatasourceAccessor.java:558)
    at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.reconnect(DatabaseAccessor.java:1433)
    at org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor.incrementCallCount(DatasourceAccessor.java:302)
    at oracle.tip.adapter.db.DBConnection.getTopLinkSQLConnection(DBConnection.java:333)
    at oracle.tip.adapter.db.transaction.DBTransaction.beginInternal(DBTransaction.java:126)
    at oracle.tip.adapter.db.puresql.PureSQLInteraction.executePureSQL(PureSQLInteraction.java:171)
    ... 66 more
    Should I increase the time interval in weblogicra.xml (DEV/wls1034/middleware/Oracle_OSB1/lib/external/adapters/META-INF)
    for <wls:connection-reserve-timeout-seconds>5</wls:connection-reserve-timeout-seconds>
    Thanks
    Edited by: soauser on Jul 6, 2011 10:02 AM

    Looks like either database is too slow or data-source is not functioning properly. Make sure to test data source and see if it is in running state and it has sufficient number of connections (you may increase max connections value). Actually transaction is getting rolled back because it could not get connection in specified time period (may be JTA/statement timeout).
    Cross post in Weblogic JDBC forum as well for expert's advice -
    WebLogic Server - JDBC
    You may consider raising a case with support as well.
    Regards,
    Anuj

  • Java.sql.SQLDataException: ORA-01878: specified field not found in datetime

    I am getting the exception mentioned in the subject field. Here is the query
    select * from tabel_abc where from_tz(cast(LAST_RECEIVED_TIME + timeout_duration/86400 as timestamp),'UTC') <systimestamp at time zone 'UTC';
    This is happening only for the during the daylight saving, because the date operation is returning the incorrect time value.
    timeout_duration holds the value in terms of number of seconds.
    Please suggest how to resolve the issue.
    Caused by: java.sql.SQLDataException: ORA-01878: specified field not found in
    datetime or interval
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:457)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)
    at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:889)
    at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:476)
    at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:204)
    at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:540)
    at
    oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:217)
    at
    oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.ja
    va:1079)
    at
    oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1
    293)
    at
    oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1
    419)
    at
    oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedState
    ment.java:3752)
    at
    oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatemen
    t.java:3806)
    at
    oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedS
    tatementWrapper.java:1667)
    at
    weblogic.jdbc.wrapper.PreparedStatement.executeQuery(PreparedStatement.java:13
    5)
    at

    >
    When I run the following expression on this value I get the ORA-01878 error:
    (EXTRACT(DAY FROM ((ETD_ZULU - 4/24) - SYSTIMESTAMP)))
    >
    That isn't the same as the snippet you first posted
    This works
    select EXTRACT(DAY FROM ((ETD_ZULU - 4/24) - SYSTIMESTAMP)) from
    (select cast (systimestamp as timestamp(6)) etd_zulu from dual)The first snippet you posted was
    >
    select * from tabel_abc where from_tz(cast(LAST_RECEIVED_TIME + timeout_duration/86400 as timestamp),'UTC') <systimestamp at time zone 'UTC';
    >
    And it includes time zone. All of the web references I have found indicate the problem is either a missing timezone or a timezone mismatch.
    I can't reproduce the problem with the last snippet you used. Are you certain that ETD_ZULE is timestamp and does not include timezone?
    Do you have a complete query that fails? If so, try to narrow the query down to one record that is causing the problem. If you have to you can use brute force approach. Assume that 60 records should be produced. Add
    WHERE ROWNUM < 30to the query. If it runs clean the problem is in the second half so use '< 40', and keep testing until you know which record. Then examine the contents of the field for that record.
    Without some code to try to reproduce the problem there isn't much other help to offer.

  • Java.sql.SQLException: ORA-03135: connection lost contact

    In the whesphere portal i foun a lot of "ORA-03135: connection lost contact" errors but i cant find this error in the oracle client or oracle database.
    Oracle Client 10.2.0.1
    Oracle RDBMS 10.2.0.3 -- in Rac with 3 nodes
    I have a fragment of the trace:
    [20-NOV-2009 23:38:52:338] --- TRACE CONFIGURATION INFORMATION FOLLOWS ---
    [20-NOV-2009 23:38:52:338] New trace stream is /opt/oracle/product/10.2.0/network/trace/cli_22293.trc
    [20-NOV-2009 23:38:52:338] New trace level is 16
    [20-NOV-2009 23:38:52:338] --- TRACE CONFIGURATION INFORMATION ENDS ---
    [20-NOV-2009 23:38:52:338] --- PARAMETER SOURCE INFORMATION FOLLOWS ---
    [20-NOV-2009 23:38:52:338] Attempted load of system pfile source /opt/oracle/product/10.2.0/network/admin/sqlnet.ora
    [20-NOV-2009 23:38:52:338] Parameter source loaded successfully
    [20-NOV-2009 23:38:52:338]
    [20-NOV-2009 23:38:52:338] Attempted load of local pfile source /home/wasadm/.sqlnet.ora
    [20-NOV-2009 23:38:52:338] Parameter source was not loaded
    [20-NOV-2009 23:38:52:338]
    [20-NOV-2009 23:38:52:338] -> PARAMETER TABLE LOAD RESULTS FOLLOW <-
    [20-NOV-2009 23:38:52:338] Successful parameter table load
    [20-NOV-2009 23:38:52:338] -> PARAMETER TABLE HAS THE FOLLOWING CONTENTS <-
    [20-NOV-2009 23:38:52:338] trace_level_Server = 16
    [20-NOV-2009 23:38:52:338] trace_level_client = 16
    [20-NOV-2009 23:38:52:338] trace_directory_client = /opt/oracle/product/10.2.0/network/trace
    [20-NOV-2009 23:38:52:338] trace_file_server = server
    [20-NOV-2009 23:38:52:338] trace_timestamp_client = ON
    [20-NOV-2009 23:38:52:338] trace_timestamp_Server = ON
    [20-NOV-2009 23:38:52:338] trace_file_client = cli
    [20-NOV-2009 23:38:52:338] trace_unique_client = TRUE
    [20-NOV-2009 23:38:52:338] trace_directory_server = /opt/oracle/product/10.2.0/network/trace/server
    [20-NOV-2009 23:38:52:338] --- PARAMETER SOURCE INFORMATION ENDS ---
    [20-NOV-2009 23:38:52:338] --- LOG CONFIGURATION INFORMATION FOLLOWS ---
    [20-NOV-2009 23:38:52:338] Log stream will be "/home/wasadm/sqlnet.log"
    [20-NOV-2009 23:38:52:338] Log stream validation not requested
    [20-NOV-2009 23:38:52:338] --- LOG CONFIGURATION INFORMATION ENDS ---
    [20-NOV-2009 23:38:52:338] nlstdipi: entry
    [20-NOV-2009 23:38:52:338] nlstdipi: exit
    [20-NOV-2009 23:38:52:338] nigini: entry
    [20-NOV-2009 23:38:52:339] nigini: Count in the NL global area is now 1
    [20-NOV-2009 23:38:52:339] nigini: Count in NI global area now: 1
    [20-NOV-2009 23:38:52:339] nrigbi: entry
    [20-NOV-2009 23:38:52:339] nrigbni: entry
    [20-NOV-2009 23:38:52:339] nrigbni: Unable to get data from navigation file tnsnav.ora
    [20-NOV-2009 23:38:52:339] nrigbni: exit
    [20-NOV-2009 23:38:52:339] nrigbi: exit
    [20-NOV-2009 23:38:52:339] nigini: exit
    [20-NOV-2009 23:38:52:339] niqname: Using nnfsn2a() to build connect descriptor for (possibly remote) database.
    [20-NOV-2009 23:38:52:339] nnfgiinit: entry
    [20-NOV-2009 23:38:52:339] nncpcin_maybe_init: first request sent to name server will have ID 0
    [20-NOV-2009 23:38:52:339] nncpcin_maybe_init: initial retry timeout for all name servers is 1500 csecs
    [20-NOV-2009 23:38:52:339] nncpcin_maybe_init: max request retries per name server is 1
    [20-NOV-2009 23:38:52:338] nlstdipi: exit
    [20-NOV-2009 23:38:52:338] nigini: entry
    [20-NOV-2009 23:38:52:339] nigini: Count in the NL global area is now 1
    [20-NOV-2009 23:38:52:339] nigini: Count in NI global area now: 1
    [20-NOV-2009 23:38:52:339] nrigbi: entry
    [20-NOV-2009 23:38:52:339] nrigbni: entry
    [20-NOV-2009 23:38:52:339] nrigbni: Unable to get data from navigation file tnsnav.ora
    [20-NOV-2009 23:38:52:339] nrigbni: exit
    [20-NOV-2009 23:38:52:339] nrigbi: exit
    [20-NOV-2009 23:38:52:339] nigini: exit
    [20-NOV-2009 23:38:52:339] niqname: Using nnfsn2a() to build connect descriptor for (possibly remote) database.
    [20-NOV-2009 23:38:52:339] nnfgiinit: entry
    [20-NOV-2009 23:38:52:339] nncpcin_maybe_init: first request sent to name server will have ID 0
    [20-NOV-2009 23:38:52:339] nncpcin_maybe_init: initial retry timeout for all name servers is 1500 csecs
    [20-NOV-2009 23:38:52:339] nncpcin_maybe_init: max request retries per name server is 1
    [20-NOV-2009 23:38:52:339] nngsini_init_streams: initializing stream subsystem, cache size is 10
    [20-NOV-2009 23:38:52:339] snsgblini: Max no of descriptors supported is 15000
    [20-NOV-2009 23:38:52:339] snsgblini: exit
    [20-NOV-2009 23:38:52:339] nngtini_init_msg: initializing PDU subsystem, initial pool size is 2
    [20-NOV-2009 23:38:52:339] nncpcin_maybe_init: default name server domain is [root]
    [20-NOV-2009 23:38:52:339] nnfgiinit: Installing read path
    [20-NOV-2009 23:38:52:339] nnfgsrsp: entry
    [20-NOV-2009 23:38:52:339] nnfgsrsp: Obtaining path parameter from names.directory_path or native_names.directory_path
    [20-NOV-2009 23:38:52:339] nnfgsrsp: Parmeter names.directory_path not found, setting path to compiled in default
    [20-NOV-2009 23:38:52:339] nnfgspd: entry
    [20-NOV-2009 23:38:52:339] nnfgspd: setting element TNSNAMES
    [20-NOV-2009 23:38:52:339] nnfgspd: setting element HOSTNAME
    [20-NOV-2009 23:38:52:339] nnfgspd: setting element EZCONNECT
    [20-NOV-2009 23:38:52:339] nnfgspd: setting element LDAP
    [20-NOV-2009 23:38:52:339] nnfgspd: Path set
    [20-NOV-2009 23:38:52:339] nnfgspd: exit
    [20-NOV-2009 23:38:52:339] nnfun2a: entry
    [20-NOV-2009 23:38:52:339] nlolgobj: entry
    [20-NOV-2009 23:38:52:339] nnfgrne: entry
    [20-NOV-2009 23:38:52:339] nnfgrne: Going though read path adapters
    [20-NOV-2009 23:38:52:339] nnfgrne: Switching to TNSNAMES adapter
    [20-NOV-2009 23:38:52:339] nnftboot: entry
    [20-NOV-2009 23:38:52:339] nlpaxini: entry
    [20-NOV-2009 23:38:52:340] nlpaxini: exit
    [20-NOV-2009 23:38:52:340] nnftmlf_make_local_addrfile: entry
    [20-NOV-2009 23:38:52:340] nnftmlf_make_local_addrfile: construction of local names file failed
    [20-NOV-2009 23:38:52:340] nnftmlf_make_local_addrfile: exit
    [20-NOV-2009 23:38:52:340] nlpaxini: entry
    [20-NOV-2009 23:38:52:340] nlpaxini: exit
    [20-NOV-2009 23:38:52:340] nnftmlf_make_system_addrfile: entry
    [20-NOV-2009 23:38:52:339] nnfgspd: Path set
    [20-NOV-2009 23:38:52:339] nnfgspd: exit
    [20-NOV-2009 23:38:52:339] nnfun2a: entry
    [20-NOV-2009 23:38:52:339] nlolgobj: entry
    [20-NOV-2009 23:38:52:339] nnfgrne: entry
    [20-NOV-2009 23:38:52:339] nnfgrne: Going though read path adapters
    [20-NOV-2009 23:38:52:339] nnfgrne: Switching to TNSNAMES adapter
    [20-NOV-2009 23:38:52:339] nnftboot: entry
    [20-NOV-2009 23:38:52:339] nlpaxini: entry
    [20-NOV-2009 23:38:52:340] nlpaxini: exit
    [20-NOV-2009 23:38:52:340] nnftmlf_make_local_addrfile: entry
    [20-NOV-2009 23:38:52:340] nnftmlf_make_local_addrfile: construction of local names file failed
    [20-NOV-2009 23:38:52:340] nnftmlf_make_local_addrfile: exit
    [20-NOV-2009 23:38:52:340] nlpaxini: entry
    [20-NOV-2009 23:38:52:340] nlpaxini: exit
    [20-NOV-2009 23:38:52:340] nnftmlf_make_system_addrfile: entry
    [20-NOV-2009 23:38:52:340] nnftmlf_make_system_addrfile: system names file is /opt/oracle/product/10.2.0/network/admin/tnsnames.ora
    [20-NOV-2009 23:38:52:340] nnftmlf_make_system_addrfile: exit
    [20-NOV-2009 23:38:52:340] nnftboot: exit
    [20-NOV-2009 23:38:52:340] nnftrne: entry
    [20-NOV-2009 23:38:52:340] nnftrne: Original name: pwp
    [20-NOV-2009 23:38:52:340] nnfttran: entry
    [20-NOV-2009 23:38:52:340] nncpdpt_dump_ptable: --- /opt/oracle/product/10.2.0/network/admin/tnsnames.ora TABLE HAS THE FOLLOWING CONTENTS ---
    [20-NOV-2009 23:38:52:340] nncpdpt_dump_ptable: PWP = (DESCRIPTION= (ADDRESS_LIST= (FAILOVER=ON) (LOAD_BALANCE=ON) (ADDRESS=(PROTOCOL=TCP)(HOST=mxchpp1datdbc01-vip)(PORT=1521)) (ADDRESS=(PROTOCOL=TCP)(HOST=mxchpp1datdbc02-vip)(PORT=1521)) (ADDRESS=(PROTOCOL=TCP)(HOST=mxchpp1datdbc03-vip)(PORT=1521))) (CONNECT_DATA= (SERVICE_NAME=HBCLHIA1.MX.HSBC.COM) (FAILOVER_MODE=(TYPE=SELECT)(METHOD=BASIC))))
    [20-NOV-2009 23:38:52:340] nncpdpt_dump_ptable: PIDV = (DESCRIPTION= (ADDRESS_LIST= (FAILOVER=ON) (LOAD_BALANCE=ON) (ADDRESS=(PROTOCOL=TCP)(HOST=mxtopp1datdbc01-vip)(PORT=1521)) (ADDRESS=(PROTOCOL=TCP)(HOST=mxtopp1datdbc02-vip)(PORT=1521)) (ADDRESS=(PROTOCOL=TCP)(HOST=mxtopp1datdbc03-vip)(PORT=1521))) (CONNECT_DATA= (SERVICE_NAME=PIDV.MX.HSBC.COM) (FAILOVER_MODE=(TYPE=SELECT)(METHOD=BASIC))))
    [20-NOV-2009 23:38:52:340] nncpdpt_dump_ptable: --- END /opt/oracle/product/10.2.0/network/admin/tnsnames.ora TABLE ---
    [20-NOV-2009 23:38:52:340] nnfttran: exit
    [20-NOV-2009 23:38:52:340] nnftrne: Using tnsnames.ora address (DESCRIPTION= (ADDRESS_LIST= (FAILOVER=ON) (LOAD_BALANCE=ON) (ADDRESS=(PROTOCOL=TCP)(HOST=mxchpp1datdbc01-vip)(PORT=1521)) (ADDRESS=(PROTOCOL=TCP)(HOST=mxchpp1datdbc02-vip)(PORT=1521)) (ADDRESS=(PROTOCOL=TCP)(HOST=mxchpp1datdbc03-vip)(PORT=1521))) (CONNECT_DATA= (SERVICE_NAME=HBCLHIA1.MX.HSBC.COM) (FAILOVER_MODE=(TYPE=SELECT)(METHOD=BASIC)))) for name pwp
    [20-NOV-2009 23:38:52:340] nnftrne: exit
    [20-NOV-2009 23:38:52:340] nnfgrne: exit
    [20-NOV-2009 23:38:52:340] nlolgserv: entry
    [20-NOV-2009 23:38:52:340] nnfggav: entry
    [20-NOV-2009 23:38:52:340] nnftgav: entry
    [20-NOV-2009 23:38:52:340] nnftgav: exit
    [20-NOV-2009 23:38:52:340] nnfgfrm: entry
    [20-NOV-2009 23:38:52:340] nnftfrm: entry
    [20-NOV-2009 23:38:52:340] nnftfrm: exit
    [20-NOV-2009 23:38:52:340] nnfgfrm: exit
    [20-NOV-2009 23:38:52:340] nlolgserv: exit
    [20-NOV-2009 23:38:52:340] nlolgobj: exit
    [20-NOV-2009 23:38:52:340] nlolfmem: entry
    [20-NOV-2009 23:38:52:340] nlolfmem: exit
    [20-NOV-2009 23:38:52:341] nigtrm: Count in the NI global area is now 1
    [20-NOV-2009 23:38:52:341] nigtrm: Count in the NL global area is now 1
    [20-NOV-2009 23:38:52:341] nigini: entry
    [20-NOV-2009 23:38:52:341] nigini: Count in the NL global area is now 2
    [20-NOV-2009 23:38:52:341] nigini: Count in NI global area now: 2
    [20-NOV-2009 23:38:52:341] nigini: exit
    [20-NOV-2009 23:38:52:341] niqname: Hst is already an NVstring.
    [20-NOV-2009 23:38:52:341] niqname: Inserting CID.
    [20-NOV-2009 23:38:52:341] niotns: entry
    [20-NOV-2009 23:38:52:341] niotns: niotns: setting up interrupt handler...
    [20-NOV-2009 23:38:52:341] nigsui: entry
    [20-NOV-2009 23:38:52:341] nigsui: Set User Interrupt: hdl=1, prc=0xb7526534, ctx=0x80c6fe8.
    [20-NOV-2009 23:38:52:341] nigsui: exit (0)
    [20-NOV-2009 23:38:52:341] nttbnd2addr: entry
    [20-NOV-2009 23:38:52:341] nttbnd2addr: ip=loopback specified
    [20-NOV-2009 23:38:52:341] nttbnd2addr: using 127.0.0.1
    [20-NOV-2009 23:38:52:341] snlinGetAddrInfo: entry
    [20-NOV-2009 23:38:52:341] snlinGetAddrInfo: exit
    [20-NOV-2009 23:38:52:341] nttbnd2addr: using host IP address: 127.0.0.1
    [20-NOV-2009 23:38:52:341] snlinFreeAddrInfo: entry
    [20-NOV-2009 23:38:52:341] snlinFreeAddrInfo: exit
    [20-NOV-2009 23:38:52:341] nttbnd2addr: exit
    [20-NOV-2009 23:38:52:341] nttcon: entry
    [20-NOV-2009 23:38:52:341] nttcon: toc = 2
    [20-NOV-2009 23:38:52:341] nttcnp: entry
    [20-NOV-2009 23:38:52:341] nttcnp: creating a socket.
    [20-NOV-2009 23:38:52:341] nttcnp: binding an address to a socket.
    [20-NOV-2009 23:38:52:341] nttcnp: getting sockname
    [20-NOV-2009 23:38:52:341] nttcnp: getting peername
    [20-NOV-2009 23:38:52:341] nttcnp: exit
    [20-NOV-2009 23:38:52:341] nttcon: exit
    [20-NOV-2009 23:38:52:342] nttctl: entry
    [20-NOV-2009 23:38:52:342] nttctl: Setting connection into non-blocking mode
    [20-NOV-2009 23:38:52:342] niotns: Not trying to enable dead connection detection.
    [20-NOV-2009 23:38:52:342] niotns: Calling address: (DESCRIPTION=(ADDRESS_LIST=(FAILOVER=ON)(LOAD_BALANCE=ON)(ADDRESS=(PROTOCOL=TCP)(HOST=mxchpp1datdbc01-vip)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=mxchpp1datdbc02-vip)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=mxchpp1datdbc03-vip)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=HBCLHIA1.MX.HSBC.COM)(FAILOVER_MODE=(TYPE=SELECT)(METHOD=BASIC))(CID=(PROGRAM=sqlplus)(HOST=mxchim1csmwas03)(USER=wasadm))))
    [20-NOV-2009 23:38:52:342] nscall: entry
    [20-NOV-2009 23:38:52:342] nsmal: entry
    [20-NOV-2009 23:38:52:342] nsmal: 212 bytes at 0x80d2510
    [20-NOV-2009 23:38:52:342] nsmal: normal exit
    [20-NOV-2009 23:38:52:342] nscall: connecting...
    [20-NOV-2009 23:38:52:342] nladini: entry
    [20-NOV-2009 23:38:52:342] nladini: exit
    [20-NOV-2009 23:38:52:342] nladget: entry
    [20-NOV-2009 23:38:52:342] nladget: exit
    [20-NOV-2009 23:38:52:342] nsc2addr: entry
    [20-NOV-2009 23:38:52:342] nsc2addr: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=mxchpp1datdbc01-vip)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=HBCLHIA1.MX.HSBC.COM)(FAILOVER_MODE=(TYPE=SELECT)(METHOD=BASIC))(CID=(PROGRAM=sqlplus)(HOST=mxchim1csmwas03)(USER=wasadm))))
    [20-NOV-2009 23:38:52:342] nttbnd2addr: entry
    [20-NOV-2009 23:38:52:342] snlinGetAddrInfo: entry
    [20-NOV-2009 23:38:52:342] snlinGetAddrInfo: Invalid IP address string mxchpp1datdbc01-vip
    [20-NOV-2009 23:38:52:342] snlinFreeAddrInfo: entry
    [20-NOV-2009 23:38:52:342] snlinFreeAddrInfo: exit
    [20-NOV-2009 23:38:52:342] snlinGetAddrInfo: exit
    [20-NOV-2009 23:38:52:342] nttbnd2addr: looking up IP addr for host: mxchpp1datdbc01-vip
    [20-NOV-2009 23:38:52:342] snlinGetAddrInfo: entry
    [20-NOV-2009 23:38:52:342] snlinGetAddrInfo: exit
    [20-NOV-2009 23:38:52:342] snlinFreeAddrInfo: entry
    [20-NOV-2009 23:38:52:342] snlinFreeAddrInfo: exit
    [20-NOV-2009 23:38:52:342] nttbnd2addr: exit
    [20-NOV-2009 23:38:52:342] nsc2addr: normal exit
    [20-NOV-2009 23:38:52:342] nsopen: entry
    [20-NOV-2009 23:38:52:342] nsmal: entry
    [20-NOV-2009 23:38:52:343] nsmal: 752 bytes at 0x80d3c98
    [20-NOV-2009 23:38:52:343] nsmal: normal exit
    [20-NOV-2009 23:38:52:343] nsopenmplx: entry
    [20-NOV-2009 23:38:52:343] nsmal: entry
    [20-NOV-2009 23:38:52:343] nsmal: 1580 bytes at 0x80d3f90
    [20-NOV-2009 23:38:52:343] nsmal: normal exit
    [20-NOV-2009 23:38:52:343] nsiorini: entry
    [20-NOV-2009 23:38:52:343] nsbal: entry
    [20-NOV-2009 23:38:52:343] nsbgetfl: entry
    [20-NOV-2009 23:38:52:343] nsbgetfl: normal exit
    [20-NOV-2009 23:38:52:343] nsmal: entry
    [20-NOV-2009 23:38:52:343] nsmal: 84 bytes at 0x80d3690
    [20-NOV-2009 23:38:52:343] nsmal: normal exit
    [20-NOV-2009 23:38:52:343] nsbal: normal exit
    [20-NOV-2009 23:38:52:343] nsiorini: exit (0)
    [20-NOV-2009 23:38:52:343] nscpxget: entry
    [20-NOV-2009 23:38:52:343] nscpxget: normal exit
    [20-NOV-2009 23:38:52:343] nsopenalloc_nsntx: nlhthput on mplx_ht_nsgbu:ctx=80d3c98, nsntx=80d3f90
    [20-NOV-2009 23:38:52:343] nsopenmplx: normal exit
    [20-NOV-2009 23:38:52:343] nsopen: opening transport...
    [20-NOV-2009 23:38:52:343] nttcon: entry
    [20-NOV-2009 23:38:52:343] nttcon: toc = 1
    [20-NOV-2009 23:38:52:343] nttcnp: entry
    [20-NOV-2009 23:38:52:343] nttcnp: creating a socket.
    [20-NOV-2009 23:38:52:343] nttcnp: exit
    [20-NOV-2009 23:38:52:343] nttcni: entry
    [20-NOV-2009 23:38:52:343] nttcni: trying to connect to socket 9.
    [20-NOV-2009 23:38:52:345] snlinGetNameInfo: entry
    [20-NOV-2009 23:38:52:345] snlinGetNameInfo: Using numeric form of host's address 10.217.136.201
    [20-NOV-2009 23:38:52:345] snlinGetNameInfo: exit
    [20-NOV-2009 23:38:52:345] nttcni: connected on ipaddr 10.217.136.201
    [20-NOV-2009 23:38:52:345] nttcni: exit
    [20-NOV-2009 23:38:52:345] nttcon: NT layer TCP/IP connection has been established.
    [20-NOV-2009 23:38:52:345] nttcon: set TCP_NODELAY on 9
    [20-NOV-2009 23:38:52:345] nttcon: exit
    [20-NOV-2009 23:38:52:345] nsopen: transport is open
    [20-NOV-2009 23:38:52:345] nsoptions: entry
    [20-NOV-2009 23:38:52:345] nsoptions: lcl[0]=0x0, lcl[1]=0x102000, gbl[0]=0x0, gbl[1]=0xa01, cha=0x0
    [20-NOV-2009 23:38:52:345] nsoptions: lcl[0]=0xf4ffe9ff, lcl[1]=0x102000, gbl[0]=0xfebf, gbl[1]=0xc01
    [20-NOV-2009 23:38:52:345] nsoptions: normal exit
    [20-NOV-2009 23:38:52:345] nsnainit: entry
    [20-NOV-2009 23:38:52:345] nsnainit: call
    [20-NOV-2009 23:38:52:345] nsnadct: entry
    [20-NOV-2009 23:38:52:345] nsnadct: normal exit
    [20-NOV-2009 23:38:52:345] nsnasvnainfo: entry
    [20-NOV-2009 23:38:52:345] nsnasvnainfo: normal exit
    [20-NOV-2009 23:38:52:345] nainit: entry
    [20-NOV-2009 23:38:52:345] nagblini: entry
    [20-NOV-2009 23:38:52:345] nau_gin: entry
    [20-NOV-2009 23:38:52:345] nau_gparams: entry
    [20-NOV-2009 23:38:52:345] nam_gbp: Reading parameter "sqlnet.authentication_required" from parameter file
    [20-NOV-2009 23:38:52:345] nam_gbp: Parameter not found
    [20-NOV-2009 23:38:52:345] nau_gparams: Using default value "FALSE"
    [20-NOV-2009 23:38:52:345] nau_gslf: entry
    [20-NOV-2009 23:38:52:345] nam_gic: entry
    [20-NOV-2009 23:38:52:345] nam_gic: Counting # of items in "sqlnet.authentication_services" parameter
    [20-NOV-2009 23:38:52:345] nam_gic: Parameter not found
    [20-NOV-2009 23:38:52:345] nam_gic: Found 0 items
    [20-NOV-2009 23:38:52:345] nam_gic: exit
    [20-NOV-2009 23:38:52:345] nau_gslf: Using default value "all available adapters"
    [20-NOV-2009 23:38:52:345] nauss_set_state: entry
    [20-NOV-2009 23:38:52:345] nauss_set_state: exit
    [20-NOV-2009 23:38:52:345] nau_gslf: exit
    [20-NOV-2009 23:38:52:345] nau_gparams: exit
    [20-NOV-2009 23:38:52:345] nau_gin: exit
    Edited by: ghd on 20/11/2009 05:30 PM

    You are right, i added the complete error
    By chance do yo have a recommendation where can i look for to find the source problem?
    Because in oracle client's logs or database's logs i can't find the ORA-03135 : connection lost contact
    at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminaters(NewConnectionInitialReadCallback.java:207)
    at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:109)
    at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java(Compiled Code))
    at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java(Compiled Code))
    at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java(Compiled Code))
    at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java(Compiled Code))
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))
    Caused by: java.sql.SQLException: ORA-03135: connection lost contact
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
    at oracle.jdbc.driver.T2CConnection.checkError(T2CConnection.java(Compiled Code))
    at oracle.jdbc.driver.T2CConnection.checkError(T2CConnection.java(Inlined Compiled Code))
    at oracle.jdbc.driver.T2CPreparedStatement.executeForDescribe(T2CPreparedStatement.java(Compiled Code))
    at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java(Compiled Code))
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java(Compiled Code))
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java(Compiled Code))
    at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java(Compiled Code))
    at com.ibm.ws.rsadapter.jdbc.WSJdbcPreparedStatement.pmiExecuteQuery(WSJdbcPreparedStatement.java(Compiled Code))
    at com.ibm.ws.rsadapter.jdbc.WSJdbcPreparedStatement.executeQuery(WSJdbcPreparedStatement.java(Compiled Code))
    at com.ibm.wps.datastore.impl.DataStoreContext.executeQuery(DataStoreContext.java(Compiled Code))
    ... 67 more

  • Java.sql.SQLException: Listener refused the connection

    hi everybody!
    i'm new in oracle and java and have a problem working in Oracle 11g ExpressEdition.
    i have the next error when i'm trying to start java project using oracle:
    incorrect login or password
    and the next:
    java.sql.SQLException: Listener refused the connection with the following error:
    ORA-12505, TNS:listener does not currently know of SID given in connect descript
    or
    at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:412)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:
    +531)+
    at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:221)
    at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtensio
    n.java:32)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:503)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at tools.db.ConnectionFactory.getOracleConnection(ConnectionFactory.java
    +:30)+
    at tools.db.DatabaseTools.checkAuthorizationInfo(DatabaseTools.java:24)
    at mainforms.LoginForm.jButton1ActionPerformed(LoginForm.java:112)
    at mainforms.LoginForm.access$000(LoginForm.java:16)
    at mainforms.LoginForm$1.actionPerformed(LoginForm.java:52)
    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Sour
    ce)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at javax.swing.JComponent.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
    at java.awt.EventQueue.access$000(Unknown Source)
    at java.awt.EventQueue$3.run(Unknown Source)
    at java.awt.EventQueue$3.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour
    ce)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour
    ce)
    at java.awt.EventQueue$4.run(Unknown Source)
    at java.awt.EventQueue$4.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour
    ce)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
    Caused by: oracle.net.ns.NetException: Listener refused the connection with the
    following error:
    ORA-12505, TNS:listener does not currently know of SID given in connect descript
    or
    at oracle.net.ns.NSProtocol.connect(NSProtocol.java:385)
    at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1042)
    at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:301)
    +... 47 more+
    my listener.ora file content:
    SID_LIST_LISTENER =
    +(SID_LIST =+
    +(SID_DESC =+
    +(SID_NAME = PLSExtProc)+
    +(ORACLE_HOME = D:\oraclexe\app\oracle\product\11.2.0\server)+
    +(PROGRAM = extproc)+
    +)+
    +(SID_DESC =+
    +(SID_NAME = CLRExtProc)+
    +(ORACLE_HOME = D:\oraclexe\app\oracle\product\11.2.0\server)+
    +(PROGRAM = extproc)+
    +)+
    +)+
    LISTENER =
    +(DESCRIPTION_LIST =+
    +(DESCRIPTION =+
    +(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))+
    +(ADDRESS = (PROTOCOL = TCP)(HOST = Home)(PORT = 1521))+
    +)+
    +)+
    DEFAULT_SERVICE_LISTENER = (XE)
    and tnsnames.ora file content:
    XE =
    +(DESCRIPTION =+
    +(ADDRESS = (PROTOCOL = TCP)(HOST = Home)(PORT = 1521))+
    +(CONNECT_DATA =+
    +(SERVER = DEDICATED)+
    +(SERVICE_NAME = XE)+
    +)+
    +)+
    EXTPROC_CONNECTION_DATA =
    +(DESCRIPTION =+
    +(ADDRESS_LIST =+
    +(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))+
    +)+
    +(CONNECT_DATA =+
    +(SID = PLSExtProc)+
    +(PRESENTATION = RO)+
    +)+
    +)+
    ORACLR_CONNECTION_DATA =
    +(DESCRIPTION =+
    +(ADDRESS_LIST =+
    +(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))+
    +)+
    +(CONNECT_DATA =+
    +(SID = CLRExtProc)+
    +(PRESENTATION = RO)+
    +)+
    +)+
    and results of commands:
    C:\Users\Admin>lsnrctl service
    LSNRCTL for 32-bit Windows: Version 11.2.0.2.0 - Production on 06-╠└╔-2012
    +:13+
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
    Instance "CLRExtProc", status UNKNOWN, has 3 handler(s) for this service.
    Handler(s):
    +"DEDICATED" established:0 refused:0+
    LOCAL SERVER
    +"ORACLE SERVER" established:0 refused:0 current:0 max:25 state:ready+
    CLRExtProc
    +(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\NTN_C54_1CECCED2_7DC8.OR+
    +"ORACLE SERVER" established:0 refused:0 current:0 max:25 state:ready+
    CLRExtProc
    +(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\NTN_C54_1CECCED2_B57B.OR+
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service.
    Handler(s):
    +"DEDICATED" established:0 refused:0+
    LOCAL SERVER
    Service "XEXDB" has 1 instance(s).
    Instance "xe", status READY, has 1 handler(s) for this service...
    Handler(s):
    +"D000" established:0 refused:0 current:0 max:1022 state:ready+
    DISPATCHER <machine: HOME, pid: 3280>
    +(ADDRESS=(PROTOCOL=tcp)(HOST=Home)(PORT=56207))+
    Service "xe" has 1 instance(s).
    Instance "xe", status READY, has 1 handler(s) for this service...
    Handler(s):
    +"DEDICATED" established:1 refused:0 state:ready+
    LOCAL SERVER
    The command completed successfully
    and
    C:\Users\Admin>tnsping XE
    TNS Ping Utility for 32-bit Windows: Version 11.2.0.2.0 - Production on 06-╠└╔-2
    +012 13:22:40+
    Copyright (c) 1997, 2010, Oracle. All rights reserved.
    Used parameter files:
    D:\oraclexe\app\oracle\product\11.2.0\server\network\ADMIN\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = Home)(PO
    RT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = XE)))
    OK (10 msec)
    dont understand what the reason of problem. read many forums and try this and that but can't resolve it (haven't enough knowledges :( ).
    will be very thankful for a help everybody.

    <msg time='2012-05-06T16:58:11.735+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 16:58:11 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T16:58:44.738+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 16:58:44 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T17:00:02.856+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 17:00:02 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T17:00:14.900+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 17:00:14 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T17:00:45.008+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 17:00:45 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T17:00:48.018+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 17:00:48 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T17:02:18.460+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>System parameter file is D:\oraclexe\app\oracle\product\11.2.0\server\network\ADMIN\listener.ora
    </txt>
    </msg>
    <msg time='2012-05-06T17:02:18.819+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>Log messages written to D:\oraclexe\app\oracle\diag\tnslsnr\Home\listener\alert\log.xml
    </txt>
    </msg>
    <msg time='2012-05-06T17:02:18.819+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>Trace information written to D:\oraclexe\app\oracle\diag\tnslsnr\Home\listener\trace\ora_108_424.trc
    </txt>
    </msg>
    <msg time='2012-05-06T17:02:18.819+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>Trace level is currently 0
    </txt>
    </msg>
    <msg time='2012-05-06T17:02:18.819+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>
    </txt>
    </msg>
    <msg time='2012-05-06T17:02:18.835+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>Started with pid=108
    </txt>
    </msg>
    <msg time='2012-05-06T17:02:18.928+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    </txt>
    </msg>
    <msg time='2012-05-06T17:02:18.944+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=Home)(PORT=1521)))
    </txt>
    </msg>
    <msg time='2012-05-06T17:02:20.582+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>Listener completed notification to CRS on start
    </txt>
    </msg>
    <msg time='2012-05-06T17:02:20.629+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>
    TIMESTAMP * CONNECT DATA [* PROTOCOL INFO] * EVENT [* SID] * RETURN CODE
    </txt>
    </msg>
    <msg time='2012-05-06T17:02:48.865+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>Dynamic address is already listened on (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=Home)(PORT=1521)))
    </txt>
    </msg>
    <msg time='2012-05-06T17:02:48.880+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 17:02:48 * service_register * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T17:02:51.876+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 17:02:51 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T17:03:02.062+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 17:03:02 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T17:03:16.508+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 17:03:16 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T17:03:22.545+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=Home)(PORT=8080))(Presentation=HTTP)(Session=RAW))
    </txt>
    </msg>
    <msg time='2012-05-06T17:03:22.545+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 17:03:22 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T17:03:25.541+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 17:03:25 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T17:03:49.620+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 17:03:49 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T17:03:58.590+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 17:03:58 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T17:04:01.616+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 17:04:01 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T17:04:19.656+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 17:04:19 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T17:07:14.278+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 17:07:14 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T17:09:59.872+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 17:09:59 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T17:10:32.991+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 17:10:32 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T17:12:45.466+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 17:12:45 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T17:13:24.607+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 17:13:24 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T17:16:37.298+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 17:16:37 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T17:21:38.379+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 17:21:38 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T17:23:26.768+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 17:23:26 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T17:25:03.114+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 17:25:03 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T17:25:33.222+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 17:25:33 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T17:30:01.183+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 17:30:01 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T17:30:25.270+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 17:30:25 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T17:30:34.302+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 17:30:34 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T17:30:58.389+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 17:30:58 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T17:33:28.929+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 17:33:28 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T17:34:17.102+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 17:34:17 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T17:37:35.815+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 17:37:35 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T17:38:42.053+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 17:38:42 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T17:40:33.452+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 17:40:33 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T17:43:31.090+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 17:43:31 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T17:45:31.522+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 17:45:31 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T17:50:32.603+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 17:50:32 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T17:53:33.251+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 17:53:33 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T17:58:31.321+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 17:58:31 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T18:00:01.645+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 18:00:01 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T18:00:31.753+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 18:00:31 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T18:00:46.807+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 18:00:46 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T18:03:35.412+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 18:03:35 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T18:05:32.833+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 18:05:32 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T18:10:33.914+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 18:10:33 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T18:12:55.531+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 18:12:55 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T18:13:04.554+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 18:13:04 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T18:13:37.674+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 18:13:37 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T18:14:44.029+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 18:14:44 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T18:15:18.183+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 18:15:18 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T18:15:36.949+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 18:15:36 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T18:15:51.962+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 18:15:51 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T18:16:25.322+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 18:16:25 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T18:17:32.063+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 18:17:32 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T18:18:05.088+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 18:18:05 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T18:18:35.113+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 18:18:35 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T18:22:56.145+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 18:22:56 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T18:28:05.164+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 18:28:05 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T18:32:56.183+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 18:32:56 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T18:40:32.214+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 18:40:32 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T18:42:56.223+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 18:42:56 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T18:50:32.253+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 18:50:32 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T18:52:56.264+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 18:52:56 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T18:55:32.367+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 18:55:32 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T18:59:11.545+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 18:59:11 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T19:00:29.688+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 19:00:29 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T19:00:44.689+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 19:00:44 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T19:01:23.703+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 19:01:23 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T19:02:56.736+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 19:02:56 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T19:03:47.752+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 19:03:47 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T19:04:53.767+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 19:04:53 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T19:05:59.798+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 19:05:59 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T19:07:39.042+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 19:07:39 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T19:08:15.113+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 19:08:15 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T19:09:54.206+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 19:09:54 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T19:11:36.299+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 19:11:36 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T19:12:00.312+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 19:11:59 * (CONNECT_DATA=(SID=xe)(CID=(PROGRAM=SQL Developer)(HOST=__jdbc__)(USER=Admin))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=50478)) * establish * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T19:12:57.354+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 19:12:57 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T19:13:51.913+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 19:13:51 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T19:14:24.936+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 19:14:24 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T19:14:51.721+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 19:14:51 * (CONNECT_DATA=(SID=LogistDB)(CID=(PROGRAM=JDBC Thin Client)(HOST=__jdbc__)(USER=Admin))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=50621)) * establish * LogistDB * 12505
    </txt>
    </msg>
    <msg time='2012-05-06T19:14:51.750+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>TNS-12505: TNS:listener does not currently know of SID given in connect descriptor
    </txt>
    </msg>
    <msg time='2012-05-06T19:15:15.587+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 19:15:15 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=Admin))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=186647040)) * status * 0
    </txt>
    </msg>
    <msg time='2012-05-06T19:17:10.428+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 19:17:10 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T19:18:22.597+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 19:18:22 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T19:19:09.605+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 19:19:09 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=Admin))(COMMAND=services)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=186647040)) * services * 0
    </txt>
    </msg>
    <msg time='2012-05-06T19:20:31.674+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 19:20:31 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T19:21:40.732+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 19:21:40 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T19:22:13.988+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 19:22:13 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T19:22:46.995+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 19:22:46 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T19:22:58.999+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 19:22:58 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T19:25:32.370+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 19:25:32 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T19:26:44.417+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 19:26:44 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T19:27:50.575+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 19:27:50 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T19:28:11.590+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 19:28:11 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T19:31:12.568+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 19:31:12 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T19:31:48.599+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 19:31:48 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T19:33:00.647+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 19:33:00 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T19:35:30.764+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 19:35:30 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T19:38:15.875+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 19:38:15 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T19:42:55.204+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 19:42:55 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T19:43:01.206+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 19:43:01 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T19:43:28.485+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 19:43:28 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T19:44:35.170+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 19:44:35 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T19:45:08.144+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 19:45:08 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T19:45:32.165+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 19:45:32 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T19:45:41.176+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 19:45:41 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T19:46:14.280+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 19:46:14 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T19:46:47.320+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 19:46:47 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T19:47:20.333+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 19:47:20 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-05-06T19:53:02.663+04:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='HOME'
    host_addr='fe80::cd1d:33c3:f2cc:7ca0%17'>
    <txt>06-МАЙ-2012 19:53:02 * service_update * xe * 0
    </txt>
    </msg>

  • Sql:setDataSource - "java.sql.SQLException: No suitable driver" Again :(

    Hi everyone,
    I have the following jsp page:
    <%@page contentType="text/html" pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>JSP Page</title>
    </head>
    <body>
    <sql:setDataSource driver="jdbc:sqlserver://localhost:1433;databaseName=AdventureWorks;user=sa;password=sa" var="dSource"/>
    <sql:query var="contacts" dataSource="${dSource}">
    SELECT TOP 10 FROM Person.Contact
    </sql:query>
    <table border="1">
    <c:forEach var="row" items="${contacts.rows}">
    <tr>
    <th>
    Contact ID
    </th>
    <th>
    First Name
    </th>
    <th>
    Middle Name
    </th>
    <th>
    Last Name
    </th>
    </tr>
    <tr>
    <td>
    <c:out value="${row.ContactID}" />
    </td>
    <td>
    <c:out value="${row.FirstName}" />
    </td>
    <td>
    <c:out value="${row.MiddleName}" />
    </td>
    <td>
    <c:out value="${row.LastName}" />
    </td>
    </tr>
    </c:forEach>
    </table>
    </body>
    </html>
    When I run it, got the following exception:
    exception
    org.apache.jasper.JasperException: An exception occurred processing JSP page /index.jsp at line 20
    17: </head>
    18: <body>
    19: <sql:setDataSource driver="com.microsoft.sqlserver.jdbc.SQLServerDriver" dataSource="jdbc:microsoft:sqlserver://localhost:1433;databaseName=AdventureWorks;" user="sa" password="sa" var="dSource"/>
    20: <sql:query var="contacts" dataSource="${dSource}">
    21:           SELECT TOP 10 FROM Person.Contact
    22: </sql:query>
    23:
    Stacktrace:
    org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:505)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:398)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)
    root cause
    javax.servlet.ServletException: javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: "java.sql.SQLException: No suitable driver"
    org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:852)
    org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
    org.apache.jsp.index_jsp._jspService(index_jsp.java:102)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)
    But when I write a servlet with doGet as below:
    response.setContentType("text/html;charset=UTF-8");
    PrintWriter out = response.getWriter();
    try {
    out.println("<html>");
    out.println("<head>");
    out.println("<title>Servlet MyServlet</title>");
    out.println("</head>");
    out.println("<body>");
    String connectionUrl = "jdbc:sqlserver://localhost:1433;databaseName=AdventureWorks;user=sa;password=sa";
    Connection con = null;
    Statement stmt = null;
    ResultSet rs = null;
    try {
    Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
    con = DriverManager.getConnection(connectionUrl);
    String SQL = "SELECT TOP 10 * FROM Person.Contact";
    stmt = con.createStatement();
    rs = stmt.executeQuery(SQL);
    while (rs.next()) {
    out.println(rs.getString(4) +" "+ rs.getString(6) + "<br/>");
    catch (Exception e) {
    e.printStackTrace();
    } finally {
    if (rs != null) {
    try {
    rs.close();
    } catch (Exception e) {
    if (stmt != null) {
    try {
    stmt.close();
    } catch (Exception e) {
    if (con != null) {
    try {
    con.close();
    } catch (Exception e) {
    out.println("</body>");
    out.println("</html>");
    } finally {
    out.close();
    Everything is ok.
    I'm using Netbean 6.7.1, Tomcat 6.0.18, JDK 5.0. And I already tried to put the sqljdbc.jar to the lib folder of Tomcat or the JAVA_HOME\jre\lib\ext but no luck.
    Please give advice.

    The issue is with your usage of the sql:setDataSource tag. You should either specify a driver and url attributes, or* a datasource attribute.
    The datasource attribute follows the syntax: url[,[driver][,[user][,password]]] (ref Section 10.1.1 of the JSTL1.1 spec)
    You were using the datasource attribute, but not including the driver within it.
    So one of the following should work:
    <sql:setDataSource driver="com.microsoft.sqlserver.jdbc.SQLServerDriver" url="jdbc:microsoft:sqlserver://localhost:1433;databaseName=AdventureWorks;" user="sa" password="sa" var="dSource"/>or
    <sql:setDataSource dataSource="jdbc:microsoft:sqlserver://localhost:1433;databaseName=AdventureWorks;,com.microsoft.sqlserver.jdbc.SQLServerDriver,sa,sa" var="dSource"/>----------
    As an aside your code example doesn't seem to match with the error message:
    In your code:
    <sql:setDataSource driver="jdbc:sqlserver://localhost:1433;databaseName=AdventureWorks;user=sa;password=sa" var="dSource"/>From the error message:
    <sql:setDataSource driver="com.microsoft.sqlserver.jdbc.SQLServerDriver" dataSource="jdbc:microsoft:sqlserver://localhost:1433;databaseName=AdventureWorks;" user="sa" password="sa" var="dSource"/>These two are not the same. Not sure if that is caused by a forum bug, or you trying various things. But the fact they don't match doesn't help :-).
    cheers,
    evnafets

  • Oracle, Serializable and java.sql.SQLException

    I'm reading in the weblogic documentation about serializable transactions
    and Oracle at:
    http://www.weblogic.com/docs51/classdocs/API_ejb/EJB_environment.html
    I've excerpted below the section of interest. Essentially it says that if
    you want to use an isolation level of SERIALIZABLE with Oracle,
    you must be prepared to catch and retry transactions which fail due
    to the "can't serialize access for this transaction". What I don't understand,
    is where do I catch this exception. The doc below suggests that it
    is in the EJB client code. By this, I assume it should be caught
    by any client calling into an EJB method which is starting a transaction.
    What I don't understand is I didn't think that ejb methods threw a
    java.sql.SQLException. How can I catch this exception? The
    exception is caused at commit time, which I don't have any
    direct control over since I am using CMP.
    Do I then need to inspect the exception text for the string:
    "ORA-08177: can't serialize access for this transaction", in order
    to determine whether to retry the transaction?
    Is there any sample code for this. I just need to know where
    the exception should be caught in my code, and how to
    inspect the exception (scanning text based error messages
    sounds problematic, since the exact message text might
    change over versions of the database and deployment, etc.).
    I am planning on using CMP, so I am not making any
    jdbc calls directly.
    Jason
    Special note for Oracle Databases
    Keep in mind that Oracle uses optimistic concurrency. As a consequence, even with a setting of TRANSACTION_SERIALIZABLE, Oracle does
    not detect serialization problems until commit time. The message returned is:
    java.sql.SQLException: ORA-08177: can't serialize access for this transaction
    Even if you use the TRANSACTION_SERIALIZABLE setting for an EJB, you may receive exceptions or rollbacks in the EJB client if
    contention occurs between clients for the same rows. To avoid these problems, you must ensure that clients catch and examine the SQL
    exceptions, and take appropriate action, such as restarting the transaction.
    Jason Rosenberg
    SquareTrade
    (remove 'nospam' from my return address)

    I'm reading in the weblogic documentation about serializable transactions
    and Oracle at:
    http://www.weblogic.com/docs51/classdocs/API_ejb/EJB_environment.html
    I've excerpted below the section of interest. Essentially it says that if
    you want to use an isolation level of SERIALIZABLE with Oracle,
    you must be prepared to catch and retry transactions which fail due
    to the "can't serialize access for this transaction". What I don't understand,
    is where do I catch this exception. The doc below suggests that it
    is in the EJB client code. By this, I assume it should be caught
    by any client calling into an EJB method which is starting a transaction.
    What I don't understand is I didn't think that ejb methods threw a
    java.sql.SQLException. How can I catch this exception? The
    exception is caused at commit time, which I don't have any
    direct control over since I am using CMP.
    Do I then need to inspect the exception text for the string:
    "ORA-08177: can't serialize access for this transaction", in order
    to determine whether to retry the transaction?
    Is there any sample code for this. I just need to know where
    the exception should be caught in my code, and how to
    inspect the exception (scanning text based error messages
    sounds problematic, since the exact message text might
    change over versions of the database and deployment, etc.).
    I am planning on using CMP, so I am not making any
    jdbc calls directly.
    Jason
    Special note for Oracle Databases
    Keep in mind that Oracle uses optimistic concurrency. As a consequence, even with a setting of TRANSACTION_SERIALIZABLE, Oracle does
    not detect serialization problems until commit time. The message returned is:
    java.sql.SQLException: ORA-08177: can't serialize access for this transaction
    Even if you use the TRANSACTION_SERIALIZABLE setting for an EJB, you may receive exceptions or rollbacks in the EJB client if
    contention occurs between clients for the same rows. To avoid these problems, you must ensure that clients catch and examine the SQL
    exceptions, and take appropriate action, such as restarting the transaction.
    Jason Rosenberg
    SquareTrade
    (remove 'nospam' from my return address)

  • Java.sql.SQLException: ORA-06502: PL/SQL in EBS R12

    Hi everyone,
    May you please help me diagnose the problem.
    Oracle EBS 12.0.0.6, DB(10.2.0.3) on one machine and App(forms, concurrent manager, etc) on other machine, both AIX 5.3.
    I have following failed concurrent request:
    *====================================================*
    Payables: Version : 12.0.0
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    APPPBR module: AP Prepayment Balance Report
    Current system time is 12-MAY-2010 15:33:36
    XDO Data Engine Version No: 5.6.3
    Resp: 50661
    Org ID : 81
    Request ID: 449826
    All Parameters: ORG_ID_PARAM=81:COA_ID_PARAM=50328:FROM_DATE_PARAM="2010/05/12 00:00:00":TO_DATE_PARAM=:PERIOD_FROM_PARAM=JUL-09:PERIOD_TO_PARAM=MAY-
    10:CURR_CODE_PARAM=:ACCOUNT_FROM_PARAM=:ACCOUNT_TO_PARAM=:SUPPLIER_FROM_PARAM=Adel Bin Abdullah Bin Taha Al
    Hadad:SUPPLIER_TO_PARAM=:PAID_ONLY_PARAM=:POSTED_ONLY_PARAM=:DUMMY_PARAM=2
    Data Template Code: APPPBR
    Data Template Application Short Name: SQLAP
    Debug Flag: N
    {ORG_ID_PARAM=81, PERIOD_FROM_PARAM=JUL-09, CURR_CODE_PARAM=, DUMMY_PARAM=2, PAID_ONLY_PARAM=, PERIOD_TO_PARAM=MAY-10, POSTED_ONLY_PARAM=,
    ACCOUNT_FROM_PARAM=, SUPPLIER_FROM_PARAM=Adel Bin Abdullah Bin Taha Al Hadad, SUPPLIER_TO_PARAM=, TO_DATE_PARAM=, ACCOUNT_TO_PARAM=,
    FROM_DATE_PARAM=2010/05/12 00:00:00, COA_ID_PARAM=50328}
    Calling XDO Data Engine...
    [051210_033341921][][STATEMENT] Start process Data
    [051210_033341922][][STATEMENT] Process Data ...
    [051210_033341924][][STATEMENT] Executing data triggers...
    [051210_033341924][][STATEMENT] BEGIN
    AP_BAL_PKG.ORG_ID_PARAM := :ORG_ID_PARAM ;
    AP_BAL_PKG.COA_ID_PARAM := :COA_ID_PARAM ;
    AP_BAL_PKG.FROM_DATE_PARAM := :FROM_DATE_PARAM ;
    AP_BAL_PKG.TO_DATE_PARAM := :TO_DATE_PARAM ;
    AP_BAL_PKG.PERIOD_FROM_PARAM := :PERIOD_FROM_PARAM ;
    AP_BAL_PKG.PERIOD_TO_PARAM := :PERIOD_TO_PARAM ;
    AP_BAL_PKG.CURR_CODE_PARAM := :CURR_CODE_PARAM ;
    AP_BAL_PKG.ACCOUNT_FROM_PARAM := :ACCOUNT_FROM_PARAM ;
    AP_BAL_PKG.ACCOUNT_TO_PARAM := :ACCOUNT_TO_PARAM ;
    AP_BAL_PKG.SUPPLIER_FROM_PARAM := :SUPPLIER_FROM_PARAM ;
    AP_BAL_PKG.SUPPLIER_TO_PARAM := :SUPPLIER_TO_PARAM ;
    AP_BAL_PKG.PAID_ONLY_PARAM := :PAID_ONLY_PARAM ;
    AP_BAL_PKG.POSTED_ONLY_PARAM := :POSTED_ONLY_PARAM ;
    AP_BAL_PKG.DUMMY_PARAM := :DUMMY_PARAM ;
    :XDO_OUT_PARAMETER := 1;
    END;
    [051210_033341927][][STATEMENT] 1:81 :
    [051210_033341928][][STATEMENT] 2:50328 :
    [051210_033341928][][STATEMENT] 3:2010/05/12 00:00:00 :
    [051210_033341928][][STATEMENT] 4: :
    [051210_033341928][][STATEMENT] 5:JUL-09 :
    [051210_033341928][][STATEMENT] 6:MAY-10 :
    [051210_033341928][][STATEMENT] 7: :
    [051210_033341928][][STATEMENT] 8: :
    [051210_033341928][][STATEMENT] 9: :
    [051210_033341928][][STATEMENT] 10:Adel Bin Abdullah Bin Taha Al Hadad :
    [051210_033341928][][STATEMENT] 11: :
    [051210_033341928][][STATEMENT] 12: :
    [051210_033341929][][STATEMENT] 13: :
    [051210_033341929][][STATEMENT] 14:2 :
    [051210_033341940][][EXCEPTION] SQLException encounter while executing data trigger....
    java.sql.SQLException: ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    ORA-06512: at line 11
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:745)
         at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:215)
         at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:965)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1170)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3339)
         at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3445)
         at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4395)
         at oracle.apps.xdo.dataengine.XMLPGEN.executeTriggers(XMLPGEN.java:650)
         at oracle.apps.xdo.dataengine.XMLPGEN.processData(XMLPGEN.java:262)
         at oracle.apps.xdo.dataengine.XMLPGEN.processXML(XMLPGEN.java:215)
         at oracle.apps.xdo.dataengine.XMLPGEN.writeXML(XMLPGEN.java:254)
         at oracle.apps.xdo.dataengine.DataProcessor.processDataStructre(DataProcessor.java:390)
         at oracle.apps.xdo.dataengine.DataProcessor.processData(DataProcessor.java:355)
         at oracle.apps.xdo.oa.util.DataTemplate.processData(DataTemplate.java:348)
         at oracle.apps.xdo.oa.cp.JCP4XDODataEngine.runProgram(JCP4XDODataEngine.java:293)
         at oracle.apps.fnd.cp.request.Run.main(Run.java:157)
    Start of log messages from FND_FILE
    End of log messages from FND_FILE
    Executing request completion options...
    ------------- 1) PUBLISH -------------
    Beginning post-processing of request 449826 on node EBSCL1 at 12-MAY-2010 15:33:42.
    Post-processing of request 449826 failed at 12-MAY-2010 15:33:42 with the error message:
    One or more post-processing actions failed. Consult the OPP service log for details.
    Finished executing request completion options.
    Concurrent request completed
    Current system time is 12-MAY-2010 15:33:42
    *====================================================*
    When I look at OPP Log, following is the info:
    *====================================================*
    [5/12/10 3:33:42 PM] [OPPServiceThread0] Post-processing request 449826.
    [5/12/10 3:33:42 PM] [28164:RT449826] Executing post-processing actions for request 449826.
    [5/12/10 3:33:42 PM] [28164:RT449826] Starting XML Publisher post-processing action.
    [5/12/10 3:33:42 PM] [28164:RT449826]
    Template code: APPPBR
    Template app: SQLAP
    Language: en
    Territory: US
    Output type: RTF
    [5/12/10 3:33:42 PM] [UNEXPECTED] [28164:RT449826] java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:615)
         at oracle.apps.xdo.common.xml.XSLT10gR1.invokeParse(XSLT10gR1.java:517)
         at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:224)
         at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:177)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1044)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:997)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:212)
         at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1665)
         at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:975)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5926)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3458)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3547)
         at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:259)
         at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:172)
    Caused by: oracle.xdo.parser.v2.XMLParseException: Start of root element expected.
         at oracle.xdo.parser.v2.XMLError.flushErrors1(XMLError.java:337)
         at oracle.xdo.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:343)
         at oracle.xdo.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:285)
         at oracle.xdo.parser.v2.XMLParser.parse(XMLParser.java:289)
         ... 17 more
    [5/12/10 3:33:42 PM] [28164:RT449826] Completed post-processing actions for request 449826.
    *====================================================*
    Br,
    Anjum

    Hi,
    It seems like a bug as per metalink note:
    APPPBR : AP Prepayment Balance Report Error Out java.sql.SQLException: ORA-06502: PL/SQL: numeric or value error: character string buffer too small ORA-06512: at line 11 [ID 827325.1]
    Anyway, if you have any relevant information, please share.
    Br,
    Anjum

Maybe you are looking for

  • Logical Database of SAP Example Program

    Hi all, I need an example ABAP program using standard Logical Database ( LDB ) . Help me. Regards, Peachi.

  • Require 9i Primary and Standby redo logs files same size?

    Hi, We have 9.2.0.6 Oracle RAC (2 node) and configured data guard (physical standby). I want to increase redo log files size, but i can't this do same time primary and standby side. Is there a rule, primary and standby database instances have same si

  • BPEL in 10g/11g environments

    I've developed a BPEL flow using TP3&4. I'm not interested in taking this and back-porting this to Oracle 10g. I want to do this because I want to try to deploy this to a stable application server and because the 11g application server isn't availble

  • Rendered video very low quality

    My camera shoots in MTS format. I converted the file to mp4 and edited it. I then imported that footage into After Effects and when I tried to render the video it was very low quality. I made sure the composition settings and render settings matched

  • CC 2014 illustrator/ Kuler - sync!?

    I am using a mac on above CC 2014 illustrator. I am going into Kuler/ Colour putting together my swatches and it will not sync with Illustrator?