File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
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 agree. Here's the link:
subject: DBCP jar files
jQuery in Action, 3rd edition