Ryan Emerson created ISPN-10497:
-----------------------------------
Summary: Provide default XmlResourceResolver for DefaultCacheManager
Key: ISPN-10497
URL:
https://issues.jboss.org/browse/ISPN-10497
Project: Infinispan
Issue Type: Bug
Components: Core
Affects Versions: 10.0.0.Beta5
Reporter: Ryan Emerson
{code:java}
public DefaultCacheManager(InputStream configurationStream, boolean start) throws
IOException {
this(new ParserRegistry().parse(configurationStream, null), start);
}
{code}
Utilising the above constructor results in a NPE if the {{InputStream}} contains a
configuration which loads a stack-file, as the {{XMLResourceResolver}} is always null in
{{Parser::addJGroupsStackFile}}.
We should provide a default resolver implementation that utilises the same strategy as the
{{GlobalConfigurationBuilder}} to determine which classloader should be used to resolve
resources.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)