Uploaded image for project: 'Red Hat Data Grid'
  1. Red Hat Data Grid
  2. JDG-353

Conf. Conversion Tool: XMLStreamException is thrown if expiration element contains reaperEnabled attributed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • JDG 7.0.0 ER6
    • JDG 7.0.0 ER5
    • Core
    • None

      The following exception appears in case if the expiration element contains reaperEnabled attribute.

      The XML is:

      <infinispan>
          <namedCache name="evictionCache">
              <expiration wakeUpInterval="500" lifespan="60000" maxIdle="1000" reaperEnabled="false"/>
          </namedCache>
      </infinispan>
      

      the exception thrown while parsing this xml is:

      org.infinispan.commons.CacheConfigurationException: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[8,97]
      Message: Unexpected attribute 'reaper-enabled' encountered
      
      	at org.infinispan.configuration.parsing.ParserRegistry.parse(ParserRegistry.java:120)
      	at org.infinispan.tools.ConfigurationConverterTest.testConversionFrom60(ConfigurationConverterTest.java:24)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:497)
      	at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
      	at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
      	at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
      	at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
      	at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
      	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
      	at org.testng.TestRunner.privateRun(TestRunner.java:767)
      	at org.testng.TestRunner.run(TestRunner.java:617)
      	at org.testng.SuiteRunner.runTest(SuiteRunner.java:348)
      	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:343)
      	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:305)
      	at org.testng.SuiteRunner.run(SuiteRunner.java:254)
      	at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
      	at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
      	at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
      	at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
      	at org.testng.TestNG.run(TestNG.java:1057)
      	at org.testng.IDEARemoteTestNG.run(IDEARemoteTestNG.java:72)
      	at org.testng.RemoteTestNGStarter.main(RemoteTestNGStarter.java:122)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:497)
      	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
      Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[8,97]
      Message: Unexpected attribute 'reaper-enabled' encountered
      	at org.infinispan.configuration.parsing.ParseUtils.unexpectedAttribute(ParseUtils.java:54)
      	at org.infinispan.configuration.parsing.Parser.parseExpiration(Parser.java:1778)
      	at org.infinispan.configuration.parsing.Parser.parseCacheElement(Parser.java:1436)
      	at org.infinispan.configuration.parsing.Parser.parseLocalCache(Parser.java:1156)
      	at org.infinispan.configuration.parsing.Parser.parseContainer(Parser.java:563)
      	at org.infinispan.configuration.parsing.Parser.readElement(Parser.java:114)
      	at org.infinispan.configuration.parsing.ParserRegistry.parseElement(ParserRegistry.java:161)
      	at org.infinispan.configuration.parsing.ParserRegistry.parse(ParserRegistry.java:141)
      	at org.infinispan.configuration.parsing.ParserRegistry.parse(ParserRegistry.java:128)
      	at org.infinispan.configuration.parsing.ParserRegistry.parse(ParserRegistry.java:115)
      	... 29 more
      

            ttarrant@redhat.com Tristan Tarrant
            amanukya@redhat.com Anna Manukyan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: