[jboss-jira] [JBoss JIRA] (AS7-5726) Using "attribute" tag causes injection of null values
Anders Welen (JIRA)
jira-events at lists.jboss.org
Mon Feb 25 17:02:57 EST 2013
[ https://issues.jboss.org/browse/AS7-5726?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12756601#comment-12756601 ]
Anders Welen commented on AS7-5726:
-----------------------------------
Hmm... Sorry I should have mention that it is when executing "undeploy" (or shutdown) as the problem shows as a warning.
WARN [org.jboss.msc.inject] (MSC service thread 1-8) MSC000100: Unexpected failure to uninject public void Test.setText(java.lang.String): java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_27]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [rt.jar:1.6.0_27]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [rt.jar:1.6.0_27]
at java.lang.reflect.Method.invoke(Method.java:597) [rt.jar:1.6.0_27]
at org.jboss.msc.inject.MethodInjector.uninject(MethodInjector.java:119) [jboss-msc-1.0.2.GA-redhat-1.jar:1.0.2.GA-redhat-1]
at org.jboss.msc.service.ServiceControllerImpl$StopTask.uninject(ServiceControllerImpl.java:1919) [jboss-msc-1.0.2.GA-redhat-1.jar:1.0.2.GA-redhat-1]
at org.jboss.msc.service.ServiceControllerImpl$StopTask.run(ServiceControllerImpl.java:1893) [jboss-msc-1.0.2.GA-redhat-1.jar:1.0.2.GA-redhat-1]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_27]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_27]
at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_27]
Caused by: java.lang.NullPointerException: Parameter can not be null
at Test.setText(Test.java:11) ... 10 more
Why does the JMX impl. in JBoss 7 always try to inject NULL values into configured MBean attributes at undeployment?
> Using "attribute" tag causes injection of null values
> -----------------------------------------------------
>
> Key: AS7-5726
> URL: https://issues.jboss.org/browse/AS7-5726
> Project: Application Server 7
> Issue Type: Bug
> Components: JMX
> Affects Versions: 7.1.3.Final (EAP)
> Reporter: Anders Welen
> Assignee: Tomek Adamski
> Priority: Minor
> Fix For: Open To Community
>
>
> Using "attribute" tag in "jboss-service.xml" in a SAR archive causes injection of null values. Even if your code can handle this it makes it impossible to use primitive datatypes.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list