Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-4644

testNonAsciiChar test fails on Mac OS X

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: core
    • Labels:
      None
    • Environment:
      Platform: Macintosh, OS: Mac OS X
    • Similar Issues:

      Description

      I've been seeing this failure recently. Just observed in 1.328. I'm running on
      Mac OS X 10.5.8. Here's the relevant failure output:

      Test set: hudson.model.DirectoryBrowserSupportTest
      -------------------------------------------------------------------------------
      Tests run: 3, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 4.051 sec <<<
      FAILURE!
      testNonAsciiChar(hudson.model.DirectoryBrowserSupportTest) Time elapsed: 1.347
      sec <<< ERROR!
      com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException: 404 Not Found for
      http://localhost:63463//job/test0/ws/%e6%bc%a2%e5%ad%97.bin
      at
      com.gargoylesoftware.htmlunit.WebClient.throwFailingHttpStatusCodeExceptionIfNecessary(WebClient.java:545)
      at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:341)
      at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:390)
      at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:377)
      at org.jvnet.hudson.test.HudsonTestCase$WebClient.goTo(HudsonTestCase.java:1149)
      at
      hudson.model.DirectoryBrowserSupportTest.testNonAsciiChar(DirectoryBrowserSupportTest.java:86)

      2009-10-12 18:17:06.195::INFO: jetty-6.1.11
      2009-10-12 18:17:06.200::INFO: NO JSP Support for /, did not find
      org.apache.jasper.servlet.JspServlet
      2009-10-12 18:17:06.204::INFO: Started SocketConnector@0.0.0.0:63457
      Oct 12, 2009 6:17:06 PM hudson.ClassicPluginStrategy createPluginWrapper
      INFO: Loading plugin:
      /var/folders/m/+mVCn5sfERif6nwSiVvoo++m9U/Tmp/hudson6852007366284250730test/plugins/maven-plugin.hpi
      Oct 12, 2009 6:17:06 PM hudson.ClassicPluginStrategy explode
      INFO: Extracting
      /var/folders/m/+mVCn5sfERif6nwSiVvoo++m9U/Tmp/hudson6852007366284250730test/plugins/maven-plugin.hpi
      Oct 12, 2009 6:17:07 PM hudson.model.Hudson load
      INFO: Loading in 4 parallel threads
      Oct 12, 2009 6:17:07 PM hudson.model.Hudson load
      INFO: Took 69 ms to load
      Oct 12, 2009 6:17:07 PM hudson.TcpSlaveAgentListener <init>
      INFO: JNLP slave agent listener started on TCP port 63458
      === Starting DirectoryBrowserSupportTest.testDoubleDots
      Oct 12, 2009 6:17:07 PM hudson.model.Run run
      INFO: test0 #1 main build action completed: SUCCESS
      Oct 12, 2009 6:17:07 PM hudson.PluginWrapper stop
      INFO: Stopping maven-plugin
      2009-10-12 18:17:08.595::INFO: jetty-6.1.11
      2009-10-12 18:17:08.600::INFO: NO JSP Support for /, did not find
      org.apache.jasper.servlet.JspServlet
      2009-10-12 18:17:08.603::INFO: Started SocketConnector@0.0.0.0:63460
      Oct 12, 2009 6:17:08 PM hudson.ClassicPluginStrategy createPluginWrapper
      INFO: Loading plugin:
      /var/folders/m/+mVCn5sfERif6nwSiVvoo++m9U/Tmp/hudson1365147185419451640test/plugins/maven-plugin.hpi
      Oct 12, 2009 6:17:08 PM hudson.ClassicPluginStrategy explode
      INFO: Extracting
      /var/folders/m/+mVCn5sfERif6nwSiVvoo++m9U/Tmp/hudson1365147185419451640test/plugins/maven-plugin.hpi
      Oct 12, 2009 6:17:08 PM hudson.model.Hudson load
      INFO: Loading in 4 parallel threads
      Oct 12, 2009 6:17:08 PM hudson.model.Hudson load
      INFO: Took 77 ms to load
      Oct 12, 2009 6:17:08 PM hudson.TcpSlaveAgentListener <init>
      INFO: JNLP slave agent listener started on TCP port 63461
      === Starting DirectoryBrowserSupportTest.testDoubleDots2
      Oct 12, 2009 6:17:08 PM hudson.model.Run run
      INFO: test0 #1 main build action completed: SUCCESS
      Oct 12, 2009 6:17:08 PM hudson.PluginWrapper stop
      INFO: Stopping maven-plugin
      2009-10-12 18:17:09.894::INFO: jetty-6.1.11
      2009-10-12 18:17:09.899::INFO: NO JSP Support for /, did not find
      org.apache.jasper.servlet.JspServlet
      2009-10-12 18:17:09.902::INFO: Started SocketConnector@0.0.0.0:63463
      Oct 12, 2009 6:17:09 PM hudson.ClassicPluginStrategy createPluginWrapper
      INFO: Loading plugin:
      /var/folders/m/+mVCn5sfERif6nwSiVvoo++m9U/Tmp/hudson5425220157078630591test/plugins/maven-plugin.hpi
      Oct 12, 2009 6:17:09 PM hudson.ClassicPluginStrategy explode
      INFO: Extracting
      /var/folders/m/+mVCn5sfERif6nwSiVvoo++m9U/Tmp/hudson5425220157078630591test/plugins/maven-plugin.hpi
      Oct 12, 2009 6:17:09 PM hudson.model.Hudson load
      INFO: Loading in 4 parallel threads
      Oct 12, 2009 6:17:09 PM hudson.model.Hudson load
      INFO: Took 77 ms to load
      Oct 12, 2009 6:17:09 PM hudson.TcpSlaveAgentListener <init>
      INFO: JNLP slave agent listener started on TCP port 63464
      === Starting DirectoryBrowserSupportTest.testNonAsciiChar
      Oct 12, 2009 6:17:10 PM hudson.model.Run run
      INFO: test0 #1 main build action completed: SUCCESS
      Oct 12, 2009 6:17:10 PM com.gargoylesoftware.htmlunit.WebClient
      printContentIfNecessary
      INFO: statusCode=[404] contentType=[text/html]
      Oct 12, 2009 6:17:10 PM com.gargoylesoftware.htmlunit.WebClient
      printContentIfNecessary
      INFO: <html>
      <head>
      <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
      <title>Error 404 NOT_FOUND</title>
      </head>
      <body><h2>HTTP ERROR: 404</h2><pre>NOT_FOUND</pre>
      <p>RequestURI=//job/test0/ws/%e6%bc%a2%e5%ad%97.bin</p><p><i><small><a
      href="http://jetty.mortbay.org/">Powered by Jetty://</a></small></i></p><br/>

      <br/>
      <br/>
      <br/>
      <br/>
      <br/>
      <br/>
      <br/>
      <br/>
      <br/>
      <br/>
      <br/>
      <br/>
      <br/>
      <br/>
      <br/>
      <br/>
      <br/>
      <br/>
      <br/>

      </body>
      </html>

      Oct 12, 2009 6:17:10 PM hudson.PluginWrapper stop
      INFO: Stopping maven-plugin

        Attachments

          Activity

          Hide
          bshine bshine added a comment -

          Created an attachment (id=946)
          TEST-hudson.model.DirectoryBrowserSupportTest.xml

          Show
          bshine bshine added a comment - Created an attachment (id=946) TEST-hudson.model.DirectoryBrowserSupportTest.xml
          Hide
          mindless Alan Harder added a comment -

          This occurs because Mac JDK defaults to MacRoman charset for some reason.. I
          added -Dfile.encoding=UTF-8 to the <argLine> in test/pom.xml and this test now
          passes.

          Show
          mindless Alan Harder added a comment - This occurs because Mac JDK defaults to MacRoman charset for some reason.. I added -Dfile.encoding=UTF-8 to the <argLine> in test/pom.xml and this test now passes.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in hudson
          User: : mindless
          Path:
          trunk/hudson/main/test/pom.xml
          http://fisheye4.cenqua.com/changelog/hudson/?cs=23204
          Log:
          [FIXED JENKINS-4644] Add -Dfile-encoding=UTF-8 to argLine for tests,
          as Mac JDK defaults to MacRoman charset which causes (at least)
          DirectoryBrowserSupportTest.testNonAsciiChar to fail.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : mindless Path: trunk/hudson/main/test/pom.xml http://fisheye4.cenqua.com/changelog/hudson/?cs=23204 Log: [FIXED JENKINS-4644] Add -Dfile-encoding=UTF-8 to argLine for tests, as Mac JDK defaults to MacRoman charset which causes (at least) DirectoryBrowserSupportTest.testNonAsciiChar to fail.
          Hide
          mindless Alan Harder added a comment -

          .

          Show
          mindless Alan Harder added a comment - .

            People

            • Assignee:
              mindless Alan Harder
              Reporter:
              bshine bshine
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: