Log4j 2
  1. Log4j 2
  2. LOG4J2-560

TLSSyslogAppenderTest is failing in trunk with Java 8 (build 1.8.0-b128)

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-rc2
    • Fix Version/s: 2.0-rc2
    • Component/s: Appenders
    • Labels:
    • Environment:

      Description

      All four tests in TLSSyslogAppenderTest are failing with basically the same problem:

      ERROR StatusLogger The keystore file(src/test/resources/org/apache/logging/log4j/core/net/ssl/client.log4j2-keystore.jks) is not found
      ERROR StatusLogger The keystore file(src/test/resources/org/apache/logging/log4j/core/net/ssl/truststore.jks) is not found

        Activity

        Matt Sicker created issue -
        Hide
        Matt Sicker added a comment -

        Hah, false alarm on that. Here's what I actually get from Maven:

        Failed tests:
        SyslogAppenderTest.testUDPStructuredAppender:85->SyslogAppenderTestBase.sendAndCheckStructuredMessage:88->SyslogAppenderTestBase.checkTheEqualityOfSentAndReceivedMessages:117 Incorrect message received: <134>1 2014-03-03T17:45:18.579-06:00 MACDF1G3 TestApp - Audit [RequestContext@18060 ipAddress="192.168.0.120" loginId="JohnDoe"][Transfer@18060 Amount="200.00" FromAccount="123457" ToAccount="123456"] Transfer Complete

        SyslogAppenderTest.testTCPStructuredAppender:69->SyslogAppenderTestBase.sendAndCheckStructuredMessage:88->SyslogAppenderTestBase.checkTheEqualityOfSentAndReceivedMessages:117 Incorrect message received: <134>1 2014-03-03T17:45:18.827-06:00 MACDF1G3 TestApp - Audit [RequestContext@18060 ipAddress="192.168.0.120" loginId="JohnDoe"][Transfer@18060 Amount="200.00" FromAccount="123457" ToAccount="123456"] Transfer Complete

        TLSSyslogAppenderTest.sendStructuredMessagesOverTLS:73->SyslogAppenderTestBase.sendAndCheckStructuredMessages:82->SyslogAppenderTestBase.checkTheEqualityOfSentAndReceivedMessages:117 Incorrect message received: <134>1 2014-03-03T17:45:20.591-06:00 MACDF1G3 TestApp - Audit [RequestContext@18060 ipAddress="192.168.0.120" loginId="JohnDoe"][Transfer@18060 Amount="200.00" FromAccount="123457" ToAccount="123456"] Transfer Complete

        TLSSyslogAppenderTest.sendStructuredMessageOverTLS:65->SyslogAppenderTestBase.sendAndCheckStructuredMessage:88->SyslogAppenderTestBase.checkTheEqualityOfSentAndReceivedMessages:117 Incorrect message received: <134>1 2014-03-03T17:45:20.958-06:00 MACDF1G3 TestApp - Audit [RequestContext@18060 ipAddress="192.168.0.120" loginId="JohnDoe"][Transfer@18060 Amount="200.00" FromAccount="123457" ToAccount="123456"] Transfer Complete

        TLSSyslogAppenderTest>SyslogAppenderTest.testUDPStructuredAppender:85->SyslogAppenderTestBase.sendAndCheckStructuredMessage:88->SyslogAppenderTestBase.checkTheEqualityOfSentAndReceivedMessages:117 Incorrect message received: <134>1 2014-03-03T17:45:22.921-06:00 MACDF1G3 TestApp - Audit [RequestContext@18060 ipAddress="192.168.0.120" loginId="JohnDoe"][Transfer@18060 Amount="200.00" FromAccount="123457" ToAccount="123456"] Transfer Complete

        TLSSyslogAppenderTest>SyslogAppenderTest.testTCPStructuredAppender:69->SyslogAppenderTestBase.sendAndCheckStructuredMessage:88->SyslogAppenderTestBase.checkTheEqualityOfSentAndReceivedMessages:117 Incorrect message received: <134>1 2014-03-03T17:45:23.136-06:00 MACDF1G3 TestApp - Audit [RequestContext@18060 ipAddress="192.168.0.120" loginId="JohnDoe"][Transfer@18060 Amount="200.00" FromAccount="123457" ToAccount="123456"] Transfer Complete

        RFC5424LayoutTest.testLoggerFields:334 Not expected message received

        Show
        Matt Sicker added a comment - Hah, false alarm on that. Here's what I actually get from Maven: Failed tests: SyslogAppenderTest.testUDPStructuredAppender:85->SyslogAppenderTestBase.sendAndCheckStructuredMessage:88->SyslogAppenderTestBase.checkTheEqualityOfSentAndReceivedMessages:117 Incorrect message received: <134>1 2014-03-03T17:45:18.579-06:00 MACDF1G3 TestApp - Audit [RequestContext@18060 ipAddress="192.168.0.120" loginId="JohnDoe"] [Transfer@18060 Amount="200.00" FromAccount="123457" ToAccount="123456"] Transfer Complete SyslogAppenderTest.testTCPStructuredAppender:69->SyslogAppenderTestBase.sendAndCheckStructuredMessage:88->SyslogAppenderTestBase.checkTheEqualityOfSentAndReceivedMessages:117 Incorrect message received: <134>1 2014-03-03T17:45:18.827-06:00 MACDF1G3 TestApp - Audit [RequestContext@18060 ipAddress="192.168.0.120" loginId="JohnDoe"] [Transfer@18060 Amount="200.00" FromAccount="123457" ToAccount="123456"] Transfer Complete TLSSyslogAppenderTest.sendStructuredMessagesOverTLS:73->SyslogAppenderTestBase.sendAndCheckStructuredMessages:82->SyslogAppenderTestBase.checkTheEqualityOfSentAndReceivedMessages:117 Incorrect message received: <134>1 2014-03-03T17:45:20.591-06:00 MACDF1G3 TestApp - Audit [RequestContext@18060 ipAddress="192.168.0.120" loginId="JohnDoe"] [Transfer@18060 Amount="200.00" FromAccount="123457" ToAccount="123456"] Transfer Complete TLSSyslogAppenderTest.sendStructuredMessageOverTLS:65->SyslogAppenderTestBase.sendAndCheckStructuredMessage:88->SyslogAppenderTestBase.checkTheEqualityOfSentAndReceivedMessages:117 Incorrect message received: <134>1 2014-03-03T17:45:20.958-06:00 MACDF1G3 TestApp - Audit [RequestContext@18060 ipAddress="192.168.0.120" loginId="JohnDoe"] [Transfer@18060 Amount="200.00" FromAccount="123457" ToAccount="123456"] Transfer Complete TLSSyslogAppenderTest>SyslogAppenderTest.testUDPStructuredAppender:85->SyslogAppenderTestBase.sendAndCheckStructuredMessage:88->SyslogAppenderTestBase.checkTheEqualityOfSentAndReceivedMessages:117 Incorrect message received: <134>1 2014-03-03T17:45:22.921-06:00 MACDF1G3 TestApp - Audit [RequestContext@18060 ipAddress="192.168.0.120" loginId="JohnDoe"] [Transfer@18060 Amount="200.00" FromAccount="123457" ToAccount="123456"] Transfer Complete TLSSyslogAppenderTest>SyslogAppenderTest.testTCPStructuredAppender:69->SyslogAppenderTestBase.sendAndCheckStructuredMessage:88->SyslogAppenderTestBase.checkTheEqualityOfSentAndReceivedMessages:117 Incorrect message received: <134>1 2014-03-03T17:45:23.136-06:00 MACDF1G3 TestApp - Audit [RequestContext@18060 ipAddress="192.168.0.120" loginId="JohnDoe"] [Transfer@18060 Amount="200.00" FromAccount="123457" ToAccount="123456"] Transfer Complete RFC5424LayoutTest.testLoggerFields:334 Not expected message received
        Hide
        Ralph Goers added a comment -

        These tests all work fine for me on OSX. I assume you are having these problems on Windows? What JDK are you using?

        Show
        Ralph Goers added a comment - These tests all work fine for me on OSX. I assume you are having these problems on Windows? What JDK are you using?
        Hide
        Gary Gregory added a comment -

        This is a problem only on Java 8:

        Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9; 2014-02-14T12:37:52-05:00)
        Maven home: C:\Java\apache-maven-3.2.1\bin\..
        Java version: 1.8.0, vendor: Oracle Corporation
        Java home: C:\Program Files\Java\jdk1.8.0\jre
        Default locale: en_US, platform encoding: Cp1252
        OS name: "windows 7", version: "6.1", arch: "amd64", family: "dos"

        java version "1.8.0"
        Java(TM) SE Runtime Environment (build 1.8.0-b128)
        Java HotSpot(TM) 64-Bit Server VM (build 25.0-b69, mixed mode)

        Show
        Gary Gregory added a comment - This is a problem only on Java 8: Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9; 2014-02-14T12:37:52-05:00) Maven home: C:\Java\apache-maven-3.2.1\bin\.. Java version: 1.8.0, vendor: Oracle Corporation Java home: C:\Program Files\Java\jdk1.8.0\jre Default locale: en_US, platform encoding: Cp1252 OS name: "windows 7", version: "6.1", arch: "amd64", family: "dos" java version "1.8.0" Java(TM) SE Runtime Environment (build 1.8.0-b128) Java HotSpot(TM) 64-Bit Server VM (build 25.0-b69, mixed mode)
        Gary Gregory made changes -
        Field Original Value New Value
        Summary TLSSyslogAppenderTest is failing in trunk. TLSSyslogAppenderTest is failing in trunk with Java 8
        Gary Gregory made changes -
        Summary TLSSyslogAppenderTest is failing in trunk with Java 8 TLSSyslogAppenderTest is failing in trunk with Java 8 (build 1.8.0-b128)
        Gary Gregory made changes -
        Environment Maven, IntelliJ Maven, IntelliJ, Java 8 (build 1.8.0-b128)
        Gary Gregory made changes -
        Environment Maven, IntelliJ, Java 8 (build 1.8.0-b128) Maven, IntelliJ, Java 8 (build 1.8.0-b128)

        Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9; 2014-02-14T12:37:52-05:00)
        Maven home: C:\Java\apache-maven-3.2.1\bin\..
        Java version: 1.8.0, vendor: Oracle Corporation
        Java home: C:\Program Files\Java\jdk1.8.0\jre
        Default locale: en_US, platform encoding: Cp1252
        OS name: "windows 7", version: "6.1", arch: "amd64", family: "dos"

        java version "1.8.0"
        Java(TM) SE Runtime Environment (build 1.8.0-b128)
        Java HotSpot(TM) 64-Bit Server VM (build 25.0-b69, mixed mode)
        Hide
        Matt Sicker added a comment - - edited

        I'm on OSX. Just noticed that I'm also using Java 1.8. So I guess it really is related to Java 8.

        mvn -version
        Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9; 2014-02-14T11:37:52-06:00)
        Maven home: /usr/local/Cellar/maven/3.2.1/libexec
        Java version: 1.8.0, vendor: Oracle Corporation
        Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre
        Default locale: en_US, platform encoding: UTF-8
        OS name: "mac os x", version: "10.8.5", arch: "x86_64", family: "mac"

        java -version
        java version "1.8.0"
        Java(TM) SE Runtime Environment (build 1.8.0-b129)
        Java HotSpot(TM) 64-Bit Server VM (build 25.0-b69, mixed mode)

        Show
        Matt Sicker added a comment - - edited I'm on OSX. Just noticed that I'm also using Java 1.8. So I guess it really is related to Java 8. mvn -version Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9; 2014-02-14T11:37:52-06:00) Maven home: /usr/local/Cellar/maven/3.2.1/libexec Java version: 1.8.0, vendor: Oracle Corporation Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre Default locale: en_US, platform encoding: UTF-8 OS name: "mac os x", version: "10.8.5", arch: "x86_64", family: "mac" java -version java version "1.8.0" Java(TM) SE Runtime Environment (build 1.8.0-b129) Java HotSpot(TM) 64-Bit Server VM (build 25.0-b69, mixed mode)
        Hide
        Ralph Goers added a comment -

        I installed Java 8 and am seeing the same failures. Since builds using Java 6 work fine I don't believe other fixes, such as upgrading the SLF4J version, are suspect.

        Show
        Ralph Goers added a comment - I installed Java 8 and am seeing the same failures. Since builds using Java 6 work fine I don't believe other fixes, such as upgrading the SLF4J version, are suspect.
        Hide
        Ralph Goers added a comment -

        It appears that for some reason the order of how the Structured Data elements are being written has changed. I'll have to look some more to figure out why.

        Show
        Ralph Goers added a comment - It appears that for some reason the order of how the Structured Data elements are being written has changed. I'll have to look some more to figure out why.
        Hide
        Ralph Goers added a comment -

        Fixed in revision 1574267. Please verify and close.

        Show
        Ralph Goers added a comment - Fixed in revision 1574267. Please verify and close.
        Ralph Goers made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Ralph Goers [ ralph.goers@dslextreme.com ]
        Fix Version/s 2.0-rc2 [ 12326292 ]
        Resolution Fixed [ 1 ]
        Hide
        Matt Sicker added a comment -

        Verified working in my Java 8 environment now.

        Show
        Matt Sicker added a comment - Verified working in my Java 8 environment now.
        Matt Sicker made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Ralph Goers
            Reporter:
            Matt Sicker
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development