org.springframework.beans.factory.BeanInitializationException: inspectIT agent must be initialized with IP and port of the CMR via JVM parameters.

GitHub | MM26 | 3 months ago
  1. 0

    GitHub comment 158#244763404

    GitHub | 3 months ago | MM26
    org.springframework.beans.factory.BeanInitializationException: inspectIT agent must be initialized with IP and port of the CMR via JVM parameters.
  2. 0

    Communication between agent and CMR fails

    GitHub | 3 months ago | MM26
    org.springframework.beans.factory.BeanInitializationException: inspectIT agent must be initialized with IP and port of the CMR via JVM parameters.
  3. 0

    No communication between agent and CMR

    GitHub | 1 month ago | spouansi
    org.springframework.beans.factory.BeanInitializationException: inspectIT agent must be initialized with IP and port of the CMR via JVM parameters.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Spring jndi in context.xml / MyEclipse / Oracle / SJAS 9.1 (Frameworks forum at Coderanch)

    coderanch.com | 8 months ago
    org.springframework.beans.factory.BeanInitializationException: Could not load properties; nested exception is : C:\Documents and Settings\rdiaz\.sirs\sirs.properties (The system cannot find the path specified) Caused by: : C:\Documents and Settings\rdiaz\.sirs\sirs.properties (The system cannot find the path specified)
  6. 0

    When creating a context and then calling {{getBean}} on it from multiple threads we sometimes get a {{BeanInitializationException}} from {{RequiredAnnotationBeanPostProcessor.postProcessPropertyValues}}. Attached is a simple maven project to reproduce. In a loop it: 1. creates a fresh spring context 2. attempts to fetch some beans from it in parallel. The number of threads and max number of loop iterations can be passed as the first and second argument to the Main class. Usage: {{mvn clean package && java -jar target/spring-bug-1.0-SNAPSHOT-jar-with-dependencies.jar}} We never get any errors when the getBean method is called from a single thread, so: {{java -jar target/spring-bug-1.0-SNAPSHOT-jar-with-dependencies.jar 1}} always works. We don't get any errors for spring version 4.1.9, but as long as we switch to 4.2.0 or later the errors start occuring. Example exception: {code} Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'service-2' defined in class path resource [example-context.xml]: Cannot resolve reference to bean 'bean_0_1' while setting bean property 'bean_0_1'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bean_0_1' defined in URL [jar:file:/home/mpiela/devel/repo/spring-bug/target/spring-bug-1.0-SNAPSHOT-jar-with-dependencies.jar!/test/Bean_0_1.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanInitializationException: Properties 'bean_1_0' and 'bean_1_1' are required for bean 'bean_0_1' at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1481) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1226) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:325) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1054) at test.Main.lambda$tryToGetBean$0(Main.java:75) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bean_0_1' defined in URL [jar:file:/home/mpiela/devel/repo/spring-bug/target/spring-bug-1.0-SNAPSHOT-jar-with-dependencies.jar!/test/Bean_0_1.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanInitializationException: Properties 'bean_1_0' and 'bean_1_1' are required for bean 'bean_0_1' at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:325) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351) ... 13 more Caused by: org.springframework.beans.factory.BeanInitializationException: Properties 'bean_1_0' and 'bean_1_1' are required for bean 'bean_0_1' at org.springframework.beans.factory.annotation.RequiredAnnotationBeanPostProcessor.postProcessPropertyValues(RequiredAnnotationBeanPostProcessor.java:156) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1214) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543) ... 17 more {code}

    Spring JIRA | 7 months ago | Marcin Piela
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'service-2' defined in class path resource [example-context.xml]: Cannot resolve reference to bean 'bean_0_1' while setting bean property 'bean_0_1'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bean_0_1' defined in URL [jar:file:/home/mpiela/devel/repo/spring-bug/target/spring-bug-1.0-SNAPSHOT-jar-with-dependencies.jar!/test/Bean_0_1.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanInitializationException: Properties 'bean_1_0' and 'bean_1_1' are required for bean 'bean_0_1'

    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. org.springframework.beans.factory.BeanInitializationException

      inspectIT agent must be initialized with IP and port of the CMR via JVM parameters.

      at rocks.inspectit.agent.java.config.impl.ConfigurationStorage.afterPropertiesSet()
    2. rocks.inspectit.agent
      ConfigurationStorage.afterPropertiesSet
      1. rocks.inspectit.agent.java.config.impl.ConfigurationStorage.afterPropertiesSet(ConfigurationStorage.java:375)
      1 frame
    3. Spring Beans
      AbstractAutowireCapableBeanFactory.initializeBean
      1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1573)
      2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1511)
      2 frames