File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC 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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "DBCP jar files" Watch "DBCP jar files" New topic

DBCP jar files

luri ron
Ranch Hand

Joined: Dec 11, 2008
Posts: 86
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
Similar Threads
Solved : JTDS MSSQL Pagination problem.
Problem creating a dummy web service w/ WS-RM
un caught Exception in spring frame work
Junit with Testsuit error
query a database table using a foreign key ( where) using Hibernate.