Details
-
Bug
-
Resolution: Answered
-
Medium
-
None
-
5.5
-
None
Description
Summary
In Confluence 5.5.x when going to > Add-ons, Code Macro Plugin offers a message to upgrade to a newer version (from 2.1.3 to 2.2.4). This new version doesn't work and generates errors in the log.
Other Add-Ons are also listed, and may also be broken.
Environment
- Confluence 5.5.x
- Java 7
- Code Macro Plugin 2.1.3 (the system default)
Steps to Reproduce
- Go to > Add-ons
- Confirm there's an Update button for Code Macro Plugin
- Click Update
Expected Results
Plugin is updated to 2.2.4
or
No option to update
Actual Results
Message appears
The below exception is thrown in the atlassian-confluence.log file:
2016-03-24 13:07:51,461 ERROR [UpmAsynchronousTaskManager:thread-2] [atlassian.plugin.loaders.ScanningPluginLoader] deployPluginFromUnit Unable to deploy plugin 'com.atlassian.confluence.ext.newcode-macro-plugin' from 'Unit: /home/jrichards/atlassian/data/atlassian-confluence-5.5/plugins-cache/1458785271319plugin.8528292429045245180.newcode-macro-plugin-2.2.4.jar (1458785271000)'. -- referer: http://jrichards.office.atlassian.com:8090/plugins/servlet/upm | url: /rest/plugins/1.0/ | userName: jrichards 2016-03-24 13:07:51,463 ERROR [UpmAsynchronousTaskManager:thread-2] [atlassian.plugin.loaders.ScanningPluginLoader] deployPluginFromUnit Because of the following exception: -- referer: http://jrichards.office.atlassian.com:8090/plugins/servlet/upm | url: /rest/plugins/1.0/ | userName: jrichards com.atlassian.plugin.PluginParseException: Unable to scan for host components in plugin classes
Notes
Confluence 5.7.5 does not offer to update the Code Macro Plugin
Workaround
- Stop Confluence
- Run this to confirm data is in the table
select plugindataid, pluginkey, filename, lastmoddate from plugindata where pluginkey = 'com.atlassian.confluence.ext.newcode-macro-plugin';
- If there's only one row where pluginkey is com.atlassian.confluence.ext.newcode-macro-plugin run
delete from plugindata where pluginkey = 'com.atlassian.confluence.ext.newcode-macro-plugin';
- Delete all the files in the plugin cache (with rm -fr):
- /var/atlassian/application-data/confluence/bundled-plugins
- /var/atlassian/application-data/confluence/plugins-cache
- /var/atlassian/application-data/confluence/plugins-osgi-cache
- /var/atlassian/application-data/confluence/plugins-temp
- /var/atlassian/application-data/confluence/bundled-plugins_language
- Restart Confluence
or
- Go to https://marketplace.atlassian.com/plugins/com.atlassian.confluence.ext.newcode-macro-plugin/versions
- Download version for 2.1.4
- Go to > Add-ons
- Click upload
- Add newcode-macro-plugin-2.1.4.jar and upload
Attachments
Issue Links
- is duplicated by
-
CONFSERVER-41201 Code macro Plugin 2.2.4 raises "Unable to scan for host components in plugin classes" exception
- Closed