ivanfong01 / vosao

Automatically exported from code.google.com/p/vosao
GNU Lesser General Public License v2.1
0 stars 1 forks source link

Can't uninstall plugins with empty resourceList #483

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'd like to extend velocity via a plugin.
My plugin war contains just WEB-INF/vosao-plugin.xml.
The file vosao-plugin.xml points to a class that is part of my app engine 
project.
The plugin installs correctly but I can't uninstall or update it.
The problem seems to be in PluginLoader.removePluginResources().
The object listResource contains one element but listResource.getContent() is 
an empty array, so this calls fails:
ids.add(Long.valueOf(id));
because id is an empty string.

The reason why listResource is not empty is because when the plugin was 
installed in PluginLoader.install(), two empty lists resourceList and 
fileCacheList were saved:
saveResourceList(plugin, resourceList, fileCacheList);

If I manually remove the PluginResourceEntity instances from the datastore, I 
can then remove the plugin succesfully.
The reason why I want to keep the plugin implementation in my project files is 
because I can more easily debug it and change it at runtime.
I don't know another way to extend velocity (in vosao) other than via plugins, 
maybe a static/plugins could be provided?

Thanks, amazing project!

Original issue reported on code.google.com by theb...@emanueleziglioli.it on 8 Jun 2011 at 12:09

GoogleCodeExporter commented 9 years ago

Original comment by kinyelo@gmail.com on 12 Jun 2011 at 12:54

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r1062.

Original comment by kinyelo@gmail.com on 12 Jun 2011 at 12:55