• Post Reply Bookmark Topic Watch Topic
  • New Topic

Fatal error message (JspFactoryImpl) every few hours...  RSS feed

 
Renato Losio
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys.

Keeping a long story short, filtering the logs, I have a recurrent error message but I can't replicate the problem through functional testing.
Every few hours, I have a StackOverflowError:

01:43:45,711 FATAL [JspFactoryImpl] Exception initializing page context
java.lang.StackOverflowError
01:44:32,433 FATAL [JspFactoryImpl] Exception initializing page context
java.lang.StackOverflowError
01:44:40,485 FATAL [JspFactoryImpl] Exception initializing page context
java.lang.StackOverflowError
02:43:09,371 FATAL [JspFactoryImpl] Exception initializing page context
java.lang.StackOverflowError
04:42:51,765 FATAL [JspFactoryImpl] Exception initializing page context
java.lang.StackOverflowError

Most of the time (but not all the time!) you have something like:

2006-04-21 01:19:05,953 DEBUG [org.jboss.resource.connectionmanager.IdleRemover] run: IdleRemover notifying pools, interval: 30000
2006-04-21 01:19:29,067 INFO [STDOUT] SessionCreateAction: C20F9C32554C88513FD1BE338EBE7655
2006-04-21 01:19:29,797 FATAL [org.apache.jasper.runtime.JspFactoryImpl] Exception initializing page context
java.lang.StackOverflowError
2006-04-21 01:19:35,963 DEBUG [org.jboss.resource.connectionmanager.IdleRemover] run: IdleRemover notifying pools, interval: 30000

It's a struts application (jsp + servlets + ejb) running on JBoss 3.2.7 on a Linux box (Red Hat 9). Any idea where to start? Just wondering what's the most likely answer:

1 - Recursive call or infinite loop in a jsp page. Maybe a condition that is unlikely to happen?

2 - Hard to tell, the problem may be in the model behind or any other place in the code.

3 - Configuration settings

4 - The error message has nothing to do with my code.

Every few days (usually 10 to 15) the server hangs and I have to restart it. Still not sure if the two problems are related.

Thanks,

Renato
 
Seth Anshul
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
StackOverflow can occur due to number of reasons.
One solution is to check whether the code is going thro. infinite loop.
If not, then try to increase the size of Java Stacks(start with twofold).
Modify -Xss and -Xoss parameters, and then retry.

Asset
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Seth Anshul:
One solution is to check whether the code is going thro. infinite loop.


In particular, look for recursive loops where each iteration adds a new function call to the stack.
 
Renato Losio
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the inputs, I will give them a try and let you know.

Cheers,

Renato
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!