Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ClassCastException

 
Candy Bortniker
Ranch Hand
Posts: 123
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am getting this error ClassCastException: AccountFrame$AccountTransaction. What am I doing wrong?
 
Maulin Vasavada
Ranch Hand
Posts: 1873
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Candy
Try to know what object exactly you are getting in the vector as an element via,
System.out.println(transact.elementAt(i).getClass().getName());
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...
Regards
Maulin
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic