Page 1 of 1

java.lang.NoSuchMethodError with PF 7 and Harmony 1.0.6

Posted: 18 Apr 2019, 16:52
by undermensch
I just upgraded to Harmony 1.0.6 and I receive a NoSuchMethodError:

Code: Select all

Caused by: java.lang.NoSuchMethodError: org.primefaces.harmony.component.HarmonyMenuRenderer.buildAjaxRequest(Ljavax/faces/context/FacesContext;Lorg/primefaces/component/api/AjaxSource;Ljavax/faces/component/UIComponent;)Ljava/lang/String;
	at org.primefaces.harmony.component.HarmonyMenuRenderer.encodeMenuItem(HarmonyMenuRenderer.java:246)
	at org.primefaces.harmony.component.HarmonyMenuRenderer.encodeElement(HarmonyMenuRenderer.java:77)
	at org.primefaces.harmony.component.HarmonyMenuRenderer.encodeElements(HarmonyMenuRenderer.java:56)
	at org.primefaces.harmony.component.HarmonyMenuRenderer.encodeSubmenu(HarmonyMenuRenderer.java:137)
	at org.primefaces.harmony.component.HarmonyMenuRenderer.encodeElement(HarmonyMenuRenderer.java:94)
	at org.primefaces.harmony.component.HarmonyMenuRenderer.encodeElements(HarmonyMenuRenderer.java:56)
	at org.primefaces.harmony.component.HarmonyMenuRenderer.encodeSubmenu(HarmonyMenuRenderer.java:137)
	at org.primefaces.harmony.component.HarmonyMenuRenderer.encodeElement(HarmonyMenuRenderer.java:94)
	at org.primefaces.harmony.component.HarmonyMenuRenderer.encodeElements(HarmonyMenuRenderer.java:56)
	at org.primefaces.harmony.component.HarmonyMenuRenderer.encodeMarkup(HarmonyMenuRenderer.java:46)
	at org.primefaces.component.menu.BaseMenuRenderer.encodeEnd(BaseMenuRenderer.java:109)
	at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:920)
	at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1863)
	at javax.faces.render.Renderer.encodeChildren(Renderer.java:176)
	at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:890)
	at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:304)
	at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:114)
	at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:890)
	at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1856)
	at com.sun.faces.renderkit.html_basic.CompositeRenderer.encodeChildren(CompositeRenderer.java:78)
	at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:890)
I followed the migration guide. It mentions updating the HarmonyMenu*.java files, but those are compiled classes in the theme's jar which I assume has been updated. My menu has a few menu items that use ajax, if I remove them it works.

Re: java.lang.NoSuchMethodError with PF 7 and Harmony 1.0.6

Posted: 14 May 2019, 09:27
by aragorn
Please try new version.

Best Regards,