[infinispan-issues] [JBoss JIRA] (ISPN-2123) Infinispan GUI demo fails to start cache due to deprecated xml config
Manik Surtani (JIRA)
jira-events at lists.jboss.org
Wed Nov 28 07:18:22 EST 2012
[ https://issues.jboss.org/browse/ISPN-2123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12737676#comment-12737676 ]
Manik Surtani commented on ISPN-2123:
-------------------------------------
This is definitely a problem in 5.2.
Here is a patch that fixes the XML, but also adds /etc to the startup scripts and explicitly references the config file using the -D parameter.
https://github.com/maniksurtani/infinispan/commit/8d953ee3071d6b98cee07a24aa4ff97c6b712ae4
Using this mechanism to specify the config file makes it easy for users to change this to different config files, but we must *also* make sure we *do not* package {{config-samples/gui-demo-cache-config.xml}} in the infinispan-gui-demo.jar file for this to work.
See ISPN-2560 which addresses the second part.
> Infinispan GUI demo fails to start cache due to deprecated xml config
> ---------------------------------------------------------------------
>
> Key: ISPN-2123
> URL: https://issues.jboss.org/browse/ISPN-2123
> Project: Infinispan
> Issue Type: Feature Request
> Components: Demos and Tutorials
> Affects Versions: 5.2.0.ALPHA1
> Reporter: Adrian Nistor
> Assignee: Adrian Nistor
> Fix For: 5.2.0.Final
>
>
> Running bin\runGuiDemo.bat and trying to start a cache will throw this exception which indicates the xml config references deprecated attributes.
> C:\work\infinispan-5.2.0-SNAPSHOT-bin\bin>runGuiDemo.bat
> log4j:WARN No appenders could be found for logger (org.jboss.logging).
> log4j:WARN Please initialize the log4j system properly.
> log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more in
> fo.
> Exception in thread "pool-1-thread-1" java.lang.RuntimeException: org.infinispan
> .config.ConfigurationException: javax.xml.stream.XMLStreamException: ParseError
> at [row,col]:[38,10]
> Message: Unexpected attribute 'rehashRpcTimeout' encountered
> at org.infinispan.demo.InfinispanDemo$10.run(InfinispanDemo.java:416)
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source
> )
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
> at java.lang.Thread.run(Unknown Source)
> Caused by: org.infinispan.config.ConfigurationException: javax.xml.stream.XMLStr
> eamException: ParseError at [row,col]:[38,10]
> Message: Unexpected attribute 'rehashRpcTimeout' encountered
> at org.infinispan.configuration.parsing.ParserRegistry.parse(ParserRegis
> try.java:84)
> at org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager
> .java:358)
> at org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager
> .java:344)
> at org.infinispan.demo.InfinispanDemo$10.run(InfinispanDemo.java:377)
> ... 3 more
> Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[38,10]
> Message: Unexpected attribute 'rehashRpcTimeout' encountered
> at org.infinispan.configuration.parsing.ParseUtils.unexpectedAttribute(P
> arseUtils.java:76)
> at org.infinispan.configuration.parsing.Parser52.parseHash(Parser52.java
> :985)
> at org.infinispan.configuration.parsing.Parser52.parseClustering(Parser5
> 2.java:827)
> at org.infinispan.configuration.parsing.Parser52.parseCache(Parser52.jav
> a:157)
> at org.infinispan.configuration.parsing.Parser52.parseDefaultCache(Parse
> r52.java:149)
> at org.infinispan.configuration.parsing.Parser52.readElement(Parser52.ja
> va:102)
> at org.infinispan.configuration.parsing.Parser52.readElement(Parser52.ja
> va:77)
> at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:1
> 10)
> at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:6
> 9)
> at org.infinispan.configuration.parsing.ParserRegistry.parse(ParserRegis
> try.java:78)
> ... 6 more
--
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 infinispan-issues
mailing list