File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes ClassCastException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "ClassCastException" Watch "ClassCastException" New topic


Candy Bortniker
Ranch Hand

Joined: Mar 17, 2003
Posts: 123
I am getting this error ClassCastException: AccountFrame$AccountTransaction. What am I doing wrong?
Maulin Vasavada
Ranch Hand

Joined: Nov 04, 2001
Posts: 1873
Hi Candy
Try to know what object exactly you are getting in the vector as an element via,
and then see if it is really of the type you are looking for. If not then what did cause it to be of different type...
I agree. Here's the link:
subject: ClassCastException
It's not a secret anymore!