EAP web request failing with StackOverflowError in JBoss EAP 7

Solution Verified - Updated -

Issue

  • We updated to EAP 7.3 and moved from JDK 8 to JDK 11 and our application is failing when trying to access a web jsp with a StackOverflowError:
Caused by: java.lang.StackOverflowError
    at java.base/java.io.UnixFileSystem.getBooleanAttributes0(Native Method)
    at java.base/java.io.UnixFileSystem.getBooleanAttributes(Unknown Source)
    at java.base/java.io.File.exists(Unknown Source)
    at org.jboss.modules.LocalModuleFinder.parseModuleXmlFile(LocalModuleFinder.java:249)
    at org.jboss.modules.LocalModuleFinder.lambda$findModule$1(LocalModuleFinder.java:195)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at org.jboss.modules.LocalModuleFinder.findModule(LocalModuleFinder.java:195)
    at org.jboss.modules.ModuleLoader.findModule0(ModuleLoader.java:696)
    at org.jboss.modules.ModuleLoader.findModule(ModuleLoader.java:689)
    at org.jboss.modules.ModuleLoader.loadModuleLocal(ModuleLoader.java:499)
    at org.jboss.modules.DelegatingModuleLoader.preloadModule(DelegatingModuleLoader.java:57)
    at org.jboss.modules.Module.addPaths(Module.java:1252)
    at org.jboss.modules.Module.link(Module.java:1622)
    at org.jboss.modules.Module.getPaths(Module.java:1583)
    at org.jboss.modules.Module.getPathsUnchecked(Module.java:1606)
    at org.jboss.modules.Module.loadModuleClass(Module.java:726)
    at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:247)
    at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:410)
    at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
    at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116)
    at java.base/java.lang.ClassLoader.defineClass1(Native Method)
    at java.base/java.lang.ClassLoader.defineClass(Unknown Source)
    at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:423)
    at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:555)
    at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:339)
    at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:126)
    at org.jboss.modules.Module.loadModuleClass(Module.java:731)
    at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:247)
    at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:410)
    at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
    at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116)
    at java.base/java.lang.Class.forName0(Native Method)
    at java.base/java.lang.Class.forName(Unknown Source)
    at io.undertow.jsp@2.0.8.Final-redhat-00001//org.apache.jasper.JspCompilationContext.createCompiler(JspCompilationContext.java:265)
    at io.undertow.jsp@2.0.8.Final-redhat-00001//org.apache.jasper.JspCompilationContext.createCompiler(JspCompilationContext.java:244)
    at io.undertow.jsp@2.0.8.Final-redhat-00001//org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:644)
    at io.undertow.jsp@2.0.8.Final-redhat-00001//org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:358)
    at io.undertow.jsp@2.0.8.Final-redhat-00001//org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:403)
    at io.undertow.jsp@2.0.8.Final-redhat-00001//org.apache.jasper.servlet.JspServlet.service(JspServlet.java:347)
    ... 44 more
        <subsystem xmlns="urn:jboss:domain:io:3.0">
            <worker name="default" io-threads="2" task-max-threads="10" stack-size="32"/>
            <buffer-pool name="default"/>
        </subsystem>

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP) 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In