Announcement Announcement Module
Collapse
No announcement yet.
My App and Spring Insight Cant Run Together Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • My App and Spring Insight Cant Run Together

    Hello,

    I am having trouble running my App on the same server as Spring Insight. When Spring Insight is disabled in the STS server preferences and doesn't start up, my App deploys fine and runs fine, but when I enable Spring Insight and they try to startup together on the same server it blows up and I get the folowing exception:

    Code:
    INFO: Starting service Catalina
    May 13, 2010 5:34:34 PM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: SpringSource tc Server/6.0.20.C
    May 13, 2010 5:34:41 PM org.apache.catalina.core.StandardContext addApplicationListener
    INFO: The listener "org.springframework.web.context.ContextLoaderListener" is already configured for this context. The duplicate definition has been ignored.
    May 13, 2010 5:34:46 PM org.apache.catalina.core.StandardContext listenerStart
    SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
    java.lang.StackOverflowError
    	at java.lang.reflect.Method.copy(Unknown Source)
    	at java.lang.reflect.ReflectAccess.copyMethod(Unknown Source)
    	at sun.reflect.ReflectionFactory.copyMethod(Unknown Source)
    	at java.lang.Class.searchMethods(Unknown Source)
    	at java.lang.Class.getMethod0(Unknown Source)
    	at java.lang.Class.getMethod(Unknown Source)
    	at org.apache.commons.logging.LogFactory.directGetContextClassLoader(LogFactory.java:896)
    	at org.apache.commons.logging.LogFactory$1.run(LogFactory.java:862)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at org.apache.commons.logging.LogFactory.getContextClassLoaderInternal(LogFactory.java:859)
    	at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:423)
    	at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:704)
    	at org.perf4j.commonslog.CommonsLogStopWatch.<init>(CommonsLogStopWatch.java:65)
    	at com.company.rcs.core.profile.TimerAspect.proceed(TimerAspect.java:48)
    	at org.perf4j.StopWatch.getElapsedTime(StopWatch.java:112)
    	at org.perf4j.StopWatch.toString_aroundBody28(StopWatch.java:275)
    	at org.perf4j.StopWatch$AjcClosure29.run(StopWatch.java:1)
    	at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
    	at com.company.rcs.core.profile.TimerAspect.proceed(TimerAspect.java:51)
    	at org.perf4j.StopWatch.toString(StopWatch.java:275)
    	at org.perf4j.StopWatch.stop_aroundBody18(StopWatch.java:198)
    	at org.perf4j.StopWatch$AjcClosure19.run(StopWatch.java:1)
    	at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
    	at com.company.rcs.core.profile.TimerAspect.proceed(TimerAspect.java:51)
    	at org.perf4j.StopWatch.stop(StopWatch.java:197)
    	at org.perf4j.LoggingStopWatch.stop_aroundBody8(LoggingStopWatch.java:129)
    	at org.perf4j.LoggingStopWatch$AjcClosure9.run(LoggingStopWatch.java:1)
    	at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
    	at com.company.rcs.core.profile.TimerAspect.proceed(TimerAspect.java:51)
    	at org.perf4j.LoggingStopWatch.stop(LoggingStopWatch.java:129)
    	at org.perf4j.StopWatch.stop_aroundBody20(StopWatch.java:209)
    	at org.perf4j.StopWatch$AjcClosure21.run(StopWatch.java:1)
    	at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
    	at com.company.rcs.core.profile.TimerAspect.proceed(TimerAspect.java:51)
    	at org.perf4j.StopWatch.stop(StopWatch.java:208)
    	at com.company.rcs.core.profile.TimerAspect.proceed(TimerAspect.java:52)
    	at org.perf4j.StopWatch.getElapsedTime(StopWatch.java:112)
    	at org.perf4j.StopWatch.toString_aroundBody28(StopWatch.java:275)
    	at org.perf4j.StopWatch$AjcClosure29.run(StopWatch.java:1)
    	at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
    .
    .
    .
    .
    .

    Does anyone have any suggestions as to why this happens? Any guidance is greatly appreciated.

    Thanks,

    Z

  • #2
    It might be quite long, but would you mind posting more of your stack trace?

    Comment


    • #3
      Here is a lot more of the stack (indeed it is a longer...). I have replaced alot of the repetative stack trace "at <class>" stuff (serveral hundred lines per Exception) with (....), in order to meet max character requirements...

      Code:
      May 14, 2010 10:48:17 AM com.springsource.tcserver.security.PropertyDecoder <init>
      INFO: tcServer property decoder has been initialized.
      May 14, 2010 10:48:18 AM com.springsource.tcserver.serviceability.rmi.JmxSocketListener init
      INFO: Started up JMX registry on 127.0.0.1:6969
      May 14, 2010 10:48:18 AM org.apache.coyote.http11.Http11Protocol init
      INFO: Initializing Coyote HTTP/1.1 on http-8088
      May 14, 2010 10:48:18 AM org.apache.catalina.startup.Catalina load
      INFO: Initialization processed in 1433 ms
      May 14, 2010 10:48:18 AM org.apache.catalina.core.StandardService start
      INFO: Starting service Catalina
      May 14, 2010 10:48:18 AM org.apache.catalina.core.StandardEngine start
      INFO: Starting Servlet Engine: SpringSource tc Server/6.0.20.C
      May 14, 2010 10:48:29 AM org.apache.catalina.core.StandardContext addApplicationListener
      INFO: The listener "org.springframework.web.context.ContextLoaderListener" is already configured for this context. The duplicate definition has been ignored.
      May 14, 2010 10:48:33 AM org.apache.catalina.core.StandardContext listenerStart
      SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
      java.lang.StackOverflowError
      	at java.lang.reflect.Method.copy(Unknown Source)
      	at java.lang.reflect.ReflectAccess.copyMethod(Unknown Source)
      	at sun.reflect.ReflectionFactory.copyMethod(Unknown Source)
      	at java.lang.Class.searchMethods(Unknown Source)
      	at java.lang.Class.getMethod0(Unknown Source)
      	at java.lang.Class.getMethod(Unknown Source)
      	at org.apache.commons.logging.LogFactory.directGetContextClassLoader(LogFactory.java:896)
      	at org.apache.commons.logging.LogFactory$1.run(LogFactory.java:862)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at org.apache.commons.logging.LogFactory.getContextClassLoaderInternal(LogFactory.java:859)
      	at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:423)
      	at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:704)
      	at org.perf4j.commonslog.CommonsLogStopWatch.<init>(CommonsLogStopWatch.java:65)
      	at com.company.rcs.core.profile.TimerAspect.proceed(TimerAspect.java:48)
      	at org.perf4j.StopWatch.getElapsedTime(StopWatch.java:112)
      	at org.perf4j.StopWatch.toString_aroundBody28(StopWatch.java:275)
      	at org.perf4j.StopWatch$AjcClosure29.run(StopWatch.java:1)
      	at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
      	at com.company.rcs.core.profile.TimerAspect.proceed(TimerAspect.java:51)
      
      .
      .
      .
      .
      	at com.company.rcs.core.profile.TimerAspect.proceed(TimerAspect.java:51)
      	at org.perf4j.LoggingStopWatch.stop(LoggingStopWatch.java:129)
      	at org.perf4j.StopWatch.stop_aroundBody20(StopWatch.java:209)
      	at org.perf4j.StopWatch$AjcClosure21.run(StopWatch.java:1)
      	at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
      	at com.company.rcs.core.profile.TimerAspect.proceed(TimerAspect.java:51)
      May 14, 2010 10:48:33 AM org.apache.catalina.core.StandardContext listenerStart
      SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.util.Log4jConfigListener
      java.lang.StackOverflowError
      	at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
      	at java.lang.Class.getMethod0(Unknown Source)
      	at java.lang.Class.getMethod(Unknown Source)
      	at org.apache.commons.logging.LogFactory.directGetContextClassLoader(LogFactory.java:896)
      	at org.apache.commons.logging.LogFactory$1.run(LogFactory.java:862)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at org.apache.commons.logging.LogFactory.getContextClassLoaderInternal(LogFactory.java:859)
      	at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:423)
      	at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:704)
      	at org.perf4j.commonslog.CommonsLogStopWatch.<init>(CommonsLogStopWatch.java:65)
      	at com.company.rcs.core.profile.TimerAspect.proceed(TimerAspect.java:48)
      	at org.perf4j.StopWatch.toString(StopWatch.java:275)
      	at org.perf4j.StopWatch.stop_aroundBody18(StopWatch.java:198)
      	at org.perf4j.StopWatch$AjcClosure19.run(StopWatch.java:1)
      	at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
      	at com.company.rcs.core.profile.TimerAspect.proceed(TimerAspect.java:51)
      	at org.perf4j.StopWatch.stop(StopWatch.java:197)
      	at org.perf4j.LoggingStopWatch.stop_aroundBody8(LoggingStopWatch.java:129)
      	at org.perf4j.LoggingStopWatch$AjcClosure9.run(LoggingStopWatch.java:1)
      	at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
      	at com.company.rcs.core.profile.TimerAspect.proceed(TimerAspect.java:51)
      .
      .
      .
      .
      	at com.company.rcs.core.profile.TimerAspect.proceed(TimerAspect.java:51)
      	at org.perf4j.StopWatch.toString(StopWatch.java:275)
      May 14, 2010 10:48:33 AM org.apache.catalina.core.StandardContext start
      SEVERE: Error listenerStart
      May 14, 2010 10:48:33 AM org.apache.catalina.core.StandardContext start
      SEVERE: Context [/hzerm-ov] startup failed due to previous errors
      May 14, 2010 10:48:33 AM org.apache.catalina.core.ApplicationContext log
      INFO: Shutting down log4j
      May 14, 2010 10:48:34 AM org.apache.catalina.core.StandardContext listenerStop
      SEVERE: Exception sending context destroyed event to listener instance of class org.springframework.web.util.Log4jConfigListener
      java.lang.StackOverflowError
      	at java.lang.Class.getMethod0(Unknown Source)
      	at java.lang.Class.getMethod(Unknown Source)
      	at org.apache.commons.logging.LogFactory.directGetContextClassLoader(LogFactory.java:896)
      	at org.apache.commons.logging.LogFactory$1.run(LogFactory.java:862)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at org.apache.commons.logging.LogFactory.getContextClassLoaderInternal(LogFactory.java:859)
      	at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:423)
      	at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:704)
      	at org.perf4j.commonslog.CommonsLogStopWatch.<init>(CommonsLogStopWatch.java:65)
      	at com.company.rcs.core.profile.TimerAspect.proceed(TimerAspect.java:48)
      .
      .
      .
      .
      	at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
      	at com.company.rcs.core.profile.TimerAspect.proceed(TimerAspect.java:51)
      	at org.perf4j.StopWatch.stop(StopWatch.java:197)
      	at org.perf4j.LoggingStopWatch.stop_aroundBody8(LoggingStopWatch.java:129)
      May 14, 2010 10:48:34 AM org.apache.catalina.core.StandardContext listenerStop
      SEVERE: Exception sending context destroyed event to listener instance of class org.springframework.web.context.ContextLoaderListener
      java.lang.StackOverflowError
      	at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
      	at java.lang.Class.getMethod0(Unknown Source)
      	at java.lang.Class.getMethod(Unknown Source)
      	at org.apache.commons.logging.LogFactory.directGetContextClassLoader(LogFactory.java:896)
      	at org.apache.commons.logging.LogFactory$1.run(LogFactory.java:862)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at org.apache.commons.logging.LogFactory.getContextClassLoaderInternal(LogFactory.java:859)
      	at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:423)
      	at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:704)
      	at org.perf4j.commonslog.CommonsLogStopWatch.<init>(CommonsLogStopWatch.java:65)
      	at com.company.rcs.core.profile.TimerAspect.proceed(TimerAspect.java:48)
      .
      .
      .
      .
      .
      	at com.company.rcs.core.profile.TimerAspect.proceed(TimerAspect.java:51)
      	at org.perf4j.LoggingStopWatch.stop(LoggingStopWatch.java:129)
      	at org.perf4j.StopWatch.stop_aroundBody20(StopWatch.java:209)
      	at org.perf4j.StopWatch$AjcClosure21.run(StopWatch.java:1)
      	at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
      	at com.company.rcs.core.profile.TimerAspect.proceed(TimerAspect.java:51)
      	at org.perf4j.StopWatch.stop(StopWatch.java:208)
      May 14, 2010 10:48:34 AM org.apache.catalina.startup.HostConfig deployWAR
      INFO: Deploying web application archive insight.war
      May 14, 2010 10:48:38 AM org.apache.catalina.core.ApplicationContext log
      INFO: org.tuckey.web.filters.urlrewrite.UrlRewriteFilter INFO: loaded (conf ok)
      May 14, 2010 10:48:39 AM org.apache.catalina.core.ApplicationContext log
      INFO: Initializing Spring FrameworkServlet 'Spring MVC Dispatcher Servlet'

      Comment


      • #4
        Does anyone have any ideads as to what is going on in my deployment?

        Thanks,

        UGA_Zimma

        Comment


        • #5
          Looks like the timing aspects from perf4j are conflicting with something in Insight. I'd have to see the aspects that perf4j uses & dig down to know more. It is strange that perf4j aspects are advising the perf4j toString methods.

          Are you able to run without perf4j to see if Insight works then?

          Comment


          • #6
            Insight threw exception Handler processing failed; nested exception is java.lang.

            Hi,

            I have created a spring insight plugin(insight-plugin-epm-1.5.0.RELEASE.jar) for my java servlet application....and I am just wondering the cause of the following problem....java.lang.StackOverflowError..


            Code:
            Aug 29, 2011 12:16:39 PM org.apache.catalina.core.StandardWrapperValve invoke
            SEVERE: Servlet.service() for servlet [Spring MVC Dispatcher Servlet] in context with path [/insight] threw exception [Handler processing failed; nested exception is java.lang.StackOverflowError] with root cause
            java.lang.StackOverflowError
            	at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.getMetaClass(MetaClassRegistryImpl.java:195)
            	at org.codehaus.groovy.runtime.InvokerHelper.getMetaClass(InvokerHelper.java:701)
            	at groovy.lang.GroovyObjectSupport.<init>(GroovyObjectSupport.java:32)
            	at groovy.lang.Reference.<init>(Reference.java:33)
            	at com.springsource.insight.dashboard.traces.TraceDataView$_transformTimeRange_closure2.doCall(TraceDataView.groovy)
            	at sun.reflect.GeneratedMethodAccessor165.invoke(Unknown Source)
            	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            	at java.lang.reflect.Method.invoke(Method.java:597)
            	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:88)
            	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
            	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272)
            	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
            	at groovy.lang.Closure.call(Closure.java:276)
            	at groovy.lang.Closure.call(Closure.java:289)
            	at org.codehaus.groovy.runtime.DefaultGroovyMethods.collect(DefaultGroovyMethods.java:1661)
            	at org.codehaus.groovy.runtime.DefaultGroovyMethods.collect(DefaultGroovyMethods.java:1646)
            	at org.codehaus.groovy.runtime.dgm$60.invoke(Unknown Source)
            	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:270)
            	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
            	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
            	at com.springsource.insight.dashboard.traces.TraceDataView.transformTimeRange(TraceDataView.groovy:103)
            	at com.springsource.insight.dashboard.traces.TraceDataView$transformTimeRange.callCurrent(Unknown Source)
            	at com.springsource.insight.dashboard.traces.TraceDataView.transformFrame(TraceDataView.groovy:113)
            	at sun.reflect.GeneratedMethodAccessor181.invoke(Unknown Source)
            	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            	at java.lang.reflect.Method.invoke(Method.java:597)
            	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:88)
            	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
            	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:361)
            	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
            	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66)
            	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:151)
            	at com.springsource.insight.dashboard.traces.TraceDataView$_transformFrame_closure3.doCall(TraceDataView.groovy:115)
            	at sun.reflect.GeneratedMethodAccessor180.invoke(Unknown Source)
            	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            	at java.lang.reflect.Method.invoke(Method.java:597)
            	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:88)
            	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
            	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272)
            	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
            	at groovy.lang.Closure.call(Closure.java:276)
            	at groovy.lang.Closure.call(Closure.java:289)
            	at org.codehaus.groovy.runtime.DefaultGroovyMethods.collect(DefaultGroovyMethods.java:1661)
            	at org.codehaus.groovy.runtime.DefaultGroovyMethods.collect(DefaultGroovyMethods.java:1646)
            	at org.codehaus.groovy.runtime.dgm$60.invoke(Unknown Source)
            	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:270)
            	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
            	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
            	at com.springsource.insight.dashboard.traces.TraceDataView.transformFrame(TraceDataView.groovy:115)
            	at sun.reflect.GeneratedMethodAccessor181.invoke(Unknown Source)
            	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            	at java.lang.reflect.Method.invoke(Method.java:597)
            	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:88)
            	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
            	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:361)
            	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
            	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66)
            	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:151)
            	at com.springsource.insight.dashboard.traces.TraceDataView$_transformFrame_closure3.doCall(TraceDataView.groovy:115)
            	at sun.reflect.GeneratedMethodAccessor180.invoke(Unknown Source)
            	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            	at java.lang.reflect.Method.invoke(Method.java:597)
            	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:88)
            	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
            	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272)
            	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
            	at groovy.lang.Closure.call(Closure.java:276)
            	at groovy.lang.Closure.call(Closure.java:289)
            	at org.codehaus.groovy.runtime.DefaultGroovyMethods.collect(DefaultGroovyMethods.java:1661)
            	at org.codehaus.groovy.runtime.DefaultGroovyMethods.collect(DefaultGroovyMethods.java:1646)
            	at org.codehaus.groovy.runtime.dgm$60.invoke(Unknown Source)
            	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:270)
            	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
            	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
            	at com.springsource.insight.dashboard.traces.TraceDataView.transformFrame(TraceDataView.groovy:115)
            	at sun.reflect.GeneratedMethodAccessor181.invoke(Unknown Source)
            	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            	at java.lang.reflect.Method.invoke(Method.java:597)
            	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:88)
            	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
            	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:361)
            	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
            	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66)
            	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:151)
            	at com.springsource.insight.dashboard.traces.TraceDataView$_transformFrame_closure3.doCall(TraceDataView.groovy:115)
            	at sun.reflect.GeneratedMethodAccessor180.invoke(Unknown Source)
            	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            	at java.lang.reflect.Method.invoke(Method.java:597)
            	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:88)
            	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
            	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272)
            	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
            	at groovy.lang.Closure.call(Closure.java:276)
            	at groovy.lang.Closure.call(Closure.java:289)
            	at org.codehaus.groovy.runtime.DefaultGroovyMethods.collect(DefaultGroovyMethods.java:1661)
            	at org.codehaus.groovy.runtime.DefaultGroovyMethods.collect(DefaultGroovyMethods.java:1646)
            	at org.codehaus.groovy.runtime.dgm$60.invoke(Unknown Source)
            	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:270)
            	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
            	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
            	at com.springsource.insight.dashboard.traces.TraceDataView.transformFrame(TraceDataView.groovy:115)
            	at sun.reflect.GeneratedMethodAccessor181.invoke(Unknown Source)
            	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            	at java.lang.reflect.Method.invoke(Method.java:597)
            	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:88)
            	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)

            Comment


            • #7
              Not sure what the problem is here. It looks like we are only seeing a portion of the stack. Can you take a look at the other logs to find ut if there is more stack elsewhere?

              You could also try bumping up the max stack size (with -Xss in bin/setenv.sh)

              Alternatively maybe there is a bug in Groovy that is exposed here & we need to upgrade our version.

              -- Jon




              Originally posted by asheikh View Post
              Hi,

              I have created a spring insight plugin(insight-plugin-epm-1.5.0.RELEASE.jar) for my java servlet application....and I am just wondering the cause of the following problem....java.lang.StackOverflowError..


              Code:
              Aug 29, 2011 12:16:39 PM org.apache.catalina.core.StandardWrapperValve invoke
              SEVERE: Servlet.service() for servlet [Spring MVC Dispatcher Servlet] in context with path [/insight] threw exception [Handler processing failed; nested exception is java.lang.StackOverflowError] with root cause
              java.lang.StackOverflowError
              	at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.getMetaClass(MetaClassRegistryImpl.java:195)
              	at org.codehaus.groovy.runtime.InvokerHelper.getMetaClass(InvokerHelper.java:701)
              	at groovy.lang.GroovyObjectSupport.<init>(GroovyObjectSupport.java:32)
              	at groovy.lang.Reference.<init>(Reference.java:33)
              	at com.springsource.insight.dashboard.traces.TraceDataView$_transformTimeRange_closure2.doCall(TraceDataView.groovy)
              	at sun.reflect.GeneratedMethodAccessor165.invoke(Unknown Source)
              	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              	at java.lang.reflect.Method.invoke(Method.java:597)
              	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:88)
              	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
              	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272)
              	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
              	at groovy.lang.Closure.call(Closure.java:276)
              	at groovy.lang.Closure.call(Closure.java:289)
              	at org.codehaus.groovy.runtime.DefaultGroovyMethods.collect(DefaultGroovyMethods.java:1661)
              	at org.codehaus.groovy.runtime.DefaultGroovyMethods.collect(DefaultGroovyMethods.java:1646)
              	at org.codehaus.groovy.runtime.dgm$60.invoke(Unknown Source)
              	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:270)
              	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
              	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
              	at com.springsource.insight.dashboard.traces.TraceDataView.transformTimeRange(TraceDataView.groovy:103)
              	at com.springsource.insight.dashboard.traces.TraceDataView$transformTimeRange.callCurrent(Unknown Source)
              	at com.springsource.insight.dashboard.traces.TraceDataView.transformFrame(TraceDataView.groovy:113)
              	at sun.reflect.GeneratedMethodAccessor181.invoke(Unknown Source)
              	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              	at java.lang.reflect.Method.invoke(Method.java:597)
              	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:88)
              	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
              	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:361)
              	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
              	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66)
              	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:151)
              	at com.springsource.insight.dashboard.traces.TraceDataView$_transformFrame_closure3.doCall(TraceDataView.groovy:115)
              	at sun.reflect.GeneratedMethodAccessor180.invoke(Unknown Source)
              	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              	at java.lang.reflect.Method.invoke(Method.java:597)
              	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:88)
              	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
              	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272)
              	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
              	at groovy.lang.Closure.call(Closure.java:276)
              	at groovy.lang.Closure.call(Closure.java:289)
              	at org.codehaus.groovy.runtime.DefaultGroovyMethods.collect(DefaultGroovyMethods.java:1661)
              	at org.codehaus.groovy.runtime.DefaultGroovyMethods.collect(DefaultGroovyMethods.java:1646)
              	at org.codehaus.groovy.runtime.dgm$60.invoke(Unknown Source)
              	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:270)
              	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
              	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
              	at com.springsource.insight.dashboard.traces.TraceDataView.transformFrame(TraceDataView.groovy:115)
              	at sun.reflect.GeneratedMethodAccessor181.invoke(Unknown Source)
              	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              	at java.lang.reflect.Method.invoke(Method.java:597)
              	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:88)
              	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
              	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:361)
              	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
              	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66)
              	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:151)
              	at com.springsource.insight.dashboard.traces.TraceDataView$_transformFrame_closure3.doCall(TraceDataView.groovy:115)
              	at sun.reflect.GeneratedMethodAccessor180.invoke(Unknown Source)
              	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              	at java.lang.reflect.Method.invoke(Method.java:597)
              	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:88)
              	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
              	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272)
              	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
              	at groovy.lang.Closure.call(Closure.java:276)
              	at groovy.lang.Closure.call(Closure.java:289)
              	at org.codehaus.groovy.runtime.DefaultGroovyMethods.collect(DefaultGroovyMethods.java:1661)
              	at org.codehaus.groovy.runtime.DefaultGroovyMethods.collect(DefaultGroovyMethods.java:1646)
              	at org.codehaus.groovy.runtime.dgm$60.invoke(Unknown Source)
              	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:270)
              	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
              	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
              	at com.springsource.insight.dashboard.traces.TraceDataView.transformFrame(TraceDataView.groovy:115)
              	at sun.reflect.GeneratedMethodAccessor181.invoke(Unknown Source)
              	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              	at java.lang.reflect.Method.invoke(Method.java:597)
              	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:88)
              	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
              	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:361)
              	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
              	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66)
              	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:151)
              	at com.springsource.insight.dashboard.traces.TraceDataView$_transformFrame_closure3.doCall(TraceDataView.groovy:115)
              	at sun.reflect.GeneratedMethodAccessor180.invoke(Unknown Source)
              	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              	at java.lang.reflect.Method.invoke(Method.java:597)
              	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:88)
              	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
              	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272)
              	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
              	at groovy.lang.Closure.call(Closure.java:276)
              	at groovy.lang.Closure.call(Closure.java:289)
              	at org.codehaus.groovy.runtime.DefaultGroovyMethods.collect(DefaultGroovyMethods.java:1661)
              	at org.codehaus.groovy.runtime.DefaultGroovyMethods.collect(DefaultGroovyMethods.java:1646)
              	at org.codehaus.groovy.runtime.dgm$60.invoke(Unknown Source)
              	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:270)
              	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
              	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
              	at com.springsource.insight.dashboard.traces.TraceDataView.transformFrame(TraceDataView.groovy:115)
              	at sun.reflect.GeneratedMethodAccessor181.invoke(Unknown Source)
              	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              	at java.lang.reflect.Method.invoke(Method.java:597)
              	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:88)
              	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)

              Comment

              Working...
              X