java.lang.NoClassDefFoundError: Could not initialize class org.springframework.core.CollectionFactory

Spring JIRA | Imported | 9 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

    after upgrading to 2.0.2 the open bean dialog is no longer showing any beans at all. This is the exception that gets logged in eclipse: java.lang.NoClassDefFoundError: Could not initialize class org.springframework.core.CollectionFactory at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.<init>(DefaultSingletonBeanRegistry.java:86) at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.<init>(FactoryBeanRegistrySupport.java:40) at org.springframework.beans.factory.support.AbstractBeanFactory.<init>(AbstractBeanFactory.java:146) at org.springframework.ide.eclipse.beans.core.DefaultBeanDefinitionRegistry.<init>(DefaultBeanDefinitionRegistry.java:72) at org.springframework.ide.eclipse.beans.core.internal.model.validation.BeansValidationContext.createRegistry(BeansValidationContext.java:84) at org.springframework.ide.eclipse.beans.core.internal.model.validation.BeansValidationContext.<init>(BeansValidationContext.java:60) at org.springframework.ide.eclipse.beans.core.internal.model.validation.BeansConfigValidator.createContext(BeansConfigValidator.java:126) at org.springframework.ide.eclipse.core.model.validation.AbstractValidator.validate(AbstractValidator.java:165) at org.springframework.ide.eclipse.core.model.validation.AbstractValidator.validate(AbstractValidator.java:199) at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager$2.run(SpringProjectContributionManager.java:110) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.runValidator(SpringProjectContributionManager.java:118) at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.build(SpringProjectContributionManager.java:77) at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:624) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:166) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:197) at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:246) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:249) at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:302) at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:334) at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:137) at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:235) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

    Spring JIRA | 9 years ago | Imported
    java.lang.NoClassDefFoundError: Could not initialize class org.springframework.core.CollectionFactory
  2. 0

    after upgrading to 2.0.2 the open bean dialog is no longer showing any beans at all. This is the exception that gets logged in eclipse: java.lang.NoClassDefFoundError: Could not initialize class org.springframework.core.CollectionFactory at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.<init>(DefaultSingletonBeanRegistry.java:86) at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.<init>(FactoryBeanRegistrySupport.java:40) at org.springframework.beans.factory.support.AbstractBeanFactory.<init>(AbstractBeanFactory.java:146) at org.springframework.ide.eclipse.beans.core.DefaultBeanDefinitionRegistry.<init>(DefaultBeanDefinitionRegistry.java:72) at org.springframework.ide.eclipse.beans.core.internal.model.validation.BeansValidationContext.createRegistry(BeansValidationContext.java:84) at org.springframework.ide.eclipse.beans.core.internal.model.validation.BeansValidationContext.<init>(BeansValidationContext.java:60) at org.springframework.ide.eclipse.beans.core.internal.model.validation.BeansConfigValidator.createContext(BeansConfigValidator.java:126) at org.springframework.ide.eclipse.core.model.validation.AbstractValidator.validate(AbstractValidator.java:165) at org.springframework.ide.eclipse.core.model.validation.AbstractValidator.validate(AbstractValidator.java:199) at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager$2.run(SpringProjectContributionManager.java:110) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.runValidator(SpringProjectContributionManager.java:118) at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.build(SpringProjectContributionManager.java:77) at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:624) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:166) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:197) at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:246) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:249) at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:302) at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:334) at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:137) at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:235) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

    Spring JIRA | 9 years ago | Imported
    java.lang.NoClassDefFoundError: Could not initialize class org.springframework.core.CollectionFactory

    Root Cause Analysis

    1. java.lang.NoClassDefFoundError

      Could not initialize class org.springframework.core.CollectionFactory

      at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.<init>()
    2. Spring Beans
      AbstractBeanFactory.<init>
      1. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.<init>(DefaultSingletonBeanRegistry.java:86)
      2. org.springframework.beans.factory.support.FactoryBeanRegistrySupport.<init>(FactoryBeanRegistrySupport.java:40)
      3. org.springframework.beans.factory.support.AbstractBeanFactory.<init>(AbstractBeanFactory.java:146)
      3 frames
    3. org.springframework.ide
      SpringProjectContributionManager$2.run
      1. org.springframework.ide.eclipse.beans.core.DefaultBeanDefinitionRegistry.<init>(DefaultBeanDefinitionRegistry.java:72)
      2. org.springframework.ide.eclipse.beans.core.internal.model.validation.BeansValidationContext.createRegistry(BeansValidationContext.java:84)
      3. org.springframework.ide.eclipse.beans.core.internal.model.validation.BeansValidationContext.<init>(BeansValidationContext.java:60)
      4. org.springframework.ide.eclipse.beans.core.internal.model.validation.BeansConfigValidator.createContext(BeansConfigValidator.java:126)
      5. org.springframework.ide.eclipse.core.model.validation.AbstractValidator.validate(AbstractValidator.java:165)
      6. org.springframework.ide.eclipse.core.model.validation.AbstractValidator.validate(AbstractValidator.java:199)
      7. org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager$2.run(SpringProjectContributionManager.java:110)
      7 frames
    4. Eclipse Core
      SafeRunner.run
      1. org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
      1 frame
    5. org.springframework.ide
      SpringProjectContributionManager.build
      1. org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.runValidator(SpringProjectContributionManager.java:118)
      2. org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.build(SpringProjectContributionManager.java:77)
      2 frames
    6. Core Resource Management
      BuildManager$2.run
      1. org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:624)
      1 frame
    7. Eclipse Core
      SafeRunner.run
      1. org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
      1 frame
    8. Core Resource Management
      BuildManager$1.run
      1. org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:166)
      2. org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:197)
      3. org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:246)
      3 frames
    9. Eclipse Core
      SafeRunner.run
      1. org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
      1 frame
    10. Core Resource Management
      AutoBuildJob.run
      1. org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:249)
      2. org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:302)
      3. org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:334)
      4. org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:137)
      5. org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:235)
      5 frames
    11. Eclipse Jobs
      Worker.run
      1. org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
      1 frame