Issue
When running the plugin-manager-cli file, you run into the following error:
Exception in thread "main" java.lang.NullPointerException
at com.xebialabs.plugin.manager.cli.PluginManagerCli.$anonfun$printPlugins$2(PluginManagerCli
.scala:97)
at com.xebialabs.plugin.manager.cli.PluginManagerCli.$anonfun$printPlugins$2$adapted(PluginManagerCli
.scala:97)
at scala.collection.immutable.List.exists(List.scala:395)
at com.xebialabs.plugin.manager.cli.PluginManagerCli.$anonfun$printPlugins$1(PluginManagerCli
.scala:97)
at com.xebialabs.plugin.manager.cli.PluginManagerCli.$anonfun$printPlugins$1$adapted(PluginManagerCli
.scala:96)
at scala.collection.immutable.List.foreach(List.scala:333)
at com.xebialabs.plugin.manager.cli.PluginManagerCli.printPlugins(PluginManagerCli.scala:96)
at com.xebialabs.plugin.manager.cli.PluginManagerCli.run(PluginManagerCli.scala:27)
at com.xebialabs.xlrelease.PluginManagerCliBootstrapper$.runPluginManagerCli(PluginManager
CliBootstrapper.scala:38)
at com.xebialabs.xlrelease.PluginManagerCliBootstrapper$.main(PluginManagerCliBootstrapper
.scala:29)
at com.xebialabs.xlrelease.PluginManagerCliBootstrapper.main(PluginManagerCliBootstrapper.scala)
Root Cause
This issue is caused if any of the plugins doesn't follow the naming convention as per semantic versioning.
For example, test.jar instead of test-1.0.0.jar.
Solution
- Stop the application
- Delete the plugin from the directory (for example:
rm release_home/plugins/__local__/test.jar
) - The run
./plugin-manager-cli.sh
- Once the plugin CLI loads, execute the following commands
delete test
- delete any other plugins if needed
- Optional: run
list
to verify the plugin(s) has been deleted quit
- Proceed to fix the plugin's naming convention
- Lastly, you may place the newly renamed plugin(s) in the plugins/__local__ or upload them via the GUI when you start the application
Comments
Please sign in to leave a comment.