SQLState or Error Code

Hello all I am new here.
I just started using java and mySQL to write a system and I have some questions about using those try/catch blocks to catch exceptions.
Do I use those try/catch to catch the exceptions such as duplicate key entry?
If yes, how do I identify those exceptions?
For example, I am now trying to insert two records with same primary key to generate a duplicate key entry SQL error. How do I know for sure that the exception caught is a duplicate key entry error?
I tried using getSQLState to get the error state to be "S1009". So do I use this value to identify duplicate key entry error? but I don't feel right about this method.
Please advise what I should do. Thanks in advance.
Wo Lay

try using getErrorCode(). here is the excerpt from the javadoc
getErrorCode
public int getErrorCode()Retrieves the vendor-specific exception code for this SQLException object.
Returns:
the vendor's error code

Similar Messages

  • SSDT 2014 An OLE DB error has occurred. Error code: 0x80040E14. An OLE DB record is available. Source: "Microsoft DB2 OLE DB Provider" Hresult: 0x80040E14

    SSDT 2014 (SSIS 2014) running in Visual Studio 2013 against a SQL Server 2014 Enterprise Edition db.
    We are converting by hand a Business Intelligence site from SQL Server 2008 R2 databases (Data Warehouse, SharePoint databases and SSAS cubes), SharePoint 2010 Portal Site, and BIDS 2008 to SQL Server 2014 databases, SharePoint 2013, and SSDT 2014
    for Visual Studio 2013.  This SSIS Package runs fine in the BIDS/SQL 2008 R2 environment.  The Variable Expression in this Data Flow Task is:
    "SELECT [ORDER_ID]
    ,[ORDER_NUMBER]
    ,[TRACKING_PREFIX_ID]
    ,[TRACKING_NUMBER]
    ,[REVISION_NUM]
    ,[ORDER_TYPE]
    ,[STATUS]
    ,[WEIGHT]
    ,[PLACEMENT_DATE]
    ,[REQUESTED_DELIVERY]
    ,[OUTLET_ID]
    ,[DEV_LOC_ID]
    ,[TSR_ID]
    ,[LAST_LINE_ITEM]
    ,[PARTIALS]
    ,[WAREHOUSE_ID]
    ,[COURIER_ID]
    ,[ALT_ADDRESS_ID]
    ,[ROUTE_CRITERION]
    ,[SHIPMENT_ID]
    ,[MANIFEST_NOTE_ID]
    ,[COURIER_NOTE_ID]
    ,[CONFIRM_DATE]
    ,[LINE_NO]
    ,[FILL_DATE]
    ,[LAUNCH_ID]
    ,[CDC_DK]
    ,[ORDER_SIZE]
    ,[PICK_PACK_USER]
    ,[LAST_DATE_MODIFIED]
    ,[USER_MODIFIED]
    ,[IA_INSERT_DT]
    ,[IA_UPDATE_DT]
    ,[SOURCE_ID]
    FROM [DB2ADMIN].[IA_ORDERS]
    WHERE [CDC_DK]  = "
    +(DT_STR,5,1252)@[User::CurrentDateKey]
    This is the ERROR:
    An OLE DB error has occurred. 
    Error code: 0x80040E14. 
    An OLE DB record is available. 
    Source: "Microsoft DB2 OLE DB Provider" 
    Hresult: 0x80040E14 
    Description: "An unexpected token "SELECTBEGIN-OF-STATEMENT<value" was found following "". 
                  Expected tokens may include:  "". SQLSTATE: 42601, SQLCODE: -104".

    Hi Scottony,
    If I understand correctly, you are using a variable with the expression you post as the DB2 query command for Data access.
    Based on the error message, it seems that the error is caused by you are using a SQL query as IBM DB2 query. Since the query is correct in SQL Server. Please verify the IBM DB2 query is correct, then evaluate the expression of variable SourceSQL_Orders to
    make sure the query is just you need.
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Msg 0, Sev 0, State 1: Unknown token received from SQL Server [SQLSTATE HY000] String data, right truncation [SQLSTATE 01004] [SQLSTATE 08S01] error

    I'm looking for some general guidance on this complete error:
    Msg 0, Sev 0, State 1: Unknown token received from SQL Server [SQLSTATE HY000]
    String data, right truncation [SQLSTATE 01004]
    Msg 16389, Sev 16, State 1: The connection is no longer usable because the server response for a previously executed statement was incorrectly formatted. [SQLSTATE 08S01]
    This error is caused by a SQL Agent Job, but it does not always occur. I understand this could be an issue with SQL dropping the connection, but what is the best way to troubleshoot this?
    Thanks,
    Phil

    Hi philliptackett77,
    It would be more helpful for troubleshooting the issue if you post the SQL Server error log and SQL Server version. Additionally, please state what purpose of using the agent job.
    Based on my research, [SQLSTATE 08S01] error means communication link failure. If the executed statement returns invalid value in the job, the connection between server and client will fail. This error could be caused by the error of [SQLSTATE HY000] and
    [SQLSTATE 01004]. I’d like to share my knowledge about these errors as below.
    Quote: String data, right truncation [SQLSTATE 01004]
    This error could occur when passing data whose length is larger than the received object,and the passed value is truncated, and returns invalid value. So please check if the data type of the objects are identical and the length of passed value is not larger
    than the received object.
    Quote: Msg 0, Sev 0, State 1: Unknown token received from SQL Server [SQLSTATE HY000]
    The error could occur in the two cases below.
    1. If you use SQL Server version 6.50, and execute the cursor in the job step, set the statement options to use a server-side cursor and prepare a select statement on a SQL Server system table. The first execution of the select creates the cursor successfully.
    After you close this cursor, if you execute the prepared statement again, the error could occur.
    I recommend you to apply the latest service pack firstly. If the error still occurs, you could change your code by using a forward-only cursor instead of a static, keyset, or dynamic cursor on the system tables. If a forward-only cursor is unacceptable,
    prepare the select statement again on the system table and execute it to create a server-side cursor. For more information about the process, please refer to the article:
    http://support.microsoft.com/kb/151693/en-us
    2. The TDS stream from the server is invalid when transfer data between a database server and a client. This error is typically caused by a problem on the server. For more information about errors above, please refer to the article:
    http://technet.microsoft.com/en-us/library/aa937531(v=sql.80).aspx
    Regards,
    Michelle Li

  • How to fine vendor specific error code in JDBC?

    Hi all,
    Is there any method which can be used to find vendor specific error code?
    Thnx in advance

    try{
    // your code
    catch(java.sql.SQLException ex){
    int code = ex.getErrorCode() ;
    Retrieves the vendor-specific exception code for this SQLException object.
    String state = ex.getSQLState() ;
    Retrieves the SQLState for this SQLException object.
    }

  • 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

  • Oracle ODBC Driver Specifc Error Codes

    Dear All,
    I'm currently working in a migration assignment.I'm looking for a Technical document which consists error codes specific to Oracle ODBC Driver(ver.9.00.11.00).Any help in this regard will be appreciated.
    Thanks & Regards,
    Sam

    There shouldn't be any Oracle ODBC Driver specific error codes. When you're talking about ODBC and error codes, there are two possibilities-
    1) You're looking at the SQLState return codes. These are part of an ISO standard (they're more than happy to sell you a copy) and are documented in the ODBC Programmer's Reference from Microsoft as well as most decent ODBC guides.
    2) You're looking at the Oracle specific error codes that are returned as the error text in ODBC. These (potentially) depend on the version of the database you're connecting to, rather than the version of the client software you have, and are covered in Oracle's error message manual available at tahiti.oracle.com
    Justin

  • The question of error code

    hi :
    i am an new learner of oracle
    i want to know the error code of oracle
    for example select ,insert ,update error and so on
    who can send it to me ?
    e-mail :[email protected]

    http://tahiti.oracle.com has all the Oracle error codes & messages (i.e. ORA-xxxxx) as well as all the other Oracle documentation.
    If you're looking for ODBC error codes (SQLState), those are going to be in any ODBC API reference.
    Justin

  • Sun One & mySQL: Native Error Code: 2013

    This one's really starting to get me down. I've found many forums of programmers with the same problem, but no real solution in sight.
    The error only occurs periodically and when I refresh the page a few times it loads fine. Here's the code:
    Dim conn, rs, query
    set conn = createobject("ADODB.Connection")
    conn.open = "DRIVER={MySQL ODBC 3.51 Driver}; SERVER=db_server; DATABASE=my_db; UID=user; PWD=pwd; OPTION=35;"
    query = "SELECT * FROM tblFranchise ORDER BY Franchise"
    set rs = conn.Execute( query )
    'display some data
    Call rs.Close()
    Call conn.Close()
    and here's that awful error message:
    Error Type:
    ADODB.Recordset.1 (0x80004005)
    SQLState: S1000 Native Error Code: 2013 [TCX][MyODBC]Lost connection to MySQL server during query
    /home.asp, line 127
    Any help much appreciated.

    Actually you can just forget about the OPTION setting, I was trying something else, but it's not present in the code that's giving me the error. I'm hosting the site with a third party, but I believe they're using Apache 1.3.26
    As for the Sun One version, I'm not sure, but I recieved the following message with the above error:
    HTTP 500.100 - Internal Server Error - ASP error
    Apache/1.3.26 (Unix) Sun-ONE-ASP/4.0.0 mod_gzip/1.3.26.1a mod_auth_pam/1.0a PHP/4.3.8 PHP/3.0.18 mod_ssl/2.8.10 OpenSSL/0.9.6g mod_perl/1.27 mod_jk/1.1.0 FrontPage/5.0.2.2510

  • Cannot delete file from external hard drive (error code 36) in Finder, but Terminal is ok

    I have a relatively new Macbook Pro Retina 15" and have a Western Digital 1 TB Passport.  I've been using the passport for about a year now without any problems on older Macbooks in my house.  I used to be able to read and write to this drive no problem.  I am using the Paragon NTFS for Mac software in order to read and write to the NTFS drive.  When I navigate through the drive in Finder, if I try to create a new folder, I do not have a problem.  If I try to delete that folder I just created, I get this error:
    The Finder can’t complete the operation because some data in “untitled folder” can’t be read or written.
    (Error code -36)
    The folder has nothing in it whatsoever.  I just created it.  But if I go to Terminal and I run
    rm -rf "untitled folder"
    This works fine.  Why is Terminal acting different than Finder?  This does not happen on my other Macbooks.  Thanks in advance.

    Thanx for such qucik reply!!! The pages were great, it had an answer for my problem, but unfortunately it also involved me dealing with it only on the MacIntosh HD itself, not on mounted external drive I suppose... So it didn't work they say that there is an icon in the left corner indicating locked folder - I don't see any icon on it. It says you can untick the box to unlock the folder - there is no tick to be unticked. Finally, they say that if I don't have permition or rights I cannot delete it. But how do i change permittion which already says that i can read and write in it? So everything appears to be normal only I cannot delete it. there is not even any warnig telling me I don't have enough rights, it just requires the password and after me typing it in it makes the sound of scraping paper but does nothing more. I aslo had some problems with emptying Trash after being seemingly succesful with one file and had got so far to have them appear in the Trash (no clue how this one actully got there though..) I followd the advice and emptied the Trash with Terminal. The Folder is still there but it shows 0 Kb... So far so good BUT: It is still on the external drive, so I obviously only managed to copy it into the Trash!!! Phew, innit a bit too tight to poor owners, this macbook?? I want my rights back!

  • Report generation failed----​error code:-1720​5; Access Denied.

    Hi, All
        i have a trouble about report generation.it seems the error happened at the "write UUT report"--this step is teststand report generation'DLL.
        detail:
        An error occurred calling 'Save' in 'Report' of 'NI TestStand 2010 SP1 API'
    Access Denied.. Error writing to file 'D:\program\seq\xxx.xml'.
    The file might be open in another application. If file access is intermittently denied, you should try disabling the Microsoft FindFast utility. 
        error code:-17205; Access Denied.
        locationtep 'Write UUT Report' of sequence 'Single Pass' in 'SequentialModel.Seq'
        How to fix it?
        Thanks a lot.
    BR

    Hm, it looks like the file might be open in another application. If you see that file accesss is intermittently denied, you should try disabling the Microsoft FindFast utility.
    CTA, CLA, MTFBWY

  • There was a recent upadate on my PC, however it does not work. A error code comes up which says, min version is not compatible with max version. And I caanot open my browser. Please help.

    I do a system restore which allows me to open my browser. Without this I cannot open my browser - the error code comes up every time.

    Do a clean (re)install
    * Download a fresh Firefox copy from http://www.mozilla.com/firefox/all.html and save the file to the desktop.
    * Uninstall your current Firefox version and remove the Firefox program folder before installing that copy of the Firefox installer.
    * Don't remove personal data when uninstalling.
    * It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    From https://support.mozilla.com/en-US/questions/764376

  • My ipod touch is not list as a device on itunes.  When I tried do update itunes, I get a ox8007054f error code and the update will not complete.

    My ipod touch is not listed as a device when connected to my computer.  As suggested I attempted to download the latest of itunes.  I got an
    ox8007054f error code and the down load will not complete.  I have also tried to restore my computer to an earlier setting, but it will
    not accept the change.

    Have you looked at this completed previos discussion. It discusses 0x8007054F.
    Re: Error message when trying to install iTunes

  • Capturing oracle error codes into a variable

    Hi
    Can someone show me how it is possible to save an Oracle defined error code into a variable? What I am trying to do is when a stored procedure fails an Oracle error is raised, such as ORA-xxxx, then pass this code into variable to be saved into a log.
    How do I achieve this?

    user633278 wrote:
    How do I achieve this?Function SQLCODE in PL/SQL exception handler returns error code. SQLERRM returns message:
    SQL> declare
      2      x number;
      3  begin
      4      x := 1/0;
      5    exception
      6      when others
      7        then
      8          dbms_output.put_line('Error code: ' || SQLCODE);
      9          dbms_output.put_line('Error message: ' || SQLERRM);
    10  end;
    11  /
    Error code: -1476
    Error message: ORA-01476: divisor is equal to zero
    PL/SQL procedure successfully completed.
    SQL> SY.

  • Error Code:942 While Scheduling a report in BI Publisher

    Hi All,
    I am trying to schedule one report in BI Publisher.
    After Clicking Submit Button while scheduling report,i get following error:
    Exception [TOPLINK-4002] (Oracle TopLink - 11g Release 1 (11.1.1.0.0) (Build 080319)): oracle.toplink.exceptions.DatabaseException Internal Exception: java.sql.SQLException: ORA-00942: table or view does not exist Error Code: 942 Call: UPDATE SEQUENCE SET SEQ_COUNT = SEQ_COUNT + 50 WHERE SEQ_NAME = 'JOB_ID_SEQ' Query: DataModifyQuery()
    Kindly Help me in resolving this issue
    Regards
    Amrita Singh

    i know the issue,i can give quick fix, but in-order to make sure you don't get another glitch like this.
    I would recommend, you to install the scheduler in another schema or another db.
    Re-installing the scheduler schema tables will fix this.

  • ORA-00600: internal error code, arguments: [ktsircinfo_num1]

    While taking export of a table received EXP error and while dropping/selecting the same gor ora-600 errors.
    . . exporting table TEST4
    EXP-00003: no storage definition found for segment(29, 371385)
    SQL >Drop table test4 cascade;
    ORA-00600: internal error code, arguments: [ktsircinfo_num1], [29], [29], [371385], [], [], [], []
    sql> Desc test4;
    ORA-00600: internal error code, arguments: [ktsircinfo_num1], [29], [29], [371385], [], [], [], []
    I dont want to log TAR with oracle right now... I tried dropping and recreating Undo tablespace but still did not help much . Database version is 9204

    hi
    read metalink ID - 153788.1
    CHeers

Maybe you are looking for