You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Julian Sedding (JIRA)" <ji...@apache.org> on 2015/07/29 22:18:05 UTC
[jira] [Resolved] (SLING-4918) Frequent failures of
AuthenticationResponseCodeTest
[ https://issues.apache.org/jira/browse/SLING-4918?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Julian Sedding resolved SLING-4918.
-----------------------------------
Resolution: Fixed
Fix Version/s: JUnit Core 1.0.12
Committed tentative fix in [r1693340|https://svn.apache.org/r1693340] that improves synchronization on the {{CyclicBufferAppender}} used inside {{TestLogServlet}}.
> Frequent failures of AuthenticationResponseCodeTest
> ----------------------------------------------------
>
> Key: SLING-4918
> URL: https://issues.apache.org/jira/browse/SLING-4918
> Project: Sling
> Issue Type: Bug
> Components: Testing
> Affects Versions: JUnit Core 1.0.10
> Reporter: Julian Sedding
> Assignee: Julian Sedding
> Fix For: JUnit Core 1.0.12
>
>
> Lately all test methods of AuthenticationResponseCodeTest often fail on Jenkins with the following (or similar) message:
> {noformat}
> expected:<401> but was:<500>
> Not able to fetch logs from [http://localhost:41600/system/sling/testlog]. TestLogServer probably not configured
> {noformat}
> When reproducing this locally, there is a NullPointerException in the logs:
> {noformat}
> 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)
> ...
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)