Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //blargeparam is a blob column.
- PreparedStatement pst =connection.prepareStatement("update gcp_processparams_log set blargeparam= ? where idprocessparamslog=1");
- pst.setBinaryStream(1,inputStream);
- Exception in thread "main" java.lang.AbstractMethodError:
- oracle.jdbc.driver.T2CPreparedStatement.setBinaryStream(ILjava/io/InputStream;)V
- Manifest-Version: 1.0
- Specification-Title: Oracle JDBC driver classes for use with JDK14
- Sealed: true
- Created-By: 1.4.2_14 (Sun Microsystems Inc.)
- Implementation-Title: ojdbc14.jar
- Specification-Vendor: Oracle Corporation
- Specification-Version: Oracle JDBC Driver version - "10.2.0.4.0"
- Implementation-Version: Oracle JDBC Driver version - "10.2.0.4.0"
- Implementation-Vendor: Oracle Corporation
- Implementation-Time: Sat Feb 2 11:40:29 2008
- oracle.jdbc.driver.T4CPreparedStatement.setBinaryStream(ILjava/io/InputStream;J)V)
- InputStream in = new FileInputStream(file);
- cstmt.setBinaryStream(1, in,file.length()); // got AbstractMethodError
- InputStream in = new FileInputStream(file);
- cstmt.setBinaryStream(1, in,(int)file.length()); // no problem.
- InputStream in = new FileInputStream(file);
- cstmt.setBinaryStream(1, in,file.length());
- InputStream in = new FileInputStream(file);
- cstmt.setBinaryStream(1, in,(int)file.length());
- <Resource name="jdbc/myoracle"
- auth="Container"
- type="javax.sql.DataSource"
- driverClassName="oracle.jdbc.OracleDriver"
- url="jdbc:oracle:thin:@(DESCRIPTION = ... "
- username="****" password="****" maxActive="10" maxIdle="1"
- maxWait="-1" removeAbandoned="true"/>
- <Resource name="jdbc/myoracle"
- auth="Container"
- factory="org.apache.tomcat.jdbc.pool.DataSourceFactory" type="javax.sql.DataSource"
- driverClassName="oracle.jdbc.OracleDriver"
- url="jdbc:oracle:thin:@(DESCRIPTION = ... "
- username="****" password="****" maxActive="10" maxIdle="1"
- maxWait="-1" removeAbandoned="true"/>
Add Comment
Please, Sign In to add comment