Log4j 2
  1. Log4j 2
  2. LOG4J2-694

Not able to compile using maven clean install

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0
    • Component/s: None
    • Labels:
      None

      Description

      [INFO] 5 warnings
      [INFO] -------------------------------------------------------------
      [INFO] -------------------------------------------------------------
      [ERROR] COMPILATION ERROR :
      [INFO] -------------------------------------------------------------
      [ERROR] /Users/SmartOffers/Documents/log4j2-trunk/log4j/log4j-core/src/test/java/org/apache/logging/log4j/core/async/perftest/PerfTestDriver.java:[177,13] variable _averageOpsPerSec might already have been assigned
      [INFO] 1 error
      [INFO] -------------------------------------------------------------
      [INFO] ------------------------------------------------------------------------
      [INFO] Reactor Summary:
      [INFO]
      [INFO] Apache Log4j 2 .................................... SUCCESS [0.574s]
      [INFO] Apache Log4j API .................................. SUCCESS [5.993s]
      [INFO] Apache Log4j Core ................................. FAILURE [4.718s]
      [INFO] Apache Log4j 1.x Compatibility API ................ SKIPPED
      [INFO] Apache Log4j SLF4J Binding ........................ SKIPPED
      [INFO] Apache Log4j to SLF4J Adapter ..................... SKIPPED
      [INFO] Apache Log4j Commons Logging Bridge ............... SKIPPED
      [INFO] Apache Log4j Flume NG Bridge ...................... SKIPPED
      [INFO] Apache Log4j Tag Library .......................... SKIPPED
      [INFO] Apache Log4j JMX GUI .............................. SKIPPED
      [INFO] Apache Log4j Samples .............................. SKIPPED
      [INFO] Apache Log4j Samples: Flume - Common .............. SKIPPED
      [INFO] Apache Log4j Samples: Flume - Remote .............. SKIPPED
      [INFO] Apache Log4j Samples: Flume - Embedded ............ SKIPPED
      [INFO] Apache Log4j 2 BOM ................................ SKIPPED
      [INFO] Apache Log4j NoSQL ................................ SKIPPED
      [INFO] Apache Log4j Web .................................. SKIPPED
      [INFO] Apache Log4J Performance Tests .................... SKIPPED
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 12.202s
      [INFO] Finished at: Sun Jun 29 12:52:27 MST 2014
      [INFO] Final Memory: 31M/123M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile (default-testCompile) on project log4j-core: Compilation failure
      [ERROR] /Users/SmartOffers/Documents/log4j2-trunk/log4j/log4j-core/src/test/java/org/apache/logging/log4j/core/async/perftest/PerfTestDriver.java:[177,13] variable _averageOpsPerSec might already have been assigned

        Activity

        SIBISH BASHEER created issue -
        Hide
        Ralph Goers added a comment -

        What is the output from mvn -version? What platform, java and maven version?

        Show
        Ralph Goers added a comment - What is the output from mvn -version? What platform, java and maven version?
        Hide
        SIBISH BASHEER added a comment -

        Apache Maven 3.1.0 (893ca28a1da9d5f51ac03827af98bb730128f9f2; 2013-06-27 19:15:32-0700)
        Maven home: /Users/SmartOffers/Downloads/apache-maven-3.1.0
        Java version: 1.6.0_65, vendor: Apple Inc.
        Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
        Default locale: en_US, platform encoding: MacRoman
        OS name: "mac os x", version: "10.9.2", arch: "x86_64", family: "mac"

        Show
        SIBISH BASHEER added a comment - Apache Maven 3.1.0 (893ca28a1da9d5f51ac03827af98bb730128f9f2; 2013-06-27 19:15:32-0700) Maven home: /Users/SmartOffers/Downloads/apache-maven-3.1.0 Java version: 1.6.0_65, vendor: Apple Inc. Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home Default locale: en_US, platform encoding: MacRoman OS name: "mac os x", version: "10.9.2", arch: "x86_64", family: "mac"
        Hide
        Ralph Goers added a comment -

        I am getting the same error. This appears to be a new class that was added after some refactoring. However, in looking at the code I am not really sure why it is being flagged as an error.

        Show
        Ralph Goers added a comment - I am getting the same error. This appears to be a new class that was added after some refactoring. However, in looking at the code I am not really sure why it is being flagged as an error.
        Hide
        Remko Popma added a comment -

        That class was added when async loggers were introduced in beta-5. It is used to generate the performance numbers on the Async Loggers page.

        What I don't understand is how the build passed for the release, but now the same source code fails to build.

        Show
        Remko Popma added a comment - That class was added when async loggers were introduced in beta-5. It is used to generate the performance numbers on the Async Loggers page. What I don't understand is how the build passed for the release, but now the same source code fails to build.
        Hide
        Matt Sicker added a comment -

        I'm getting the same compile error on Java 1.8.

        Show
        Matt Sicker added a comment - I'm getting the same compile error on Java 1.8.
        Hide
        Matt Sicker added a comment -

        Making the field non-final fixes the problem. However, I can't see where it would logically be assigned already! I tried a few other ways to see if there was anything weird about Java I didn't know about, but I'm out of ideas. Theoretically, this field should be able to be final. However, something odd is happening that won't allow it.

        Show
        Matt Sicker added a comment - Making the field non-final fixes the problem. However, I can't see where it would logically be assigned already! I tried a few other ways to see if there was anything weird about Java I didn't know about, but I'm out of ideas. Theoretically, this field should be able to be final. However, something odd is happening that won't allow it.
        Hide
        Matt Sicker added a comment -

        Fix committed in revision 1606954. Please verify and close.

        Show
        Matt Sicker added a comment - Fix committed in revision 1606954. Please verify and close.
        Matt Sicker made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.0 [ 12324757 ]
        Resolution Fixed [ 1 ]
        Hide
        Matt Sicker added a comment -

        We fixed this a while ago. Clearly, we couldn't continue compiling the project if this bug were still an issue.

        Show
        Matt Sicker added a comment - We fixed this a while ago. Clearly, we couldn't continue compiling the project if this bug were still an issue.
        Matt Sicker made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Assignee Matt Sicker [ jvz ]

          People

          • Assignee:
            Matt Sicker
            Reporter:
            SIBISH BASHEER
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development