java.lang.IllegalStateException: Bean can only have a parent of type IBeansConfig, IBean or (in case of an inner bean) IBeanProperty

Spring JIRA | Imported | 1 decade ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    On Spring 1.2 spring builder is failing with the following error: Errors during build. Errors running builder "Spring Project Builder" on project otis-dasl-ejb. An error occurred while traversing resources. Here is the log: {code} java.lang.IllegalStateException: Bean can only have a parent of type IBeansConfig, IBean or (in case of an inner bean) IBeanProperty at org.springframework.ide.eclipse.beans.core.internal.model.Bean.getConfig(Bean.java:118) at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfigValidator.validateBean(BeansConfigValidator.java:198) at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfigValidator.validateBean(BeansConfigValidator.java:223) at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfigValidator.validateConfig(BeansConfigValidator.java:151) at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfigValidator.validate(BeansConfigValidator.java:119) at org.springframework.ide.eclipse.beans.core.internal.project.BeansProjectValidator.build(BeansProjectValidator.java:69) at org.springframework.ide.eclipse.core.internal.project.SpringProjectBuilder.build(SpringProjectBuilder.java:154) at org.springframework.ide.eclipse.core.internal.project.SpringProjectBuilder.access####0(SpringProjectBuilder.java:150) at org.springframework.ide.eclipse.core.internal.project.SpringProjectBuilder####Visitor.visit(SpringProjectBuilder.java:109) at org.eclipse.core.internal.resources.Resource####2.visit(Resource.java:103) at org.eclipse.core.internal.resources.Resource####1.visitElement(Resource.java:50) at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:81) at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85) at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85) at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85) at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85) at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85) at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85) at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85) at org.eclipse.core.internal.watson.ElementTreeIterator.iterate(ElementTreeIterator.java:126) at org.eclipse.core.internal.resources.Resource.accept(Resource.java:60) at org.eclipse.core.internal.resources.Resource.accept(Resource.java:101) at org.eclipse.core.internal.resources.Resource.accept(Resource.java:80) at org.springframework.ide.eclipse.core.internal.project.SpringProjectBuilder.build(SpringProjectBuilder.java:91) at org.eclipse.core.internal.events.BuildManager####2.run(BuildManager.java:585) at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1029) at org.eclipse.core.runtime.Platform.run(Platform.java:775) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:168) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:202) at org.eclipse.core.internal.events.BuildManager####1.run(BuildManager.java:231) at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1029) at org.eclipse.core.runtime.Platform.run(Platform.java:775) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:234) at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:259) at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:282) at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:139) at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:200) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:67) {code}

    Spring JIRA | 1 decade ago | Imported
    java.lang.IllegalStateException: Bean can only have a parent of type IBeansConfig, IBean or (in case of an inner bean) IBeanProperty
  2. 0

    On Spring 1.2 spring builder is failing with the following error: Errors during build. Errors running builder "Spring Project Builder" on project otis-dasl-ejb. An error occurred while traversing resources. Here is the log: {code} java.lang.IllegalStateException: Bean can only have a parent of type IBeansConfig, IBean or (in case of an inner bean) IBeanProperty at org.springframework.ide.eclipse.beans.core.internal.model.Bean.getConfig(Bean.java:118) at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfigValidator.validateBean(BeansConfigValidator.java:198) at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfigValidator.validateBean(BeansConfigValidator.java:223) at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfigValidator.validateConfig(BeansConfigValidator.java:151) at org.springframework.ide.eclipse.beans.core.internal.model.BeansConfigValidator.validate(BeansConfigValidator.java:119) at org.springframework.ide.eclipse.beans.core.internal.project.BeansProjectValidator.build(BeansProjectValidator.java:69) at org.springframework.ide.eclipse.core.internal.project.SpringProjectBuilder.build(SpringProjectBuilder.java:154) at org.springframework.ide.eclipse.core.internal.project.SpringProjectBuilder.access####0(SpringProjectBuilder.java:150) at org.springframework.ide.eclipse.core.internal.project.SpringProjectBuilder####Visitor.visit(SpringProjectBuilder.java:109) at org.eclipse.core.internal.resources.Resource####2.visit(Resource.java:103) at org.eclipse.core.internal.resources.Resource####1.visitElement(Resource.java:50) at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:81) at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85) at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85) at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85) at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85) at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85) at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85) at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85) at org.eclipse.core.internal.watson.ElementTreeIterator.iterate(ElementTreeIterator.java:126) at org.eclipse.core.internal.resources.Resource.accept(Resource.java:60) at org.eclipse.core.internal.resources.Resource.accept(Resource.java:101) at org.eclipse.core.internal.resources.Resource.accept(Resource.java:80) at org.springframework.ide.eclipse.core.internal.project.SpringProjectBuilder.build(SpringProjectBuilder.java:91) at org.eclipse.core.internal.events.BuildManager####2.run(BuildManager.java:585) at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1029) at org.eclipse.core.runtime.Platform.run(Platform.java:775) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:168) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:202) at org.eclipse.core.internal.events.BuildManager####1.run(BuildManager.java:231) at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1029) at org.eclipse.core.runtime.Platform.run(Platform.java:775) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:234) at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:259) at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:282) at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:139) at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:200) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:67) {code}

    Spring JIRA | 1 decade ago | Imported
    java.lang.IllegalStateException: Bean can only have a parent of type IBeansConfig, IBean or (in case of an inner bean) IBeanProperty

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Bean can only have a parent of type IBeansConfig, IBean or (in case of an inner bean) IBeanProperty

      at org.springframework.ide.eclipse.beans.core.internal.model.Bean.getConfig()
    2. org.springframework.ide
      SpringProjectBuilder.build
      1. org.springframework.ide.eclipse.beans.core.internal.model.Bean.getConfig(Bean.java:118)
      2. org.springframework.ide.eclipse.beans.core.internal.model.BeansConfigValidator.validateBean(BeansConfigValidator.java:198)
      3. org.springframework.ide.eclipse.beans.core.internal.model.BeansConfigValidator.validateBean(BeansConfigValidator.java:223)
      4. org.springframework.ide.eclipse.beans.core.internal.model.BeansConfigValidator.validateConfig(BeansConfigValidator.java:151)
      5. org.springframework.ide.eclipse.beans.core.internal.model.BeansConfigValidator.validate(BeansConfigValidator.java:119)
      6. org.springframework.ide.eclipse.beans.core.internal.project.BeansProjectValidator.build(BeansProjectValidator.java:69)
      7. org.springframework.ide.eclipse.core.internal.project.SpringProjectBuilder.build(SpringProjectBuilder.java:154)
      7 frames