1 Reply Latest reply on Mar 9, 2012 10:05 AM by Peter Johnson

    Stackoverflow Error

    Neetha Lokanath Newbie

      Hi There,

       

      Our application is deployed  jboss-4.2.2.GA version. Recently the application users started getting 500 internal Server Error intermittently. When digged in the application server.log found the below error

       

      2012-03-07 13:15:46,560 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/codex].[rest]] Servlet.service() for servlet rest threw exception

      1. java.lang.StackOverflowError

              at java.util.Hashtable.get(Unknown Source)

              at org.apache.log4j.Hierarchy.getLogger(Hierarchy.java:268)

              at org.apache.log4j.Hierarchy.getLogger(Hierarchy.java:242)

              at org.apache.log4j.LogManager.getLogger(LogManager.java:188)

              at org.apache.log4j.Logger.getLogger(Logger.java:117)

              at net.sf.beanlib.provider.replicator.ReplicatorTemplate.<init>(ReplicatorTemplate.java:46)

              at net.sf.beanlib.provider.BeanTransformer.<init>(BeanTransformer.java:162)

              at net.sf.beanlib.provider.BeanPopulator.<init>(BeanPopulator.java:131)

              at net.sf.beanlib.provider.BeanPopulator$Factory.newBeanPopulator(BeanPopulator.java:120)

              at net.sf.beanlib.provider.BeanPopulator$Factory.newBeanPopulator(BeanPopulator.java:109)

              at net.sf.beanlib.provider.replicator.ReplicatorTemplate.populateBean(ReplicatorTemplate.java:190)

              at net.sf.beanlib.provider.replicator.BeanReplicator.replicateBean(BeanReplicator.java:187)

              at net.sf.beanlib.hibernate3.Hibernate3JavaBeanReplicator.replicateBean(Hibernate3JavaBeanReplicator.java:71)

              at net.sf.beanlib.provider.replicator.ReplicatorTemplate.replicateByBeanReplicatable(ReplicatorTemplate.java:140)

              at net.sf.beanlib.provider.replicator.ReplicatorTemplate.replicate(ReplicatorTemplate.java:135)

              at net.sf.beanlib.provider.BeanTransformer.transform(BeanTransformer.java:231)

              at net.sf.beanlib.provider.BeanPopulator.doit(BeanPopulator.java:201)

              at net.sf.beanlib.provider.BeanPopulator.processSetterMethod(BeanPopulator.java:172)

              at net.sf.beanlib.provider.BeanPopulator.populate(BeanPopulator.java:269)

              at net.sf.beanlib.provider.replicator.ReplicatorTemplate.populateBean(ReplicatorTemplate.java:190)

              at net.sf.beanlib.provider.replicator.BeanReplicator.replicateBean(BeanReplicator.java:187)

              at net.sf.beanlib.hibernate3.Hibernate3JavaBeanReplicator.replicateBean(Hibernate3JavaBeanReplicator.java:71)…………………………………………………………..

       

       

      Please suggest the possible solution for this.

      Thank yo in Advance !

        • 1. Re: Stackoverflow Error
          Peter Johnson Master

          A stack overflow usually means that there is an infinite recursive loop in the code somewhere.  There has to be more to the stack trace than this, look at the rest of the trace and see where the method calls start repeating. That group of methods is what you want to look, usually the first method in the group. Based on what you posted, I would look at at net.sf.beanlib.provider.replicator.ReplicatorTemplate.populateBean(ReplicatorTemplate.java:190) first.