2 Replies Latest reply on Aug 11, 2017 2:56 AM by Mansi Mehra

    java.lang.ClassCastException: org.jboss.jca.adapters.jdbc.jdk8.Wrapped

    Mansi Mehra Newbie

      Getting the below Error while running the application. Running the JBOSS 7 server in debug mode. Getting the exception at below line of code.

       

      desc = ArrayDescriptor.createDescriptor(TYP_RESLV_CHG_CODE_TBL, conn);

       

      using ojdbc6 Jar & JDK 8 as existing application is running. Just getting the above error in some of the pages

       

       

      Please Help !

        • 1. Re: java.lang.ClassCastException: org.jboss.jca.adapters.jdbc.jdk8.Wrapped
          Tomaz Cerar Master

          AS7? or EAP7?

           

          how do you access datasource?

          what is full stacktrace?

          what is configuration of datasource

          do you have ojdbc6.jar in you deployment?

          • 2. Re: java.lang.ClassCastException: org.jboss.jca.adapters.jdbc.jdk8.Wrapped
            Mansi Mehra Newbie

            through standalone.xml I am accessing the datasource

            yes I do have a ojdbc6.jar in my deployment

            Below is the configuration. There are other datasource like this:-

            <datasource jta="true" jndi-name="java:/ctmsJaRWDS" pool-name="ctmsJaRWCP" enabled="true" use-ccm="true">

                                <connection-url>jdbc:oracle:thin:@172.19.50.12:1679:dprdt</connection-url>

                                <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>

                                <driver>com.oracle</driver>

                                <security>

                                    <user-name>opctja_web_rw</user-name>

                                    <password>opctja_web_rw</password>

                                </security>

                                <validation>

                                    <valid-connection-checker class-name="org.jboss.jca.adapters.jdbc.extensions.oracle.OracleValidConnectionChecker"/>

                                    <background-validation>true</background-validation>

                                    <stale-connection-checker class-name="org.jboss.jca.adapters.jdbc.extensions.oracle.OracleStaleConnectionChecker"/>

                                    <exception-sorter class-name="org.jboss.jca.adapters.jdbc.extensions.oracle.OracleExceptionSorter"/>

                                </validation>

                            </datasource