java.lang.NoClassDefFoundError: Could not initialize class com.atlassian.crowd.integration.rest.service.factory.RestCrowdHttpAuthenticationFactory

Atlassian JIRA | Kah Loun Foong [Atlassian] | 5 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    If JIRA does not have the permission to read the file {{crowd.properties}}, it will have the following error: {noformat} 2012-05-07 14:05:08,757 main INFO [atlassian.plugin.loaders.ScanningPluginLoader] Plugin Unit: /mnt/store/atlassian/jira/home/plugins/.bundled-plugins/workflow-designer-plugin-2.5.4.jar (1333044618000) created 2012-05-07 14:05:13,884 main INFO [atlassian.plugin.util.WaitUntil] Plugins that have yet to be enabled: [crowd-rest-plugin, com.atlassian.gadgets.dashboard, com.atlassian.activeobjects.activeobjects-plugin, com.atlassian.jira.jira-project-config-plugin, com.atlassian.gadgets.embedded, com.atlassian.jira.jira-issue-link-applinks-common-plugin, com.atlassian.streams.streams-jira-plugin, com.atlassian.jira.plugin.ext.bamboo, com.atlassian.gadgets.opensocial, com.atlassian.jira.plugins.jira-importers-plugin, com.atlassian.plugins.rest.atlassian-rest-module, com.atlassian.sal.jira, com.atlassian.streams.core, crowd-rest-application-management, com.atlassian.jira.jira-view-issue-plugin, com.atlassian.oauth.serviceprovider, com.atlassian.upm.atlassian-universal-plugin-manager-plugin, com.atlassian.jira.plugins.jira-workflow-designer, com.atlassian.streams.streams-thirdparty-plugin, com.atlassian.gadgets.publisher, com.atlassian.jira.jira-issue-link-confluence-plugin, com.atlassian.jira.rest, com.atlassian.crowd.embedded.admin, com.atlassian.gadgets.directory, com.atlassian.streams.actions, com.atlassian.soy.soy-template-plugin, tac.jira.languages.ja_JP, com.atlassian.gadgets.oauth.serviceprovider, com.atlassian.streams, com.atlassian.applinks.applinks-plugin, com.atlassian.jira.jira-issue-link-remote-jira-plugin, com.atlassian.oauth.admin, com.atlassian.jira.gadgets, com.atlassian.support.stp, com.atlassian.jirafisheyeplugin], 60 seconds remaining 2012-05-07 14:05:13,926 Spring executor 2 ERROR [crowd.service.client.ClientResourceLocator] java.net.MalformedURLException at java.net.URL.<init>(URL.java:601) at java.net.URL.<init>(URL.java:464) at java.net.URL.<init>(URL.java:413) ... 2012-05-07 14:05:14,227 Spring executor 2 ERROR [plugin.osgi.factory.OsgiPlugin] Unable to start the Spring context for plugin com.atlassian.sal.jira org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationController' defined in URL [bundle://67.0:0/META-INF/spring/atlassian-plugins-components.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.atlassian.sal.core.auth.SeraphAuthenticationController]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:883) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:839) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) ... Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.atlassian.sal.core.auth.SeraphAuthenticationController]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError ... Caused by: java.lang.ExceptionInInitializerError ... Caused by: java.lang.IllegalArgumentException: org.apache.commons.httpclient.URIException: URI-Reference required ... Caused by: org.apache.commons.httpclient.URIException: URI-Reference required ... 2012-05-07 14:07:19,281 main ERROR [atlassian.jira.startup.LauncherContextListener] Unable to start JIRA. java.lang.NoClassDefFoundError: Could not initialize class com.atlassian.crowd.integration.rest.service.factory.RestCrowdHttpAuthenticationFactory at com.atlassian.jira.security.login.SSOSeraphAuthenticator.<init>(SSOSeraphAuthenticator.java:26) 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) {noformat} It should have the 'Permission denied' error when JIRA failed to read the file.

    Atlassian JIRA | 5 years ago | Kah Loun Foong [Atlassian]
    java.lang.NoClassDefFoundError: Could not initialize class com.atlassian.crowd.integration.rest.service.factory.RestCrowdHttpAuthenticationFactory
  2. 0

    If JIRA does not have the permission to read the file {{crowd.properties}}, it will have the following error: {noformat} 2012-05-07 14:05:08,757 main INFO [atlassian.plugin.loaders.ScanningPluginLoader] Plugin Unit: /mnt/store/atlassian/jira/home/plugins/.bundled-plugins/workflow-designer-plugin-2.5.4.jar (1333044618000) created 2012-05-07 14:05:13,884 main INFO [atlassian.plugin.util.WaitUntil] Plugins that have yet to be enabled: [crowd-rest-plugin, com.atlassian.gadgets.dashboard, com.atlassian.activeobjects.activeobjects-plugin, com.atlassian.jira.jira-project-config-plugin, com.atlassian.gadgets.embedded, com.atlassian.jira.jira-issue-link-applinks-common-plugin, com.atlassian.streams.streams-jira-plugin, com.atlassian.jira.plugin.ext.bamboo, com.atlassian.gadgets.opensocial, com.atlassian.jira.plugins.jira-importers-plugin, com.atlassian.plugins.rest.atlassian-rest-module, com.atlassian.sal.jira, com.atlassian.streams.core, crowd-rest-application-management, com.atlassian.jira.jira-view-issue-plugin, com.atlassian.oauth.serviceprovider, com.atlassian.upm.atlassian-universal-plugin-manager-plugin, com.atlassian.jira.plugins.jira-workflow-designer, com.atlassian.streams.streams-thirdparty-plugin, com.atlassian.gadgets.publisher, com.atlassian.jira.jira-issue-link-confluence-plugin, com.atlassian.jira.rest, com.atlassian.crowd.embedded.admin, com.atlassian.gadgets.directory, com.atlassian.streams.actions, com.atlassian.soy.soy-template-plugin, tac.jira.languages.ja_JP, com.atlassian.gadgets.oauth.serviceprovider, com.atlassian.streams, com.atlassian.applinks.applinks-plugin, com.atlassian.jira.jira-issue-link-remote-jira-plugin, com.atlassian.oauth.admin, com.atlassian.jira.gadgets, com.atlassian.support.stp, com.atlassian.jirafisheyeplugin], 60 seconds remaining 2012-05-07 14:05:13,926 Spring executor 2 ERROR [crowd.service.client.ClientResourceLocator] java.net.MalformedURLException at java.net.URL.<init>(URL.java:601) at java.net.URL.<init>(URL.java:464) at java.net.URL.<init>(URL.java:413) ... 2012-05-07 14:05:14,227 Spring executor 2 ERROR [plugin.osgi.factory.OsgiPlugin] Unable to start the Spring context for plugin com.atlassian.sal.jira org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationController' defined in URL [bundle://67.0:0/META-INF/spring/atlassian-plugins-components.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.atlassian.sal.core.auth.SeraphAuthenticationController]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:883) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:839) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) ... Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.atlassian.sal.core.auth.SeraphAuthenticationController]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError ... Caused by: java.lang.ExceptionInInitializerError ... Caused by: java.lang.IllegalArgumentException: org.apache.commons.httpclient.URIException: URI-Reference required ... Caused by: org.apache.commons.httpclient.URIException: URI-Reference required ... 2012-05-07 14:07:19,281 main ERROR [atlassian.jira.startup.LauncherContextListener] Unable to start JIRA. java.lang.NoClassDefFoundError: Could not initialize class com.atlassian.crowd.integration.rest.service.factory.RestCrowdHttpAuthenticationFactory at com.atlassian.jira.security.login.SSOSeraphAuthenticator.<init>(SSOSeraphAuthenticator.java:26) 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) {noformat} It should have the 'Permission denied' error when JIRA failed to read the file.

    Atlassian JIRA | 5 years ago | Kah Loun Foong [Atlassian]
    java.lang.NoClassDefFoundError: Could not initialize class com.atlassian.crowd.integration.rest.service.factory.RestCrowdHttpAuthenticationFactory
  3. 0

    PowerMockito and Final Methods

    Google Groups | 8 years ago | sohr...@googlemail.com
    java.lang.NoClassDefFoundError: javassist/expr/ExprEditor at > org.powermock.tests.utils.impl.AbstractTestSuiteChunkerImpl.createNewClassloader > (AbstractTestSuiteChunkerImpl.java:172) at > org.powermock.tests.utils.impl.AbstractTestSuiteChunkerImpl.chunkClass > (AbstractTestSuiteChunkerImpl.java:137) at org.powermock.tests.utils.impl.AbstractTestSuiteChunkerImpl.<init> > (AbstractTestSuiteChunkerImpl.java:99) at org.powermock.tests.utils.impl.AbstractTestSuiteChunkerImpl.<init> > (AbstractTestSuiteChunkerImpl.java:92) at > org.powermock.modules.junit4.common.internal.impl.JUnit4TestSuiteChunkerImpl.<init> > (JUnit4TestSuiteChunkerImpl.java:57) at > org.powermock.modules.junit4.common.internal.impl.AbstractCommonPowerMockRunner.<init> > (AbstractCommonPowerMockRunner.java:34) at org.powermock.modules.junit4.PowerMockRunner.<init> > (PowerMockRunner.java:24) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance > (NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance > (DelegatingConstructorAccessorImpl.java:27)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    probleme in creating a bean with name "datasource"

    Stack Overflow | 2 years ago | Cyrille Kamdem
    java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:98) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:61) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:807) ... 78 more Caused by: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory at org.hibernate.cfg.Configuration.(Configuration.java:152) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:191) at org.springframework.orm.hibernate3.LocalSessionFactoryBean.class$(LocalSessionFactoryBean.java:175) at org.springframework.orm.hibernate3.LocalSessionFactoryBean.(LocalSessionFactoryBean.java:175) at org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean.(AnnotationSessionFactoryBean.java:64) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  6. 0

    The following classes could not be instantiated: – com.facebook.widget.LoginButton

    Stack Overflow | 2 years ago | Roman margolin
    java.lang.NoClassDefFoundError: Could not initialize class com.facebook.login.widget.LoginButton at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

    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 com.atlassian.crowd.integration.rest.service.factory.RestCrowdHttpAuthenticationFactory

      at com.atlassian.jira.security.login.SSOSeraphAuthenticator.<init>()
    2. com.atlassian.jira
      SSOSeraphAuthenticator.<init>
      1. com.atlassian.jira.security.login.SSOSeraphAuthenticator.<init>(SSOSeraphAuthenticator.java:26)
      1 frame
    3. Java RT
      Constructor.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      4 frames