Issue Details (XML | Word | Printable)

Key: DBCP-143
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Andreas Krüger
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Commons Dbcp

[dbcp] SQLNestedException thrown by server causes client ClassNotFoundException.

Created: 20/Oct/05 08:18 PM   Updated: Today 08:00 PM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: 2.0

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works DBCP-143.patch 2007-07-23 10:54 PM Dain Sundstrom 24 kB
Environment:
Operating System: other
Platform: Other
Issue Links:
Reference
 

Bugzilla Id: 37181


 Description  « Hide
This is a GUI client / application server / database server application.

On the GUI client side, we see java.lang.ClassNotFoundException:
org.apache.commons.dbcp.SQLNestedException.

This happens when the database server is down, DBCP cannot connect to the
database, and throws a org.apache.commons.dbcp.SQLNestedException.

Our application server code sends the java.sql.SQLException it sees to the
client via RMI.

However, on the client, we have not provided commons-dbcp.jar.

And I don't think we should - DBCP is server code.

But, when the client does not have SQLNestedException's class file, the attempt
to de-serialize it results in the ClassNotFoundException we've been seeing.

Even old http://java.sun.com/j2se/1.3/docs/api/java/sql/SQLException.html has
the facilities that SQLNestedExcepion offers: It is able to chain another
SQLException to itself. So while SQLNestedException clearly causes problems, I
don't understand what DBCP gains from it.

What would we loose if it were scratched?



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Henri Yandell made changes - 16/May/06 10:01 AM
Field Original Value New Value
issue.field.bugzillaimportkey 37181 12342650
Henri Yandell made changes - 16/May/06 11:28 AM
Component/s Dbcp [ 12311109 ]
Assignee Jakarta Commons Developers Mailing List [ commons-dev@jakarta.apache.org ]
Key COM-2498 DBCP-143
Affects Version/s unspecified [ 12311647 ]
Project Commons [ 12310458 ] Commons Dbcp [ 12310469 ]
Phil Steitz made changes - 10/Jul/06 12:27 PM
Fix Version/s 1.3 [ 12311977 ]
Bugzilla Id 37181
Dain Sundstrom made changes - 23/Jul/07 10:54 PM
Attachment DBCP-143.patch [ 12362384 ]
Dain Sundstrom made changes - 24/Jul/07 05:27 PM
Fix Version/s 1.4 [ 12312615 ]
Fix Version/s 1.3 [ 12311977 ]
Mark Thomas made changes - 15/Mar/09 10:20 PM
Fix Version/s 1.4 [ 12312615 ]
Fix Version/s 2.0 [ 12313721 ]
Niall Pemberton made changes - 28/Nov/09 08:00 PM
Link This issue relates to DBCP-310 [ DBCP-310 ]