2 Replies Latest reply on Jan 26, 2007 10:20 AM by Richard Brooks

    ThemeSelector in CVS throwing NoSuchMethodError on setDirty

    Richard Brooks Newbie

      I've just updated seam from cvs and now my front page's reference to the facelet template:

      template="#{theme.template}"


      is causing an exception

      10:23:03,296 ERROR [STDERR] 26-Jan-2007 10:23:03 com.sun.facelets.FaceletViewHandler handleRenderException
      SEVERE: Error Rendering View[/login.xhtml]
      com.sun.facelets.tag.TagAttributeException: /login.xhtml @16,34 template="#{theme.template}" /login.xhtml @16,34 template="#{theme.template}": Cannot
      get value for expression '#{org.jboss.seam.theme.theme}'
       at com.sun.facelets.tag.TagAttribute.getObject(TagAttribute.java:235)
       at com.sun.facelets.tag.TagAttribute.getValue(TagAttribute.java:200)
       at com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:113)
       at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
       at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
       at com.sun.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:95)
       at com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:503)
       at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:546)
       at org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:101)
       at org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:221)
       at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:75)
       at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:213)
       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.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
       at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
       at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
       at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
       at org.apache.catalina.authenticator.FormAuthenticator.forwardToLoginPage(FormAuthenticator.java:315)
       at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:243)
       at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490)
       at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
       at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
       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.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
       at java.lang.Thread.run(Thread.java:595)
      Caused by: javax.el.ELException: /login.xhtml @16,34 template="#{theme.template}": Cannot get value for expression '#{org.jboss.seam.theme.theme}'
       at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:76)
       at com.sun.facelets.tag.TagAttribute.getObject(TagAttribute.java:233)
       ... 38 more
      Caused by: javax.faces.el.EvaluationException: Exception getting value of property theme of base of type : org.jboss.seam.Namespace
       at org.apache.myfaces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:96)
       at org.apache.myfaces.el.ELParserHelper$MyPropertySuffix.evaluate(ELParserHelper.java:532)
       at org.apache.commons.el.ComplexValue.evaluate(ComplexValue.java:145)
       at org.apache.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:383)
       at org.jboss.seam.core.Expressions$1.getValue(Expressions.java:53)
       at org.jboss.seam.Component.getInstanceFromFactory(Component.java:1672)
       at org.jboss.seam.Component.getInstance(Component.java:1621)
       at org.jboss.seam.Component.getInstance(Component.java:1598)
       at org.jboss.seam.jsf.SeamVariableResolver.resolveVariable(SeamVariableResolver.java:53)
       at org.apache.myfaces.custom.redirectTracker.RedirectTrackerVariableResolver.resolveVariable(RedirectTrackerVariableResolver.java:38)
       at org.apache.myfaces.config.LastVariableResolverInChain.resolveVariable(LastVariableResolverInChain.java:42)
       at com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyELContext.java:134)
       at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:65)
       at com.sun.el.parser.AstValue.getValue(AstValue.java:106)
       at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:192)
       at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
       ... 39 more
      Caused by: org.jboss.seam.InstantiationException: Could not instantiate Seam component: org.jboss.seam.theme.themeSelector
       at org.jboss.seam.Component.newInstance(Component.java:1728)
       at org.jboss.seam.Component.getInstance(Component.java:1631)
       at org.jboss.seam.Component.getInstance(Component.java:1610)
       at org.jboss.seam.Component.getInstance(Component.java:1587)
       at org.jboss.seam.Component.getInstance(Component.java:1582)
       at org.jboss.seam.theme.ThemeSelector.instance(ThemeSelector.java:172)
       at org.jboss.seam.theme.Theme.init(Theme.java:39)
       at org.jboss.seam.theme.Theme.getTheme(Theme.java:105)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.seam.util.Reflections.invoke(Reflections.java:35)
       at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:203)
       at org.jboss.seam.Component.callComponentMethod(Component.java:1797)
       at org.jboss.seam.Component.unwrap(Component.java:1823)
       at org.jboss.seam.Component.getInstance(Component.java:1645)
       at org.jboss.seam.Component.getInstance(Component.java:1598)
       at org.jboss.seam.Namespace.get(Namespace.java:83)
       at org.apache.myfaces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:78)
       ... 54 more
      Caused by: java.lang.IllegalArgumentException: could not set property value: org.jboss.seam.theme.themeSelector.setAvailableThemes
       at org.jboss.seam.Component.setPropertyValue(Component.java:1545)
       at org.jboss.seam.Component.initialize(Component.java:1095)
       at org.jboss.seam.Component.instantiateJavaBean(Component.java:1054)
       at org.jboss.seam.Component.instantiate(Component.java:1014)
       at org.jboss.seam.Component.newInstance(Component.java:1724)
       ... 73 more
      Caused by: java.lang.reflect.InvocationTargetException
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.seam.util.Reflections.invoke(Reflections.java:35)
       at org.jboss.seam.Component.setPropertyValue(Component.java:1541)
       ... 77 more
      Caused by: java.lang.NoSuchMethodError: org.jboss.seam.theme.ThemeSelector.setDirty(Ljava/lang/Object;Ljava/lang/Object;)V
       at org.jboss.seam.theme.ThemeSelector.setAvailableThemes(ThemeSelector.java:128)
       ... 83 more
      


      Previously I was running on a cvs version from about 24 hours ago and it was ok