java.lang.InstantiationException

java.lang.NoClassDefFoundError: hudson/plugins/view/dashboard/DashboardPortlet


Samebug tips8

You might've forgot to add a dependency or it's written wrong. Also, you might be using incompatible versions of Java and Hibernate. More on this here: https://goo.gl/SjSlRA

If you're using Hibernate, this indicates you're missing FasterXML Classmate dependency, which you can add to your dependencies. To add it, the groupId is com.fasterxml and artifactId is Classmate.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.


Solutions on the web265

Solution icon of jenkins
via Jenkins JIRA by sogabe, 1 year ago
java.lang.NoClassDefFoundError: hudson/plugins/view/dashboard/DashboardPortlet

Solution icon of jenkins
via Jenkins JIRA by peter_schuetze, 1 year ago
java.lang.NoClassDefFoundError: hudson/plugins/view/dashboard/DashboardPortlet

Solution icon of jenkins
via Jenkins JIRA by sogabe, 1 year ago
java.lang.NoClassDefFoundError: hudson/plugins/view/dashboard/DashboardPortlet

Solution icon of jenkins
via Jenkins JIRA by peter_schuetze, 1 year ago
java.lang.NoClassDefFoundError: hudson/plugins/view/dashboard/DashboardPortlet

Solution icon of googlegroups
java.lang.NoClassDefFoundError: hudson/plugins/copyartifact/BuildSelector

Solution icon of googlegroups
via Google Groups by dbeck@cloudbees.com (JIRA), 1 year ago
java.lang.NoClassDefFoundError: hudson/plugins/copyartifact/BuildSelector

Solution icon of googlegroups
java.lang.NoClassDefFoundError: hudson/plugins/build_timeout/BuildTimeOutStrategy

Solution icon of jenkins
via Jenkins JIRA by Artur Gajowy, 1 year ago
java.lang.NoClassDefFoundError: hudson/plugins/copyartifact/BuildSelector

Solution icon of jenkins
via Jenkins JIRA by Daniel Beck, 1 year ago
java.lang.NoClassDefFoundError: hudson/plugins/copyartifact/BuildSelector

Solution icon of jenkins
via Jenkins JIRA by Artur Gajowy, 1 year ago
java.lang.NoClassDefFoundError: hudson/plugins/copyartifact/BuildSelector

Stack trace

  • java.lang.InstantiationException: java.lang.NoClassDefFoundError: hudson/plugins/view/dashboard/DashboardPortlet at net.java.sezpoz.IndexItem.instance(IndexItem.java:180) at hudson.ExtensionFinder$Sezpoz.find(ExtensionFinder.java:180) at hudson.ExtensionFinder._find(ExtensionFinder.java:94) at hudson.ExtensionList.load(ExtensionList.java:261) at hudson.ExtensionList.ensureLoaded(ExtensionList.java:218) at hudson.ExtensionList.getComponents(ExtensionList.java:126) at hudson.DescriptorExtensionList.load(DescriptorExtensionList.java:155) at hudson.ExtensionList.ensureLoaded(ExtensionList.java:218) at hudson.ExtensionList.iterator(ExtensionList.java:115) at org.apache.commons.jelly.expression.ExpressionSupport.evaluateAsIterator(ExpressionSupport.java:101) at org.apache.commons.jelly.tags.core.ForEachTag.doTag(ForEachTag.java:89) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:270) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105) at org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:119) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105) at org.kohsuke.stapler.jelly.JellyViewScript.run(JellyViewScript.java:63) at org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:63) at org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:53) at org.kohsuke.stapler.jelly.JellyClassTearOff.serveIndexJelly(JellyClassTearOff.java:72) at org.kohsuke.stapler.jelly.JellyFacet.handleIndexRequest(JellyFacet.java:114) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:551) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:640) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:478) at org.kohsuke.stapler.Stapler.service(Stapler.java:160) at javax.servlet.http.HttpServlet.service(Unknown Source) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94) at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:157) at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:131) at net.bull.javamelody.PluginMonitoringFilter.doFilter(PluginMonitoringFilter.java:82) at org.jvnet.hudson.plugins.monitoring.HudsonMonitoringFilter.doFilter(HudsonMonitoringFilter.java:69) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:97) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source) at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source) at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:162) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source) at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source) at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source) at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Unknown Source) at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source) at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown Source) at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source) at org.apache.catalina.connector.CoyoteAdapter.service(Unknown Source) at org.apache.jk.server.JkCoyoteHandler.invoke(Unknown Source) at org.apache.jk.common.HandlerRequest.invoke(Unknown Source) at org.apache.jk.common.ChannelSocket.invoke(Unknown Source) at org.apache.jk.common.ChannelSocket.processConnection(Unknown Source) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(Unknown Source) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source) at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.NoClassDefFoundError: hudson/plugins/view/dashboard/DashboardPortlet at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632) at java.lang.ClassLoader.defineClass(ClassLoader.java:616) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) at java.net.URLClassLoader.access$000(URLClassLoader.java:58) at java.net.URLClassLoader$1.run(URLClassLoader.java:197) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at java.lang.Class.getDeclaringClass(Native Method) at java.lang.Class.getEnclosingClass(Class.java:1085) at hudson.model.Descriptor.<init>(Descriptor.java:222) at hudson.plugins.emma.portlet.chart.EmmaBuilderTrendChart$DescriptorImpl.<init>(EmmaBuilderTrendChart.java:239) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at net.java.sezpoz.IndexItem.instance(IndexItem.java:168) ... 64 more Caused by: java.lang.ClassNotFoundException: hudson.plugins.view.dashboard.DashboardPortlet at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) ... 86 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 13 hours ago
Samebug visitor profile picture
Unknown user
Once, 13 hours ago
Samebug visitor profile picture
Unknown user
Once, 16 hours ago
Samebug visitor profile picture
Unknown user
Once, 1 week ago
1200 more bugmates