[
https://issues.apache.org/jira/browse/LOG4J2-1901?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16025252#comment-16025252
]
ASF GitHub Bot commented on LOG4J2-1901:
----------------------------------------
GitHub user PascalSchumacher opened a pull request:
https://github.com/apache/logging-log4j2/pull/79
LOG4J2-1901: Fix travis-ci build
remove apt-get, use trusty dist
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/PascalSchumacher/logging-log4j2
try_to_fix_build_on_travis_3
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/logging-log4j2/pull/79.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #79
----
commit df3d77a39bf3e9045e1ef7567584042819ce3cfd
Author: Pascal Schumacher <[email protected]>
Date: 2017-05-25T19:28:35Z
LOG4J2-1901: Fix travis-ci build
remove apt-get, use trusty dist
----
> 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)