The Numbred HEadings plugin threw an unexpected exception...

Issue #25 resolved
philipp_klauser
created an issue

Macro isn't rendering, looking in the logs I see:

2013-03-28 10:47:05,834 WARN [TP-Processor7] [plugins.numberedheadings.xhtml.NumberedHeadingsMacro] execute The Numbered Headings plugin threw an unexpected exception... -- url: /rest/tinymce/1/macro/preview | userName: VBEDN | referer: http://confluence.vt.ch/pages/editblogpost.action?pageId=36601949 java.lang.ArrayIndexOutOfBoundsException

Error occurs in preview as well as when rendering the page or blog post finally.

Thanks for looking into it. Cheers, Philipp

Comments (4)

  1. jef_fox

    I've seen the same problem. I rolled back to 2.1.0 to get rid of the error for the short-term. Here's a dump of the code we used for the macro:

    <ac:macro ac:name="section">
      <ac:rich-text-body>
        <ac:macro ac:name="column">
          <ac:parameter ac:name="width">60%</ac:parameter>
          <ac:rich-text-body>
            <ac:macro ac:name="panel">
              <ac:parameter ac:name="title">Overview</ac:parameter>
              <ac:rich-text-body>
                <p>&lt;Insert a brief overview of the page contents&gt;</p>
              </ac:rich-text-body>
            </ac:macro>
          </ac:rich-text-body>
        </ac:macro>
        <ac:macro ac:name="column">
          <ac:parameter ac:name="width">40%</ac:parameter>
          <ac:rich-text-body>
            <table>
              <tbody>
                <tr>
                  <th>
                    <p>Doc #</p>
                  </th>
                  <th>
                    <p>Version</p>
                  </th>
                  <th>
                    <p>Controlled By</p>
                  </th>
                </tr>
                <tr>
                  <td>
                    <p>ZZ-YYMMDD-XXX</p>
                  </td>
                  <td>
                    <p>0.0</p>
                  </td>
                  <td>
                    <p>&lt;Process Authority&gt;</p>
                  </td>
                </tr>
              </tbody>
            </table>
          </ac:rich-text-body>
        </ac:macro>
      </ac:rich-text-body>
    </ac:macro>
    <ac:macro ac:name="section">
      <ac:rich-text-body>
        <p>
          <span style="text-decoration: underline;">
            <strong>Contents</strong>
          </span>
        </p>
        <ac:macro ac:name="toc">
          <ac:parameter ac:name="style">none</ac:parameter>
        </ac:macro>
      </ac:rich-text-body>
    </ac:macro>
    <ac:macro ac:name="numberedheadings">
      <ac:rich-text-body>
        <h1>Alpha</h1>
        <h2>Bravo</h2>
        <p>&lt; paragraphs &gt;</p>
        <h1>Charlie</h1>
        <p>&lt; paragraphs &gt;</p>
        <h2>Delta</h2>
        <p>&lt; paragraphs &gt;</p>
      </ac:rich-text-body>
    </ac:macro>
    
  2. Log in to comment