Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to solve this Exception

 
srikanth pidikiti
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Servlet execution threw an exception


root cause

java.lang.OutOfMemoryError: Java heap space


note The full stack trace of the root cause is available in the Apache Tomcat/5.0.30 logs.


--------------------------------------------------------------------------------

Apache Tomcat/5.0.30
 
Jan Groth
Ranch Hand
Posts: 456
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
looks like you got a memory leak somewhere. i think it's you user controler, which is invoked from loginUser.jsp. Probably you are creating new DataTransactionProxies in an endless loop. just use TransactionAwareProxyFactory() instead, then everything should work fine, the factory will take responsibility of the creation process.

no, seriously - what are you expection people to answer here? your - not so advanced - question is of the type "my car makes strange sounds. how can i fix it?".

try to inspect your code, figure out who is calling whom and debug systematicaly. with eclipse IDE you can set breakpoints on jsps, see what objects are created and where your (most likely) endless loop is...

;-)

best regards,
jan
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic