Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-15011

Inappropriate error message displayed when xwork plugin action can't be instantiated

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Answered
    • None
    • None
    • We collect Confluence feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

      NOTE: This suggestion is for Confluence Server. Using Confluence Cloud? See the corresponding suggestion.

      If an xwork plugin action can't be instantiated, for whatever reason, the ConfluencePluginObjectFatory passes all exceptions through to xwork. Xwork then catches the exception, and throws an IllegalArgumentException, with no reference to the original exception, not even passing it as the cause:

      java.lang.IllegalArgumentException: Method 'doDefault()' is not defined in action 'class com.atlassian.studio.confluence.themes.sidebar.ConfigureSidebarAction'
      

      There are no errors in the logs to indicate that the cause is that the plugin class couldn't be instantiated, and certainly nothing saying why it can't be instantiated. I suggest that the ConfluencePluginObjectFactory catches and logs any exceptions thrown when instantiating the plugin action.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jroper James Roper [Atlassian]
              Votes:
              5 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: