[richfaces-planning-issues] [JBoss JIRA] (RFPL-3056) TestGraphValidator throwing exception for RF 4.5 and 5.x

Matej Novotny (JIRA) jira-events at lists.jboss.org
Tue Nov 19 09:34:06 EST 2013


Matej Novotny created RFPL-3056:
-----------------------------------

             Summary: TestGraphValidator throwing exception for RF 4.5 and 5.x
                 Key: RFPL-3056
                 URL: https://issues.jboss.org/browse/RFPL-3056
             Project: RichFaces Planning
          Issue Type: Bug
      Security Level: Public (Everyone can see)
    Affects Versions: 5.0.0.Alpha2
         Environment:     RichFaces 5.0.0-SNAPSHOT
    Metamer 4.5.0-SNAPSHOT
    JBoss Application Server: Weld Integration 7.1.1.Final
    JBoss AS 7.1.1.Final
    OpenJDK Runtime Environment 1.7.0_45-mockbuild_2013_10_16_17_47-b00 @ Linux
    Firefox 24.0 @ Linux x86_64

            Reporter: Matej Novotny


TestGraphValidator works for RF 4.3.x (all settings are equal) but fails for Metamer 4.5 and 5.0.0.
The problem is in an attribute "type" assigned during PostConstruct method in RichGraphValidatorBean [(Metamer for RF 4.3.x link)|https://github.com/richfaces/richfaces-qa/blob/4.3.x/metamer/application/src/main/java/org/richfaces/tests/metamer/bean/rich/RichGraphValidatorBean.java#L133]. This should point to a BeanValidator class, which I assume cannot be loaded. (I tried to find this class in RF 4 repository but so far with no luck)

I did not manage to find out what is this "type" attribute for however after removing it, tests pass correctly (and I manually confirmed that whole page works as it did before).

So before we realize whether this removal was correct I just commented out the neccessary lines in Metamer for RF 4.5.

The exception thrown is:
{code}
javax.servlet.ServletException: Expression Error: Named Object: org.richfaces.BeanValidator not found.
	javax.faces.webapp.FacesServlet.service(FacesServlet.java:606)
	org.richfaces.tests.metamer.TestIdentityFilter.doFilter(TestIdentityFilter.java:93)
	org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:62)

root cause

javax.faces.FacesException: Expression Error: Named Object: org.richfaces.BeanValidator not found.
	com.sun.faces.application.ApplicationImpl.createValidator(ApplicationImpl.java:1593)
	org.jboss.as.weld.webtier.jsf.ForwardingApplication.createValidator(ForwardingApplication.java:157)
	org.richfaces.component.AbstractGraphValidator.createChildrenValidator(AbstractGraphValidator.java:197)
	org.richfaces.view.facelets.html.SetupValidatorsParameter.getValidator(SetupValidatorsParameter.java:23)
	org.richfaces.view.facelets.html.GraphValidatorHandler.setupValidator(GraphValidatorHandler.java:135)
	org.richfaces.view.facelets.html.GraphValidatorHandler.setupValidators(GraphValidatorHandler.java:117)
	org.richfaces.view.facelets.html.GraphValidatorHandler.setupValidators(GraphValidatorHandler.java:122)
	org.richfaces.view.facelets.html.GraphValidatorHandler.setupValidators(GraphValidatorHandler.java:122)
	org.richfaces.view.facelets.html.GraphValidatorHandler.access$000(GraphValidatorHandler.java:55)
	org.richfaces.view.facelets.html.GraphValidatorHandler$FacesBeanValidatorAddListener.processEvent(GraphValidatorHandler.java:74)
	javax.faces.component.UIComponent$ComponentSystemEventListenerAdapter.processEvent(UIComponent.java:2486)
	javax.faces.event.SystemEvent.processListener(SystemEvent.java:106)
	com.sun.faces.application.ApplicationImpl.processListeners(ApplicationImpl.java:2168)
	com.sun.faces.application.ApplicationImpl.invokeComponentListenersFor(ApplicationImpl.java:2116)
	com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:288)
	com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:246)
	org.jboss.as.weld.webtier.jsf.ForwardingApplication.publishEvent(ForwardingApplication.java:293)
	javax.faces.component.UIComponentBase.publishAfterViewEvents(UIComponentBase.java:2201)
	javax.faces.component.UIComponentBase.publishAfterViewEvents(UIComponentBase.java:2206)
	javax.faces.component.UIComponentBase.publishAfterViewEvents(UIComponentBase.java:2206)
	javax.faces.component.UIComponentBase.publishAfterViewEvents(UIComponentBase.java:2206)
	javax.faces.component.UIComponentBase.doPostAddProcessing(UIComponentBase.java:1883)
	javax.faces.component.UIComponentBase.setParent(UIComponentBase.java:400)
	javax.faces.component.UIComponentBase$ChildrenList.add(UIComponentBase.java:2635)
	javax.faces.component.UIComponentBase$ChildrenList.add(UIComponentBase.java:2607)
	com.sun.faces.facelets.tag.jsf.ComponentSupport.addComponent(ComponentSupport.java:574)
	com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.addComponentToView(ComponentTagHandlerDelegateImpl.java:311)
	com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:211)
	javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	com.sun.faces.facelets.tag.jsf.core.ViewHandler.apply(ViewHandler.java:182)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93)
	javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
	com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:86)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:308)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:367)
	com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:346)
	com.sun.faces.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:199)
	com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:155)
	com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93)
	com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:86)
	com.sun.faces.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:152)
	com.sun.faces.application.view.FaceletViewHandlingStrategy.buildView(FaceletViewHandlingStrategy.java:774)
	com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:100)
	com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
	com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
	javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)
	org.richfaces.tests.metamer.TestIdentityFilter.doFilter(TestIdentityFilter.java:93)
	org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:62)


{code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the richfaces-planning-issues mailing list