[slf4j-user] build/test failures compiling 1.7 from source

Ti Strga wearyofallthiscrap at gmail.com
Fri Apr 14 23:31:54 CEST 2017


A project with my employer requires that a third-party evaluator
organization build all of our software from source.  One of the
components we use is SLF4J, and the specific version for this project
has been 1.7.21.  (Later versions of our project are using later
versions of SLF4J/Logback, but for *this* evaluation, they need to be
able to build and test *this* version.)

We typically don't need to build SLF4J from source, as the released
precompiled binary jar files are enough.  So this is our first time
needing to go through the build process -- and the third-party testers
will have to do the same.

I got the 1.7.21 sources onto the test computer, which also has an
empty local Maven repository.  All we need to do is build the binary
JAR, corresponding to the "package" phase in Maven.  (As far as I can
tell from Maven documentation.)  However, running "mvn package"
encounters fatal errors during its testing.  The complete logfile is
appended to this email, but the relevant failure part is:


Running org.slf4j.helpers.SimpleLoggerMultithreadedInitializationTest
THREAD_COUNT=6
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.06
sec <<< FAILURE! - in
org.slf4j.helpers.SimpleLoggerMultithreadedInitializationTest
multiThreadedInitialization(org.slf4j.helpers.SimpleLoggerMultithreadedInitializationTest)
 Time elapsed: 0.051 sec  <<< FAILURE!
java.lang.AssertionError: 388 < 0+16
    at org.junit.Assert.fail(Assert.java:88)
    at org.junit.Assert.assertTrue(Assert.java:41)
    at org.slf4j.helpers.MultithreadedInitializationTest.multiThreadedInitialization(MultithreadedInitializationTest.java:46)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
    at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
    at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
    at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:367)
    at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:274)
    at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
    at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:161)
    at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
    at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
    at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)

Results :

Failed tests:
  SimpleLoggerMultithreadedInitializationTest>MultithreadedInitializationTest.multiThreadedInitialization:46
388 < 0+16

Tests run: 17, Failures: 1, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] SLF4J .............................................. SUCCESS [  0.562 s]
[INFO] SLF4J API Module ................................... SUCCESS [  5.068 s]
[INFO] SLF4J Simple Binding ............................... FAILURE [  1.193 s]
[INFO] SLF4J NOP Binding .................................. SKIPPED
[INFO] SLF4J JDK14 Binding ................................ SKIPPED
[INFO] SLF4J LOG4J-12 Binding ............................. SKIPPED
[INFO] SLF4J JCL Binding .................................. SKIPPED
[INFO] SLF4J Android Binding .............................. SKIPPED
[INFO] SLF4J Extensions Module ............................ SKIPPED
[INFO] JCL 1.1.1 implemented over SLF4J ................... SKIPPED
[INFO] Log4j Implemented Over SLF4J ....................... SKIPPED
[INFO] JUL to SLF4J bridge ................................ SKIPPED
[INFO] OSGi LogService implemented over SLF4J ............. SKIPPED
[INFO] SLF4J Integration tests ............................ SKIPPED
[INFO] SLF4J Site ......................................... SKIPPED
[INFO] SLF4J Migrator ..................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.510 s
[INFO] Finished at: 2017-04-13T13:57:34-04:00
[INFO] Final Memory: 21M/60M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test
(default-test) on project slf4j-simple: There are test failures.


Now, I realize that this has probably been fixed in a later version,
but more to the point:  obviously SLF4J 1.7.21 *works* and at some
point in the past *got built*, I mean we've been using it in the
corresponding version of our project with no troubles.  So I don't
need to have the testsuite passing at 100%.  We certainly don't use
multithreaded initialization in our project.  The third-party
organization doesn't even need to run the testsuite; the tests are
running only because Maven says that "test" comes before "package".

Is there something in our build/test environment that we can adjust in
order to allow the test to pass?  Am I issuing incorrect Maven
commands to do the build/test/packaging?  Or, can we just skip that
test?  All we need is the binary jar file; more recent versions can
worry about the testsuite.


Thank you for any advice,
Ti

postscript:  Eventually, the evaluators will need to be able to run
"mvn --offline package" because testing is done on a standalone
computer.  So originally I tried

   cd ...../slf4j-1.7.21
   mvn dependency:go-offline

to let it download everything it would need.  After fetching
approximately 3659438035904385 gb of stuff :-)   it reported success.
I then tried "mvn --offline package" and immediately got failure
because it needed to download more things.  Maybe I'm using go-offline
incorrectly.  At any rate, I then just did plain "mvn package" and got
the errors above.  Once the "package" step is working, I'll go back to
making sure that offline mode can be done.

Thanks again.  Here's the logfile from "mvn package":


[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] SLF4J
[INFO] SLF4J API Module
[INFO] SLF4J Simple Binding
[INFO] SLF4J NOP Binding
[INFO] SLF4J JDK14 Binding
[INFO] SLF4J LOG4J-12 Binding
[INFO] SLF4J JCL Binding
[INFO] SLF4J Android Binding
[INFO] SLF4J Extensions Module
[INFO] JCL 1.1.1 implemented over SLF4J
[INFO] Log4j Implemented Over SLF4J
[INFO] JUL to SLF4J bridge
[INFO] OSGi LogService implemented over SLF4J
[INFO] SLF4J Integration tests
[INFO] SLF4J Site
[INFO] SLF4J Migrator
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building SLF4J 1.7.21
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- build-helper-maven-plugin:1.7:parse-version (parse-version)
@ slf4j-parent ---
[INFO]
[INFO] >>> maven-source-plugin:2.1.2:jar (default) > generate-sources
@ slf4j-parent >>>
[INFO]
[INFO] --- build-helper-maven-plugin:1.7:parse-version (parse-version)
@ slf4j-parent ---
[INFO]
[INFO] <<< maven-source-plugin:2.1.2:jar (default) < generate-sources
@ slf4j-parent <<<
[INFO]
[INFO] --- maven-source-plugin:2.1.2:jar (default) @ slf4j-parent ---
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building SLF4J API Module 1.7.21
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- build-helper-maven-plugin:1.7:parse-version (parse-version)
@ slf4j-api ---
[INFO]
[INFO] --- maven-resources-plugin:2.3:resources (default-resources) @
slf4j-api ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @ slf4j-api ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 32 source files to
/home/testbuild/dependencies/slf4j-1.7.21/slf4j-api/target/classes
[INFO] /home/testbuild/dependencies/slf4j-1.7.21/slf4j-api/src/main/java/org/slf4j/helpers/BasicMarker.java:
/home/testbuild/dependencies/slf4j-1.7.21/slf4j-api/src/main/java/org/slf4j/helpers/BasicMarker.java
uses or overrides a deprecated API.
[INFO] /home/testbuild/dependencies/slf4j-1.7.21/slf4j-api/src/main/java/org/slf4j/helpers/BasicMarker.java:
Recompile with -Xlint:deprecation for details.
[INFO]
[INFO] --- maven-antrun-plugin:1.7:run (default) @ slf4j-api ---
[WARNING] Parameter tasks is deprecated, use target instead
[INFO] Executing tasks

main:
     [echo] Removing slf4j-api's dummy StaticLoggerBinder and StaticMarkerBinder
   [delete] Deleting directory
/home/testbuild/dependencies/slf4j-1.7.21/slf4j-api/target/classes/org/slf4j/impl
[INFO] Executed tasks
[INFO]
[INFO] --- maven-resources-plugin:2.3:testResources
(default-testResources) @ slf4j-api ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory
/home/testbuild/dependencies/slf4j-1.7.21/slf4j-api/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.3:testCompile (default-testCompile)
@ slf4j-api ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 15 source files to
/home/testbuild/dependencies/slf4j-1.7.21/slf4j-api/target/test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ slf4j-api ---

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.slf4j.NoBindingTest
Running org.slf4j.BasicMarkerTest
SLF4J: Failed to load class "org.slf4j.impl.StaticMDCBinder".
SLF4J: Defaulting to no-operation MDCAdapter implementation.
SLF4J: See http://www.slf4j.org/codes.html#no_static_mdc_binder for
further details.
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for
further details.
Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.161
sec - in org.slf4j.BasicMarkerTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.181
sec - in org.slf4j.NoBindingTest
testMDC(org.slf4j.NoBindingTest)  Time elapsed: 0.012 sec
testLogger(org.slf4j.NoBindingTest)  Time elapsed: 0.028 sec
testMarker(org.slf4j.NoBindingTest)  Time elapsed: 0.009 sec
testSelfRecursion(org.slf4j.BasicMarkerTest)  Time elapsed: 0.013 sec
testPrimitive(org.slf4j.BasicMarkerTest)  Time elapsed: 0.001 sec
testPrimitiveByName(org.slf4j.BasicMarkerTest)  Time elapsed: 0.003 sec
testComposite(org.slf4j.BasicMarkerTest)  Time elapsed: 0 sec
testMultiComposite(org.slf4j.BasicMarkerTest)  Time elapsed: 0 sec
testHomonyms(org.slf4j.BasicMarkerTest)  Time elapsed: 0 sec
testCompositeByName(org.slf4j.BasicMarkerTest)  Time elapsed: 0 sec
testAddRemove(org.slf4j.BasicMarkerTest)  Time elapsed: 0 sec
testMultiCompositeByName(org.slf4j.BasicMarkerTest)  Time elapsed: 0 sec
testMultiAdd(org.slf4j.BasicMarkerTest)  Time elapsed: 0 sec
testIndirectRecursion(org.slf4j.BasicMarkerTest)  Time elapsed: 0 sec
Running org.slf4j.helpers.BasicMDCAdapterTest
Running org.slf4j.helpers.BubbleSortTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004
sec - in org.slf4j.helpers.BubbleSortTest
testEmpty(org.slf4j.helpers.BubbleSortTest)  Time elapsed: 0 sec
testSmoke(org.slf4j.helpers.BubbleSortTest)  Time elapsed: 0 sec
testWithSameEntry(org.slf4j.helpers.BubbleSortTest)  Time elapsed: 0 sec
testInverted(org.slf4j.helpers.BubbleSortTest)  Time elapsed: 0 sec
testRandom(org.slf4j.helpers.BubbleSortTest)  Time elapsed: 0.002 sec
testSorted(org.slf4j.helpers.BubbleSortTest)  Time elapsed: 0 sec
Running org.slf4j.helpers.SubstitutableLoggerTest
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.059
sec - in org.slf4j.helpers.BasicMDCAdapterTest
testMDCDoesntGetValuesFromChildThread(org.slf4j.helpers.BasicMDCAdapterTest)
 Time elapsed: 0.018 sec
testGetCopyOfContextMapFromMDC(org.slf4j.helpers.BasicMDCAdapterTest)
Time elapsed: 0 sec
testClearingMDC(org.slf4j.helpers.BasicMDCAdapterTest)  Time elapsed: 0 sec
testMDCChildThreadCanOverwriteParentThread(org.slf4j.helpers.BasicMDCAdapterTest)
 Time elapsed: 0.01 sec
testMDCInheritsValuesFromParentThread(org.slf4j.helpers.BasicMDCAdapterTest)
 Time elapsed: 0.008 sec
testOverwritingAKeyInMDC(org.slf4j.helpers.BasicMDCAdapterTest)  Time
elapsed: 0 sec
testSettingAndGettingWithMDC(org.slf4j.helpers.BasicMDCAdapterTest)
Time elapsed: 0.001 sec
Running org.slf4j.helpers.SubstituteLoggerFactoryTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003
sec - in org.slf4j.helpers.SubstituteLoggerFactoryTest
testFactory(org.slf4j.helpers.SubstituteLoggerFactoryTest)  Time
elapsed: 0.001 sec
testLoggers(org.slf4j.helpers.SubstituteLoggerFactoryTest)  Time elapsed: 0 sec
testLoggerNameList(org.slf4j.helpers.SubstituteLoggerFactoryTest)
Time elapsed: 0 sec
Running org.slf4j.helpers.MessageFormatterTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.065
sec - in org.slf4j.helpers.SubstitutableLoggerTest
testDelegate(org.slf4j.helpers.SubstitutableLoggerTest)  Time elapsed: 0.045 sec
Running org.slf4j.helpers.MessageFormatterPerfTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.013
sec - in org.slf4j.helpers.MessageFormatterPerfTest
org.slf4j.helpers.MessageFormatterPerfTest skipped
SLF4J: Failed toString() invocation on an object of type
[org.slf4j.helpers.MessageFormatterTest$1]
Reported exception:
java.lang.IllegalStateException: a
    at org.slf4j.helpers.MessageFormatterTest$1.toString(MessageFormatterTest.java:147)
    at org.slf4j.helpers.MessageFormatter.safeObjectAppend(MessageFormatter.java:299)
    at org.slf4j.helpers.MessageFormatter.deeplyAppendParameter(MessageFormatter.java:271)
    at org.slf4j.helpers.MessageFormatter.arrayFormat(MessageFormatter.java:233)
    at org.slf4j.helpers.MessageFormatter.arrayFormat(MessageFormatter.java:173)
    at org.slf4j.helpers.MessageFormatter.format(MessageFormatter.java:124)
    at org.slf4j.helpers.MessageFormatterTest.testExceptionIn_toString(MessageFormatterTest.java:150)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
    at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:367)
    at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:274)
    at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
    at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:161)
    at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
    at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
    at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.087
