[xwiki-users] debugging an aspect's NoSuchMethodError
Hello fellow xwiki experts, I know it is a shame to run such an old xwiki but sometimes, you have to. This is xwiki 1.5.4 which I deployed as a webapp inside a tomcat 6. While a very similar instance runs flawlessly, this one says:
Caused by: java.lang.NoSuchMethodError: com.xpn.xwiki.plugin.PluginApi.ajc$privFieldGet$com_xpn_xwiki_plugin_PluginApiAspect$com_xpn_xwiki_plugin_PluginApi$plugin(Lcom/xpn/xwiki/plugin/PluginApi;)Lcom/xpn/xwiki/plugin/XWikiPluginInterface; at com.xpn.xwiki.plugin.PluginApiAspect.ajc$interMethod$com_xpn_xwiki_plugin_PluginApiAspect$com_xpn_xwiki_plugin_PluginApi$getPlugin(PluginApiAspect.aj:36) at com.xpn.xwiki.plugin.PluginApi.getPlugin(PluginApi.java:1) at org.curriki.xwiki.plugin.lucene.ResourcesSearchCursor.next(ResourcesSearchCursor.java:416)
I don't think adding such a method makes any sense. I just don't know how to dig things around so that the potential clash is removed (I suspect a config file wrongly loaded somehow). With -verbose:class, all "Aspect" are loaded from the same jar. thanks in advance. paul
Does anyone have an idea? paul On 12 juin 2013, at 16:34, Paul Libbrecht wrote:
Hello fellow xwiki experts,
I know it is a shame to run such an old xwiki but sometimes, you have to. This is xwiki 1.5.4 which I deployed as a webapp inside a tomcat 6. While a very similar instance runs flawlessly, this one says:
Caused by: java.lang.NoSuchMethodError: com.xpn.xwiki.plugin.PluginApi.ajc$privFieldGet$com_xpn_xwiki_plugin_PluginApiAspect$com_xpn_xwiki_plugin_PluginApi$plugin(Lcom/xpn/xwiki/plugin/PluginApi;)Lcom/xpn/xwiki/plugin/XWikiPluginInterface; at com.xpn.xwiki.plugin.PluginApiAspect.ajc$interMethod$com_xpn_xwiki_plugin_PluginApiAspect$com_xpn_xwiki_plugin_PluginApi$getPlugin(PluginApiAspect.aj:36) at com.xpn.xwiki.plugin.PluginApi.getPlugin(PluginApi.java:1) at org.curriki.xwiki.plugin.lucene.ResourcesSearchCursor.next(ResourcesSearchCursor.java:416)
I don't think adding such a method makes any sense. I just don't know how to dig things around so that the potential clash is removed (I suspect a config file wrongly loaded somehow).
With -verbose:class, all "Aspect" are loaded from the same jar.
participants (1)
-
Paul Libbrecht