Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-797

NumberFormatException when creating a new GlobalConfiguration

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • 4.2.0.CR2
    • 4.2.0.CR1
    • Configuration
    • None

    Description

      This only happens in the CR1 tag, it seems like once we switched the versions, it started to fail then.

      Test:

      @Test(testName = "config.GlobalConfigurationTest", groups = "functional")
      public class GlobalConfigurationTest {

      public void testEmptyConstructor()

      { new GlobalConfiguration(); }

      }

      Result:

      java.lang.ExceptionInInitializerError
      at org.infinispan.config.GlobalConfigurationTest.testEmptyConstructor(GlobalConfigurationTest.java:15)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:641)
      at org.testng.internal.Invoker.invokeMethod(Invoker.java:677)
      at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:850)
      at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1154)
      at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:137)
      at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:121)
      at org.testng.TestRunner.runWorkers(TestRunner.java:1108)
      at org.testng.TestRunner.privateRun(TestRunner.java:737)
      at org.testng.TestRunner.run(TestRunner.java:596)
      at org.testng.SuiteRunner.runTest(SuiteRunner.java:315)
      at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:310)
      at org.testng.SuiteRunner.privateRun(SuiteRunner.java:272)
      at org.testng.SuiteRunner.run(SuiteRunner.java:221)
      at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
      at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
      at org.testng.TestNG.runSuitesSequentially(TestNG.java:1027)
      at org.testng.TestNG.runSuitesLocally(TestNG.java:964)
      at org.testng.TestNG.run(TestNG.java:896)
      at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:89)
      at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:144)
      at org.testng.RemoteTestNGStarter.main(RemoteTestNGStarter.java:85)
      Caused by: java.lang.NumberFormatException: For input string: "CR1"
      at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
      at java.lang.Integer.parseInt(Integer.java:449)
      at java.lang.Integer.parseInt(Integer.java:499)
      at org.infinispan.Version.getVersionShort(Version.java:130)
      at org.infinispan.Version.getVersionShort(Version.java:114)
      at org.infinispan.config.GlobalConfiguration.<clinit>(GlobalConfiguration.java:66)
      ... 26 more

      Attachments

        Issue Links

          Activity

            People

              rh-ee-galder Galder Zamarreño
              rh-ee-galder Galder Zamarreño
              Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: