[jboss-jira] [JBoss JIRA] (WFLY-1450) NPE when add ejb3/cache
jaikiran pai (JIRA)
jira-events at lists.jboss.org
Tue Jun 4 03:03:55 EDT 2013
[ https://issues.jboss.org/browse/WFLY-1450?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
jaikiran pai resolved WFLY-1450.
--------------------------------
Resolution: Duplicate Issue
Thank you for reporting this. I just created a JIRA for this a few minutes back and sent a pull request containing the fix. The JIRA is WFLY-1449. I'll mark this one as a duplicate of WFLY-1449.
> NPE when add ejb3/cache
> -----------------------
>
> Key: WFLY-1450
> URL: https://issues.jboss.org/browse/WFLY-1450
> Project: WildFly
> Issue Type: Bug
> Components: EJB
> Reporter: 金沢 栄治
> Assignee: jaikiran pai
> Priority: Minor
>
> In EAP 6.1.0, NPE happens when I add ejb3/cache using the following cli:
> ./subsystem=ejb3/cache=my-cache:add(passivation-store=infinispan)
> with the next outputs.
>
> ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 1) JBAS014612: Operation ("add") failed - address: ([
> ("subsystem" => "ejb3"),
> ("cache" => "my-cache")
> ]): java.lang.NullPointerException
> at java.util.HashSet.<init>(HashSet.java:116) [rt.jar:1.6.0_24]
> at org.jboss.as.ejb3.subsystem.CacheFactoryAdd.installRuntimeServices(CacheFactoryAdd.java:83)
> at org.jboss.as.ejb3.subsystem.CacheFactoryAdd.performRuntime(CacheFactoryAdd.java:74)
> at org.jboss.as.controller.AbstractAddStepHandler$1.execute(AbstractAddStepHandler.java:50) [jboss-as-controller-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
> at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:440) [jboss-as-controller-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
> When I add the aliases attribute, it becomes OK, but aliases attribute is nillable, it should ok without the aliases attribute.
> And it's OK in EAP 6.0.1 withoutthe aliases attribute.
> So I did some research, and it turned out the StringListAttributeDefinition#unwrap will return null when the attribute is not defined.
> I also believe there are more subsystems have the same problem other than the ejb3/cache.
--
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