• Post Reply Bookmark Topic Watch Topic
  • New Topic

class cast exception

 
Rafael Fagundes
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello!

Well, I'm getting java.lang.ClassCastException: java.lang.String error when trying to access a page on my system. It�s strange because when i visit this page for the first time nothing happens. But if i navigate for while and redirect to "the page", this error occurs.

A time this error appeared when i created a session variable two times, with different names....

PS:
Browser feedback:

java.lang.ClassCastException: java.lang.String
at org.apache.jsp.ConsultaSolicitacoes_jsp._jspService(ConsultaSolicitacoes_jsp.java:74)

Servlet:

ns = (YYY.NucleoSolucionador) _jspx_page_context.getAttribute("ns", PageContext.SESSION_SCOPE);

Thank�s for your attention,
Rafael.

Sorry for my bad english....
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24213
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please don't post the same question in multiple forums -- it just wastes people's time. I already posted an answer here, but I've now closed that thread.
 
Rafael Fagundes
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, no problem!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!