Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-4918

Frequent failures of AuthenticationResponseCodeTest

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • JUnit Core 1.0.10
    • JUnit Core 1.0.12
    • Testing
    • 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)
              ...
      

      Attachments

        Activity

          People

            jsedding Julian Sedding
            jsedding Julian Sedding
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: