Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
JUnit Core 1.0.10
-
None
Description
Lately all test methods of AuthenticationResponseCodeTest often fail on Jenkins with the following (or similar) message:
expected:<401> but was:<500> Not able to fetch logs from [http://localhost:41600/system/sling/testlog]. TestLogServer probably not configured
When reproducing this locally, there is a NullPointerException in the logs:
29.07.2015 22:05:56.376 *WARN* [qtp1661403026-43] org.eclipse.jetty.servlet.ServletHandler /system/sling/testlog java.lang.NullPointerException: null at ch.qos.logback.core.read.CyclicBufferAppender.reset(CyclicBufferAppender.java:66) at org.apache.sling.junit.impl.servlet.TestLogServlet.resetAppender(TestLogServlet.java:158) at org.apache.sling.junit.impl.servlet.TestLogServlet.doGet(TestLogServlet.java:150) at javax.servlet.http.HttpServlet.service(HttpServlet.java:618) at javax.servlet.http.HttpServlet.service(HttpServlet.java:725) at org.apache.felix.http.base.internal.handler.ServletHandler.doHandle(ServletHandler.java:336) at org.apache.felix.http.base.internal.handler.ServletHandler.handle(ServletHandler.java:297) at org.apache.felix.http.base.internal.dispatch.ServletPipeline.handle(ServletPipeline.java:93) at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:50) at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:31) ...