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

Failed to add note - org.xml.sax.SAXParseException: Content is not allowed in prolog.

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major Major
    • mantis-plugin
    • None
    • Platform: All, OS: Windows XP

      OS: Is Windows2008 64Bit (Was missing in List)
      Hudson ver. 1.280
      Mantis Plugin Versin 0.5.2
      Mantis Version 1.1.4
      Issue ID Pattern: #%ID%
      Updated relevant Mantis issues: Yes with (Keep note private)

      We have made some minor ui and some workflow change in mantis.

      Hudson successfully updates the mantis issue and in Hudson the correct issue
      links are visible. But the build fails with this message if Hudson founds an issue:

      [MANTIS] Failed to add note to Mantis issue #3.221 (cause:
      org.xml.sax.SAXParseException: Content is not allowed in prolog.).

      I am willing to test something if need.

          [JENKINS-2976] Failed to add note - org.xml.sax.SAXParseException: Content is not allowed in prolog.

          sogabe added a comment -

          Confirmed.

          I have not tested with Mantis 1.1.4 because it's buggy (cache problem...).
          Can you update your Mantis installation to 1.1.6?

          I think an error has occurred in Mantis after updating issues and returns
          illegal SOAP response.

          > We have made some minor ui and some workflow change in mantis.

          First, check your code. any problem?

          sogabe added a comment - Confirmed. I have not tested with Mantis 1.1.4 because it's buggy (cache problem...). Can you update your Mantis installation to 1.1.6? I think an error has occurred in Mantis after updating issues and returns illegal SOAP response. > We have made some minor ui and some workflow change in mantis. First, check your code. any problem?

          lanwin added a comment -

          Ok ive no migrated a test installation with our modifications to Mantis 1.1.6 .
          But is fails with the same error.

          The modifications we are mad was in the german lang file, settings in the
          configuration and the integration of the plugin manager
          http://deboutv.free.fr/mantis/index.php with the html plugin.

          Which result the mantis plugin expects?

          lanwin added a comment - Ok ive no migrated a test installation with our modifications to Mantis 1.1.6 . But is fails with the same error. The modifications we are mad was in the german lang file, settings in the configuration and the integration of the plugin manager http://deboutv.free.fr/mantis/index.php with the html plugin. Which result the mantis plugin expects?

          sogabe added a comment -

          Let me know your

          1) J2SE verndor and version :
          2) Application server :

          I've used Sun j2se 1.6.0.10 and glassfish v2. It works with no such errors.

          sogabe added a comment - Let me know your 1) J2SE verndor and version : 2) Application server : I've used Sun j2se 1.6.0.10 and glassfish v2. It works with no such errors.

          lanwin added a comment -

          java.runtime.name Java(TM) SE Runtime Environment
          java.runtime.version 1.6.0_11-b03
          java.vm.vendor Sun Microsystems Inc.
          java.vm.version 11.0-b16
          java.version 1.6.0_11
          java.vm.info mixed mode, sharing

          Can you tell which url you call wiht which data? I will try to capture what our
          mantis send back so i can post it here.

          lanwin added a comment - java.runtime.name Java(TM) SE Runtime Environment java.runtime.version 1.6.0_11-b03 java.vm.vendor Sun Microsystems Inc. java.vm.version 11.0-b16 java.version 1.6.0_11 java.vm.info mixed mode, sharing Can you tell which url you call wiht which data? I will try to capture what our mantis send back so i can post it here.

          sogabe added a comment -

          URL is "http://server/mantis/api/soap/mantisconnect.php" which is SOAP end-point.

          I've just relased Mantis Plugin 0.6. It supports Mantis 1.2.0a3 and logs SOAP
          request and response.

          See
          http://hudson.gotdns.com/wiki/display/JENKINS/Mantis+Plugin#MantisPlugin-TroubleShooting.
          May be you can capture request and response.

          sogabe added a comment - URL is "http://server/mantis/api/soap/mantisconnect.php" which is SOAP end-point. I've just relased Mantis Plugin 0.6. It supports Mantis 1.2.0a3 and logs SOAP request and response. See http://hudson.gotdns.com/wiki/display/JENKINS/Mantis+Plugin#MantisPlugin-TroubleShooting . May be you can capture request and response.

          lanwin added a comment -

          Ok i figured it out. It is not a bug in the Hudson Mantis integration (THX for
          adding the tracing feature).

          The Problem comes from the HtmlMail Plugin which dose this:

          ob_start();
          if ( file_exists( $t_template_file ) ) {
          include( $t_template_file );
          } else {
          include( $t_bug_html );
          }
          $t_html_body = ob_get_contents();
          ob_end_clean();

          This should capture the content stream to $t_html_body but while running inside
          of a webserve this dose not seems to work. Instead the content is send back to
          the client which could not read it.

          Thx for looking at it.

          lanwin added a comment - Ok i figured it out. It is not a bug in the Hudson Mantis integration (THX for adding the tracing feature). The Problem comes from the HtmlMail Plugin which dose this: ob_start(); if ( file_exists( $t_template_file ) ) { include( $t_template_file ); } else { include( $t_bug_html ); } $t_html_body = ob_get_contents(); ob_end_clean(); This should capture the content stream to $t_html_body but while running inside of a webserve this dose not seems to work. Instead the content is send back to the client which could not read it. Thx for looking at it.

          sogabe added a comment -

          close

          sogabe added a comment - close

            sogabe sogabe
            lanwin lanwin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: