Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-6382

JANSI fails frequently with NumberFormatException when building in parallel

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.5.3
    • 3.5.4
    • Logging
    • None

    Description

      After upgrading from 3.3.9 to 3.5.4 my parallel Maven build fail frequently with:

      java.lang.NumberFormatException: For input string: "34m"
              at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
              at java.base/java.lang.Integer.parseInt(Integer.java:652)
              at java.base/java.lang.Integer.<init>(Integer.java:1096)
              at org.fusesource.jansi.AnsiPrintStream.filter(AnsiPrintStream.java:129)
              at org.fusesource.jansi.FilterPrintStream.write(FilterPrintStream.java:97)
              at org.fusesource.jansi.FilterPrintStream.write(FilterPrintStream.java:107)
              at org.fusesource.jansi.FilterPrintStream.print(FilterPrintStream.java:161)
              at org.slf4j.impl.MavenSimpleLogger.writeThrowable(MavenSimpleLogger.java:81)
              at org.slf4j.impl.SimpleLogger.write(SimpleLogger.java:319)
              at org.slf4j.impl.SimpleLogger.log(SimpleLogger.java:295)
              at org.slf4j.impl.SimpleLogger.error(SimpleLogger.java:593)
              at org.apache.maven.cli.CLIReportingUtils.showError(CLIReportingUtils.java:138)
              at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:309)
              at org.apache.maven.cli.MavenCli.main(MavenCli.java:194)
              at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.base/java.lang.reflect.Method.invoke(Method.java:564)
              at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
              at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
              at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
              at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
      

      This seems to have been fixed in JANSI master branch but it has not yet been released. There is already a request for a bugfix release, see issue 114 ("Need 1.17.1 release").

      Maven 3.5.4 should therefore upgrade to JANSI 1.17.1.

      Attachments

        Issue Links

          Activity

            People

              hboutemy Herve Boutemy
              famod Falko Modler
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: