[
https://jira.jboss.org/jira/browse/JBMICROCONT-336?page=com.atlassian.jir...
]
Ales Justin updated JBMICROCONT-336:
------------------------------------
Fix Version/s: JBossMC-2.0.0.GA
(was: JBossMC.2.0.0.CR1)
NPE when using annotations with properties
------------------------------------------
Key: JBMICROCONT-336
URL:
https://jira.jboss.org/jira/browse/JBMICROCONT-336
Project: JBoss Microcontainer
Issue Type: Bug
Components: Deployment
Reporter: Adrian Brock
Fix For: JBossMC-2.0.0.GA
If you configure a property like this:
<property
name="string"><annotation>(a)org.jboss.test.kernel.deployment.support.TestAnnotation1</annotation></property>
or even this
<property name="string"></property>
Then you get:
2628 ERROR [AbstractKernelController] Error installing to Configured: name=TestBean
state=Instantiated
java.lang.RuntimeException: Error configuring property: string for TestBean
...
Caused by: java.lang.NullPointerException
at
org.jboss.kernel.plugins.dependency.PropertyDispatchWrapper.execute(PropertyDispatchWrapper.java:87)
at
org.jboss.kernel.plugins.dependency.PropertyDispatchWrapper$1.run(PropertyDispatchWrapper.java:119)
at java.security.AccessController.doPrivileged(Native Method)
at
org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:54)
at
org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:109)
at
org.jboss.kernel.plugins.dependency.ConfigureAction.dispatchSetProperty(ConfigureAction.java:109)
This should result in the empty string being set on the "string" property.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira