1 Reply Latest reply on Aug 5, 2008 11:09 AM by ldecaro

    AbstractMethodError: prepareStatement

    frontline2

      I began to get the error "AbstractMethodError: prepareStatement" when I switched to jboss 4.0.4 (from 4.0.3.sp1).
      I then replaced the jar jboss-common-jdbc-wrapper.jar from the old jboss version, and things started to work again.

      What has changed in these classes (org.jboss.resource.adapter.jdbc.*)? What can I do to work around this issue?
      I'm using spring's SqlQuery/JdbcTemplates.

      A stack trace:
      ---
      javax.resource.spi.ResourceAdapterInternalException: Unexpected error
      at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.broadcastConnectionError(BaseWrapperManagedConnection.java:29
      3)
      at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.connectionError(BaseWrapperManagedConnection.java:273)
      at org.jboss.resource.adapter.jdbc.WrappedConnection.checkException(WrappedConnection.java:553)
      at org.jboss.resource.adapter.jdbc.WrappedConnection.prepareStatement(WrappedConnection.java:191)
      at org.springframework.jdbc.core.PreparedStatementCreatorFactory$PreparedStatementCreatorImpl.createPreparedStatement(Prepare
      dStatementCreatorFactory.java:224)
      at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:471)
      at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:529)
      at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:554)
      at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:595)
      at org.springframework.jdbc.object.SqlQuery.execute(SqlQuery.java:117)
      at org.springframework.jdbc.object.SqlQuery.execute(SqlQuery.java:146)

      ..
      ..
      r code [0]; Error; - nested throwable: (java.lang.AbstractMethodError); nested exception is org.jboss.util.NestedSQLException: Error;
      - nested throwable: (java.lang.AbstractMethodError)
      14:04:28,909 ERROR [STDERR] org.jboss.util.NestedSQLException: Error; - nested throwable: (java.lang.AbstractMethodError)