java.lang.NoClassDefFoundError: Could not initialize class webwork.dispatcher.GenericDispatcher

Atlassian JIRA | Rey Chooi [Atlassian] | 3 months ago
  1. 0

    h3. Summary After a fresh installation of JIRA during the first few seconds of startup, if the base URL is requested with endpoint "/secure/SetupMode!default.jspa", JIRA breaks with below error and ends in a page showing JIRA Internal Error. {code} 2016-09-09 21:47:45,116 JIRA-Bootstrap INFO [c.a.plugin.manager.DefaultPluginManager] Plugin system earlyStartup begun 2016-09-09 21:47:45,524 http-nio-8081-exec-2 ERROR [o.a.c.c.C.[.[localhost].[/jira7try].[action]] Servlet.service() for servlet [action] in context with path [/jira7try] threw exception [Servlet execution threw an exception] with root cause java.lang.NoClassDefFoundError: Could not initialize class webwork.dispatcher.GenericDispatcher at com.atlassian.jira.web.dispatcher.JiraWebworkActionDispatcher.prepareDispatcher(JiraWebworkActionDispatcher.java:199) at com.atlassian.jira.web.dispatcher.JiraWebworkActionDispatcher.service(JiraWebworkActionDispatcher.java:136) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) ... 46 filtered at com.atlassian.jira.security.JiraSecurityFilter.lambda$doFilter$0(JiraSecurityFilter.java:76) ... 1 filtered at com.atlassian.jira.security.JiraSecurityFilter.doFilter(JiraSecurityFilter.java:74) ... 27 filtered at com.atlassian.jira.servermetrics.CorrelationIdPopulatorFilter.doFilter(CorrelationIdPopulatorFilter.java:30) ... 26 filtered at com.atlassian.jira.servermetrics.MetricsCollectorFilter.doFilter(MetricsCollectorFilter.java:25) ... 27 filtered at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) 2016-09-09 21:47:45,524 http-nio-8081-exec-1 ERROR [o.a.c.c.C.[.[localhost].[/jira7try].[action]] Servlet.service() for servlet [action] in context with path [/jira7try] threw exception [Servlet execution threw an exception] with root cause java.lang.NoClassDefFoundError: Could not initialize class webwork.dispatcher.GenericDispatcher at com.atlassian.jira.web.dispatcher.JiraWebworkActionDispatcher.prepareDispatcher(JiraWebworkActionDispatcher.java:199) at com.atlassian.jira.web.dispatcher.JiraWebworkActionDispatcher.service(JiraWebworkActionDispatcher.java:136) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) ... 46 filtered at com.atlassian.jira.security.JiraSecurityFilter.lambda$doFilter$0(JiraSecurityFilter.java:76) ... 1 filtered at com.atlassian.jira.security.JiraSecurityFilter.doFilter(JiraSecurityFilter.java:74) ... 27 filtered at com.atlassian.jira.servermetrics.CorrelationIdPopulatorFilter.doFilter(CorrelationIdPopulatorFilter.java:30) ... 26 filtered at com.atlassian.jira.servermetrics.MetricsCollectorFilter.doFilter(MetricsCollectorFilter.java:25) ... 27 filtered at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) 2016-09-09 21:47:45,524 http-nio-8081-exec-4 ERROR [o.a.c.c.C.[.[localhost].[/jira7try].[action]] Servlet.service() for servlet [action] in context with path [/jira7try] threw exception [Servlet execution threw an exception] with root cause java.lang.NullPointerException at com.atlassian.jira.config.webwork.DelegatingConfiguration.getImpl(DelegatingConfiguration.java:26) at webwork.config.Configuration.get(Configuration.java:44) at webwork.config.Configuration.getString(Configuration.java:54) at webwork.dispatcher.GenericDispatcher.<clinit>(GenericDispatcher.java:43) at com.atlassian.jira.web.dispatcher.JiraWebworkActionDispatcher.prepareDispatcher(JiraWebworkActionDispatcher.java:199) ... 1 filtered at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) ... 48 filtered at com.atlassian.jira.security.JiraSecurityFilter.lambda$doFilter$0(JiraSecurityFilter.java:76) ... 1 filtered at com.atlassian.jira.security.JiraSecurityFilter.doFilter(JiraSecurityFilter.java:74) ... 27 filtered at com.atlassian.jira.servermetrics.CorrelationIdPopulatorFilter.doFilter(CorrelationIdPopulatorFilter.java:30) ... 26 filtered at com.atlassian.jira.servermetrics.MetricsCollectorFilter.doFilter(MetricsCollectorFilter.java:25) ... 27 filtered at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) 2016-09-09 21:47:45,733 http-nio-8081-exec-2 INFO - [c.a.j.config.database.SystemDatabaseConfigurationLoader] Reading database configuration from /home/rey/jira/jira7try/jirahome/dbconfig.xml 2016-09-09 21:47:45,735 http-nio-8081-exec-4 INFO - [c.a.j.config.database.SystemDatabaseConfigurationLoader] Reading database configuration from /home/rey/jira/jira7try/jirahome/dbconfig.xml 2016-09-09 21:47:45,740 http-nio-8081-exec-1 INFO - [c.a.j.config.database.SystemDatabaseConfigurationLoader] Reading database configuration from /home/rey/jira/jira7try/jirahome/dbconfig.xml 2016-09-09 21:47:45,750 http-nio-8081-exec-4 INFO - [c.a.j.config.database.SystemDatabaseConfigurationLoader] Reading database configuration from /home/rey/jira/jira7try/jirahome/dbconfig.xml 2016-09-09 21:47:45,770 http-nio-8081-exec-2 INFO - [c.a.j.config.database.SystemDatabaseConfigurationLoader] Reading database configuration from /home/rey/jira/jira7try/jirahome/dbconfig.xml 2016-09-09 21:47:45,776 http-nio-8081-exec-4 ERROR - [500ErrorPage.f948c1af-6e5c-4dc3-9ab6-5c3c77563506] Cannot render the 500 page java.lang.NullPointerException {code} h3. Steps to Reproduce # Install any JIRA. # Start JIRA and request URL using {{//localhost:PORT/secure/SetupMode!default.jspa}} several times right after startup. h3. Expected Results JIRA should start up normally and load up the page for Setup Wizard. h3. Actual Results JIRA throws an internal server error. !screenshot-1.png|thumbnail! h3.Workaround Omit the use of endpoint "/secure/SetupMode!default.jspa" when requesting the URL.

    Atlassian JIRA | 3 months ago | Rey Chooi [Atlassian]
    java.lang.NoClassDefFoundError: Could not initialize class webwork.dispatcher.GenericDispatcher
  2. 0

    NoClassDefFoundError while creating mock object in java

    Stack Overflow | 7 months ago | Manas Kantha
    java.lang.NoClassDefFoundError: Could not initialize class
  3. 0

    External Properties file and classpath

    Oracle Community | 6 years ago | 393585
    java.lang.NoClassDefFoundError: Could not initialize class
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    maven repo and 5.0-X version

    Google Groups | 2 years ago | Zsolt Kúti
    java.lang.NoClassDefFoundError: Could not initialize class
  6. 0

    maven repo and 5.0-X version

    Google Groups | 2 years ago | Zsolt Kúti
    java.lang.NoClassDefFoundError: Could not initialize class

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NoClassDefFoundError

      Could not initialize class webwork.dispatcher.GenericDispatcher

      at com.atlassian.jira.web.dispatcher.JiraWebworkActionDispatcher.prepareDispatcher()
    2. com.atlassian.jira
      JiraWebworkActionDispatcher.service
      1. com.atlassian.jira.web.dispatcher.JiraWebworkActionDispatcher.prepareDispatcher(JiraWebworkActionDispatcher.java:199)
      2. com.atlassian.jira.web.dispatcher.JiraWebworkActionDispatcher.service(JiraWebworkActionDispatcher.java:136)
      2 frames
    3. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
      1 frame
    4. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
      2 frames