This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes classcastexception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "classcastexception" Watch "classcastexception" New topic


kelly devon
Ranch Hand

Joined: Apr 15, 2004
Posts: 75
am having a classcastexception, i know why i am. i caught it but cant get my code to delete a record in the database for me any ideas will be welcomed.could it be my logic?
here is a fragment of the code

[ September 27, 2005: Message edited by: Michael Ernest ]

Michael Ernest
High Plains Drifter

Joined: Oct 25, 2000
Posts: 7292

If the exception gets thrown before you reach the logic that deletes a record, catching the exception makes no difference. You need to figure out first where the exception occurs, and remove it so your method can run to completion.

Make visible what, without you, might perhaps never have been seen.
- Robert Bresson
It is sorta covered in the JavaRanch Style Guide.
subject: classcastexception
Similar Threads
Simple Accept / Reject Dialog refuses to work
Jdialog not getting focused in IE9
joptionpane problems
requestFocus() is not working across applications
Custom Dialog - please help