6 Replies Latest reply on Mar 19, 2007 11:59 PM by Sergey Smirnov

    SimpleTogglePanelRenderer Error

    JC Newbie

      I got this error integrating richfaces with appfuse.. any help?

      2007-03-19 12:32:33,531 ERROR Main Thread org.apache.myfaces.config.FacesConfigurator - failed to configure class org.richfaces.renderkit.html.SimpleToggleControlTemplate
      java.lang.VerifyError: (class: org/richfaces/renderkit/html/SimpleTogglePanelRenderer, method: doDecode signature: (Ljavax/faces/context/FacesContext;Ljavax/faces/component/UIComponent;)V) Incompatible object argument for function call
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
      at java.lang.Class.newInstance0(Class.java:350)
      at java.lang.Class.newInstance(Class.java:303)
      at org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:274)
      at org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:265)
      at org.apache.myfaces.config.FacesConfigurator.configureRenderKits(FacesConfigurator.java:625)
      at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:142)
      at org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextListener.java:69)
      at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:52)
      at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3763)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4211)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
      at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:608)
      at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535)
      at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
      at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
      at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
      at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
      at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
      at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
      at org.apache.catalina.core.StandardService.start(StandardService.java:450)
      at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
      at org.apache.catalina.startup.Catalina.start(Catalina.java:551)

        • 1. Re: SimpleTogglePanelRenderer Error
          Nick Belaevski Master

          Hello!

          What MyFaces/AppFuse version are you using?

          • 2. Re: SimpleTogglePanelRenderer Error
            JC Newbie

            This is my config:

            jboss-richfaces-3.0.0
            myfaces-1.1.4
            facelets-1.1.11
            ajax4jsf-1.0.2

            The app was generated by appfuse-jsf-1.9.4

            • 3. Re: SimpleTogglePanelRenderer Error
              Nick Belaevski Master

              RichFaces 3.0.0 requires minimal 1.1.0 AJAX4JSF version. Can you please try to upgrade?

              • 4. Re: SimpleTogglePanelRenderer Error
                JC Newbie

                mm ups...

                I haven't notice that my build.xml was including both jars 1.1.0 and 1.0.2 ...


                thanks for your help...

                • 5. Re: SimpleTogglePanelRenderer Error
                  JC Newbie

                  mmm ups.. again.. It seems that sitemesh doesn't work with 1.1.0 AJAX4JSF



                  java.util.NoSuchElementException
                  at java.util.LinkedList.getLast(LinkedList.java:122)
                  at com.opensymphony.module.sitemesh.html.HTMLProcessor$1.currentBuffer(HTMLProcessor.java:44)
                  at com.opensymphony.module.sitemesh.html.HTMLProcessor$2.text(HTMLProcessor.java:71)
                  at com.opensymphony.module.sitemesh.html.tokenizer.Parser.parsedText(Parser.java:299)
                  at com.opensymphony.module.sitemesh.html.tokenizer.Parser.start(Parser.java:110)
                  at com.opensymphony.module.sitemesh.html.tokenizer.TagTokenizer.start(TagTokenizer.java:33)
                  at com.opensymphony.module.sitemesh.html.HTMLProcessor.process(HTMLProcessor.java:58)
                  at com.opensymphony.module.sitemesh.parser.HTMLPageParser.parse(HTMLPageParser.java:55)
                  at com.opensymphony.module.sitemesh.filter.Buffer.parse(Buffer.java:41)
                  at com.opensymphony.module.sitemesh.filter.PageResponseWrapper.getPage(PageResponseWrapper.java:169)
                  at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:123)
                  at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                  at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:375)
                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
                  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
                  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
                  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
                  at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541)
                  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
                  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
                  at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
                  at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
                  at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
                  at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
                  at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
                  at java.lang.Thread.run(Thread.java:595)

                  ***************************
                  Additional Note:
                  mi .war only works if both jars are present in Web-inf/lib

                  • 6. Re: SimpleTogglePanelRenderer Error
                    Sergey Smirnov Master

                    I see report that Sitemesh works with ajx4jsf 1.0.3, but does not work with 1.0.4 . So, it sounds like the incompatibility still exist.