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

JaxbMarshallingTest fails with Java 9

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • Launchpad Testing 11
    • Testing
    • None

    Description

      Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.005 sec <<< FAILURE! - in org.apache.sling.launchpad.webapp.integrationtest.jaxb.JaxbMarshallingTest
      testJaxbEntityIsMarshalled(org.apache.sling.launchpad.webapp.integrationtest.jaxb.JaxbMarshallingTest)  Time elapsed: 0.005 sec  <<< FAILURE!
      junit.framework.AssertionFailedError: Expected status 200 for http://localhost:41000/bin/jaxb.xml (content=<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
      <html>
      <head>
      <title>404 Resource at &apos;/bin/jaxb.xml&apos; not found: No resource found</title>
      </head>
      <body>
      <h1>Resource at &apos;/bin/jaxb.xml&apos; not found: No resource found (404)</h1>
      <p>The requested URL /bin/jaxb.xml resulted in an error in org.apache.sling.servlets.resolver.internal.defaults.DefaultErrorHandlerServlet.</p>
      <h3>Request Progress:</h3>
      <pre>
            0 TIMER_START{Request Processing}
            1 COMMENT timer_end format is {&lt;elapsed microseconds&gt;,&lt;timer name&gt;} &lt;optional message&gt;
            4 LOG Method=GET, PathInfo=null
            5 TIMER_START{handleSecurity}
         1423 TIMER_END{1416,handleSecurity} authenticator org.apache.sling.auth.core.impl.SlingAuthenticator@4d8e3503 returns true
         2207 TIMER_START{ResourceResolution}
         2405 TIMER_END{197,ResourceResolution} URI=/bin/jaxb.xml resolves to Resource=NonExistingResource, path=/bin/jaxb.xml
         2411 LOG Resource Path Info: SlingRequestPathInfo: path=&apos;/bin/jaxb.xml&apos;, selectorString=&apos;null&apos;, extension=&apos;xml&apos;, suffix=&apos;null&apos;
         2411 TIMER_START{ServletResolution}
         2413 TIMER_START{resolveServlet(/bin/jaxb.xml)}
         2708 TIMER_END{294,resolveServlet(/bin/jaxb.xml)} Using servlet org.apache.sling.servlets.get.DefaultGetServlet
         2711 TIMER_END{299,ServletResolution} URI=/bin/jaxb.xml handled by Servlet=org.apache.sling.servlets.get.DefaultGetServlet
         2713 LOG Applying Requestfilters
         2715 LOG Calling filter: org.apache.sling.i18n.impl.I18NFilter
         2717 LOG Calling filter: org.apache.sling.launchpad.testservices.filters.SlingFilter
         2723 LOG Calling filter: org.apache.sling.launchpad.testservices.filters.NoPropertyFilter
         2727 LOG Calling filter: org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter
         2730 LOG Applying Componentfilters
         2733 TIMER_START{org.apache.sling.servlets.get.DefaultGetServlet#0}
         2782 TIMER_END{47,org.apache.sling.servlets.get.DefaultGetServlet#0}
         2814 LOG Filter timing: filter=org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter, inner=0, total=0, outer=0
         2816 LOG Filter timing: filter=org.apache.sling.launchpad.testservices.filters.SlingFilterWithPattern, inner=0, total=0, outer=0
         2817 LOG Filter timing: filter=org.apache.sling.launchpad.testservices.filters.NoPropertyFilter, inner=0, total=0, outer=0
         2819 LOG Filter timing: filter=org.apache.sling.launchpad.testservices.filters.SlingFilter, inner=0, total=0, outer=0
         2892 LOG Applying Error filters
         2894 LOG Calling filter: org.apache.sling.i18n.impl.I18NFilter
         2900 TIMER_START{handleError:status=404}
         3084 TIMER_END{182,handleError:status=404} Using handler org.apache.sling.servlets.resolver.internal.defaults.DefaultErrorHandlerServlet
         3195 TIMER_END{3194,Request Processing} Dumping SlingRequestProgressTracker Entries
      </pre>
      <hr>
      <address>ApacheSling/2.6 (jetty/9.3.20.v20170531, Java HotSpot(TM) 64-Bit Server VM 9, Linux 3.19.0-25-generic amd64)</address>
      </body>
      </html>
      ) expected:<200> but was:<404>
      	at junit.framework.Assert.fail(Assert.java:57)
      	at junit.framework.Assert.failNotEquals(Assert.java:329)
      	at junit.framework.Assert.assertEquals(Assert.java:78)
      	at junit.framework.Assert.assertEquals(Assert.java:234)
      	at junit.framework.TestCase.assertEquals(TestCase.java:401)
      	at org.apache.sling.commons.testing.integration.HttpTestBase.getContent(HttpTestBase.java:457)
      	at org.apache.sling.commons.testing.integration.HttpTestBase.getContent(HttpTestBase.java:432)
      	at org.apache.sling.commons.testing.integration.HttpTestBase.getContent(HttpTestBase.java:424)
      	at org.apache.sling.commons.testing.integration.HttpTestBase.getContent(HttpTestBase.java:419)
      	at org.apache.sling.launchpad.webapp.integrationtest.jaxb.JaxbMarshallingTest.testJaxbEntityIsMarshalled(JaxbMarshallingTest.java:34)

      Attachments

        Issue Links

          Activity

            People

              karlpauls Karl Pauls
              rombert Robert Munteanu
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: