• Post Reply Bookmark Topic Watch Topic
  • New Topic

iPlanet FastTrack 4.1 - Casting Crashes Servlet  RSS feed

 
ben rowe
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I recently installed iPlanet 4.1 Web Server. My servlet was working fine before but now it crashes. I traced the crash to a statement
CartItem ci = (CartItem)ShoppingCart.elementAt(x);
CartItem is a class I made for objects to be stored in the Vector ShoppingCart, which is stored in an HttpSession.
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


CartItem is a class I made for objects to be stored in the Vector ShoppingCart

hmm...isin't it true that you can store any type of
Objects in a Vector. In other words, all the elements
in your Vector need not necessarily be CartItems.
You might want to see what you are adding to the
ShoppingCart...
regds.
- satya
ps:
Oh! maybe the user added his/her discount coupon to the
ShoppingCart......
sorry! couldn't resist.....
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!