Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-1222

ForkClient attempts to consume unrelated lines

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.17
    • Fix Version/s: 3.0.0-M4
    • Labels:
      None
    • Environment:
      Oracle JDK7 (build 1.7.0_79-b15)
      Linux 3.13 x86_64 with default locale cs_CZ

      Description

      This month the Weld SE test suite suddenly started to fail on a Linux machine with Oracle JDK7 and the default locale cs_CZ:

      Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
      	at java.lang.String.substring(String.java:1911)
      	at org.apache.maven.plugin.surefire.booterclient.output.ForkClient.consumeLine(ForkClient.java:128)
      	at org.apache.maven.plugin.surefire.booterclient.output.ThreadedStreamConsumer$Pumper.run(ThreadedStreamConsumer.java:67)
      	at java.lang.Thread.run(Thread.java:745)
      

      A java.util.logging.Logger is used in the forked process. The exception occurs when the following log message is written to the standard output:

      I 29, 2016 2:01:43 ODP. org.jboss.arquillian.container.se.server.Main main
      

      We have found out that the timestamp I 29, 2016 2:01:43 (i.e. 2016-01-29 14:01:43) is incorrectly parsed as ForkingRunListener.BOOTERCODE_SYSPROPS operation.

      I think the protocol should be robust enough to avoid similar collisions.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tibordigana Tibor Digana
                Reporter:
                mkouba Martin Kouba
              • Votes:
                0 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m