sec - in org.slf4j.helpers.MessageFormatterTest
testNull(org.slf4j.helpers.MessageFormatterTest)  Time elapsed: 0.01 sec
testArrayFormat(org.slf4j.helpers.MessageFormatterTest)  Time elapsed: 0.002 sec
testMultiDimensionalArrayValues(org.slf4j.helpers.MessageFormatterTest)
 Time elapsed: 0.011 sec
testArrayThrowable(org.slf4j.helpers.MessageFormatterTest)  Time
elapsed: 0.001 sec
verifyOneParameterIsHandledCorrectly(org.slf4j.helpers.MessageFormatterTest)
 Time elapsed: 0.003 sec
testArrayValues(org.slf4j.helpers.MessageFormatterTest)  Time elapsed: 0 sec
testExceptionIn_toString(org.slf4j.helpers.MessageFormatterTest)  Time
elapsed: 0.037 sec
testCyclicArrays(org.slf4j.helpers.MessageFormatterTest)  Time elapsed: 0 sec
testTwoParameters(org.slf4j.helpers.MessageFormatterTest)  Time elapsed: 0 sec
nullParametersShouldBeHandledWithoutBarfing(org.slf4j.helpers.MessageFormatterTest)
 Time elapsed: 0 sec
testNullArray(org.slf4j.helpers.MessageFormatterTest)  Time elapsed: 0 sec

Results :

Tests run: 43, Failures: 0, Errors: 0, Skipped: 1

[INFO]
[INFO] --- maven-jar-plugin:2.3.1:jar (default-jar) @ slf4j-api ---
[INFO] Building jar:
/home/testbuild/dependencies/slf4j-1.7.21/slf4j-api/target/slf4j-api-1.7.21.jar
[INFO]
[INFO] --- maven-jar-plugin:2.3.1:jar (bundle-test-jar) @ slf4j-api ---
[INFO]
[INFO] --- maven-jar-plugin:2.3.1:test-jar (bundle-test-jar) @ slf4j-api ---
[INFO] Building jar:
/home/testbuild/dependencies/slf4j-1.7.21/slf4j-api/target/slf4j-api-1.7.21-tests.jar
[INFO]
[INFO] >>> maven-source-plugin:2.1.2:jar (default) > generate-sources
@ slf4j-api >>>
[INFO]
[INFO] --- build-helper-maven-plugin:1.7:parse-version (parse-version)
@ slf4j-api ---
[INFO]
[INFO] <<< maven-source-plugin:2.1.2:jar (default) < generate-sources
@ slf4j-api <<<
[INFO]
[INFO] --- maven-source-plugin:2.1.2:jar (default) @ slf4j-api ---
[INFO] Building jar:
/home/testbuild/dependencies/slf4j-1.7.21/slf4j-api/target/slf4j-api-1.7.21-sources.jar
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building SLF4J Simple Binding 1.7.21
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- build-helper-maven-plugin:1.7:parse-version (parse-version)
@ slf4j-simple ---
[INFO]
[INFO] --- maven-resources-plugin:2.3:resources (default-resources) @
slf4j-simple ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @
slf4j-simple ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 5 source files to
/home/testbuild/dependencies/slf4j-1.7.21/slf4j-simple/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.3:testResources
(default-testResources) @ slf4j-simple ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.3:testCompile (default-testCompile)
@ slf4j-simple ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 6 source files to
/home/testbuild/dependencies/slf4j-1.7.21/slf4j-simple/target/test-classes
[INFO] /home/testbuild/dependencies/slf4j-1.7.21/slf4j-simple/src/test/java/org/slf4j/impl/SimpleLoggerTest.java:
/home/testbuild/dependencies/slf4j-1.7.21/slf4j-simple/src/test/java/org/slf4j/impl/SimpleLoggerTest.java
uses or overrides a deprecated API.
[INFO] /home/testbuild/dependencies/slf4j-1.7.21/slf4j-simple/src/test/java/org/slf4j/impl/SimpleLoggerTest.java:
Recompile with -Xlint:deprecation for details.
[INFO]
[INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ slf4j-simple ---

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.slf4j.DetectLoggerNameMismatchTest
Running org.slf4j.InvocationTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.266
sec - in org.slf4j.DetectLoggerNameMismatchTest
testPassIfMatch(org.slf4j.DetectLoggerNameMismatchTest)  Time elapsed: 0.063 sec
verifyLoggerDefinedInBaseWithOverridenGetClassMethod(org.slf4j.DetectLoggerNameMismatchTest)
 Time elapsed: 0.007 sec
testTriggerWholeMessage(org.slf4j.DetectLoggerNameMismatchTest)  Time
elapsed: 0 sec
testNoTriggerWithoutProperty(org.slf4j.DetectLoggerNameMismatchTest)
Time elapsed: 0 sec
testTriggerWithProperty(org.slf4j.DetectLoggerNameMismatchTest)  Time
elapsed: 0 sec
Running org.slf4j.impl.SimpleLoggerTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.022
sec - in org.slf4j.impl.SimpleLoggerTest
loggerNameWithNoDots_WithLevel(org.slf4j.impl.SimpleLoggerTest)  Time
elapsed: 0.008 sec
loggerNameWithOneDotShouldInheritFromParent(org.slf4j.impl.SimpleLoggerTest)
 Time elapsed: 0 sec
loggerNameWithOneDot_NoSetLevel(org.slf4j.impl.SimpleLoggerTest)  Time
elapsed: 0 sec
loggerNameWithNoDots_WithNoSetLevel(org.slf4j.impl.SimpleLoggerTest)
Time elapsed: 0 sec
emptyLoggerName(org.slf4j.impl.SimpleLoggerTest)  Time elapsed: 0 sec
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.298
sec - in org.slf4j.InvocationTest
testMDC(org.slf4j.InvocationTest)  Time elapsed: 0.015 sec
testNull(org.slf4j.InvocationTest)  Time elapsed: 0.061 sec
testNullParameter_BUG78(org.slf4j.InvocationTest)  Time elapsed: 0.011 sec
test1(org.slf4j.InvocationTest)  Time elapsed: 0.001 sec
test2(org.slf4j.InvocationTest)  Time elapsed: 0.006 sec
testMarker(org.slf4j.InvocationTest)  Time elapsed: 0.003 sec
Running org.slf4j.helpers.SimpleLoggerMultithreadedInitializationTest
THREAD_COUNT=6
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.06
sec <<< FAILURE! - in
org.slf4j.helpers.SimpleLoggerMultithreadedInitializationTest
multiThreadedInitialization(org.slf4j.helpers.SimpleLoggerMultithreadedInitializationTest)
 Time elapsed: 0.051 sec  <<< FAILURE!
java.lang.AssertionError: 388 < 0+16
    at org.junit.Assert.fail(Assert.java:88)
    at org.junit.Assert.assertTrue(Assert.java:41)
    at org.slf4j.helpers.MultithreadedInitializationTest.multiThreadedInitialization(MultithreadedInitializationTest.java:46)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
    at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
    at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
    at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:367)
    at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:274)
    at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
    at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:161)
    at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
    at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
    at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)


Results :

Failed tests:
  SimpleLoggerMultithreadedInitializationTest>MultithreadedInitializationTest.multiThreadedInitialization:46
388 < 0+16

Tests run: 17, Failures: 1, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] SLF4J .............................................. SUCCESS [  0.562 s]
[INFO] SLF4J API Module ................................... SUCCESS [  5.068 s]
[INFO] SLF4J Simple Binding ............................... FAILURE [  1.193 s]
[INFO] SLF4J NOP Binding .................................. SKIPPED
[INFO] SLF4J JDK14 Binding ................................ SKIPPED
[INFO] SLF4J LOG4J-12 Binding ............................. SKIPPED
[INFO] SLF4J JCL Binding .................................. SKIPPED
[INFO] SLF4J Android Binding .............................. SKIPPED
[INFO] SLF4J Extensions Module ............................ SKIPPED
[INFO] JCL 1.1.1 implemented over SLF4J ................... SKIPPED
[INFO] Log4j Implemented Over SLF4J ....................... SKIPPED
[INFO] JUL to SLF4J bridge ................................ SKIPPED
[INFO] OSGi LogService implemented over SLF4J ............. SKIPPED
[INFO] SLF4J Integration tests ............................ SKIPPED
[INFO] SLF4J Site ......................................... SKIPPED
[INFO] SLF4J Migrator ..................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.510 s
[INFO] Finished at: 2017-04-13T13:57:34-04:00
[INFO] Final Memory: 21M/60M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test
(default-test) on project slf4j-simple: There are test failures.
[ERROR]
[ERROR] Please refer to
/home/testbuild/dependencies/slf4j-1.7.21/slf4j-simple/target/surefire-reports
for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with
the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :slf4j-simple


More information about the slf4j-user mailing list