configuration error
jagdip Apr 20, 2014 7:21 PMHi,
I am reading Infinispan data grid book and downloaded all example code from github. infinispan/Infinispan-book · GitHub
While executing code from chapter3. I am getting following error
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[root@JBOSS1 chapter3]# mvn exec:java -Dexec.mainClass="com.packtpub.infinispan.chapter3.ExpiryCacheByConfig"
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Code samples for Chapter 3 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> exec-maven-plugin:1.2.1:java (default-cli) @ code-samples-chapter3 >>>
[INFO]
[INFO] --- maven-enforcer-plugin:1.0.1:enforce (enforce-java) @ code-samples-chapter3 ---
[INFO]
[INFO] <<< exec-maven-plugin:1.2.1:java (default-cli) @ code-samples-chapter3 <<<
[INFO]
[INFO] --- exec-maven-plugin:1.2.1:java (default-cli) @ code-samples-chapter3 ---
[WARNING]
java.lang.reflect.InvocationTargetException
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:606)
at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:297)
at java.lang.Thread.run(Thread.java:744)
Caused by: org.infinispan.config.ConfigurationException: com.ctc.wstx.exc.WstxIOException: Stream closed
at org.infinispan.configuration.parsing.Parser.parse(Parser.java:116)
at org.infinispan.configuration.parsing.Parser.parse(Parser.java:94)
at org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:369)
at org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:341)
at org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:328)
at com.packtpub.infinispan.chapter3.ExpiryCacheByConfig.start(ExpiryCacheByConfig.java:20)
at com.packtpub.infinispan.chapter3.ExpiryCacheByConfig.main(ExpiryCacheByConfig.java:47)
... 6 more
Caused by: com.ctc.wstx.exc.WstxIOException: Stream closed
at com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:536)
at com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:585)
at com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:600)
at com.ctc.wstx.stax.WstxInputFactory.createXMLStreamReader(WstxInputFactory.java:309)
at org.infinispan.configuration.parsing.Parser.parse(Parser.java:104)
... 12 more
Caused by: java.io.IOException: Stream closed
at java.io.BufferedInputStream.getInIfOpen(BufferedInputStream.java:151)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:275)
at java.io.BufferedInputStream.read(BufferedInputStream.java:334)
at com.ctc.wstx.io.StreamBootstrapper.ensureLoaded(StreamBootstrapper.java:478)
at com.ctc.wstx.io.StreamBootstrapper.resolveStreamEncoding(StreamBootstrapper.java:302)
at com.ctc.wstx.io.StreamBootstrapper.bootstrapInput(StreamBootstrapper.java:166)
at com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:531)
... 16 more
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.097s
[INFO] Finished at: Fri Apr 18 14:28:08 EDT 2014
[INFO] Final Memory: 10M/28M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:java (default-cli) on project code-samples-chapter3: An exception occured while executing the Java class. null: InvocationTargetException: com.ctc.wstx.exc.WstxIOException: Stream closed -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
I have configured maven correctly and added all repositories properly. There seems to be an issue with configuration file. does anyone know what could be the issue?