Protocol Violation

Hi,
I have a problem run query from oracle database to sqlserver database using sql developer. Every time i run the query it give error "Protocol Violation". I use transparent gateway to link between my oracle database and sqlserver.
When I use sql Plus it works.
SQLdeveloper 3.1
SQLserver 2008 R2
Database 11gr2
Anyone have this problem before?
Thanks
David Phie

David,
If you were accessing an Oracle database I would suggest trying the Thick/OCI driver instead of the Thin as a workaround. This is for SQL Server access, however, so I have to ask whether you considered trying Help|Check for Updates and downloading the JTDS JDBC Driver for SQL Server 11.1.1.58.17?
If you can do that, then change the SQL Developer connection definition accordingly to use it rather than transparent gateway.
Just to document the Protocol Violation a bit more, searching further found this Oracle JDBC FAQ:
http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-faq-090281.html#30_17
What does "Protocol Violation" mean?
The Thin driver throws this exception when it reads something from the RDBMS that it did not expect.
This means that the protocol engine in the Thin driver and the protocol engine in the RDBMS are out of
synch. There is no way to recover from this error. The connection is dead. You should try to close it, but
that will probably fail too.
If you get a reproducible test case that generates this error, please file a TAR with Oracle Global Support.
Be sure to specify the exact version numbers of the JDBC driver and the RDBMS, including any patches.-Gary

