Uploaded image for project: 'JIRA Components'
  1. JIRA Components
  2. JIRA-26

Jira Macro works on root wiki but errors out when added and used on sub-wikis

    XMLWordPrintable

Details

    • Bug
    • Resolution: Inactive
    • Major
    • None
    • 8.5
    • Configuration, Macro
    • None
    • XWiki 9.10.1 / Jira Macro 8.5 / Java 1.8.0
    • Unknown
    • N/A
    • N/A

    Description

      Jira Macro and config work as expected when installed on main root wiki. I installed the macro and admin application on a sub-wiki, configured the Jira instance to match the working configurations on the main wiki. 

      When using the macro on a sub-wiki page, the following error occurs: 

      java.lang.ClassCastException: org.xwiki.contrib.jira.config.JIRAServer cannot be cast to org.xwiki.contrib.jira.config.JIRAServer
       at org.xwiki.contrib.jira.macro.internal.source.AbstractJIRADataSource.getJIRAServer(AbstractJIRADataSource.java:141)
       at org.xwiki.contrib.jira.macro.internal.source.JQLJIRADataSource.getData(JQLJIRADataSource.java:50)
       at org.xwiki.contrib.jira.macro.internal.JIRAMacro.execute(JIRAMacro.java:87)
       at org.xwiki.contrib.jira.macro.internal.JIRAMacro.execute(JIRAMacro.java:46)
       at org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:272)
       at org.xwiki.rendering.internal.transformation.DefaultRenderingContext.transformInContext(DefaultRenderingContext.java:183)
       at org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:95)
       at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:263)
      

      [Full stack trace attached]

      Attachments

        Activity

          People

            vmassol Vincent Massol
            zometer Chris Spears
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: