]
Sebastian Łaskawiec reassigned ISPN-4052:
-----------------------------------------
Assignee: Sebastian Łaskawiec
Quickstart distribution example does not work with xml configuration
--------------------------------------------------------------------
Key: ISPN-4052
URL:
https://issues.jboss.org/browse/ISPN-4052
Project: Infinispan
Issue Type: Bug
Affects Versions: 6.0.0.Final
Reporter: Anton Lisovenko
Assignee: Sebastian Łaskawiec
org.infinispan.quickstart.clusteredcache.distribution.AbstractNode has the block
this.cacheManager = createCacheManagerProgramatically();
// Uncomment to create cache from XML
/*try {
this.cacheManager = createCacheManagerFromXml();
} catch (IOException e) {
throw new RuntimeException(e);
}*/
When I uncomment the xml configuration and run Node0, I recieve the error:
{quote}
Exception in thread "main" org.infinispan.commons.CacheConfigurationException:
javax.xml.stream.XMLStreamException: ParseError at [row,col]:[29,4]
Message: found: CHARACTERS, expected START_ELEMENT or END_ELEMENT
at org.infinispan.configuration.parsing.ParserRegistry.parse(ParserRegistry.java:102)
at
org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:251)
at
org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:224)
at
org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:211)
at
org.infinispan.quickstart.clusteredcache.distribution.AbstractNode.createCacheManagerFromXml(AbstractNode.java:51)
at
org.infinispan.quickstart.clusteredcache.distribution.AbstractNode.<init>(AbstractNode.java:62)
at
org.infinispan.quickstart.clusteredcache.distribution.Node0.<init>(Node0.java:28)
at org.infinispan.quickstart.clusteredcache.distribution.Node0.main(Node0.java:31)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[29,4]
Message: found: CHARACTERS, expected START_ELEMENT or END_ELEMENT
at
com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.nextTag(XMLStreamReaderImpl.java:1250)
at
org.infinispan.configuration.parsing.XMLExtendedStreamReaderImpl.nextTag(XMLExtendedStreamReaderImpl.java:88)
at org.infinispan.configuration.parsing.Parser60.readElement(Parser60.java:64)
at
org.infinispan.configuration.parsing.ParserRegistry.parseElement(ParserRegistry.java:141)
at org.infinispan.configuration.parsing.ParserRegistry.parse(ParserRegistry.java:123)
at org.infinispan.configuration.parsing.ParserRegistry.parse(ParserRegistry.java:110)
at org.infinispan.configuration.parsing.ParserRegistry.parse(ParserRegistry.java:97)
... 12 more
{quote}