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.

    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
      BeansConfigValidator.validateBean
      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)
      3 frames