Similar Messages

  • XSQL-007: Protocol violation

    Oracle XSQL Servlet Page Processor 1.0.0.0 (Production)
    XSQL-007: Cannot acquire a database connection to process page.
    Protocol violation
    ^^^^^^^^^^^^^^^^^^
    what is it?????????????

    The issue got resolved.The reason behind the error was the user schemas which ever we tried were about to expire and throwing an warning message before getting the connection,
    Regards
    Keerthivasan V

  • Need help about protocol violation .

    I got the message on java console below when run a java class .
    java.sql.SQLException: Protocol violation
    at oracle.jdbc.dbaccess.DBError.check_error(DBError.java)
    at oracle.jdbc.ttc7.Oclose.receive(Oclose.java)
    at oracle.jdbc.ttc7.TTC7Protocol.closeQuery(TTC7Protocol.java)
    at oracle.jdbc.driver.OracleResultSet.internal_close(OracleResultSet.java)
    at oracle.jdbc.driver.OracleResultSet.close(OracleResultSet.java)
    at mps.lib.database.DbOperator.finalize(DbOperator.java:620)
    at mps.lib.database.DbOperator.executeQueryVector(DbOperator.java:347)
    at testORAFetchingLength.getData(testORAFetchingLength.java:44)
    at testORAFetchingLength.main(testORAFetchingLength.java:19)
    I'm using ORACLE8.1.5 and j2sdk1.3 , Some information display the rs.next() function error , The data is only be fetched about 180 rows ,and that database have 1000 rows . Why ? I found all the answer on the web , Most of people says JDBC's version is too newer ,But JDBC's package file class111.jar copied from Oracle's jdbc/lib directory .
    who can give a answer about this ?
    Thanks .

    I got the message on java console below when run a java class .
    java.sql.SQLException: Protocol violation
    at oracle.jdbc.dbaccess.DBError.check_error(DBError.java)
    at oracle.jdbc.ttc7.Oclose.receive(Oclose.java)
    at oracle.jdbc.ttc7.TTC7Protocol.closeQuery(TTC7Protocol.java)
    at oracle.jdbc.driver.OracleResultSet.internal_close(OracleResultSet.java)
    at oracle.jdbc.driver.OracleResultSet.close(OracleResultSet.java)
    at mps.lib.database.DbOperator.finalize(DbOperator.java:620)
    at mps.lib.database.DbOperator.executeQueryVector(DbOperator.java:347)
    at testORAFetchingLength.getData(testORAFetchingLength.java:44)
    at testORAFetchingLength.main(testORAFetchingLength.java:19)
    I'm using ORACLE8.1.5 and j2sdk1.3 , Some information display the rs.next() function error , The data is only be fetched about 180 rows ,and that database have 1000 rows . Why ? I found all the answer on the web , Most of people says JDBC's version is too newer ,But JDBC's package file class111.jar copied from Oracle's jdbc/lib directory .
    who can give a answer about this ?
    Thanks .

  • Protocol violation error???

    Hi Everyone,
    I am using Jdev 11.1.1.5.0.
    I have developed one ADF application with 3 pages which is working fine in J developer.
    Later i deployed this application into clients web logic server and got one link to open this application.
    BUt when i open the application first page is coming correctly which is search page with 3 LOVs and when i click on Submit button it will navigate to second page where we show results in different tables
    but here i am getting the below error in popup window:
    Error:
    Messages for this page are listed below.
    Error     
    Protocol violation: [6, 7, 3]
    Error     
    Protocol violation: [194]
    Error     
    Protocol violation: [2]
    Error     
    Protocol violation: [44]
    Sometimes it works fine but sometimes it gives this error if more than one user access the link of ADF application.
    What is this error about???
    any clues or suggestions???
    Thanks...

    Hi,
    See
    PROTOCOL VIOLATION JAVA ERROR ORACLE 11g

  • Protocol violation Error with 17401 error code

    Hi,
    When we are trying to call stored procedure with below syntax we are getting "com.ibm.websphere.ce.cm.StaleConnectionException: Protocol violation" error with error code 17401 in local IRAD application and also in deployed application of WAS.
    call schemaName.truncate_table('table_name', 'DROP STORAGE')
    If I comment this procedure call in the Java code and execute, then next SQL staments following this call will be executed successfully. Below are some of the trails that I have already done and getting same error
    1. Dowloaded latest ojdbc.jar as per Oracle Database 10g 10.2.0.4.0 version
    2. Kept the minimum number of connections value as ZERO in WAS admin.
    Let me know if you know any solution for this
    Thanks
    Basavaraj

    Hi,
    It takes around 10 seconds from the time I started this batch job
    Below is the code, in the below code getStatement() method gets the SQLStatement object with below procedure call
    call odsacct.truncate_table(?, 'DROP STORAGE')
    SQLStatement sqlStmt = getStatement(CONFIG_FILE, DAOConstants.TRUNCATE_DATA_DEST);
              CallableStatement callableStmt = null;
              try {
                   callableStmt = conn.prepareCall(sqlStmt.getSql());
                   // set the in param
                   callableStmt.setString(1, insertTable);
                   callableStmt.executeUpdate();
              catch(SQLException e) {
                   System.out.println("Error Code .. Basava..."+e.getErrorCode());
                   e.printStackTrace();
                   throw new Exception("Error Deleting Data in the Destination Table: ", e);
              finally {
                   close(null, null, callableStmt);
    Below is the exception stack trace
    [4/20/11 15:11:35:991 EDT] 00000026 SystemOut O [Executing Job : AcctSearchLoaderWeeklyJob
    [4/20/11 15:11:37:116 EDT] 00000026 SystemOut O ******ADNAServiceProperties loaded successfully******
    [4/20/11 15:11:37:116 EDT] 00000026 SystemOut O [Account Search Data one time full data load started...
    [4/20/11 15:11:37:460 EDT] 00000026 SystemOut O [Wed Apr 20 15:11:37 EDT 2011] : Current Active Table: ODSACCT.ACCT_SEARCH_A
    [4/20/11 15:11:38:725 EDT] 00000026 SystemOut O [Wed Apr 20 15:11:38 EDT 2011] : Number of Records in ODSACCT.ACCT_SEARCH_A table is 537352
    [4/20/11 15:11:38:725 EDT] 00000026 SystemOut O [Wed Apr 20 15:11:38 EDT 2011] : Active Table Record Count is ... 537352
    [4/20/11 15:11:38:725 EDT] 00000026 SystemOut O [Wed Apr 20 15:11:38 EDT 2011] : Truncate data from... ODSACCT.ACCT_SEARCH_B
    [4/20/11 15:11:39:741 EDT] 00000026 ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl initialize FFDC0009I: FFDC opened incident stream file C:\aDNA-Workspaces\Profiles\NonValhalla_Apps\logs\ffdc\server1_5d445d44_11.04.20_15.11.39_0.txt
    [4/20/11 15:11:39:772 EDT] 00000026 ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl resetIncidentStream FFDC0010I: FFDC closed incident stream file C:\aDNA-Workspaces\Profiles\NonValhalla_Apps\logs\ffdc\server1_5d445d44_11.04.20_15.11.39_0.txt
    [4/20/11 15:11:39:788 EDT] 00000026 ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl open FFDC0009I: FFDC opened incident stream file C:\aDNA-Workspaces\Profiles\NonValhalla_Apps\logs\ffdc\server1_5d445d44_11.04.20_15.11.39_1.txt
    [4/20/11 15:11:39:819 EDT] 00000026 ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl resetIncidentStream FFDC0010I: FFDC closed incident stream file C:\aDNA-Workspaces\Profiles\NonValhalla_Apps\logs\ffdc\server1_5d445d44_11.04.20_15.11.39_1.txt
    [4/20/11 15:11:39:819 EDT] 00000026 ConnectionEve A J2CA0056I: The Connection Manager received a fatal connection error from the Resource Adapter for resource jdbc/adna_prod_ds. The exception which was received is com.ibm.websphere.ce.cm.StaleConnectionException: Protocol violation:java.sql.SQLException: Protocol violation
    [4/20/11 15:11:39:819 EDT] 00000026 SystemOut O Error Code .. Basava...17401
    [4/20/11 15:11:39:835 EDT] 00000026 SystemOut O [Wed Apr 20 15:11:39 EDT 2011] : Exception Occured while loading ACCT_SEARCH_B : party id is null
    [4/20/11 15:11:39:835 EDT] 00000026 SystemOut O [Account Search Data full data load failed.
    [4/20/11 15:11:39:819 EDT] 00000026 SystemErr R com.ibm.websphere.ce.cm.StaleConnectionException: Protocol violation
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:67)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at java.lang.reflect.Constructor.newInstance(Constructor.java:521)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.websphere.rsadapter.GenericDataStoreHelper.mapExceptionHelper(GenericDataStoreHelper.java:523)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.websphere.rsadapter.GenericDataStoreHelper.mapException(GenericDataStoreHelper.java:578)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.ws.rsadapter.jdbc.WSJdbcUtil.mapException(WSJdbcUtil.java:903)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.ws.rsadapter.jdbc.WSJdbcPreparedStatement.executeUpdate(WSJdbcPreparedStatement.java:626)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.starwood.adna.dao.AccountSearchLoaderDAO.truncateInsertTable(AccountSearchLoaderDAO.java:601)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.starwood.adna.dao.AccountSearchLoaderDAO.loadAccountSearchTable(AccountSearchLoaderDAO.java:92)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.starwood.adna.service.control.ADNAJobSchedulerAction.executeFullLoad(ADNAJobSchedulerAction.java:417)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.starwood.adna.service.control.ADNAJobSchedulerAction.executeFullLoadJob(ADNAJobSchedulerAction.java:348)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at java.lang.reflect.Method.invoke(Method.java:615)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:276)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:196)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:989)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:501)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:464)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1439)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:112)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:454)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:383)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
    [4/20/11 15:11:39:835 EDT] 00000026 SystemErr R      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)
    [4/20/11 15:11:40:569 EDT] 00000026 ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl open FFDC0009I: FFDC opened incident stream file C:\aDNA-Workspaces\Profiles\NonValhalla_Apps\logs\ffdc\server1_5d445d44_11.04.20_15.11.40_0.txt
    [4/20/11 15:11:40:585 EDT] 00000026 ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl resetIncidentStream FFDC0010I: FFDC closed incident stream file C:\aDNA-Workspaces\Profiles\NonValhalla_Apps\logs\ffdc\server1_5d445d44_11.04.20_15.11.40_0.txt
    [4/20/11 15:11:40:600 EDT] 00000026 ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl open FFDC0009I: FFDC opened incident stream file C:\aDNA-Workspaces\Profiles\NonValhalla_Apps\logs\ffdc\server1_5d445d44_11.04.20_15.11.40_1.txt
    [4/20/11 15:11:40:600 EDT] 00000026 ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl resetIncidentStream FFDC0010I: FFDC closed incident stream file C:\aDNA-Workspaces\Profiles\NonValhalla_Apps\logs\ffdc\server1_5d445d44_11.04.20_15.11.40_1.txt
    [4/20/11 15:11:40:632 EDT] 00000026 ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl open FFDC0009I: FFDC opened incident stream file C:\aDNA-Workspaces\Profiles\NonValhalla_Apps\logs\ffdc\server1_5d445d44_11.04.20_15.11.40_2.txt
    [4/20/11 15:11:40:647 EDT] 00000026 ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl resetIncidentStream FFDC0010I: FFDC closed incident stream file C:\aDNA-Workspaces\Profiles\NonValhalla_Apps\logs\ffdc\server1_5d445d44_11.04.20_15.11.40_2.txt
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R java.lang.Exception: Error Deleting Data in the Destination Table:
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.starwood.adna.dao.AccountSearchLoaderDAO.truncateInsertTable(AccountSearchLoaderDAO.java:606)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.starwood.adna.dao.AccountSearchLoaderDAO.loadAccountSearchTable(AccountSearchLoaderDAO.java:92)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.starwood.adna.service.control.ADNAJobSchedulerAction.executeFullLoad(ADNAJobSchedulerAction.java:417)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.starwood.adna.service.control.ADNAJobSchedulerAction.executeFullLoadJob(ADNAJobSchedulerAction.java:348)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at java.lang.reflect.Method.invoke(Method.java:615)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:276)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:196)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:989)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:501)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:464)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1439)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:112)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:454)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:383)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R Caused by: com.ibm.websphere.ce.cm.StaleConnectionException: Protocol violation
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:67)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:521)
         at com.ibm.websphere.rsadapter.GenericDataStoreHelper.mapExceptionHelper(GenericDataStoreHelper.java:523)
         at com.ibm.websphere.rsadapter.GenericDataStoreHelper.mapException(GenericDataStoreHelper.java:578)
         at com.ibm.ws.rsadapter.jdbc.WSJdbcUtil.mapException(WSJdbcUtil.java:903)
         at com.ibm.ws.rsadapter.jdbc.WSJdbcPreparedStatement.executeUpdate(WSJdbcPreparedStatement.java:626)
         at com.starwood.adna.dao.AccountSearchLoaderDAO.truncateInsertTable(AccountSearchLoaderDAO.java:601)
         at com.starwood.adna.dao.AccountSearchLoaderDAO.loadAccountSearchTable(AccountSearchLoaderDAO.java:92)
         at com.starwood.adna.service.control.ADNAJobSchedulerAction.executeFullLoad(ADNAJobSchedulerAction.java:417)
         at com.starwood.adna.service.control.ADNAJobSchedulerAction.executeFullLoadJob(ADNAJobSchedulerAction.java:348)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:615)
         at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:276)
         at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:196)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
         at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:989)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:501)
         at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:464)
         at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90)
         at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744)
         at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1439)
         at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:112)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:454)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:383)
         at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
         at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
         at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
         at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
         at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
         at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
         at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
         at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)
    ---- Begin backtrace for Nested Throwables
    java.sql.SQLException: Protocol violation
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:162)
         at oracle.jdbc.driver.DatabaseError.check_error(DatabaseError.java:885)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:640)
         at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:180)
         at oracle.jdbc.driver.T4CCallableStatement.execute_for_rows(T4CCallableStatement.java:783)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1028)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2888)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:2960)
         at oracle.jdbc.driver.OracleCallableStatement.executeUpdate(OracleCallableStatement.java:4124)
         at com.ibm.ws.rsadapter.jdbc.WSJdbcPreparedStatement.pmiExecuteUpdate(WSJdbcPreparedStatement.java:948)
         at com.ibm.ws.rsadapter.jdbc.WSJdbcPreparedStatement.executeUpdate(WSJdbcPreparedStatement.java:615)
         at com.starwood.adna.dao.AccountSearchLoaderDAO.truncateInsertTable(AccountSearchLoaderDAO.java:601)
         at com.starwood.adna.dao.AccountSearchLoaderDAO.loadAccountSearchTable(AccountSearchLoaderDAO.java:92)
         at com.starwood.adna.service.control.ADNAJobSchedulerAction.executeFullLoad(ADNAJobSchedulerAction.java:417)
         at com.starwood.adna.service.control.ADNAJobSchedulerAction.executeFullLoadJob(ADNAJobSchedulerAction.java:348)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:615)
         at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:276)
         at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:196)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
         at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:989)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:501)
         at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:464)
         at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90)
         at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744)
         at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1439)
         at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:112)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:454)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:383)
         at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
         at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
         at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
         at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
         at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
         at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
         at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
         at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:67)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at java.lang.reflect.Constructor.newInstance(Constructor.java:521)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.websphere.rsadapter.GenericDataStoreHelper.mapExceptionHelper(GenericDataStoreHelper.java:523)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.websphere.rsadapter.GenericDataStoreHelper.mapException(GenericDataStoreHelper.java:578)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.ws.rsadapter.jdbc.WSJdbcUtil.mapException(WSJdbcUtil.java:903)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.ibm.ws.rsadapter.jdbc.WSJdbcPreparedStatement.executeUpdate(WSJdbcPreparedStatement.java:626)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      at com.starwood.adna.dao.AccountSearchLoaderDAO.truncateInsertTable(AccountSearchLoaderDAO.java:601)
    [4/20/11 15:11:40:538 EDT] 00000026 SystemErr R      ... 33 more
    Thanks
    Basavaraj G.M

  • Protocol Violation Error (ORA-17401)

    Hi everyone,
    I was problem while run cfm page, for 4 weeks ago, the ColdFusion stop in error Protocol Violation Error - ORA-17401.
    I'm using JDBC Oracle connector version 1.6 with Oracle 11 g.
    Where the error show, the server stop communication from Oracle and returns only restart the CF Service, other servers dont stop communication.
    I have 4 servers with 4 processors Quad-Core, 32 GB RAM and 1 TB HD, with Windows 2008 and IIS 7.5.
    The ColdFusion is update level 11.
    Any answers?

    It is seen when Oracle.getSystemProperties fail to bring in Data from Oracle Server. At that time every property is returned as null, so protocol violation occurs. It occurs and Oracle Can't close Connection as said by the first thread.
    Solution is to avoid too many requests at same time but use some long queue mechanism and timings.

  • 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

  • OALL8 is in an inconsistent state / protocol violation

    When I try to define and test a oracle database location, I get this two error messages:
    1. OALL8 is in an inconsistent state
    2. Protocol violation
    Anyone have seen them before? Since I'm working on a fresh installation environment, I don't know whether the errors are caused by installation problems.
    Thanks a lot

    I have seen something similiar to this in a Portal installation, when the database has been restarted. Can it be that the database had gone down after you connected to the OWB design center?

  • Protocol violation error, errorcode 17401

    Hi,
    I am running my CF application in jboss container, using
    Oracle 10g database with jdbc connection. When cfm page runs, while
    executing database query through cfquery tag, i got the error
    saying "Protocol Violation, Error Executing Database Query,
    Errorcode 17401". I could not find out the problem.
    Kindly help me in this regard.
    Advance thanks.

    Hi,
    I am running my CF application in jboss container, using
    Oracle 10g database with jdbc connection. When cfm page runs, while
    executing database query through cfquery tag, i got the error
    saying "Protocol Violation, Error Executing Database Query,
    Errorcode 17401". I could not find out the problem.
    Kindly help me in this regard.
    Advance thanks.

  • Protocol violation error in jdbc connection

    Hi all
    I am facing a problem with jdbc connection to oracle DB.
    My code works sometimes, and sometimes it throws one (or more) of the following SQLExceptions:
    protocol violation
    Bigger type length than Maximum.
    The same code works in munerous locations with numerous DBs.
    Th DB version is 10.2.0.4
    and I downloaded the latest ojdbc14.jar driver
    I would appreciate any assistance
    Thanks
    Ron

    Hi
    Thanks for replying
    I looked at the error code and the object types, but it fails when calling next in the result set.
    And I did not set the object types at that point
    The object type is set only after running get functions (For example resultSet.getInt())
    Also, the same code works in many other locations and even in that environment it succeeds sometimes.
    Also, sometimes it fails only with the Protocol violation error and sometimes with both errors.
    Any ideas?

  • Protocol violation error on Oracle...

    Hi,
    I know many people have posted this kind of problem..but I am still pretty confused as to what's going on.
    Basically, the situation is this: I have a bean file which accesses oracle database and it does an update on a certain table with a long field, i don't know if that causes the problem. It only occurs after some queries that succeed. I also do this with a prepared statement and it involoves a huge amount of data. The select statements on the same data always succeeds.
    I get a 'oracle protocol violation error', seems random;
    The version of Oracle jdbcdriver (classes12.zip)is 8.1.7:
    Oracle Server : 8.1.7

    One of the developers came up with the analysis
    that the protcol violation occurs when you try to
    close a PreparedStatement/Cursor that is already closed .
    The "protocol violation' is message that is thrown
    when Oracle cant throw a more specific message.
    Can somebody confirm this? Do i need to close a prepared statement anyway?

  • 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.

  • Protocol violation - Oracle 8.1.7

    Hi,
    I'm using the following code to get to an Oracle 8.1.7 database:
    // Load the Oracle JDBC Driver and register it.
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    // Define the data source for the driver
    String sourceURL = "(DESCRIPTION=(ADDRESS=(HOST="+sServer+")"+
    "(PROTOCOL=tcp)(PORT="+sPortNo+"))"+"(CONNECT_DATA=(SID="+sSID+")))";
    Connection dbConnection = DriverManager.getConnection(sProtocol + ":@" + sourceURL,sUsername,sPassword);
    Statement statement = dbConnection.createStatement();
    ResultSet rMbrData = statement.executeQuery
    ("SELECT MBR_INDIVIDUAL_MEMBERSHIPS.INDM_BILCODT_CD, " +
    "MBR_INDIVIDUAL_MEMBERSHIPS.INDM_PAID_DATE " +
    "FROM MBR_MB_CUSTOMERS INNER JOIN " +
    "MBR_INDIVIDUAL_MEMBERSHIPS ON MBR_MB_CUSTOMERS.CUSTOMER_ID = MBR_INDIVIDUAL_MEMBERSHIPS.INDM_CUST_IM_ID " +
    "WHERE ((MBR_MB_CUSTOMERS.CUSTOMER_NUMBER)='" + sMemberNo + "')");
    if( dbConnection != null )
    dbConnection.close();
    (it's in an applet with the Classes111.zip file attached. )
    And I get the following error:
    java.sql.SQLException: Protocol violation
    Any ideas as to what it could be?
    Any help would be greatly appreciated!
    Thanks
    lw

    Hello,
    you might want to post this question on the JDBC/SQLJ forum.
    Thanks,
    -Kishore
    JDev Team

  • Protocol Violation No. ORA-17401

    Hi,
    Dear friends,I implemented servlets with JSDK2.0. These servlets work in Apache WebServer1.3 and Apache JServ1.1.1. Oracle8i is used to manage system data base. When the servlets retrieve data from Oracle8i, the error message "java.sql.SQLException:Protocol Violation" takes place randomly. In this case, Oracle8i cannot be accessed. How to work out the problem?Do you meet this problem?

    This problem usually occurs when a large amount of data is transfered.
    Another reason for thie problem to occur is
    if you have used setDefaultRowPrefetch
    for the connection.
    Please use the latest jdbc driver (8.1.6),
    where most of these problems are solved.

  • 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...

Maybe you are looking for