title: Callable Statement in Java Not Working
body: <p>There appears to be something wrong with my JDBC driver. </p>
  
  <p>I'm attempting to execute the following java code:</p>
  
  <pre><code>String sql = "{call get_samp_stud_no_out (?,?,?)}";
  CallableStatement call = conn.prepareCall(sql);
  call.setInt("objId1", 1);
  call.setInt("objId2", 2);
  call.setInt("objId3", 3);
  ResultSet results = call.executeQuery();
  </code></pre>
  
  <p>And I'm getting:</p>
  
  <pre><code>java.lang.AbstractMethodError: com.sybase.jdbc2.jdbc.SybCallableStatement.setInt(Ljava/lang/String;I)V
  </code></pre>
  
  <p>BTW its a sybase database.
  I have tried both jconn2.jar and jconn3.jar.</p>
  
  <p>And other stored proc which accepts String parameteres:</p>
  
  <pre><code>String sql = "{call get_samp_stud_no_name (?,?,?)}";
      CallableStatement call = conn.prepareCall(sql);
      call.setString("objId1", "nappa");
      call.setString("objId2", "vegeta");
      call.setString("objId3", "frieza");
      ResultSet results = call.executeQuery();
  </code></pre>
  
  <p>And the exception for this is:</p>
  
  <pre><code>Exception in thread "main" java.lang.AbstractMethodError: com.sybase.jdbc2.jdbc.SybCallableStatement.setString(Ljava/lang/String;Ljava/lang/String;)V
  </code></pre>