This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes DBCP jar files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "DBCP jar files" Watch "DBCP jar files" New topic

DBCP jar files

luri ron
Ranch Hand

Joined: Dec 11, 2008
Posts: 87
I got the following error when I used the setAsciiStream on the PreparedStatement. Did I miss any DBCP jar file? I use Sybase JDBC driver and the DBCP to connect to the database. thanks.

java.lang.AbstractMethodError: org.apache.commons.dbcp.DelegatingCallableStatement.setAsciiStream(ILjava/io/InputStream;)V
at com.bgc.core.db.SimpleDBHandlerTest.testXMLText(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at org.junit.internal.runners.TestMethodRunner.executeMethodBody(
at org.junit.internal.runners.TestMethodRunner.runUnprotected(
at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(
at org.junit.internal.runners.TestMethodRunner.runMethod(
at org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(
at org.junit.internal.runners.TestClassRunner$1.runUnprotected(
at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458

Your classpath is polluted with different versions of DBCP.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: DBCP jar files
It's not a secret anymore!