title: java.lang.AbstractMethodError: org.jboss.resource.adapter.jdbc.jdk5.WrappedConnectionJDK5.createBlob()Ljava/sql/Blob;
body: <p>I have a problem, I have a web application hosted on a JBoss 5.1.0.GA and in which we are using Oracle11g as database server.</p>
  
  <p>When trying to store a Blob in a field in a table DB using a PreparedStatement gives me this error</p>
  
  <pre><code>java.lang.AbstractMethodError: org.jboss.resource.adapter.jdbc.jdk5.WrappedConnectionJDK5.createBlob()Ljava/sql/Blob;
  </code></pre>
  
  <p>in line </p>
  
  <pre><code>Blob bl = pstmt.getConnection().createBlob();
  </code></pre>
  
  <p>The code I use is this, bob is a byte[]:</p>
  
  <pre><code> if (this.conexion.isOracle()) {
          Blob bl = pstmt.getConnection().createBlob();
          bl.setBytes(1,bob);
          pstmt.setBlob(indice++, bl);
  
      } else {
          pstmt.setBytes(indice++, bob);
      }
  </code></pre>
  
  <p>In the Jboss I have the ojdbc6.jar driver and the code is also compiled with that jar.
  The version of jdk installed on my computer is 1.6.0_32</p>
  
  <p>You know what might be causing this error? You might have to do with using that version of JBoss?</p>
  
  <p>Because the class that references the error is in the org.jboss.jbossas jar: jboss-as-connector: 5.1.0.GA: jar, but within the server is not.</p>
  
  <p>A test I did was descargarme version 6.1 of the jar, if it contains the implementation of createBlob method, and I got in my JBoss but the error remains the same.</p>
  
  <p>thank you very much,
  a greeting,</p>