• Post Reply Bookmark Topic Watch Topic
  • New Topic

StackOverflowError  RSS feed

 
Dave Kinkead
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've recently moved code from a JSP to a servlet and am now getting the above error.
Code is below.
the servelt**************

Previously the getAllCruises() call was in the JSP and it worked fine, but now that I am trying to write it to the Request object, my stack explodes!! why why why when the vector is only 7 objects long. What can I do to prevent this happening.
Thanks
Dave
 
Dave Kinkead
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A bit more info
The server log says
End of init
java.lang.StackOverflowError at
server.servlets.Request<init>
server.servlets.HttpReqest<init>
so I'm guessing the problem is writing to the Request object but having never encountered this Error before I'm stumped
 
Dave Kinkead
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Solved this one....
The calling jsp was calling "\Modify" instead of "/Modify"
I have no idea why this blew the stack and even initiated the Modify servlet though!?!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!