[infinispan-issues] [JBoss JIRA] (ISPN-1464) NPE while parsing a configuration file enabling batching
Mircea Markus (Commented) (JIRA)
jira-events at lists.jboss.org
Tue Oct 18 11:16:45 EDT 2011
[ https://issues.jboss.org/browse/ISPN-1464?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12635496#comment-12635496 ]
Mircea Markus commented on ISPN-1464:
-------------------------------------
Here's the reason:
- the InvocationBatching.config field is set when Configuration() c-tor is invoked, when the Configuration.invocationBatching field is initialised[1]
- when the configuration is build through JAXB the Configuration c-tor is not invoked and Configuration.invocationBatching is built and set through reflection. This means that [1] never gets called, hence the null reference.
Whilst I think I can dig through JAXB and see how object creation can be controlled, IMO this is not worth doing at this time as Pete's already dropping JAXB from the picture.
[1] look this up in Configuration.java (InvocationBatching invocationBatching = new InvocationBatching().setConfiguration(this);)
> NPE while parsing a configuration file enabling batching
> --------------------------------------------------------
>
> Key: ISPN-1464
> URL: https://issues.jboss.org/browse/ISPN-1464
> Project: Infinispan
> Issue Type: Bug
> Affects Versions: 5.1.0.BETA1
> Reporter: Sanne Grinovero
> Assignee: Mircea Markus
> Fix For: 5.1.0.BETA2
>
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the infinispan-issues
mailing list