Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-21552

Failed to execute the [groovy] macro error when creating an AWM on XWiki 14.10.19 using Java 21

    XMLWordPrintable

Details

    • Bug
    • Resolution: Solved By
    • Major
    • 14.10.20
    • 14.10.19
    • App Within Minutes
    • Windows 11 Pro, Firefox 119, using a local instance of XWiki 14.10.19 on MariaDB 11.1, Tomcat 9.0.82 and Jetty/HSQLDB
    • Unknown

    Description

      Steps to reproduce

      1. Start XWiki 14.10.19 (tested both on Jetty/HSQLDB and Tomcat 9.0.82) with Java 21 (I've used the one from Oracle)
      2. Login as Admin
      3. Click on 'More Applications > Create your own!'
      4. Click 'Create Application' button
      5. Fill in an app name
      6. Click 'Next Step' button

      Expected results

      The user is advanced to Step 2 without any errors.

      Actual results

      On Step 2, there is the following error:

      Failed to execute the [groovy] macro. Cause: [Unsupported class file major version 65]. Click on this message for details.

      The issue seems to not reproduce on XWiki 15.5.3 or 15.19 with Java 21 and it also doesn't reproduce on any XWiki version with Java 17.

      Attachments

        1. AWM_Bug_Step2_14_10_19.png
          101 kB
          Ilie Andriuta
        2. Full stacktrace Java 21.txt
          20 kB
          Ilie Andriuta

        Issue Links

          Activity

            People

              tmortagne Thomas Mortagne
              iandriuta Ilie Andriuta
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: