1 Reply Latest reply on Jul 26, 2011 1:54 PM by zekela104

    (MSC service thread 1-9) java.lang.StackOverflowError

    zekela104 Newbie

      I am migrating an existing production AS 4.2.2 application to AS 7. I have run into a stack over flow condition in the MSC service thread when I deploy my AS 7 application and I am not sure how to diagnose it.  Here's a snippet of the stack trace. Thanks in advance for any help or assistance provided.

       

      17:45:55,483 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-10) Starting deployment of "ACES.war"

      17:46:41,550 ERROR [stderr] (MSC service thread 1-9) java.lang.StackOverflowError

      17:46:41,550 ERROR [stderr] (MSC service thread 1-9)    at java.lang.String.concat(String.java:1996)

      17:46:41,550 ERROR [stderr] (MSC service thread 1-9)    at java.net.URLClassLoader$1.run(URLClassLoader.java:193)

      17:46:41,550 ERROR [stderr] (MSC service thread 1-9)    at java.security.AccessController.doPrivileged(Native Method)

      17:46:41,550 ERROR [stderr] (MSC service thread 1-9)    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)

      17:46:41,550 ERROR [stderr] (MSC service thread 1-9)    at org.eclipse.birt.core.framework.osgi.OSGILauncher$ChildFirstURLClassLoader.loadClass(OSGILauncher.java:633)

      17:46:41,566 ERROR [stderr] (MSC service thread 1-9)    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

      17:46:41,566 ERROR [stderr] (MSC service thread 1-9)    at java.lang.Class.forName0(Native Method)

      17:46:41,566 ERROR [stderr] (MSC service thread 1-9)    at java.lang.Class.forName(Class.java:169)

      17:46:41,566 ERROR [stderr] (MSC service thread 1-9)    at org.eclipse.osgi.framework.util.SecureAction.forName(SecureAction.java:335)

      17:46:41,566 ERROR [stderr] (MSC service thread 1-9)    at org.eclipse.osgi.framework.internal.protocol.StreamHandlerFactory.getBuiltIn(StreamHandlerFactory.java:80)

      17:46:41,582 ERROR [stderr] (MSC service thread 1-9)    at org.eclipse.osgi.framework.internal.protocol.StreamHandlerFactory.createInternalURLStreamHandler(StreamHandlerFactory.java:123)

      17:46:41,582 ERROR [stderr] (MSC service thread 1-9)    at org.eclipse.osgi.framework.internal.protocol.StreamHandlerFactory.createURLStreamHandler(StreamHandlerFactory.java:110)

      17:46:41,582 ERROR [stderr] (MSC service thread 1-9)    at java.net.URL.getURLStreamHandler(URL.java:1107)

      17:46:41,582 ERROR [stderr] (MSC service thread 1-9)    at java.net.URL.<init>(URL.java:572)

      17:46:41,582 ERROR [stderr] (MSC service thread 1-9)    at java.net.URL.<init>(URL.java:464)

      17:46:41,582 ERROR [stderr] (MSC service thread 1-9)    at java.net.URL.<init>(URL.java:413)

      17:46:41,597 ERROR [stderr] (MSC service thread 1-9)    at java.net.URI.toURL(URI.java:1081)

      17:46:41,597 ERROR [stderr] (MSC service thread 1-9)    at org.jboss.modules.JarFileResourceLoader.getResource(JarFileResourceLoader.java:176)

      17:46:41,597 ERROR [stderr] (MSC service thread 1-9)    at org.jboss.modules.ModuleClassLoader.loadResourceLocal(ModuleClassLoader.java:321)

      17:46:41,597 ERROR [stderr] (MSC service thread 1-9)    at org.jboss.modules.ModuleClassLoader$1.loadResourceLocal(ModuleClassLoader.java:83)

      17:46:41,597 ERROR [stderr] (MSC service thread 1-9)    at org.jboss.modules.Module.getResources(Module.java:661)

      17:46:41,613 ERROR [stderr] (MSC service thread 1-9)    at org.jboss.modules.ModuleClassLoader.findResources(ModuleClassLoader.java:502)

      17:46:41,613 ERROR [stderr] (MSC service thread 1-9)    at org.jboss.modules.ConcurrentClassLoader.getResources(ConcurrentClassLoader.java:196)

      17:46:41,613 ERROR [stderr] (MSC service thread 1-9)    at java.util.ServiceLoader$LazyIterator.hasNext(ServiceLoader.java:323)

      17:46:41,613 ERROR [stderr] (MSC service thread 1-9)    at java.util.ServiceLoader$1.hasNext(ServiceLoader.java:415)

      17:46:41,613 ERROR [stderr] (MSC service thread 1-9)    at org.jboss.modules.ModularURLStreamHandlerFactory.createURLStreamHandler(ModularURLStreamHandlerFactory.java:85)

      17:46:41,628 ERROR [stderr] (MSC service thread 1-9)    at org.eclipse.osgi.framework.internal.protocol.StreamHandlerFactory.createURLStreamHandler(StreamHandlerFactory.java:114)

      17:46:41,628 ERROR [stderr] (MSC service thread 1-9)    at java.net.URL.getURLStreamHandler(URL.java:1107)

      17:46:41,628 ERROR [stderr] (MSC service thread 1-9)    at java.net.URL.<init>(URL.java:572)

      17:46:41,628 ERROR [stderr] (MSC service thread 1-9)    at java.net.URL.<init>(URL.java:464)

      17:46:41,628 ERROR [stderr] (MSC service thread 1-9)    at java.net.URL.<init>(URL.java:413)

      17:46:41,644 ERROR [stderr] (MSC service thread 1-9)    at java.net.URI.toURL(URI.java:1081)

      17:46:41,644 ERROR [stderr] (MSC service thread 1-9)    at org.jboss.modules.JarFileResourceLoader.getResource(JarFileResourceLoader.java:176)

      17:46:41,644 ERROR [stderr] (MSC service thread 1-9)    at org.jboss.modules.ModuleClassLoader.loadResourceLocal(ModuleClassLoader.java:321)

      17:46:41,644 ERROR [stderr] (MSC service thread 1-9)    at org.jboss.modules.ModuleClassLoader$1.loadResourceLocal(ModuleClassLoader.java:83)

      17:46:41,644 ERROR [stderr] (MSC service thread 1-9)    at org.jboss.modules.Module.getResources(Module.java:661)

      17:46:41,660 ERROR [stderr] (MSC service thread 1-9)    at org.jboss.modules.ModuleClassLoader.findResources(ModuleClassLoader.java:502)

      17:46:41,660 ERROR [stderr] (MSC service thread 1-9)    at org.jboss.modules.ConcurrentClassLoader.getResources(ConcurrentClassLoader.java:196)

      17:46:41,660 ERROR [stderr] (MSC service thread 1-9)    at java.util.ServiceLoader$LazyIterator.hasNext(ServiceLoader.java:323)

      17:46:41,660 ERROR [stderr] (MSC service thread 1-9)    at java.util.ServiceLoader$1.hasNext(ServiceLoader.java:415)

      17:46:41,660 ERROR [stderr] (MSC service thread 1-9)    at org.jboss.modules.ModularURLStreamHandlerFactory.createURLStreamHandler(ModularURLStreamHandlerFactory.java:85)

      17:46:41,675 ERROR [stderr] (MSC service thread 1-9)    at org.eclipse.osgi.framework.internal.protocol.StreamHandlerFactory.createURLStreamHandler(StreamHandlerFactory.java:114)

      17:46:41,675 ERROR [stderr] (MSC service thread 1-9)    at java.net.URL.getURLStreamHandler(URL.java:1107)

      17:46:41,675 ERROR [stderr] (MSC service thread 1-9)    at java.net.URL.<init>(URL.java:572)

      17:46:41,675 ERROR [stderr] (MSC service thread 1-9)    at java.net.URL.<init>(URL.java:464)

      17:46:41,675 ERROR [stderr] (MSC service thread 1-9)    at java.net.URL.<init>(URL.java:413)

      17:46:41,691 ERROR [stderr] (MSC service thread 1-9)    at java.net.URI.toURL(URI.java:1081)

        • 1. Re: (MSC service thread 1-9) java.lang.StackOverflowError
          zekela104 Newbie

          I got past this by finding and resolving a circular jar dependency in BIRT. However, I am still having a stack overflow and not sure as to how to proceed. Here's a snippet from the server.log. Any help is appreciated. Thanks in advance.

           

          13:33:51,795 DEBUG [org.apache.catalina.session.ManagerBase] (MSC service thread 1-10) Start: Loading persisted sessions
          13:33:51,795 DEBUG [org.apache.catalina.core.StandardContext] (MSC service thread 1-10) Configuring application event listeners
          13:33:51,795 DEBUG [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/ACES]] (MSC service thread 1-10)  Configuring event listener class 'org.eclipse.birt.report.listener.ViewerServletContextListener'
          13:33:51,795 DEBUG [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/ACES]] (MSC service thread 1-10)  Configuring event listener class 'org.eclipse.birt.report.listener.ViewerHttpSessionListener'
          13:33:51,795 DEBUG [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/ACES]] (MSC service thread 1-10)  Configuring event listener class 'aces.utilities.InitApplication'
          13:33:51,815 DEBUG [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/ACES]] (MSC service thread 1-10)  Configuring event listener class 'org.springframework.web.context.ContextLoaderListener'
          13:33:51,815 DEBUG [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/ACES]] (MSC service thread 1-10)  Configuring event listener class 'org.springframework.web.context.request.RequestContextListener'
          13:33:51,815 DEBUG [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/ACES]] (MSC service thread 1-10)  Configuring event listener class 'org.springframework.security.web.session.HttpSessionEventPublisher'
          13:33:51,815 DEBUG [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/ACES]] (MSC service thread 1-10)  Configuring event listener class 'com.sun.faces.config.ConfigureListener'
          13:33:51,825 DEBUG [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/ACES]] (MSC service thread 1-10) Sending application start events
          13:33:53,391 ERROR [stderr] (MSC service thread 1-10) java.lang.StackOverflowError

          13:33:53,391 ERROR [stderr] (MSC service thread 1-10)  at java.net.URLClassLoader$1.run(URLClassLoader.java:193)

          13:33:53,391 ERROR [stderr] (MSC service thread 1-10)  at java.security.AccessController.doPrivileged(Native Method)

          13:33:53,407 ERROR [stderr] (MSC service thread 1-10)  at java.net.URLClassLoader.findClass(URLClassLoader.java:190)

          13:33:53,407 ERROR [stderr] (MSC service thread 1-10)  at org.eclipse.birt.core.framework.osgi.OSGILauncher$ChildFirstURLClassLoader.loadClass(OSGILauncher.java:633)

          13:33:53,407 ERROR [stderr] (MSC service thread 1-10)  at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

          13:33:53,407 ERROR [stderr] (MSC service thread 1-10)  at java.lang.Class.forName0(Native Method)

          13:33:53,407 ERROR [stderr] (MSC service thread 1-10)  at java.lang.Class.forName(Class.java:169)

          13:33:53,407 ERROR [stderr] (MSC service thread 1-10)  at org.eclipse.osgi.framework.util.SecureAction.forName(SecureAction.java:335)

          13:33:53,407 ERROR [stderr] (MSC service thread 1-10)  at org.eclipse.osgi.framework.internal.protocol.StreamHandlerFactory.getBuiltIn(StreamHandlerFactory.java:80)

          13:33:53,407 ERROR [stderr] (MSC service thread 1-10)  at org.eclipse.osgi.framework.internal.protocol.StreamHandlerFactory.createInternalURLStreamHandler(StreamHandlerFactory.java:123)

          13:33:53,407 ERROR [stderr] (MSC service thread 1-10)  at org.eclipse.osgi.framework.internal.protocol.StreamHandlerFactory.createURLStreamHandler(StreamHandlerFactory.java:110)

          13:33:53,407 ERROR [stderr] (MSC service thread 1-10)  at java.net.URL.getURLStreamHandler(URL.java:1107)

          13:33:53,407 ERROR [stderr] (MSC service thread 1-10)  at java.net.URL.<init>(URL.java:572)

          13:33:53,407 ERROR [stderr] (MSC service thread 1-10)  at java.net.URL.<init>(URL.java:464)

          13:33:53,407 ERROR [stderr] (MSC service thread 1-10)  at java.net.URL.<init>(URL.java:413)

          13:33:53,407 ERROR [stderr] (MSC service thread 1-10)  at java.net.URI.toURL(URI.java:1081)

          13:33:53,407 ERROR [stderr] (MSC service thread 1-10)  at org.jboss.modules.JarFileResourceLoader.getResource(JarFileResourceLoader.java:176)

          13:33:53,407 ERROR [stderr] (MSC service thread 1-10)  at org.jboss.modules.ModuleClassLoader.loadResourceLocal(ModuleClassLoader.java:321)

          13:33:53,407 ERROR [stderr] (MSC service thread 1-10)  at org.jboss.modules.ModuleClassLoader$1.loadResourceLocal(ModuleClassLoader.java:83)

          13:33:53,407 ERROR [stderr] (MSC service thread 1-10)  at org.jboss.modules.Module.getResources(Module.java:661)

          13:33:53,407 ERROR [stderr] (MSC service thread 1-10)  at org.jboss.modules.ModuleClassLoader.findResources(ModuleClassLoader.java:502)

          13:33:53,407 ERROR [stderr] (MSC service thread 1-10)  at org.jboss.modules.ConcurrentClassLoader.getResources(ConcurrentClassLoader.java:196)

          13:33:53,407 ERROR [stderr] (MSC service thread 1-10)  at java.util.ServiceLoader$LazyIterator.hasNext(ServiceLoader.java:323)

          13:33:53,407 ERROR [stderr] (MSC service thread 1-10)  at java.util.ServiceLoader$1.hasNext(ServiceLoader.java:415)

          13:33:53,407 ERROR [stderr] (MSC service thread 1-10)  at org.jboss.modules.ModularURLStreamHandlerFactory.createURLStreamHandler(ModularURLStreamHandlerFactory.java:85)

          13:33:53,407 ERROR [stderr] (MSC service thread 1-10)  at org.eclipse.osgi.framework.internal.protocol.StreamHandlerFactory.createURLStreamHandler(StreamHandlerFactory.java:114)

          13:33:53,407 ERROR [stderr] (MSC service thread 1-10)  at java.net.URL.getURLStreamHandler(URL.java:1107)