java.lang.NoClassDefFoundError

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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.
    via by Rey Chooi [Atlassian],
    • 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)
    No Bugmate found.