Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-9430

JBT 3.3 aggregate build failed: results/buildResults.xsl:200: Fatal Error! A sequence of more than one item is not allowed as the first argument of tokenize()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.3.0.M3
    • 3.3.0.M3
    • build, updatesite
    • None

      [xslt] mnt/hudson_workspace/workspace/jbosstools-3.3_trunk.aggregate/sources/results/buildResults.xsl:200: Fatal Error! A sequence of more than one item is not allowed as the first argument of tokenize() ("http://anonsvn.jboss.org/repos...", "http://anonsvn.jboss.org/repos...")

      https://hudson.qa.jboss.com/hudson/job/jbosstools-3.3_trunk.aggregate/3339/console

      Possible solution:

      diff --git a/build/results/buildResults.xsl b/build/results/buildResults.xsl
      index 27346f1..da19686 100644
      --- a/build/results/buildResults.xsl
      +++ b/build/results/buildResults.xsl
      @@ -197,7 +197,7 @@
                                                                                                              </li>
      
                                                                                                              <xsl:for-each
      -                                                                                                               select="tokenize(//property[contains(@name,'build.properties.SVN_REVISION') and contains(@name,$COMPONENT)]/@value,',')">
      +                                                                                                               select="tokenize(//property[contains(@name,'build.properties.SVN_REVISION') and contains(@name,$COMPONENT)][1]/@value,',')">
                                                                                                                      <li>SVN: <xsl:value-of select="." /></li>
                                                                                                              </xsl:for-each>
                                                                                                              </ul>
      

            nickboldt Nick Boldt
            nickboldt Nick Boldt
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: