NoSuchMethodError with PF7 RC1

aragorn
Posts: 3743
Joined: 29 Jun 2013, 12:38

17 Apr 2019, 15:33

Thanks a lot for the update!
But I tried it after removing ajax="false" and it still works fine for me.

RueKow
Posts: 331
Joined: 21 Jun 2011, 23:34
Location: Germany - Wiesbaden

17 Apr 2019, 18:19

I can confirm.
It only works with ajax="false".
When using ajax="true" or leaving ajax tag, it gives the following exception:

Code: Select all

Apr 17, 2019 6:14:49 PM org.primefaces.application.exceptionhandler.PrimeExceptionHandler logException
SCHWERWIEGEND: org.primefaces.ultima.component.menu.UltimaMenuRenderer.buildAjaxRequest(Ljavax/faces/context/FacesContext;Lorg/primefaces/component/api/AjaxSource;Ljavax/faces/component/UIComponent;)Ljava/lang/String;
java.lang.NoSuchMethodError: org.primefaces.ultima.component.menu.UltimaMenuRenderer.buildAjaxRequest(Ljavax/faces/context/FacesContext;Lorg/primefaces/component/api/AjaxSource;Ljavax/faces/component/UIComponent;)Ljava/lang/String;
	at org.primefaces.ultima.component.menu.UltimaMenuRenderer.encodeMenuItem(UltimaMenuRenderer.java:257)
	at org.primefaces.ultima.component.menu.UltimaMenuRenderer.encodeElement(UltimaMenuRenderer.java:73)
	at org.primefaces.ultima.component.menu.UltimaMenuRenderer.encodeElements(UltimaMenuRenderer.java:52)
	at org.primefaces.ultima.component.menu.UltimaMenuRenderer.encodeSubmenu(UltimaMenuRenderer.java:143)
	at org.primefaces.ultima.component.menu.UltimaMenuRenderer.encodeElement(UltimaMenuRenderer.java:93)
	at org.primefaces.ultima.component.menu.UltimaMenuRenderer.encodeElements(UltimaMenuRenderer.java:52)
	at org.primefaces.ultima.component.menu.UltimaMenuRenderer.encodeMarkup(UltimaMenuRenderer.java:42)
	at org.primefaces.component.menu.BaseMenuRenderer.encodeEnd(BaseMenuRenderer.java:117)
	at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:949)
	at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1912)
	at javax.faces.render.Renderer.encodeChildren(Renderer.java:176)
	at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:918)
	at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1905)
	at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1908)
	at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1908)
	at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:491)
	at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:194)
	at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:151)
	at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:151)
	at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:151)
	at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:151)
	at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:126)
	at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
	at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:223)
	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:671)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
	at org.omnifaces.facesviews.FacesViewsForwardingFilter.doFilter(FacesViewsForwardingFilter.java:130)
	at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:80)
	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:624)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:341)
	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:799)
	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:861)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1455)
	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:745)
Rüdiger

PrimeFaces 7.0 | Ultima 2.0
Mojarra 2.3 | Tomcat 8/9 | Win7/10 | OS X 10.14

mafaul
Posts: 8
Joined: 12 Jan 2015, 07:24

18 Apr 2019, 13:34

We are experiencing the same issue with Barcelona 1.0.5 and PF 7.0.

It seems like the absense of a url and outcome tag is to blame. Adding url="#" works as a workaround for me.

Code: Select all

<p:menuitem value="About" onclick="PF('dlg_platform_about').show();" icon="fa fa-fw fa-picture-o" />
<p:menuitem value="Report a problem" icon="fa fa-fw fa-bug" onclick="#{empty applicationInitializeBean.getApplicationType().getJiraServiceDeskJS() ? 'FreshWidget.show()' : ''}" styleClass="issueCollectorListenable"/>

2019-04-18 13:44:40.769 ERROR org.primefaces.application.exceptionhandler.PrimeExceptionHandler - org.primefaces.barcelona.component.MenuRenderer.buildAjaxRequest(Ljavax/faces/context/FacesContext;Lorg/primefaces/component/api/AjaxSource;Ljavax/faces/component/UIComponent;)Ljava/lang/String;
java.lang.NoSuchMethodError: org.primefaces.barcelona.component.MenuRenderer.buildAjaxRequest(Ljavax/faces/context/FacesContext;Lorg/primefaces/component/api/AjaxSource;Ljavax/faces/component/UIComponent;)Ljava/lang/String;
at org.primefaces.barcelona.component.MenuRenderer.encodeMenuItem(MenuRenderer.java:233)
at org.primefaces.barcelona.component.MenuRenderer.encodeElement(MenuRenderer.java:71)
at org.primefaces.barcelona.component.MenuRenderer.encodeElements(MenuRenderer.java:50)
at org.primefaces.barcelona.component.MenuRenderer.encodeMarkup(MenuRenderer.java:40)
at org.primefaces.component.menu.BaseMenuRenderer.encodeEnd(BaseMenuRenderer.java:117)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:619)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1677)
at javax.faces.render.Renderer.encodeChildren(Renderer.java:176)
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:590)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1670)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1673)
at org.primefaces.barcelona.component.TabMenuRenderer.encodeEnd(TabMenuRenderer.java:100)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:619)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1677)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1673)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1673)
at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:492)
at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:194)
at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:156)
at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:156)
at org.omnifaces.viewhandler.OmniViewHandler.renderView(OmniViewHandler.java:115)
at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:156)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:126)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:223)

RueKow
Posts: 331
Joined: 21 Jun 2011, 23:34
Location: Germany - Wiesbaden

21 Apr 2019, 14:57

I'm a little bit confused about migration guide.
1.1.5 to 1.1.6
- Update layout.js, UltimaMenu*.java and layout css files
- Replace theme jar with new jar
Especially updating "UltimaMenu*.java" is strange for me, because the corresponding class file are integrated in ultima-theme-1.1.6.jar, which is in my build path.
I can't see what you mean.
Can someone give me a hand?
Rüdiger

PrimeFaces 7.0 | Ultima 2.0
Mojarra 2.3 | Tomcat 8/9 | Win7/10 | OS X 10.14

aragorn
Posts: 3743
Joined: 29 Jun 2013, 12:38

22 Apr 2019, 08:56

Fixed for new version. Please download Ultima-2.0.0 from store.

Best Regards,

aragorn
Posts: 3743
Joined: 29 Jun 2013, 12:38

22 Apr 2019, 08:59

Especially updating "UltimaMenu*.java" is strange for me, because the corresponding class file are integrated in ultima-theme-1.1.6.jar, which is in my build path.
I can't see what you mean.
Can someone give me a hand?
- If you use ultima-theme-*.jar, please ignore this step. Some users use UltimaMenu.java and UltimaMenuRenderer.java instead of theme.jar for Ultima menu.

Best Regards,

aragorn
Posts: 3743
Joined: 29 Jun 2013, 12:38

22 Apr 2019, 09:01

Hi all,

Please try 2.0.0 version for "java.lang.NoSuchMethodError" issue.

Best Regards,

Post Reply

Return to “Ultima - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest