Menu

#373 org.apache.commons.dbcp.DelegatingPreparedStatement cannot be cast to oracle.jdbc.OraclePreparedStatement

v2.5.*
pending
None
(not fixed)
5
2016-04-17
2015-10-01
shpelda2
No

When configured oracle connection, i got a classcast exception.
Fixed by extracting the delegate.

org.apache.commons.dbcp.DelegatingPreparedStatement cannot be cast to oracle.jdbc.OraclePreparedStatement

Both stack and fixed class attached.

2 Attachments

Discussion

  • Jeff Jensen

    Jeff Jensen - 2015-10-10

    Thanks for reporting the issue and providing a fix.

    In the changes, org.apache.commons.dbcp.DelegatingPreparedStatement is not in the current set of dbUnit dependencies. Is it part of your test setup? As is, we can't apply this.

    Please let me know your setup and next suggestions.

     
  • Jeff Jensen

    Jeff Jensen - 2015-10-10
    • status: open --> pending
    • assigned_to: Jeff Jensen
     
  • Jeff Jensen

    Jeff Jensen - 2016-04-17

    If you are interested, please provide a test(s) and patch.

     

Log in to post a comment.