[jboss-jira] [JBoss JIRA] Created: (JBMICROCONT-336) NPE when using annotations with properties

Adrian Brock (JIRA) jira-events at lists.jboss.org
Fri Aug 8 12:15:01 EDT 2008


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.CR1


If you configure a property like this:

<property name="string"><annotation>@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

        



More information about the jboss-jira mailing list