4 Replies Latest reply on Feb 26, 2014 10:42 AM by ofbiz brazil

    JBoss 7.2 using JTDS gives java.lang.AbstractMethodError on setBinaryStream

    Alexander Hartner Expert

      Moving from JBoss 7.1.3 which gave us logging issues we now on 7.2. Using the same database, data source configuration and application we now getting the following exception. I suspect the problem is with Hibernate selecting the correct level to match our driver. We are using JTDS 1.3.1 which is supposed to support JDBC 4.

       

      JBWEB000236: Servlet.service() for servlet thunderhead threw

      exception: java.lang.AbstractMethodError

              at net.sourceforge.jtds.jdbcx.proxy.PreparedStatementProxy.setBinaryStream(PreparedStatementProxy.java:721)

              at org.jboss.jca.adapters.jdbc.WrappedPreparedStatement.setBinaryStream(WrappedPreparedStatement.java:1331)

              at org.hibernate.type.descriptor.sql.BlobTypeDescriptor$4$1.doBind(BlobTypeDescriptor.java:163) [hibernate-core-4.2.0.CR1.jar:4.2.0.CR1]

              at org.hibernate.type.descriptor.sql.BlobTypeDescriptor$1$1.doBind(BlobTypeDescriptor.java:86) [hibernate-core-4.2.0.CR1.jar:4.2.0.CR1]

              at org.hibernate.type.descriptor.sql.BasicBinder.bind(BasicBinder.java:92) [hibernate-core-4.2.0.CR1.jar:4.2.0.CR1]

              at org.hibernate.type.AbstractStandardBasicType.nullSafeSet(AbstractStandardBasicType.java:280) [hibernate-core-4.2.0.CR1.jar:4.2.0.CR1]

              at org.hibernate.type.AbstractStandardBasicType.nullSafeSet(AbstractStandardBasicType.java:275) [hibernate-core-4.2.0.CR1.jar:4.2.0.CR1]

              at org.hibernate.type.AbstractSingleColumnStandardBasicType.nullSafeSet(AbstractSingleColumnStandardBasicType.java:57) [hibernate-core-4.2.0.CR1.jar:4.2.0.CR1]

       

      Any pointers on what I need to configure to get JBoss 7.2.0 to work as JBoss 7.1.3 does. Currently I am faced with the options of either not being able to log (7.1.3) or not being able to persist my entities (7.2.0).

       

      Thanks in advance.