0 Replies Latest reply on Mar 7, 2012 2:47 AM by Janakiraman Elangovan

    ERROR in JBOSS 6 : java.lang.ClassCastException: oracle.jdbc.driver.OracleResultSetImpl cannot be cast to oracle.jdbc.OracleResultSet

    Janakiraman Elangovan Newbie

      Hi,

       

      Am doing the jboss migration from 4 to 6.1.0-Final version.

       

      Hence the application deployed successfully.

       

      But am facing an error while proceed the one of the link in the application.

       

      When i click the link it throws an error as

       

      2012-03-07 10:50:25,451 INFO  [STDOUT] (http-127.0.0.1-8080-2) 2012-03-07 10:50:25,451 ( RecordManagerDAOOracle.java: 141) - Exception Thrown:

      2012-03-07 10:50:25,451 INFO  [STDOUT] (http-127.0.0.1-8080-2) java.lang.ClassCastException: oracle.jdbc.driver.OracleResultSetImpl cannot be cast to oracle.jdbc.OracleResultSet

      2012-03-07 10:50:25,451 INFO  [STDOUT] (http-127.0.0.1-8080-2)     at com.questdiagnostics.power.recordmanager.dao.RecordManagerDAOOracle.getRecord(RecordManagerDAOOracle.java:129)

      2012-03-07 10:50:25,451 INFO  [STDOUT] (http-127.0.0.1-8080-2)     at com.questdiagnostics.power.recordmanager.client.RecordManagerClient.getRecord(RecordManagerClient.java:26)

      2012-03-07 10:50:25,451 INFO  [STDOUT] (http-127.0.0.1-8080-2)     at com.questdiagnostics.power.controller.actions.EditAccessionAction.execute(EditAccessionAction.java:40)

      2012-03-07 10:50:25,451 INFO  [STDOUT] (http-127.0.0.1-8080-2)     at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)

      2012-03-07 10:50:25,451 INFO  [STDOUT] (http-127.0.0.1-8080-2)     at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)

      2012-03-07 10:50:25,451 INFO  [STDOUT] (http-127.0.0.1-8080-2)     at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)

      2012-03-07 10:50:25,451 INFO  [STDOUT] (http-127.0.0.1-8080-2)     at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)

      2012-03-07 10:50:25,451 INFO  [STDOUT] (http-127.0.0.1-8080-2)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)

      2012-03-07 10:50:25,451 INFO  [STDOUT] (http-127.0.0.1-8080-2)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

      2012-03-07 10:50:25,451 INFO  [STDOUT] (http-127.0.0.1-8080-2)     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324)

      2012-03-07 10:50:25,451 INFO  [STDOUT] (http-127.0.0.1-8080-2)     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)

      2012-03-07 10:50:25,451 INFO  [STDOUT] (http-127.0.0.1-8080-2)     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)

      2012-03-07 10:50:25,451 INFO  [STDOUT] (http-127.0.0.1-8080-2)     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)

      2012-03-07 10:50:25,451 INFO  [STDOUT] (http-127.0.0.1-8080-2)     at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181)

      2012-03-07 10:50:25,451 INFO  [STDOUT] (http-127.0.0.1-8080-2)     at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:593)

      2012-03-07 10:50:25,451 INFO  [STDOUT] (http-127.0.0.1-8080-2)     at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285)

      2012-03-07 10:50:25,451 INFO  [STDOUT] (http-127.0.0.1-8080-2)     at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261)

      2012-03-07 10:50:25,451 INFO  [STDOUT] (http-127.0.0.1-8080-2)     at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88)

      2012-03-07 10:50:25,451 INFO  [STDOUT] (http-127.0.0.1-8080-2)     at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100)

      2012-03-07 10:50:25,451 INFO  [STDOUT] (http-127.0.0.1-8080-2)     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:159)

      2012-03-07 10:50:25,451 INFO  [STDOUT] (http-127.0.0.1-8080-2)     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

      2012-03-07 10:50:25,451 INFO  [STDOUT] (http-127.0.0.1-8080-2)     at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)

      2012-03-07 10:50:25,467 INFO  [STDOUT] (http-127.0.0.1-8080-2)     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

      2012-03-07 10:50:25,467 INFO  [STDOUT] (http-127.0.0.1-8080-2)     at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53)

      2012-03-07 10:50:25,467 INFO  [STDOUT] (http-127.0.0.1-8080-2)     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)

      2012-03-07 10:50:25,467 INFO  [STDOUT] (http-127.0.0.1-8080-2)     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)

      2012-03-07 10:50:25,467 INFO  [STDOUT] (http-127.0.0.1-8080-2)     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:654)

      2012-03-07 10:50:25,467 INFO  [STDOUT] (http-127.0.0.1-8080-2)     at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951)

      2012-03-07 10:50:25,467 INFO  [STDOUT] (http-127.0.0.1-8080-2)     at java.lang.Thread.run(Thread.java:619)

      2012-03-07 10:50:26,996 INFO  [STDOUT] (http-127.0.0.1-8080-2) 2012-03-07 10:50:26,996 (    RecordManagerClient.java:  28) - Exception Thrown:

      2012-03-07 10:50:26,996 INFO  [STDOUT] (http-127.0.0.1-8080-2) com.questdiagnostics.power.recordmanager.dao.RecordManagerDAOException: oracle.jdbc.driver.OracleResultSetImpl cannot be cast to oracle.jdbc.OracleResultSet

      2012-03-07 10:50:26,996 INFO  [STDOUT] (http-127.0.0.1-8080-2)     at com.questdiagnostics.power.recordmanager.dao.RecordManagerDAOOracle.getRecord(RecordManagerDAOOracle.java:142)

      2012-03-07 10:50:26,996 INFO  [STDOUT] (http-127.0.0.1-8080-2)     at com.questdiagnostics.power.recordmanager.client.RecordManagerClient.getRecord(RecordManagerClient.java:26)

      2012-03-07 10:50:26,996 INFO  [STDOUT] (http-127.0.0.1-8080-2)     at com.questdiagnostics.power.controller.actions.EditAccessionAction.execute(EditAccessionAction.java:40)

      2012-03-07 10:50:26,996 INFO  [STDOUT] (http-127.0.0.1-8080-2)     at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)

      2012-03-07 10:50:26,996 INFO  [STDOUT] (http-127.0.0.1-8080-2)     at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)

      2012-03-07 10:50:26,996 INFO  [STDOUT] (http-127.0.0.1-8080-2)     at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)

      2012-03-07 10:50:26,996 INFO  [STDOUT] (http-127.0.0.1-8080-2)     at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)

      2012-03-07 10:50:26,996 INFO  [STDOUT] (http-127.0.0.1-8080-2)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)

      2012-03-07 10:50:26,996 INFO  [STDOUT] (http-127.0.0.1-8080-2)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

      2012-03-07 10:50:26,996 INFO  [STDOUT] (http-127.0.0.1-8080-2)     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324)

      2012-03-07 10:50:26,996 INFO  [STDOUT] (http-127.0.0.1-8080-2)     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)

      2012-03-07 10:50:26,996 INFO  [STDOUT] (http-127.0.0.1-8080-2)     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)

      2012-03-07 10:50:26,996 INFO  [STDOUT] (http-127.0.0.1-8080-2)     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)

      2012-03-07 10:50:26,996 INFO  [STDOUT] (http-127.0.0.1-8080-2)     at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181)

      2012-03-07 10:50:26,996 INFO  [STDOUT] (http-127.0.0.1-8080-2)     at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:593)

      2012-03-07 10:50:26,996 INFO  [STDOUT] (http-127.0.0.1-8080-2)     at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285)

      2012-03-07 10:50:26,996 INFO  [STDOUT] (http-127.0.0.1-8080-2)     at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261)

      2012-03-07 10:50:26,996 INFO  [STDOUT] (http-127.0.0.1-8080-2)     at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88)

      2012-03-07 10:50:26,996 INFO  [STDOUT] (http-127.0.0.1-8080-2)     at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100)

      2012-03-07 10:50:26,996 INFO  [STDOUT] (http-127.0.0.1-8080-2)     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:159)

      2012-03-07 10:50:26,996 INFO  [STDOUT] (http-127.0.0.1-8080-2)     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

      2012-03-07 10:50:26,996 INFO  [STDOUT] (http-127.0.0.1-8080-2)     at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)

      2012-03-07 10:50:26,996 INFO  [STDOUT] (http-127.0.0.1-8080-2)     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

      2012-03-07 10:50:26,996 INFO  [STDOUT] (http-127.0.0.1-8080-2)     at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53)

      2012-03-07 10:50:26,996 INFO  [STDOUT] (http-127.0.0.1-8080-2)     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)

      2012-03-07 10:50:26,996 INFO  [STDOUT] (http-127.0.0.1-8080-2)     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)

      2012-03-07 10:50:27,011 INFO  [STDOUT] (http-127.0.0.1-8080-2)     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:654)

      2012-03-07 10:50:27,011 INFO  [STDOUT] (http-127.0.0.1-8080-2)     at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951)

      2012-03-07 10:50:27,011 INFO  [STDOUT] (http-127.0.0.1-8080-2)     at java.lang.Thread.run(Thread.java:619)

      2012-03-07 10:50:27,011 INFO  [STDOUT] (http-127.0.0.1-8080-2) 2012-03-07 10:50:27,011 (    EditAccessionAction.java:  46) - Exception Thrown:

      2012-03-07 10:50:27,011 INFO  [STDOUT] (http-127.0.0.1-8080-2) com.questdiagnostics.power.recordmanager.client.RecordManagerClientException: oracle.jdbc.driver.OracleResultSetImpl cannot be cast to oracle.jdbc.OracleResultSet

      2012-03-07 10:50:27,011 INFO  [STDOUT] (http-127.0.0.1-8080-2)     at com.questdiagnostics.power.recordmanager.client.RecordManagerClient.getRecord(RecordManagerClient.java:29)

       

      am using jdk 1.6.0_16,ojdbc14.jar

       

      well the same ear file  i deployed in jboss 5.0-GA version it deploy successfully.

       

      I tried to proceed the same link and hence it works with out an error .

       

      Also i have tried with ojdbc6.jar it throws an same error.

       

      Kindly suggest any jar version is not supports or anyother issue.

       

      Thanka & Regards,

      Janakiraman E