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

Error if debug log enabled in multithreaded builds

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 3.5.3
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      Maven 3.5.3
      Java 1.8.0_161

      Description

      If running parallel builds of multi-module projects with enabled debug logs Maven stops with an error durcing logging of output.

      Command to reproduce: mvn -X -T 5 clean install

      See the stacktrace below.

      java.lang.NumberFormatException: For input string: "36m"
               at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
               at java.lang.Integer.parseInt(Integer.java:580)
               at java.lang.Integer.<init>(Integer.java:867)
               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:156)
               at org.slf4j.impl.MavenSimpleLogger.writeThrowable(MavenSimpleLogger.java:69)
               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 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:498)
               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)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rfscholte Robert Scholte
                Reporter:
                stefan.mueller@zkb.ch Stefan Mueller
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: