• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Connection is not a wrapper connection error -JDBC

 
Swapnika Mishra
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am getting the below error in my console, using JDK 1.7. Can you please help.
java.lang.AbstractMethodError: org.apache.commons.dbcp.PoolableConnection.isWrapperFor(Ljava/lang/Class;)Z at com.vzb.mss.signaturetool.util.ObjectArrayTypeHandler.setParameter(ObjectArrayTypeHandler.java:67)

Its throwing an error at the below line in the code,

if (conn != null && conn.isWrapperFor(OracleConnection.class)){
LOGGER.info("connection is a wrapper for Oracle Connection");
OracleConnection oconn= conn.unwrap(OracleConnection.class);


<Resource auth="Container" driverClassName="oracle.jdbc.OracleDriver"
factory="com.vzb.mss.commons.dbcp.MSSDataSourceFactory" logAbandoned="true"
maxActive="30" maxIdle="5" maxWait="10000" name="jdbc/ocdb_db"
password="dRSgUMeoLaHUpNCgpJ1kdA==" removeAbandoned="true"
removeAbandonedTimeout="30" type="javax.sql.DataSource"
url="jdbcracle:thin:@123.45.23.45:1521:testdb" username="test"
validationQuery="select * from dual" />

Thanks,
Swapnika.

 
Luke Leber
Ranch Hand
Posts: 69
2
C++ Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As a first step in debugging, I would suggest that you "clean" your project (or the equivalent operation in your IDE) and reinstall any suspect dependent libraries to make sure that binary incompatibility is not a factor. Generally that exception should be caught prevented at compile-time (unless you're doing some bad mojo with the instrumentation API or some other dark operations).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic