java.lang.IllegalArgumentException: Cannot find class [org.springframework.context.annotation.ProfileCondition]

SpringSource Issue Tracker | Andrei Ivanov | 3 years ago
  1. 0

    Importing some maven projects I noticed this error: message: Problems occurred when invoking code from plug-in: "org.springframework.ide.eclipse.beans.core". Trace: {noformat} java.lang.IllegalArgumentException: Cannot find class [org.springframework.context.annotation.ProfileCondition] at org.springframework.util.ClassUtils.resolveClassName(ClassUtils.java:277) at org.springframework.context.annotation.ConditionalAnnotationHelper.getCondition(ConditionalAnnotationHelper.java:139) at org.springframework.context.annotation.ConditionalAnnotationHelper.shouldSkip(ConditionalAnnotationHelper.java:96) at org.springframework.context.annotation.ConditionalAnnotationHelper.shouldSkip(ConditionalAnnotationHelper.java:88) at org.springframework.context.annotation.ConditionalAnnotationHelper.shouldSkip(ConditionalAnnotationHelper.java:78) at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:184) at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:170) at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:152) at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:284) at org.springframework.ide.eclipse.metadata.process.JdtConfigurationClassPostProcessor.postProcess(JdtConfigurationClassPostProcessor.java:88) at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig$4.run(BeansConfig.java:749) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig.executePostProcessor(BeansConfig.java:742) at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig.postProcessExternal(BeansConfig.java:676) at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig.readConfig(BeansConfig.java:533) at org.springframework.ide.eclipse.beans.core.internal.model.AbstractBeansConfig.getBeans(AbstractBeansConfig.java:280) at org.springframework.ide.eclipse.beans.core.internal.model.validation.BeansConfigReloadingProjectContributionEventListener.start(BeansConfigReloadingProjectContributionEventListener.java:110) at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager$1.execute(SpringProjectContributionManager.java:112) at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager$9.run(SpringProjectContributionManager.java:291) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.execute(SpringProjectContributionManager.java:294) at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.build(SpringProjectContributionManager.java:110) at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:733) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:206) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:246) at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:299) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:302) at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:358) at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:381) at org.eclipse.core.internal.resources.Workspace.buildInternal(Workspace.java:514) at org.eclipse.core.internal.resources.Workspace.build(Workspace.java:423) at org.eclipse.ui.actions.GlobalBuildAction$1.run(GlobalBuildAction.java:180) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53) Caused by: java.lang.ClassNotFoundException: org.springframework.context.annotation.ProfileCondition at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at org.eclipse.core.runtime.internal.adaptor.ContextFinder.loadClass(ContextFinder.java:131) at java.lang.ClassLoader.loadClass(Unknown Source) at org.springframework.util.ClassUtils.forName(ClassUtils.java:241) at org.springframework.util.ClassUtils.resolveClassName(ClassUtils.java:274) ... 34 more {noformat}

    SpringSource Issue Tracker | 3 years ago | Andrei Ivanov
    java.lang.IllegalArgumentException: Cannot find class [org.springframework.context.annotation.ProfileCondition]
  2. 0

    Importing some maven projects I noticed this error: message: Problems occurred when invoking code from plug-in: "org.springframework.ide.eclipse.beans.core". Trace: {noformat} java.lang.IllegalArgumentException: Cannot find class [org.springframework.context.annotation.ProfileCondition] at org.springframework.util.ClassUtils.resolveClassName(ClassUtils.java:277) at org.springframework.context.annotation.ConditionalAnnotationHelper.getCondition(ConditionalAnnotationHelper.java:139) at org.springframework.context.annotation.ConditionalAnnotationHelper.shouldSkip(ConditionalAnnotationHelper.java:96) at org.springframework.context.annotation.ConditionalAnnotationHelper.shouldSkip(ConditionalAnnotationHelper.java:88) at org.springframework.context.annotation.ConditionalAnnotationHelper.shouldSkip(ConditionalAnnotationHelper.java:78) at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:184) at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:170) at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:152) at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:284) at org.springframework.ide.eclipse.metadata.process.JdtConfigurationClassPostProcessor.postProcess(JdtConfigurationClassPostProcessor.java:88) at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig$4.run(BeansConfig.java:749) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig.executePostProcessor(BeansConfig.java:742) at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig.postProcessExternal(BeansConfig.java:676) at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig.readConfig(BeansConfig.java:533) at org.springframework.ide.eclipse.beans.core.internal.model.AbstractBeansConfig.getBeans(AbstractBeansConfig.java:280) at org.springframework.ide.eclipse.beans.core.internal.model.validation.BeansConfigReloadingProjectContributionEventListener.start(BeansConfigReloadingProjectContributionEventListener.java:110) at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager$1.execute(SpringProjectContributionManager.java:112) at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager$9.run(SpringProjectContributionManager.java:291) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.execute(SpringProjectContributionManager.java:294) at org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.build(SpringProjectContributionManager.java:110) at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:733) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:206) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:246) at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:299) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:302) at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:358) at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:381) at org.eclipse.core.internal.resources.Workspace.buildInternal(Workspace.java:514) at org.eclipse.core.internal.resources.Workspace.build(Workspace.java:423) at org.eclipse.ui.actions.GlobalBuildAction$1.run(GlobalBuildAction.java:180) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53) Caused by: java.lang.ClassNotFoundException: org.springframework.context.annotation.ProfileCondition at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at org.eclipse.core.runtime.internal.adaptor.ContextFinder.loadClass(ContextFinder.java:131) at java.lang.ClassLoader.loadClass(Unknown Source) at org.springframework.util.ClassUtils.forName(ClassUtils.java:241) at org.springframework.util.ClassUtils.resolveClassName(ClassUtils.java:274) ... 34 more {noformat}

    SpringSource Issue Tracker | 3 years ago | Andrei Ivanov
    java.lang.IllegalArgumentException: Cannot find class [org.springframework.context.annotation.ProfileCondition]
  3. 0

    Getting ClassNotFoundException: org.eclipse.jetty.server.Server

    Stack Overflow | 2 years ago | Anjith Kumar Paila
    java.lang.ClassNotFoundException: org.eclipse.jetty.server.Server
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    cxf-user - CXFDOSGI 1.4 JAXRSClientFactoryBean and NamespacePrefixMapper Exception

    nabble.com | 8 months ago
    java.lang.RuntimeException: java.lang.ClassNotFoundException: org.glassfish.jersey.internal.RuntimeDelegateImpl
  6. 0

    DWR - Users - java.lang.NoClassDefFoundError

    nabble.com | 1 year ago
    java.lang.ClassNotFoundException: org.json.JSONObject

  1. andyglick 2 times, last 2 days ago
  2. richard77 1 times, last 5 days ago
  3. musketyr 2 times, last 5 days ago
  4. michallos 2 times, last 5 days ago
  5. batwalrus76 2 times, last 6 days ago
67 more registered users
28 unregistered visitors
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.ClassNotFoundException

    org.springframework.context.annotation.ProfileCondition

    at java.net.URLClassLoader$1.run()
  2. Java RT
    ClassLoader.loadClass
    1. java.net.URLClassLoader$1.run(Unknown Source)
    2. java.security.AccessController.doPrivileged(Native Method)
    3. java.net.URLClassLoader.findClass(Unknown Source)
    4. java.lang.ClassLoader.loadClass(Unknown Source)
    5. sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    6. java.lang.ClassLoader.loadClass(Unknown Source)
    6 frames
  3. Eclipse OSGi
    ContextFinder.loadClass
    1. org.eclipse.core.runtime.internal.adaptor.ContextFinder.loadClass(ContextFinder.java:131)
    1 frame
  4. Java RT
    ClassLoader.loadClass
    1. java.lang.ClassLoader.loadClass(Unknown Source)
    1 frame
  5. Spring Core
    ClassUtils.resolveClassName
    1. org.springframework.util.ClassUtils.forName(ClassUtils.java:241)
    2. org.springframework.util.ClassUtils.resolveClassName(ClassUtils.java:274)
    2 frames
  6. Spring Context
    ConfigurationClassPostProcessor.processConfigBeanDefinitions
    1. org.springframework.context.annotation.ConditionalAnnotationHelper.getCondition(ConditionalAnnotationHelper.java:139)
    2. org.springframework.context.annotation.ConditionalAnnotationHelper.shouldSkip(ConditionalAnnotationHelper.java:96)
    3. org.springframework.context.annotation.ConditionalAnnotationHelper.shouldSkip(ConditionalAnnotationHelper.java:88)
    4. org.springframework.context.annotation.ConditionalAnnotationHelper.shouldSkip(ConditionalAnnotationHelper.java:78)
    5. org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:184)
    6. org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:170)
    7. org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:152)
    8. org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:284)
    8 frames
  7. org.springframework.ide
    BeansConfig$4.run
    1. org.springframework.ide.eclipse.metadata.process.JdtConfigurationClassPostProcessor.postProcess(JdtConfigurationClassPostProcessor.java:88)
    2. org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig$4.run(BeansConfig.java:749)
    2 frames
  8. Eclipse Core
    SafeRunner.run
    1. org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    1 frame
  9. org.springframework.ide
    SpringProjectContributionManager$9.run
    1. org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig.executePostProcessor(BeansConfig.java:742)
    2. org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig.postProcessExternal(BeansConfig.java:676)
    3. org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig.readConfig(BeansConfig.java:533)
    4. org.springframework.ide.eclipse.beans.core.internal.model.AbstractBeansConfig.getBeans(AbstractBeansConfig.java:280)
    5. org.springframework.ide.eclipse.beans.core.internal.model.validation.BeansConfigReloadingProjectContributionEventListener.start(BeansConfigReloadingProjectContributionEventListener.java:110)
    6. org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager$1.execute(SpringProjectContributionManager.java:112)
    7. org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager$9.run(SpringProjectContributionManager.java:291)
    7 frames
  10. Eclipse Core
    SafeRunner.run
    1. org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    1 frame
  11. org.springframework.ide
    SpringProjectContributionManager.build
    1. org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.execute(SpringProjectContributionManager.java:294)
    2. org.springframework.ide.eclipse.core.internal.project.SpringProjectContributionManager.build(SpringProjectContributionManager.java:110)
    2 frames
  12. Core Resource Management
    BuildManager$2.run
    1. org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:733)
    1 frame
  13. Eclipse Core
    SafeRunner.run
    1. org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    1 frame
  14. Core Resource Management
    BuildManager$1.run
    1. org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:206)
    2. org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:246)
    3. org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:299)
    3 frames
  15. Eclipse Core
    SafeRunner.run
    1. org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    1 frame
  16. Core Resource Management
    Workspace.build
    1. org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:302)
    2. org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:358)
    3. org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:381)
    4. org.eclipse.core.internal.resources.Workspace.buildInternal(Workspace.java:514)
    5. org.eclipse.core.internal.resources.Workspace.build(Workspace.java:423)
    5 frames
  17. Eclipse UI
    GlobalBuildAction$1.run
    1. org.eclipse.ui.actions.GlobalBuildAction$1.run(GlobalBuildAction.java:180)
    1 frame
  18. Eclipse Jobs
    Worker.run
    1. org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
    1 frame