[ 
https://issues.apache.org/jira/browse/LOG4J2-1901?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Pascal Schumacher updated LOG4J2-1901:
--------------------------------------
    Description: 
The travis-ci build has been failing for weeks e.g. 
https://travis-ci.org/apache/logging-log4j2/builds/229711810?utm_source=github_status&utm_medium=notification

Compile is working again with this pull request: 
https://github.com/apache/logging-log4j2/pull/76

but there are test failures:

{quote}
[ERROR] Failures: 
[ERROR]   SecureSocketAppenderSocketOptionsTest.testSocketOptions:112 
expected:<2> but was:<0>
[ERROR]   SocketAppenderSocketOptionsTest.testSocketOptions:92 expected:<2> but 
was:<0>{quote}

Both test fail because of this assertion:

{code}Assert.assertEquals(Rfc1349TrafficClass.IPTOS_LOWCOST.value(), 
socket.getTrafficClass());{code}

see: https://api.travis-ci.org/jobs/229708654/log.txt?deansi=true
see: https://api.travis-ci.org/jobs/229718313/log.txt?deansi=true

If I comment out both assertions, everything is fine until the "Scala API" 
module:

{quote}
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.17 s 
<<< FAILURE! - in org.apache.logging.log4j.scala.LoggerTest
[ERROR] org.apache.logging.log4j.scala.LoggerTest  Time elapsed: 0.52 s  <<< 
ERROR!
java.lang.NoClassDefFoundError: org/apache/logging/log4j/scala/Logger$
        at 
org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
        at 
org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:272)
        at 
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:236)
        at 
org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
Caused by: java.lang.ClassNotFoundException: 
org.apache.logging.log4j.scala.Logger$
        at 
org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
        at 
org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:272)
        at 
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:236)
        at 
org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
{quote}
see: https://api.travis-ci.org/jobs/229725663/log.txt?deansi=true

  was:
The travis-ci build has been failing for weeks e.g. 
https://travis-ci.org/apache/logging-log4j2/builds/229711810?utm_source=github_status&utm_medium=notification

Compile is working again with this pull request: 
https://github.com/apache/logging-log4j2/pull/76

but there are test failures:

{quote}
[ERROR] Failures: 
[ERROR]   SecureSocketAppenderSocketOptionsTest.testSocketOptions:112 
expected:<2> but was:<0>
[ERROR]   SocketAppenderSocketOptionsTest.testSocketOptions:92 expected:<2> but 
was:<0>{quote}

Both test fail because of this assertion:

{code}Assert.assertEquals(Rfc1349TrafficClass.IPTOS_LOWCOST.value(), 
socket.getTrafficClass());{code}

see: https://api.travis-ci.org/jobs/229708654/log.txt?deansi=true
see: https://api.travis-ci.org/jobs/229718313/log.txt?deansi=true



> Fix travis-ci build
> -------------------
>
>                 Key: LOG4J2-1901
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-1901
>             Project: Log4j 2
>          Issue Type: Bug
>            Reporter: Pascal Schumacher
>
> The travis-ci build has been failing for weeks e.g. 
> https://travis-ci.org/apache/logging-log4j2/builds/229711810?utm_source=github_status&utm_medium=notification
> Compile is working again with this pull request: 
> https://github.com/apache/logging-log4j2/pull/76
> but there are test failures:
> {quote}
> [ERROR] Failures: 
> [ERROR]   SecureSocketAppenderSocketOptionsTest.testSocketOptions:112 
> expected:<2> but was:<0>
> [ERROR]   SocketAppenderSocketOptionsTest.testSocketOptions:92 expected:<2> 
> but was:<0>{quote}
> Both test fail because of this assertion:
> {code}Assert.assertEquals(Rfc1349TrafficClass.IPTOS_LOWCOST.value(), 
> socket.getTrafficClass());{code}
> see: https://api.travis-ci.org/jobs/229708654/log.txt?deansi=true
> see: https://api.travis-ci.org/jobs/229718313/log.txt?deansi=true
> If I comment out both assertions, everything is fine until the "Scala API" 
> module:
> {quote}
> [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.17 
> s <<< FAILURE! - in org.apache.logging.log4j.scala.LoggerTest
> [ERROR] org.apache.logging.log4j.scala.LoggerTest  Time elapsed: 0.52 s  <<< 
> ERROR!
> java.lang.NoClassDefFoundError: org/apache/logging/log4j/scala/Logger$
>       at 
> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
>       at 
> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:272)
>       at 
> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:236)
>       at 
> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
> Caused by: java.lang.ClassNotFoundException: 
> org.apache.logging.log4j.scala.Logger$
>       at 
> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
>       at 
> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:272)
>       at 
> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:236)
>       at 
> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
> {quote}
> see: https://api.travis-ci.org/jobs/229725663/log.txt?deansi=true



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to