I cannot speak English well. ^^;
When using multiple plugins, NoClassDefFoundError exceptions may occur in
PluginClassLoader.
The reason is that the cache.
AAA plugin's cached some class may be loaded from BBB plugin's
PluginClassLoader.
- original code
public PluginResourceEntity getByUrl(String plugin, String url) {
Query q = newQuery();
q.addFilter("url", FilterOperator.EQUAL, url);
q.addFilter("pluginName", FilterOperator.EQUAL, plugin);
return selectOne(q, "getByUrl", params(url));
}
- modify code
public PluginResourceEntity getByUrl(String plugin, String url) {
Query q = newQuery();
q.addFilter("url", FilterOperator.EQUAL, url);
q.addFilter("pluginName", FilterOperator.EQUAL, plugin);
return selectOne(q, "getByUrl", params(plugin,url)); //changed
}
Original issue reported on code.google.com by leecj...@gmail.com on 22 Dec 2011 at 2:13
Original issue reported on code.google.com by
leecj...@gmail.com
on 22 Dec 2011 at 2:13