Guest User

Untitled

a guest
Feb 15th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.06 KB | None | 0 0
  1. //blargeparam is a blob column.
  2. PreparedStatement pst =connection.prepareStatement("update gcp_processparams_log set blargeparam= ? where idprocessparamslog=1");
  3.  
  4. pst.setBinaryStream(1,inputStream);
  5.  
  6. Exception in thread "main" java.lang.AbstractMethodError:
  7. oracle.jdbc.driver.T2CPreparedStatement.setBinaryStream(ILjava/io/InputStream;)V
  8.  
  9. Manifest-Version: 1.0
  10. Specification-Title: Oracle JDBC driver classes for use with JDK14
  11. Sealed: true
  12. Created-By: 1.4.2_14 (Sun Microsystems Inc.)
  13. Implementation-Title: ojdbc14.jar
  14. Specification-Vendor: Oracle Corporation
  15. Specification-Version: Oracle JDBC Driver version - "10.2.0.4.0"
  16. Implementation-Version: Oracle JDBC Driver version - "10.2.0.4.0"
  17. Implementation-Vendor: Oracle Corporation
  18. Implementation-Time: Sat Feb 2 11:40:29 2008
  19.  
  20. oracle.jdbc.driver.T4CPreparedStatement.setBinaryStream(ILjava/io/InputStream;J)V)
  21.  
  22. InputStream in = new FileInputStream(file);
  23. cstmt.setBinaryStream(1, in,file.length()); // got AbstractMethodError
  24.  
  25. InputStream in = new FileInputStream(file);
  26. cstmt.setBinaryStream(1, in,(int)file.length()); // no problem.
  27.  
  28. InputStream in = new FileInputStream(file);
  29. cstmt.setBinaryStream(1, in,file.length());
  30.  
  31. InputStream in = new FileInputStream(file);
  32. cstmt.setBinaryStream(1, in,(int)file.length());
  33.  
  34. <Resource name="jdbc/myoracle"
  35. auth="Container"
  36. type="javax.sql.DataSource"
  37. driverClassName="oracle.jdbc.OracleDriver"
  38. url="jdbc:oracle:thin:@(DESCRIPTION = ... "
  39. username="****" password="****" maxActive="10" maxIdle="1"
  40. maxWait="-1" removeAbandoned="true"/>
  41.  
  42. <Resource name="jdbc/myoracle"
  43. auth="Container"
  44. factory="org.apache.tomcat.jdbc.pool.DataSourceFactory" type="javax.sql.DataSource"
  45. driverClassName="oracle.jdbc.OracleDriver"
  46. url="jdbc:oracle:thin:@(DESCRIPTION = ... "
  47. username="****" password="****" maxActive="10" maxIdle="1"
  48. maxWait="-1" removeAbandoned="true"/>
Add Comment
Please, Sign In to add comment