0 Replies Latest reply on Apr 24, 2007 6:43 AM by mhammam

    ClassCastException: $Proxy60

    mhammam

      Hi all;

      In my application i want to cast WrappedResultSet to OracleResultSet, but doesn't work;

      return (OracleResultSet) resultSetToCast;

      and when the following code before the cast :

      if (resultSetToCast instanceof org.jboss.resource.adapter.jdbc.WrappedResultSet ) {
      try {
      resultSetToCast = ((org.jboss.resource.adapter.jdbc.WrappedResultSet)resultSetToCast).getUnderlyingResultSet();
      } catch (SQLException e) {
      e.printStackTrace();
      }
      }
      and add jboss-common-jdbc-wrapper.jar into lib directory of my application,

      the following error was shown :

      java.lang.ClassCastException: $Proxy60 ....