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

Ales Justin (JIRA) jira-events at lists.jboss.org
Tue Aug 26 09:37:38 EDT 2008


     [ https://jira.jboss.org/jira/browse/JBMICROCONT-336?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ales Justin updated JBMICROCONT-336:
------------------------------------

    Assignee:     (was: Ales Justin)


This test should be enabled once the issue is fixed:
 - http://anonsvn.jboss.org/repos/jbossas/projects/microcontainer/trunk/kernel/src/tests/org/jboss/test/kernel/deployment/test/PropertyUsageTestCase.java

> 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