Urgent: java.sql.SQLException: Protocol Violation

Hi,
I have Apache Web server installed and i've been acessing an Oracle 8i Database. Everything was working ok, but at some point when trying accessing the database it gave me this error, java.sql.SQLException Protocol Violation. I've revewied all the classes, classes111.zip to classes12.zip (i supposed this could be one of the causes) in the Apache Jserv configuration files, but i might be doing something wrong, or maybe this is not the problem. I would like to know, what this error is about, and how can i solve it? Maybe i have the solution, but not solving it right.
I thank you all in advance
Nuno Rodrigues

Of course I did...I am sorry, I forgot to say I am using classes12.zip package (in my classpath) in JRE version 1.2.2
Do you have any other idea or suggestion?
Do I need any kind of particular setting or check on DB machine to get the connection?
Calling Application is running under NT os, while Oracle8i 8.1.7 is on HP machine
Regards,
GG

Similar Messages

  • Connecting: java.sql.SQLException: Protocol violation.

    Hi,
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.sql.*;
    import java.text.*;
    import java.util.*;
    import java.lang.*;
    public class FruitTest {
    String url = "jdbc:oracle:thin:sys/jame@(DESCRIPTION=(ADDRESS_LIST =(ADDRESS =(COMMUNITY =
    tcp.insee.fr)(PROTOCOL = TCP)(Host = 10.20.108.3)(Port = 1521)))(CONNECT_DATA = (SID = ORA817)))";
    /** Get the table and print all the values. */
    public void Affiche() {
    try {
    // Load database driver if not already loaded.
    Class.forName("oracle.jdbc.driver.OracleDriver");
    // Establish network connection to database.
    Connection connection =
    DriverManager.getConnection(url);
    // Look up info about the database as a whole.
    DatabaseMetaData dbMetaData = connection.getMetaData();
    Statement statement = connection.createStatement();
    String query = "SELECT * FROM ebru2w.mystats";
    // Send query to database and store results.
    ResultSet resultSet = statement.executeQuery(query);
    while(resultSet.next()) {
    System.out.println(resultSet.getString(1) + " " + resultSet.getString(2) + " " +
    resultSet.getString(3)); }
    } catch(ClassNotFoundException cnfe) {
    System.err.println("Error loading driver: " + cnfe);
    } catch(SQLException sqle) {
    System.err.println("Error connecting: " + sqle);
    public static void main(String[] args) {
    FruitTest moObj = new FruitTest();
    moObj.Affiche();
    I have one program written in java in the following above and i receive the following error when i execute the class file under the command line( java FruitTest ): connecting: java.sql.SQLException: Protocol violation.
    Can anyone help me ?
    Thanks in advance

    Try this way:
    String strURL = "jdbc:oracle:kprb:@localhost:1521:" + strSID;
    where strSID = your SID.
    This is the best way to connect to Oracle on the back end as the KPRB driver is built in and gives you native speed (according to Oracle)
    That's how I do it.

  • Java.sql.SQLException: Protocol violation

    Hi,
    I am using JDK 1.4 with Oracle 9i as backend. I get this error, when I run this program. I have consulted many sites and forums and come to know that this error occurs when Oracle User ID is about to expire & it requires to change the password for the same userid. When I use oracle frontend ie toad & login by same user id then it alerts me with the same error and requires me to either I should change my password or press NO and continue without changing it.
    Summary is that when JDBC tries to login with the same userid, then Oracle prevents the login to the database & in return java.sql.SQLException: Protocol violation occurs.
    Now my question is how to avoid this error? Is there is some way where JDBC bypasses this alert , when oracle alerts with the message to change the password.

    It might have something to do with ur driver......may not be your username...try comparing the compatibility of ur driver...play with it...

  • URGENT :: java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver]

    i am trying to execute the following query using jdbc
    String state = "select * from cs_test where Start_Time < DateAdd(\"s\",-19800,now()) AND End_Time >
    DateAdd(\"s\",-19800,now())";
    /java.sql.PreparedStatement querycs_test = c.prepareStatement(state);
    java.sql.Statement querycs_test= c.createStatement();
    java.sql.ResultSet rs = querycs_test.executeQuery(state);
    when i run the same query at the prompt in MS Access it works fine.
    The same line replaced with a simpler query works fine.
    but when i run the above i get an error
    java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1.

    Here's the value of your query before preparing it:
    select * from cs_test where Start_Time < DateAdd("s",-19800,now()) AND End_Time > DateAdd("s",-19800,now())My SQL refererence doesn't have anything about functions called DateAdd or now. It might be Microsoft specific, in which case when your organization converts to another database your query is going to stop working. Don't use vender specific extensions.
    Was your intention to call a Java method called DateAdd or now? Then your problem is a few missing quotes. Otherwise, I'm sorry I can't be of more help.

  • *URGENT HELP REQUIRED* java.sql.SQLException: Invalid Oracle URL specifed

    Hi all,
    In the middle of the last week for my final year project and having to convert to an Oracle database due to compatibility problems with university Tomcat Server and MS Access. I'm having trouble connecting to the Oracle database and would appreciate some help please.
    Running on Windows 98 in the lab here, and the Oracle 9i, release 9.2.0.2.0, J2SDK1.4.0, Classes12.zip installed OK.
    Code for connection looks like this inside the constructor of my class:
    Class.forName("oracle.jdbc.driver.OracleDriver");
    cardSaleConnexion = DriverManager.getConnection("jdbc:oracle:[email protected]:1521:sid","user_name","pwdt");
    System.out.println("Connection Successful ");
    And I'm getting the following error when calling the constructor in a driver program:
    java.sql.SQLException: Invalid Oracle URL specified
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:269)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:188)
         at java.sql.DriverManager.getConnection(DriverManager.java:512)
         at java.sql.DriverManager.getConnection(DriverManager.java:171)
         at CardSale.<init>(CardSale.java:30)
         at Driver.main(Driver.java:11)
    Exception in thread "main"
    Please reply on a very urgent basis.
    Kind regards,
    Peter

    Try ojdbc14.jar as the JDBC driver instead of classes12.zip.
    Refer:
    http://otn.oracle.com/software/tech/java/sqlj_jdbc/htdocs/jdbc9201.html
    http://docs.sun.com/source/817-5603-10/index.html
    Database Driver
    This section describes the known database driver issues and associated solutions.
    ID      Summary
    4700531      On Solaris, an ORACLE JDBC driver error occurs.
         This new Java Database Connectivity (JDBC) driver is for Oracle (R) working with JDK1.4. The problem is caused by a combination of the Oracle 9.1 database and ojdbc14.jar. Applying the patch will fix the problem on Solaris 32-bit machine, running an Oracle 9.0.1.3 database.
         Solution
         Obtain and apply the patch to your server from the Oracle Web site for Bug 2199718. Perform the following steps:
         1.��Go to the Oracle web site.
         2.��Click the 'patches' button.
         3.��Type 2199718 in the patch number field.
         4.��Click the 32-bit Solaris OS patch.Go to Metalink.oracle.com.
         5.��Click patches.
         6.��Under patch number, enter 2199718.
         7.��Click the 32 bit Solaris OS patch.
    4707531      On Solaris, accessing an Oracle 9.1 database with an Oracle 9.2 Client may cause data corruption.
         If you use an Oracle (R) 9.2 client to access an Oracle 9.1 database, data corruption might occur when a number column follows a timestamp column.
         The problem might be caused by using the ojdbc14.jar file with an Oracle 9.1 database. Applying the patch might assist in addressing the situation on Solaris 32-bit machines, running an Oracle 9.1 database. This JDBC driver is for Oracle working with JDK1.4.
         Solution
         Obtain the patch that Oracle might make available from the Oracle web site for Bug 2199718 and apply it to your server.
    Regards,
    Pankaj D.

  • Java.sql.SQLException: [POL-5150] access violation

    Hi all
    This is the error am getting when trying to connect to LITE db from JDK 1.4.2
    Exception:: java.sql.SQLException: [POL-5150] access violation
    at oracle.lite.poljdbc.LiteEmbJDBCConnection.jniDriverConnect(Native Met
    hod)
    at oracle.lite.poljdbc.LiteEmbJDBCConnection.connect(Unknown Source)
    1. We have created the DSN
    2. DSN is configured and the DSN name is available in ODBC.ini file
    We are using type 2 driver::
    String ConnectMe=("jdbc:polite:SCOTT/tiger:polite; DataDirectory=<ORACLE_HOME>;Database=polite;IsolationLevel=SINGLE USER; Autocommit=ON;CursorType=DYNAMIC")
    try
    {Class.forName("oracle.lite.poljdbc.POLJDBCDriver")
    Connection conn = DriverManager.getConnection(ConnectMe)
    catch (SQLException e)
    Someone please help us to solve this issue.
    Thanks in advance.
    Rangan

    Here is the two types of Oracle Lite drivers you can use. If you are working with a webtogo application, change your Driver to WTGJdbcDriver before you deploy. If you are doing local development, use POLJDBCDriver. The use for POLJDBCDriver is always system.
    Class.forName("oracle.lite.web.WTGJdbcDriver");
    webtogo = DriverManager.getConnection("jdbc:oracle:webtogo");
    Class.forName("oracle.lite.poljdbc.POLJDBCDriver");
    polite = DriverManager.getConnection("jdbc:polite:USERNAME_dbname", "system", "mypassword");
    stmt1 = webtogo.prepareStatement("UPDATE TEST_TABLE SET MYCOLUMN = ? WHERE SOME_ID = ?");
    stmt1.setString(1, "My column update.");
    stmt1.setInt(2, 123);
    stmt1.executeUpdate();
    stmt2 = polite.prepareStatement("INSERT INTO TEST_TABLE VALUES (?, ?)");
    stmt2.setInt(1, 456);
    stmt2.setString(2, "My second column I am updating");
    stmt2.executeUpdate();
    webtogo.rollback();
    polite.commit();

  • Jclient error: java.sql.SQLException: OALL8 is in an inconsistent state

    Dear all,
    who can help us about java.sql.SQLException: OALL8 is in an inconsistent state.
    Our application system is build for Jdeveloper 10.1.2 with JClient+BC4J
    and be deploy on 2-tier application architecture(through Web Start) , and the database is oracle 9.2.0.1
    In sometime the application running, our user will got these error response message that is like following , please kindly give us a direction to solve this problem .
    oracle.jbo.DMLException: JBO-26044: ¨ú±oµøÆ[ªíª«¥ó ReportPhraseBasicView1, ±Ôz¥y SELECT count(1) FROM (SELECT ReportPhraseBasic.HOSPITALCODE,         ReportPhraseBasic.USERCODE,          ReportPhraseBasic.PHRASECODE,         ReportPhraseBasic.PHRASECONTEXT,          ReportPhraseBasic.CREATED_BY,         ReportPhraseBasic.CREATION_DATE,          ReportPhraseBasic.LAST_UPDATED_BY,         ReportPhraseBasic.LAST_UPDATE_DATE,          ReportPhraseBasic.MARK FROM REPORT_PHRASE_BASIC ReportPhraseBasic WHERE (USERCODE = '006583') AND ( ( (ReportPhraseBasic.PHRASECODE LIKE '%') ) ))  ªº¦ôp¸ê®Æ¦Cp¼Æ®Éµo¥Í¿ù»~.
         at oracle.jbo.server.ViewObjectImpl.getQueryHitCount(ViewObjectImpl.java:2101)
         at oracle.jbo.server.ViewObjectImpl.getQueryHitCount(ViewObjectImpl.java:2043)
         at oracle.jbo.server.QueryCollection.getEstimatedRowCount(QueryCollection.java:2170)
         at oracle.jbo.server.ViewRowSetImpl.getEstimatedRowCount(ViewRowSetImpl.java:1824)
         at oracle.jbo.server.ViewObjectImpl.getEstimatedRowCount(ViewObjectImpl.java:5624)
         at oracle.adf.model.bc4j.DCJboDataControl.getEstimatedRowCount(DCJboDataControl.java:925)
         at oracle.adf.model.binding.DCIteratorBinding.getEstimatedRowCount(DCIteratorBinding.java:2526)
         at oracle.jbo.uicli.binding.JUCtrlRangeBinding.getEstimatedRowCount(JUCtrlRangeBinding.java:101)
         at oracle.jbo.uicli.jui.JUTableBinding$JUTableModel.getRowCount(JUTableBinding.java:1099)
         at oracle.jbo.uicli.jui.JUTableBinding.getRowCount(JUTableBinding.java:618)
         at oracle.jbo.uicli.jui.JUTableSortModel.getRowCount(JUTableSortModel.java:560)
         at javax.swing.JTable.getRowCount(Unknown Source)
         at javax.swing.JTable.valueChanged(Unknown Source)
         at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source)
         at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source)
         at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source)
         at javax.swing.DefaultListSelectionModel.changeSelection(Unknown Source)
         at javax.swing.DefaultListSelectionModel.changeSelection(Unknown Source)
         at javax.swing.DefaultListSelectionModel.removeSelectionInterval(Unknown Source)
         at javax.swing.DefaultListSelectionModel.clearSelection(Unknown Source)
         at oracle.jbo.uicli.jui.SortedListSelectionModel.clearSelection(JUTableSortModel.java:747)
         at javax.swing.JTable.clearSelection(Unknown Source)
         at javax.swing.JTable.tableChanged(Unknown Source)
         at javax.swing.table.AbstractTableModel.fireTableChanged(Unknown Source)
         at oracle.jbo.uicli.jui.JUTableSortModel.tableChanged(JUTableSortModel.java:177)
         at javax.swing.table.AbstractTableModel.fireTableChanged(Unknown Source)
         at javax.swing.table.AbstractTableModel.fireTableDataChanged(Unknown Source)
         at oracle.jbo.uicli.jui.JUTableBinding$JUTableModel.fireTableDataChangedRestoreSelection(JUTableBinding.java:763)
         at oracle.jbo.uicli.jui.JUTableBinding$JUTableModel._refreshLater(JUTableBinding.java:989)
         at oracle.jbo.uicli.jui.JUTableBinding$JUTableModel.access$7000971(JUTableBinding.java:700)
         at oracle.jbo.uicli.jui.JUTableBinding$1.run(JUTableBinding.java:940)
         at java.awt.event.InvocationEvent.dispatch(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(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)
    ## Detail 0 ##
    java.sql.SQLException: OALL8 is in an inconsistent state.
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:124)
         at oracle.jdbc.driver.T4C8Oall.init(T4C8Oall.java:308)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:166)
         at oracle.jdbc.driver.T4CPreparedStatement.execute_for_describe(T4CPreparedStatement.java:661)
         at oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleStatement.java:893)
         at oracle.jdbc.driver.T4CPreparedStatement.execute_maybe_describe(T4CPreparedStatement.java:693)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:988)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2884)
         at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:2925)
         at oracle.jbo.server.ViewObjectImpl.getQueryHitCount(ViewObjectImpl.java:2083)
         at oracle.jbo.server.ViewObjectImpl.getQueryHitCount(ViewObjectImpl.java:2043)
         at oracle.jbo.server.QueryCollection.getEstimatedRowCount(QueryCollection.java:2170)
         at oracle.jbo.server.ViewRowSetImpl.getEstimatedRowCount(ViewRowSetImpl.java:1824)
         at oracle.jbo.server.ViewObjectImpl.getEstimatedRowCount(ViewObjectImpl.java:5624)
         at oracle.adf.model.bc4j.DCJboDataControl.getEstimatedRowCount(DCJboDataControl.java:925)
         at oracle.adf.model.binding.DCIteratorBinding.getEstimatedRowCount(DCIteratorBinding.java:2526)
         at oracle.jbo.uicli.binding.JUCtrlRangeBinding.getEstimatedRowCount(JUCtrlRangeBinding.java:101)
         at oracle.jbo.uicli.jui.JUTableBinding$JUTableModel.getRowCount(JUTableBinding.java:1099)
         at oracle.jbo.uicli.jui.JUTableBinding.getRowCount(JUTableBinding.java:618)
         at oracle.jbo.uicli.jui.JUTableSortModel.getRowCount(JUTableSortModel.java:560)
         at javax.swing.JTable.getRowCount(Unknown Source)
         at javax.swing.JTable.valueChanged(Unknown Source)
         at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source)
         at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source)
         at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source)
         at javax.swing.DefaultListSelectionModel.changeSelection(Unknown Source)
         at javax.swing.DefaultListSelectionModel.changeSelection(Unknown Source)
         at javax.swing.DefaultListSelectionModel.removeSelectionInterval(Unknown Source)
         at javax.swing.DefaultListSelectionModel.clearSelection(Unknown Source)
         at oracle.jbo.uicli.jui.SortedListSelectionModel.clearSelection(JUTableSortModel.java:747)
         at javax.swing.JTable.clearSelection(Unknown Source)
         at javax.swing.JTable.tableChanged(Unknown Source)
         at javax.swing.table.AbstractTableModel.fireTableChanged(Unknown Source)
         at oracle.jbo.uicli.jui.JUTableSortModel.tableChanged(JUTableSortModel.java:177)
         at javax.swing.table.AbstractTableModel.fireTableChanged(Unknown Source)
         at javax.swing.table.AbstractTableModel.fireTableDataChanged(Unknown Source)
         at oracle.jbo.uicli.jui.JUTableBinding$JUTableModel.fireTableDataChangedRestoreSelection(JUTableBinding.java:763)
         at oracle.jbo.uicli.jui.JUTableBinding$JUTableModel._refreshLater(JUTableBinding.java:989)
         at oracle.jbo.uicli.jui.JUTableBinding$JUTableModel.access$7000971(JUTableBinding.java:700)
         at oracle.jbo.uicli.jui.JUTableBinding$1.run(JUTableBinding.java:940)
         at java.awt.event.InvocationEvent.dispatch(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(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)
    ==============
    oracle.jbo.SQLStmtException: JBO-27122: Protocol Violation: SELECT Reportbasic.HOSPITALCODE,         Reportbasic.REPORTSEQNO,          Reportbasic.VERSION,         Reportbasic.EXAM,          Reportbasic.IMPRESSION,         Reportbasic.DICTATE_SEQ,          Reportbasic.DICTATEDATE,         Reportbasic.DICTATOR,          Reportbasic.DICTATORNAME,         Reportbasic.REPORTDATE,          Reportbasic.REPORTDR_VS,         Reportbasic.REPORTNAME_VS,          Reportbasic.REPORTDR_RESIDENT,         Reportbasic.REPORTNAME_RESIDENT,          Reportbasic.REPORTDR_CONSIDER,         Reportbasic.REPORTNAME_CONSIDER,          Reportbasic.APPROVEDATE,         Reportbasic.APPROVEDR,          Reportbasic.APPROVENAME,         Reportbasic.FINISH_FLAG,          Reportbasic.OFFICIALFLAG,         Reportbasic.EXAMTEXT,          Reportbasic.IMPRESSIONTEXT,         Reportbasic.STATUS,          Reportbasic.TRANSMIT_NEEDED,         Reportbasic.REMARK,          Reportbasic.CREATED_BY,         Reportbasic.CREATION_DATE,          Reportbasic.LAST_UPDATED_BY,         Reportbasic.LAST_UPDATE_DATE,          Reportbasic.EDUCATIONTYPE,         Reportbasic.EDUCATIONCODE,          Reportbasic.CODINGOPER,         Reportbasic.CODINGDATE,          Reportbasic.ACCESSNO FROM REPORTBASIC Reportbasic WHERE Reportbasic.REPORTSEQNO = :1
         at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:774)
         at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:547)
         at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3422)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:663)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:617)
         at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2593)
         at oracle.jbo.server.ViewRowSetIteratorImpl.refresh(ViewRowSetIteratorImpl.java:2850)
         at oracle.jbo.server.ViewRowSetImpl.notifyRefresh(ViewRowSetImpl.java:1941)
         at oracle.jbo.server.ViewRowSetImpl.refreshRowSet(ViewRowSetImpl.java:4094)
         at oracle.jbo.server.ViewRowSetIteratorImpl.notifyDetailRowSets(ViewRowSetIteratorImpl.java:3300)
         at oracle.jbo.server.ViewRowSetIteratorImpl.notifyNavigation(ViewRowSetIteratorImpl.java:3418)
         at oracle.jbo.server.ViewRowSetIteratorImpl.internalSetCurrentRow(ViewRowSetIteratorImpl.java:3192)
         at oracle.jbo.server.ViewRowSetIteratorImpl.setCurrentRowAtRangeIndex(ViewRowSetIteratorImpl.java:998)
         at oracle.jbo.server.ViewRowSetImpl.setCurrentRowAtRangeIndex(ViewRowSetImpl.java:2569)
         at oracle.jbo.server.ViewObjectImpl.setCurrentRowAtRangeIndex(ViewObjectImpl.java:6186)
         at oracle.jbo.uicli.jui.JUTableBinding$JUTableModel.valueChanged(JUTableBinding.java:1274)
         at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source)
         at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source)
         at javax.swing.DefaultListSelectionModel.setValueIsAdjusting(Unknown Source)
         at oracle.jbo.uicli.jui.SortedListSelectionModel.setValueIsAdjusting(JUTableSortModel.java:777)
         at javax.swing.plaf.basic.BasicTableUI$MouseInputHandler.setValueIsAdjusting(Unknown Source)
         at javax.swing.plaf.basic.BasicTableUI$MouseInputHandler.mouseReleased(Unknown Source)
         at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
         at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
         at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
         at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
         at java.awt.Component.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.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(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)
    ## Detail 0 ##
    java.sql.SQLException: ¹H¤Ï¨ó©w
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:124)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:161)
         at oracle.jdbc.driver.DatabaseError.check_error(DatabaseError.java:884)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:642)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:181)
         at oracle.jdbc.driver.T4CPreparedStatement.execute_for_rows(T4CPreparedStatement.java:791)
         at oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleStatement.java:912)
         at oracle.jdbc.driver.T4CPreparedStatement.execute_maybe_describe(T4CPreparedStatement.java:693)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:988)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2884)
         at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:2925)
         at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:691)
         at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:547)
         at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3422)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:663)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:617)
         at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2593)
         at oracle.jbo.server.ViewRowSetIteratorImpl.refresh(ViewRowSetIteratorImpl.java:2850)
         at oracle.jbo.server.ViewRowSetImpl.notifyRefresh(ViewRowSetImpl.java:1941)
         at oracle.jbo.server.ViewRowSetImpl.refreshRowSet(ViewRowSetImpl.java:4094)
         at oracle.jbo.server.ViewRowSetIteratorImpl.notifyDetailRowSets(ViewRowSetIteratorImpl.java:3300)
         at oracle.jbo.server.ViewRowSetIteratorImpl.notifyNavigation(ViewRowSetIteratorImpl.java:3418)
         at oracle.jbo.server.ViewRowSetIteratorImpl.internalSetCurrentRow(ViewRowSetIteratorImpl.java:3192)
         at oracle.jbo.server.ViewRowSetIteratorImpl.setCurrentRowAtRangeIndex(ViewRowSetIteratorImpl.java:998)
         at oracle.jbo.server.ViewRowSetImpl.setCurrentRowAtRangeIndex(ViewRowSetImpl.java:2569)
         at oracle.jbo.server.ViewObjectImpl.setCurrentRowAtRangeIndex(ViewObjectImpl.java:6186)
         at oracle.jbo.uicli.jui.JUTableBinding$JUTableModel.valueChanged(JUTableBinding.java:1274)
         at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source)
         at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source)
         at javax.swing.DefaultListSelectionModel.setValueIsAdjusting(Unknown Source)
         at oracle.jbo.uicli.jui.SortedListSelectionModel.setValueIsAdjusting(JUTableSortModel.java:777)
         at javax.swing.plaf.basic.BasicTableUI$MouseInputHandler.setValueIsAdjusting(Unknown Source)
         at javax.swing.plaf.basic.BasicTableUI$MouseInputHandler.mouseReleased(Unknown Source)
         at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
         at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
         at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
         at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
         at java.awt.Component.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.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(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)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Seems its problem with the version of Oracle you are using ..See the following link,it provides you some additional info.
    java.sql.SQLException: OALL8 is in an inconsistent state

  • JBO-27122: SQL error & java.sql.SQLException: ORA-01843: not a valid month

    Hi,
    We developed OA page for Employee's Payslip and it is working fine for all the employees but it is not working for only one employee...Getting the error as
    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement
    preparation
    ## Detail 0 ##
    java.sql.SQLException: ORA-01843: not a valid month
    Real Scenario is:
    The user "DANISH.LOTFY" is login into application and when he click on Payslip to the month then he is always getting the above error.
    For testing purpose we have removed his employee assignment from user screen(fnd_user) and assigned some other employee name (say MOHAMED.ELBAHY)... After this when DANISH.LOTFY logins into the application and payslip page is working fine...(He can able to see MOHAMED.ELBAHY payslip.....
    Realy we don't know this strange behaviour of OA ...
    ------ Code with Error details------------------
    Statement:
    SELECT * FROM (SELECT DISTINCT ppa.DATE_EARNED, TO_CHAR(ppa.DATE_EARNED,'MON-YYYY') DISPLAY
    , TO_CHAR(ppa.DATE_EARNED,'MM YYYY') PARAM
    FROM
    pay_payroll_actions ppa
    ,pay_assignment_actions pac
    ,PER_ALL_ASSIGNMENTS_F PASS
    ,FND_USER FU
    ,per_time_periods PTP
    WHERE ppa.payroll_id = 61
    AND ppa.payroll_action_id = pac.payroll_action_id
    AND PAC.ASSIGNMENT_ID = PASS.ASSIGNMENT_ID
    AND PASS.PERSON_ID = FU.EMPLOYEE_ID
    AND FU.USER_ID =Fnd_Profile.VALUE('USER_ID')
    AND TRIM(TO_CHAR(ppa.DATE_EARNED,'MON-YYYY')) IS NOT NULL
    ---Added by Sudipta C on 28th Janaury 2008
    AND TRIM(TO_CHAR(ppa.DATE_EARNED,'MON-YYYY')) <> TRIM(TO_CHAR(SYSDATE,'MON-YYYY'))
    AND ppa.DATE_EARNED=(SELECT MAX(DATE_EARNED) FROM pay_payroll_actions WHERE time_period_id=ppa.time_period_id)
    AND ppa.DATE_EARNED >='30-NOV-2007'
    UNION ALL
    --Query to Display only the Current Month if the Concurrent Request Ran
    SELECT DISTINCT ppa.DATE_EARNED, TO_CHAR(ppa.DATE_EARNED,'MON-YYYY') DISPLAY
    , TO_CHAR(ppa.DATE_EARNED,'MM YYYY') PARAM
    FROM
    pay_payroll_actions ppa
    ,pay_assignment_actions pac
    ,PER_ALL_ASSIGNMENTS_F PASS
    ,FND_USER FU
    ,per_time_periods PTP
    WHERE ppa.payroll_id = 61
    AND ppa.payroll_action_id = pac.payroll_action_id
    AND PAC.ASSIGNMENT_ID = PASS.ASSIGNMENT_ID
    AND PASS.PERSON_ID = FU.EMPLOYEE_ID
    AND FU.USER_ID = Fnd_Profile.VALUE('USER_ID')
    AND TRIM(TO_CHAR(ppa.DATE_EARNED,'MON-YYYY')) IS NOT NULL
    AND TRIM(TO_CHAR(ppa.DATE_EARNED,'MON-YYYY')) = TRIM(TO_CHAR(SYSDATE,'MON-YYYY'))
    AND ppa.DATE_EARNED=(SELECT MAX(DATE_EARNED) FROM pay_payroll_actions WHERE time_period_id=ppa.time_period_id)
    AND ppa.DATE_EARNED >='30-NOV-2007'
    --Check the Concurrent Program Ran or not to Display the SYS Month Payroll Period ID
    AND EXISTS
    (SELECT TRIM(TO_CHAR(REQUEST_DATE,'MON-YYYY')) FROM fnd_conc_req_summary_v fcrs
    WHERE program_short_name = 'PROC_EXP1_TESTING'
    AND PHASE_CODE='C' AND STATUS_CODE='C'
    AND TO_CHAR(REQUEST_DATE,'MON-YYYY')=TO_CHAR(SYSDATE,'MON-YYYY')
    AND REQUEST_DATE=(SELECT MAX(REQUEST_DATE) FROM fnd_conc_req_summary_v
    WHERE CONCURRENT_PROGRAM_ID=fcrs.CONCURRENT_PROGRAM_ID))
    ORDER BY 1 DESC) QRSLT WHERE (( UPPER(DISPLAY) like :1 AND (DISPLAY like :2 OR DISPLAY like :3 OR DISPLAY like :4 OR DISPLAY like :5)))
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1145)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1408)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormData(OAPageBean.java:2555)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1677)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:509)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:430)
         at oa_html._OA._jspService(_OA.java:84)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    java.sql.SQLException: ORA-01843: not a valid month
    Could any please suggest/provide your valuable inputs to resolve this issue(It is in production , so please treat it as very urgent).
    Thanks & Regards,
    J.Prakash

    Hi,
    This is really a strange behaviour as you are saying that it is happening only for one user so please check his user preferences.
    Regards,
    Reetesh Sharma

  • ERROR java.sql.SQLException: ORA-01843: not a valid month

    This page is working fine for English Language. Once we change preference Lanuage to "French Candian" We are getting this issue.
    This is little urgent on this.
    ERROR
    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: select
    ppf.person_id,
    ppf.employee_number,
    god.organization_id,
    ppf.full_name employee_name,
    (select full_name from per_people_x where person_id = paf.supervisor_ID ) manager_name,
    (select full_name from per_people_x where person_id = haou.attribute4 ) hr_name,
    --hr_general.decode_person_name(haou.attribute4 ) hr_name,
    haou.name organization_name,
    GEM.termination_date actual_termination_date,
    (select meaning from hr_lookups where lookup_type = 'LEAV_REAS' and lookup_code = GEM.Leaving_reason and enabled_flag = 'Y') leaving_reason,
    god.sub_business sub_business,
    god.business_segment business_segment,
    god.industry_focus_group industry_focus_group,
    pgd.segment2 corporate_Band,
    tl.territory_short_name country
    from per_people_f ppf,
    per_assignments_f paf,
    hr_all_organization_units haou,
    per_grades pg,
    per_grade_definitions pgd,
    per_addresses pa,
    fnd_territories_tl tl,
    XXsm_org_dtl god,
    XX_EXIT_TRANSACTION GET,
    XX_EXIT_MANAGER GEM
    where 1=1
    and paf.person_id=:1
    and paf.primary_flag='Y'
    and ppf.person_id = paf.person_id
    and paf.organization_id=haou.organization_id
    and paf.organization_id = god.organization_id
    and trunc(sysdate) between trunc(paf.effective_start_date) and trunc(paf.effective_end_date)
    and trunc(sysdate) between trunc(ppf.effective_start_date) and trunc(ppf.effective_end_date)
    and ppf.person_id=GET.employee_id(+)
    and GET.Transaction_id = GEM.transaction_id
    and paf.grade_id=pg.grade_id(+)
    and pg.grade_definition_id=pgd.grade_definition_id(+)
    and ppf.person_id=pa.person_id(+)
    and pa.primary_flag(+)='Y'
    and pa.country=tl.territory_code(+)
    AND tl.language = USERENV('LANG')
    AND trunc(sysdate) between trunc(pa.Date_from) and trunc(nvl(pa.Date_to, TO_DATE ('31-DEC-4712', 'DD-MON-YYYY')))
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891)
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:865)
         at oracle.apps.fnd.framework.OAException.wrapperInvocationTargetException(OAException.java:988)
         at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:211)
         at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:153)
         at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.invokeMethod(OAApplicationModuleImpl.java:750)
         at ge.oracle.apps.per.selfservice.eexit.employee.webui.GEExitEmployeeCO.processRequest(GEExitEmployeeCO.java:112)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:587)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1136)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
         at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2348)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1747)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:511)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:432)
         at oa_html._OA._jspService(_OA.java:84)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:619)
    ## Detail 0 ##
    java.sql.SQLException: ORA-01843: not a valid month
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
         at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
         at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:590)
         at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1973)
         at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1119)
         at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2566)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2963)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:658)
         at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:584)
         at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:631)
         at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:518)
         at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3375)
         at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection(OAJboViewObjectImpl.java:828)
         at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4507)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:574)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:544)
         at oracle.jbo.server.ViewRowSetImpl.executeDetailQuery(ViewRowSetImpl.java:619)
         at oracle.jbo.server.ViewObjectImpl.executeDetailQuery(ViewObjectImpl.java:3339)
         at oracle.jbo.server.ViewObjectImpl

    Are you hard coding anything in code or VO ?
    AND trunc(sysdate) between trunc(pa.Date_from) and trunc(nvl(pa.Date_to, TO_DATE ('31-DEC-4712', 'DD-MON-YYYY')))Try some modification in the above nvl code and test.
    And refer:
    http://apps2fusion.com/apps/apps/430-string-to-date
    -Anand

  • Java.sql.SQLException: Listener refused the connection with the following error: ORA-12514, TNS:listener does not currently know of service requested in connect descriptor

    Good Day,
    I'm encountering this problem
         java.sql.SQLException: Listener refused the connection with the following error:
         ORA-12514, TNS:listener does not currently know of service requested in connect descriptor
    here's the java code
    Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
    String url = "jdbc:oracle:thin:@//10.143.85.21/UCSL";
    String userName = "mssoriano";
    String passWord = "mssoriano_4319";
    conn = DriverManager.getConnection(url, userName, passWord);
    and here's my tnsnames.ora
    UCSL =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = 10.143.85.21)(PORT = 1521))
        (CONNECT_DATA =
          (SID = psusldb11)
    Please do let me know if what may the cause of the problem and how to solve this. Thank you and God bless.

    Hi,
    see this example
    Connect to Oracle DB via JDBC driver
    Frank

  • Exception in thread "main" java.sql.SQLException: ORA-01704: string literal

    Hi Everyone,
    I am Using This Code to read the Mail from server and inserting those into database but i am getting error like
    import java.io.*;
    import java.util.*;
    import javax.mail.*;
    import java.sql.*;
    public class ReadMail_OLD {
    static StringBuffer s= new StringBuffer();
    static StringBuffer s1= new StringBuffer();
    public static void main(String args[]) throws Exception {
    String host = "***.****.co.in";
    String user = "***@***.**.**";
    String password = "******";
    String Message_2000 = new String();
    String Message_2001 = new String();
    Connection conn;
    Class.forName("oracle.jdbc.driver.OracleDriver");
    conn = DriverManager.getConnection("jdbc:oracle:thin:@1.2.3.5:1050:abcgdb", "abc", "efg");
    Statement stm = conn.createStatement();
    String strsql = "insert into READ_MAIL_MSG (MESSAGE_ID,SENT_DATE,MAIL_FROM,MAIL_TO,MAIL_SUBJECT,MESSAGE) values (" ;
    // Get system properties
    Properties properties = System.getProperties();
    // Get the default Session object.
    Session session = Session.getDefaultInstance(properties);
    // Get a Store object that implements the specified protocol.
    Store store = session.getStore("pop3");
    //Connect to the current host using the specified username and password.
    store.connect(host, user, password);
    //Create a Folder object corresponding to the given name.
    Folder folder = store.getFolder("inbox");
    // Open the Folder.
    folder.open(Folder.READ_ONLY);
    Message[] message = folder.getMessages();
    // Display message.
    for (int i = 0; i < message.length; i++)
    //System.out.println("------------ Message " + (i + 1) + " ------------");
    //System.out.println("SentDate : " + message.getSentDate());
    //System.out.println("From : " + message[i].getFrom()[0]);
    //System.out.println("Subject : " + message[i].getSubject());
    //System.out.print("Message : ");
    InputStream stream = message[i].getInputStream();
    int j = 0;
    Message_2000 = "";
    Message_2001 = "";
    while(stream.available()>0 && j < 500)
    // read the byte and convert the integer to character
    s.append((char) stream.read());
    j = j+1;
    Message_2000 = s.toString();
    Message_2001 = Message_2000.replace("'"," ");
    System.out.println(strsql+"'"+(i + 1)+"','"+message[i].getSentDate()+"','"+message[i].getFrom()[0]+"','***@***.co.in','"+message[i].getSubject()+"','"+s.toString()+"')");
    stm.execute(strsql+"'"+(i + 1)+"','"+message[i].getSentDate()+"','"+message[i].getFrom()[0]+"','***@****.co.in','"+message[i].getSubject()+"','"+Message_2001+"')");
    folder.close(true);
    store.close();
    when i execute this some messages get inserted into table but for some messages
    Exception in thread "main" java.sql.SQLException: ORA-01704: string literal too long
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
    at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
    at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:582)
    at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1983)
    at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1141)
    at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:2149)
    at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:2032)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2894)
    at oracle.jdbc.driver.OracleStatement.execute(OracleStatement.java:942)
    at ReadMail_OLD.main(ReadMail_OLD.java:64)
    Edited by: 997089 on May 1, 2013 9:29 PM
    Edited by: 997089 on May 1, 2013 9:30 PM

    Hi All,
    Thanks for Your Reply .
    I got the answer i have made a mistake in loop after every iteration i have not cleared the stringBuffer Varaible so the after one or two iteration it givesthe error.
    import java.io.*;
    import java.util.*;
    import javax.mail.*;
    import java.sql.*;
    public class ReadMail_OLD {
    static StringBuffer s= new StringBuffer();
    static StringBuffer s1= new StringBuffer();
    public static void main(String args[]) throws Exception {
    String host = "***.****.co.in";
    String user = "***@***.**.**";
    String password = "******";
    String Message_2000 = new String();
    String Message_2001 = new String();
    Connection conn;
    Class.forName("oracle.jdbc.driver.OracleDriver");
    conn = DriverManager.getConnection("jdbc:oracle:thin:@1.2.3.5:1050:abcgdb", "abc", "efg");
    Statement stm = conn.createStatement();
    String strsql = "insert into READ_MAIL_MSG (MESSAGE_ID,SENT_DATE,MAIL_FROM,MAIL_TO,MAIL_SUBJECT,MESSAGE) values (" ;
    // Get system properties
    Properties properties = System.getProperties();
    // Get the default Session object.
    Session session = Session.getDefaultInstance(properties);
    // Get a Store object that implements the specified protocol.
    Store store = session.getStore("pop3");
    //Connect to the current host using the specified username and password.
    store.connect(host, user, password);
    //Create a Folder object corresponding to the given name.
    Folder folder = store.getFolder("inbox");
    // Open the Folder.
    folder.open(Folder.READ_ONLY);
    Message[] message = folder.getMessages();
    // Display message.
    for (int i = 0; i < message.length; i++)
    //System.out.println("------------ Message " + (i + 1) + " ------------");
    //System.out.println("SentDate : " + message.getSentDate());
    //System.out.println("From : " + message.getFrom()[0]);
    //System.out.println("Subject : " + message.getSubject());
    //System.out.print("Message : ");
    InputStream stream = message.getInputStream();
    int j = 0;
    Message_2000 = "";
    Message_2001 = "";
    while(stream.available()>0 && j < 500)
    // read the byte and convert the integer to character
    s.append((char) stream.read());
    j = j+1;
    Message_2000 = s.toString();
    Message_2001 = Message_2000.replace("'"," ");
    System.out.println(strsql+"'"+(i + 1)+"','"message.getSentDate()"','"message.getFrom()[0]"','***@****.co.in','"message.getSubject()"','"s.toString()"')");
    stm.execute(strsql+"'"+(i + 1)+"','"message.getSentDate()"','"message.getFrom()[0]"','***@****.co.in','"message.getSubject()"','"Message_2001"')");
    s.delete(0, s.length());
    folder.close(true);
    store.close();
    Thanks for Reply
    Edited by: 997089 on May 1, 2013 9:28 PM
    Edited by: 997089 on May 1, 2013 9:30 PM

  • 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

  • How to resolve the java.sql.SQLException: OALL8 is in an inconsistent state

    Hi All,
    I am getting the SQLException "java.sql.SQLException: OALL8 is in an inconsistent state." and in finally block while I am trying to execute another operation on the same database getting another exception "java.sql.SQLException: Io exception: Broken pipe".
    I am using a connection from the connection pool configured in Oracle Application server. I am using the Oracle App server 10.1.3.4 and my database is Oracle Database 11g Enterprise Edition Release 11.1.0.7.0.
    Any help in resolving this issue would really be appreciated.
    Thank you.

    Hi,
    What version of the driver are you using? The "OALL8 is in an inconsistent state" exception usually indicates a problem in the protocol. When this exception occurs the protocol is broken and the connection can't be used anymore. I would suggest that you try using the 11.2.0.1 JDBC driver that you can download from:
    http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html
    Regards,
    Jean

  • Error: java.sql.SQLException: No suitable driver

    Hi,
    Here is the source file in Java :
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    public class FruitTest3 extends HttpServlet {
    public void doGet(HttpServletRequest request,
    HttpServletResponse response)
    throws ServletException, IOException {
    String url = "jdbc:oracle:thin(or kprb ):sys/jameson@(DESCRIPTION=(ADDRESS_LIST =(ADDRESS =(COMMUNITY =
    tcp.insee.fr)(PROTOCOL = TCP)(Host = 10.20.108.3)(Port = 1521)))(CONNECT_DATA = (SID = ORA817)))";
    String table;
    try {
    String query =
    "SELECT * " +
    " FROM sys.sales";
    Connection connection = DriverManager.getConnection(url);
    DBResults results =
    DatabaseUtilities.getQueryResults(connection,
    query, false);
    table = results.toHTMLTable("#FFAD00");
    } catch(Exception e) {
    table = "Error: " + e;
    response.setContentType("text/html");
    // Prevent the browser from caching the response. See
    // Section 7.2 of Core Servlets and JSP for details.
    response.setHeader("Pragma", "no-cache"); // HTTP 1.0
    response.setHeader("Cache-Control", "no-cache"); // HTTP 1.1
    PrintWriter out = response.getWriter();
    String title = "Connection Pool Test";
    out.println("<BODY BGCOLOR=\"#FDF5E6\">\n" +
    "<CENTER>\n" +
    table + "\n" +
    "</CENTER>\n</BODY></HTML>");
    Irceive the error message : Error: java.sql.SQLException: No suitable driver
    Thanks in advance.

    hi nick..
    im having thiis particular problem too. part of my codes look like this
    try
                   Class.forName("org.gjt.mm.mysql.Driver");
                   connection = DriverManager.getConnection("jdbc:mysql//localhost/mmovies:/");
                   statement = connection.createStatement();
                   rs = statement.executeQuery("select * from timetable");
                   String result = "";
                   while(rs.next())
                        //String result = rs.getString(2);
                        String moviename = rs.getString(1);
                        result += moviename + ";";
                        System.out.println(result);
    i have specified the 'driver'.
    i have also places a 'gjt' folder in the same place as all my server codes. Please advice.
    Thanks
    -faridz

  • Java.sql.SQLException: Network error IOException: Connection refused:

    hi...i am tryin to connect to sqlserver2000 ....i wanted a dsnless connection...i have downloaded jtds driver...set the classpath..no joy..i'm connecting to sqlserver's default port 1433..i also confirmed that sqlserver tcp is enabled...still gettin the same err:
    java.sql.SQLException: Network error IOException: Connection refused: connect
    at net.sourceforge.jtds.jdbc.ConnectionJDBC2.<init>(ConnectionJDBC2.java
    :385)
    at net.sourceforge.jtds.jdbc.ConnectionJDBC3.<init>(ConnectionJDBC3.java
    :50)
    at net.sourceforge.jtds.jdbc.Driver.connect(Driver.java:182)
    at java.sql.DriverManager.getConnection(DriverManager.java:525)
    at java.sql.DriverManager.getConnection(DriverManager.java:171)
    at SQLServerConnect.getConnection(SQLServerConnect.java:27)
    at SQLServerConnect.displayDbProperties(SQLServerConnect.java:44)
    at SQLServerConnect.main(SQLServerConnect.java:80)
    Caused by: java.net.ConnectException: Connection refused: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:364)
    at java.net.Socket.connect(Socket.java:507)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at net.sourceforge.jtds.jdbc.SharedSocket.createSocketForJDBC3(SharedSoc
    ket.java:304)
    at net.sourceforge.jtds.jdbc.SharedSocket.<init>(SharedSocket.java:255)
    at net.sourceforge.jtds.jdbc.ConnectionJDBC2.<init>(ConnectionJDBC2.java
    :310)
    ... 7 more
    Error Trace in getConnection() : Network error IOException: Connection refused:
    connect
    Error: No active Connection
    i even tried connecting to the port 1433 thru telnet...err:Could not open connection to the host, on port 1433:connection failed...
    i thought it cud b a firewall issue...disabled my windows firewall..no joy..
    can ne body help me with this....need to solve this desparately
    thanks in advance
    jude

    Old, but still coming up in google searches. Here's the solution that worked for me:
    Dynamic Port Allocation explained:
    http://support.microsoft.com/kb/823938
    How to: Configure a Server to Listen on a Specific TCP Port (SQL Server Configuration Manager)
    http://support.microsoft.com/kb/823938
    In case that dissappears:
    To assign a TCP/IP port number to the SQL Server Database Engine
    1. In SQL Server Configuration Manager, in the console pane, expand SQL Server 2005 Network Configuration, expand Protocols for <instance name>, and then double-click TCP/IP.
    2. In the TCP/IP Properties dialog box, on the IP Addresses tab, several IP addresses appear, in the format IP1, IP2, up to IPAll. One of these are for the IP address of the loopback adapter, 127.0.0.1. Additional IP addresses appear for each IP Address on the computer. Right-click each address, and then click Properties to identify the IP address that you wish to configure.
    3. If the TCP Dynamic Ports dialog box contains 0, indicating the Database Engine is listening on dynamic ports, delete the 0.
    4. In the IPn Properties area box, in the TCP Port box, type the port number you wish this IP address to listen on, and then click OK.
    5. In the console pane, click SQL Server 2005 Services.
    6. In the details pane, right-click SQL Server (<instance name>) and then click restart, to stop and restart SQL Server.

Maybe you are looking for

  • How to "crop" flash file in Dreamweaver

    Is it possible to "crop" flash file in Dreamweaver, for example I want to eliminate the white margin on the left side of the swf file. Do I have to change the original file (in Flash). Please help me to solve the problem, Thanks!!!

  • My Nano iPod does'nt return to the Home Page

    My Nano iPod does'nt return to the Home Page

  • "Fresher on SDN "

    HI Experts, I am new to SAPDevelopersNetwork as i dont have proper knowledge as how to use this Complete Network i Urge the Expert's to give some links or as how to us this network properly and gain complete knowledge on SAP-ABAP basic knowledge .( i

  • Including variable into dynamic sql

    Hi, Ive problems including v_end_month variable. which is the correct way to include v_end_month in the next dynamic sql expression? v_end_month DATE; v_max_day DATE; EXECUTE IMMEDIATE 'SELECT max(date) FROM table1 WHERE trunc(date,''mm'') = '''||v_e

  • Same set of data should print twice on same page in SAP SCRIPT

    Hi Experts, I come across a requirement where I need same set of data in sap script should print twice as it is on same page. and if first page overflow, then same scenario should continue till complete data is printed. Basically main window data sho