Closed GoogleCodeExporter closed 9 years ago
What steps will reproduce the problem? 1. Declare a <management:executor-service /> with a mono-valued "pool-size" like "4" instead of "1-4" : <management:executor-service id="my-executor-2" pool-size="4" ... /> 2. At Spring Context startup java.lang.IllegalStateException: Failed to load ApplicationContext at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:308) ... Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mbeanExporter': Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'my-executor': Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are: PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'poolSize' threw exception; nested exception is java.lang.NullPointerException at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1412) ... Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'my-executor': Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are: PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'poolSize' threw exception; nested exception is java.lang.NullPointerException at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1353) ... Caused by: org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are: PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'poolSize' threw exception; nested exception is java.lang.NullPointerException at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:102) ...
Original issue reported on code.google.com by cyrille....@gmail.com on 2 Mar 2011 at 10:58
cyrille....@gmail.com
Attachments:
fixed in 1.1.0
Original comment by cyrille....@gmail.com on 2 Mar 2011 at 11:12
Original issue reported on code.google.com by
cyrille....@gmail.com
on 2 Mar 2011 at 10:58Attachments: