5 Replies Latest reply on Dec 11, 2014 5:39 AM by Arun Kumar

    org.jboss.resource.adapter.jdbc.jdk5.WrappedConnectionJDK5.isValid(I)Z

    Arun Kumar Newbie

      Hi All,

       

      I am facing below Exception. After getting connection from JNDI mysql-ds.xml and i am trying to validate the connection with below code.In standalone its working fine.

       

      Sample Code:

       

      conn=dataSource.getConnection();

        if(conn==null || !conn.isValid(1)){

             System.out.println("Invalid connection");

             ConnectionPool1.init();

             }else{

             System.out.println("Valid connection");

           }

       

      Exception:

      java.lang.AbstractMethodError: org.jboss.resource.adapter.jdbc.jdk5.WrappedConnectionJDK5.isValid(I)Z

       

      Regards,

      Arun Kumar.D.V.