This week's book giveaway is in the Server-Side JavaScript and NodeJS forum.
We're giving away four copies of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques and have Mario Casciaro & Luciano Mammino on-line!
See this thread for details.
Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

java.lang.AbstractMethodError

 
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi all,
am getting this below error when trying to use the setBinaryStream method.

SEVERE: StandardWrapperValve[EDPServlet]: PWC1406: Servlet.service() for servlet EDPServlet threw exception
java.lang.AbstractMethodError: oracle.jdbc.driver.OraclePreparedStatement.setBinaryStream(ILjava/io/InputStream;)V




my environment :

CLASSPATH=.;C:\oracle\ora92\jdbc\lib\ojdbc14.jar;

database version : 11.1.0.7

Driver name: Oracle JDBC driver
Driver version: 9.2.0.1.0

App server : glassfish v3 Prelude
java version : 1.6



thanks in advance.

 
Ranch Hand
Posts: 161
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

CLASSPATH=.;C:\oracle\ora92\jdbc\lib\ojdbc14.jar;




the setBinaryStream() was 'invented' in JDBC 4 specification, which comes with java 1.6

the oracle ojdbc14.jar is targeting java 1.4, that implements JDBC 2.1 spec.

So you need to (get and) use ojdbc16.jar in the classpath instead.

see also:

http://www.oracle.com/technology/tech/java/sqlj_jdbc/htdocs/jdbc_faq.html

http://onjava.com/onjava/2006/08/02/jjdbc-4-enhancements-in-java-se-6.html
 
nikil shar
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hey that worked. i downloaded 'ojdbc5.jar' and included it in my classpath and it worked.

thanks a lot for your help.
reply
    Bookmark Topic Watch Topic
  • New Topic