org.apache.velocity.exception.MethodInvocationException: Invocation of method 'isModuleEnabled' in class com.atlassian.confluence.admin.actions.plugins.ManagePluginsAction threw exception java.lang.IllegalArgumentException: Invalid complete key specified: null @ /admin/plugins.vm[109,42]

Atlassian JIRA | Matt Ryall | 8 years ago
  1. 0

    *Problem description*: When you install a plugin compiled with Java 5 in a Confluence application running with Java 1.4, you get the following error: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'isModuleEnabled' in class com.atlassian.confluence.admin.actions.plugins.ManagePluginsAction threw exception java.lang.IllegalArgumentException: Invalid complete key specified: null @ /admin/plugins.vm[109,42] at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:286) caused by: java.lang.IllegalArgumentException: Invalid complete key specified: null at com.atlassian.plugin.ModuleCompleteKey.(ModuleCompleteKey.java:17) You cannot view the plugin in the plugin manager to uninstall it. See the workaround below. *Desired behaviour*: Confluence should disable the plugin and show a meaningful error to the user. *Cause*: This occurs when uploading a plugin into Confluence running an older version of Java than the plugin was compiled with. *Workaround*: Run Confluence with the same version of Java as the plugin or, if you are the plugin author, recompile the plugin to Java 1.4 to support all Confluence instances. The first option is the way to uninstall a plugin with this problem in affected versions of Confluence. *Technical notes*: The causal exception is shown further up in the logs: 2008-06-23 10:40:31,005 ERROR [http-8080-Processor3] [atlassian.plugin.parsers.XmlDescriptorParser] createModuleDescriptor There was a problem loading the descriptor for module 'velocity-context-item' in plugin 'Metova Theme'. Class version is incompatible with current JVM: com.metova.confluence.ThemeHelper - url: /admin/uploadplugin.action | userName: admin | action: uploadplugin com.atlassian.plugin.PluginParseException: Class version is incompatible with current JVM: com.metova.confluence.ThemeHelper at com.atlassian.plugin.descriptors.AbstractModuleDescriptor.init(AbstractModuleDescriptor.java:75) at com.atlassian.confluence.plugin.descriptor.VelocityContextItemModuleDescriptor.init(VelocityContextItemModuleDescriptor.java:24) at com.atlassian.plugin.parsers.XmlDescriptorParser.createModuleDescriptor(XmlDescriptorParser.java:147) at com.atlassian.plugin.parsers.XmlDescriptorParser.configurePlugin(XmlDescriptorParser.java:85) at com.atlassian.plugin.loaders.ClassLoadingPluginLoader.deployPluginFromUnit(ClassLoadingPluginLoader.java:99) at com.atlassian.plugin.loaders.ClassLoadingPluginLoader.addFoundPlugins(ClassLoadingPluginLoader.java:151) at com.atlassian.confluence.plugin.DatabaseClassLoadingPluginLoader.addFoundPlugins(DatabaseClassLoadingPluginLoader.java:116) This problem was also reported on the forum here: http://forums.atlassian.com/thread.jspa?threadID=25904&tstart=-1

    Atlassian JIRA | 8 years ago | Matt Ryall
    org.apache.velocity.exception.MethodInvocationException: Invocation of method 'isModuleEnabled' in class com.atlassian.confluence.admin.actions.plugins.ManagePluginsAction threw exception java.lang.IllegalArgumentException: Invalid complete key specified: null @ /admin/plugins.vm[109,42]
  2. 0

    *Problem description*: When you install a plugin compiled with Java 5 in a Confluence application running with Java 1.4, you get the following error: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'isModuleEnabled' in class com.atlassian.confluence.admin.actions.plugins.ManagePluginsAction threw exception java.lang.IllegalArgumentException: Invalid complete key specified: null @ /admin/plugins.vm[109,42] at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:286) caused by: java.lang.IllegalArgumentException: Invalid complete key specified: null at com.atlassian.plugin.ModuleCompleteKey.(ModuleCompleteKey.java:17) You cannot view the plugin in the plugin manager to uninstall it. See the workaround below. *Desired behaviour*: Confluence should disable the plugin and show a meaningful error to the user. *Cause*: This occurs when uploading a plugin into Confluence running an older version of Java than the plugin was compiled with. *Workaround*: Run Confluence with the same version of Java as the plugin or, if you are the plugin author, recompile the plugin to Java 1.4 to support all Confluence instances. The first option is the way to uninstall a plugin with this problem in affected versions of Confluence. *Technical notes*: The causal exception is shown further up in the logs: 2008-06-23 10:40:31,005 ERROR [http-8080-Processor3] [atlassian.plugin.parsers.XmlDescriptorParser] createModuleDescriptor There was a problem loading the descriptor for module 'velocity-context-item' in plugin 'Metova Theme'. Class version is incompatible with current JVM: com.metova.confluence.ThemeHelper - url: /admin/uploadplugin.action | userName: admin | action: uploadplugin com.atlassian.plugin.PluginParseException: Class version is incompatible with current JVM: com.metova.confluence.ThemeHelper at com.atlassian.plugin.descriptors.AbstractModuleDescriptor.init(AbstractModuleDescriptor.java:75) at com.atlassian.confluence.plugin.descriptor.VelocityContextItemModuleDescriptor.init(VelocityContextItemModuleDescriptor.java:24) at com.atlassian.plugin.parsers.XmlDescriptorParser.createModuleDescriptor(XmlDescriptorParser.java:147) at com.atlassian.plugin.parsers.XmlDescriptorParser.configurePlugin(XmlDescriptorParser.java:85) at com.atlassian.plugin.loaders.ClassLoadingPluginLoader.deployPluginFromUnit(ClassLoadingPluginLoader.java:99) at com.atlassian.plugin.loaders.ClassLoadingPluginLoader.addFoundPlugins(ClassLoadingPluginLoader.java:151) at com.atlassian.confluence.plugin.DatabaseClassLoadingPluginLoader.addFoundPlugins(DatabaseClassLoadingPluginLoader.java:116) This problem was also reported on the forum here: http://forums.atlassian.com/thread.jspa?threadID=25904&tstart=-1

    Atlassian JIRA | 8 years ago | Matt Ryall
    org.apache.velocity.exception.MethodInvocationException: Invocation of method 'isModuleEnabled' in class com.atlassian.confluence.admin.actions.plugins.ManagePluginsAction threw exception java.lang.IllegalArgumentException: Invalid complete key specified: null @ /admin/plugins.vm[109,42]
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    To begin developing a Confluence plugin: {noformat} mvn org.apache.maven.plugins:maven-archetype-plugin:1.0-alpha-7:create -DarchetypeGroupId=com.atlassian.maven.archetypes -DarchetypeArtifactId=confluence-plugin-archetype -DarchetypeVersion=14 -DremoteRepositories=https://maven.atlassian.com/repository/public/ -DgroupId=com.palm.confluence.plugin -DartifactId=blank {noformat} and then from the new 'blank' directory, ran {noformat} mvn -Pplugin-debug {noformat} and then logged into http://localhost:1990/confluence and then click the 'Demonstration Space' link and I get {noformat} System Error A system error has occurred — our apologies! Please ask your Confluence administrator to create a support issue on Atlassian's support system at http://support.atlassian.com with the following information: 1. a description of your problem and what you were doing at the time it occurred 2. a copy of the error and system information found below 3. a copy of the application logs (if possible). Your Confluence administrator can use the support request form to create a support ticket which will include this information. We will respond as promptly as possible. Thank you! Return to site homepage... Cause java.lang.RuntimeException: Error rendering template for decorator root at com.atlassian.confluence.setup.velocity.ApplyDecoratorDirective.render(ApplyDecoratorDirective.java:232) caused by: java.lang.RuntimeException: Error rendering template for decorator page at com.atlassian.confluence.setup.velocity.ApplyDecoratorDirective.render(ApplyDecoratorDirective.java:232) caused by: java.lang.RuntimeException: Error rendering template for decorator root at com.atlassian.confluence.setup.velocity.ApplyDecoratorDirective.render(ApplyDecoratorDirective.java:232) caused by: java.lang.RuntimeException: Error rendering template for decorator comments at com.atlassian.confluence.setup.velocity.ApplyDecoratorDirective.render(ApplyDecoratorDirective.java:232) caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'formatFriendlyDate' in class com.atlassian.confluence.pages.actions.ViewPageAction threw exception java.lang.IllegalArgumentException: The datetime zone id is not recognised: SystemV/PST8PDT @ /decorators/components/comments.vmd[44,29] at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:286) caused by: java.lang.IllegalArgumentException: The datetime zone id is not recognised: SystemV/PST8PDT at org.joda.time.DateTimeZone.forTimeZone(DateTimeZone.java:310) {noformat}

    Atlassian JIRA | 8 years ago | Renan Battaglin
    org.apache.velocity.exception.MethodInvocationException: Invocation of method 'formatFriendlyDate' in class com.atlassian.confluence.pages.actions.ViewPageAction threw exception java.lang.IllegalArgumentException: The datetime zone id is not recognised: SystemV/PST8PDT @ /decorators/components/comments.vmd[44,29]
  5. 0

    Confluence produces a stacktrace error com.atlassian.confluence.importexport.ImportExportException when we display a big png dimension image with align parameter. In order to reproduce the problem, please go through the following steps: # Create a page containing the following: {noformat} h1. !RAP-Configuration-ERM.png|align=center! {noformat} # Save it # Export the page to PDF. If you, either remove {{align=center}} or h1, the export function will be working fine. The following is the stacktrace that happens after exporting the page to PDF. {noformat} com.atlassian.confluence.importexport.ImportExportException: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'exportWikiToXslFo' in class com.atlassian.confluence.importexport.impl.WikiExporter threw exception com.atlassian.confluence.renderer.WikiRenderException: Error while generating XSL-FO for 'EAIPROJECTS:Configuration Database' @ com/atlassian/confluence/pages/Page.pdfexport.vm[20,37] at com.atlassian.confluence.importexport.impl.PdfExporter.generateXslFo(PdfExporter.java:165) caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'exportWikiToXslFo' in class com.atlassian.confluence.importexport.impl.WikiExporter threw exception com.atlassian.confluence.renderer.WikiRenderException: Error while generating XSL-FO for 'EAIPROJECTS:Configuration Database' @ com/atlassian/confluence/pages/Page.pdfexport.vm[20,37] at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:286) caused by: com.atlassian.confluence.renderer.WikiRenderException: Error while generating XSL-FO for 'EAIPROJECTS:Configuration Database' at com.atlassian.confluence.importexport.impl.WikiExporter.exportWikiToXslFo(WikiExporter.java:106) caused by: com.atlassian.confluence.renderer.WikiRenderException: Can not transform XHTML to XSL-FO due to an error in the following XHTML null at com.atlassian.confluence.importexport.impl.WikiExporter.convertXHtmlToXslFo(WikiExporter.java:205) caused by: java.lang.NullPointerException at org.dom4j.io.DOMReader.read(DOMReader.java:86) {noformat} Please note that I have tried the problem using images which type png, jpeg and bmp. Using those types, the problem are reproducible.

    Atlassian JIRA | 8 years ago | Arie Murdianto
    org.apache.velocity.exception.MethodInvocationException: Invocation of method 'exportWikiToXslFo' in class com.atlassian.confluence.importexport.impl.WikiExporter threw exception com.atlassian.confluence.renderer.WikiRenderException: Error while generating XSL-FO for 'EAIPROJECTS:Configuration Database' @ com/atlassian/confluence/pages/Page.pdfexport.vm[20,37]

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.apache.velocity.exception.MethodInvocationException

      Invocation of method 'isModuleEnabled' in class com.atlassian.confluence.admin.actions.plugins.ManagePluginsAction threw exception java.lang.IllegalArgumentException: Invalid complete key specified: null @ /admin/plugins.vm[109,42]

      at org.apache.velocity.runtime.parser.node.ASTMethod.execute()
    2. Apache Velocity
      ASTMethod.execute
      1. org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:286)
      1 frame