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

Julian Sedding updated SLING-4918:
----------------------------------
    Description: 
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}


  was:
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}


> 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
>
> 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)

Reply via email to