myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerhard Petracek (JIRA)" <...@myfaces.apache.org>
Subject [jira] [Commented] (EXTVAL-130) check compatibility with glassfish 3.1
Date Tue, 22 Mar 2011 22:24:05 GMT

    [ https://issues.apache.org/jira/browse/EXTVAL-130?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13009871#comment-13009871
] 

Gerhard Petracek commented on EXTVAL-130:
-----------------------------------------

it looks like an issue caused by weld.

BeanValidationStartupListener#registerValidatorFactory -> ExtValUtils.getELHelper().getBean("contextAwareValidatorFactory")
causes:

java.lang.IllegalStateException: No CreationalContext registered for EL evaluation, it is
likely that the the expression factory has not been wrapped by the CDI BeanManager, which
must be done to use the ELResolver from CDI
        at org.jboss.weld.el.AbstractWeldELResolver.getELCreationalContext(AbstractWeldELResolver.java:178)
        at org.jboss.weld.el.AbstractWeldELResolver.lookup(AbstractWeldELResolver.java:146)
        at org.jboss.weld.el.AbstractWeldELResolver.getValue(AbstractWeldELResolver.java:112)
        at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:185)
        at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
        at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203)


> check compatibility with glassfish 3.1
> --------------------------------------
>
>                 Key: EXTVAL-130
>                 URL: https://issues.apache.org/jira/browse/EXTVAL-130
>             Project: MyFaces Extensions Validator
>          Issue Type: Task
>    Affects Versions: 2.0.4
>            Reporter: Gerhard Petracek
>
> extval is tested with glassfish 2.x but with glassfish 3.1 an exception occurs (tested
with http://code.google.com/a/apache-extras.org/p/myfaces-codi-examples/source/browse/#hg%2Fcommunity):
> java.lang.NullPointerException
>     at org.apache.myfaces.extensions.validator.util.ExtValUtils.getStorage(ExtValUtils.java:654)
>     at org.apache.myfaces.extensions.validator.beanval.ExtValBeanValidationContext.initModelValidationStorage(ExtValBeanValidationContext.java:168)
>     at org.apache.myfaces.extensions.validator.beanval.ExtValBeanValidationContext.<init>(ExtValBeanValidationContext.java:70)
>     at org.apache.myfaces.extensions.validator.beanval.ExtValBeanValidationContext.getCurrentInstance(ExtValBeanValidationContext.java:96)
>     at org.apache.myfaces.extensions.validator.beanval.interceptor.BeanValidationTagAwareValidationInterceptor.inspectValidators(BeanValidationTagAwareValidationInterceptor.java:106)
>     at org.apache.myfaces.extensions.validator.beanval.interceptor.BeanValidationTagAwareValidationInterceptor.beforeValidation(BeanValidationTagAwareValidationInterceptor.java:58)
>     at org.apache.myfaces.extensions.validator.util.ExtValUtils.executeGlobalBeforeValidationInterceptors(ExtValUtils.java:612)
>     at org.apache.myfaces.extensions.validator.core.interceptor.AbstractValidationInterceptor.processBeforeValidation(AbstractValidationInterceptor.java:225)
>     at org.apache.myfaces.extensions.validator.core.interceptor.AbstractValidationInterceptor.beforeGetConvertedValue(AbstractValidationInterceptor.java:187)
>     at org.apache.myfaces.extensions.validator.core.renderkit.ExtValRendererWrapper.getConvertedValue(ExtValRendererWrapper.java:361)
>     at javax.faces.component.UIInput.getConvertedValue(UIInput.java:1030)
>     at javax.faces.component.UIInput.validate(UIInput.java:960)
>     at javax.faces.component.UIInput.executeValidate(UIInput.java:1233)
>     at javax.faces.component.UIInput.processValidators(UIInput.java:698)
>     at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1214)
>     at javax.faces.component.UIForm.processValidators(UIForm.java:253)
>     at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1214)
>     at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1214)
>     at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:1172)
>     at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:76)
>     at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
>     at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
>     at org.apache.myfaces.extensions.cdi.jsf2.impl.listener.phase.CodiLifecycleWrapper.execute(CodiLifecycleWrapper.java:93)
>     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:409)
>     at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1534)
>     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:281)
>     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
>     at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
>     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
>     at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)
>     at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)
>     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
>     at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:326)
>     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:227)
>     at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:170)
>     at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822)
>     at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)
>     at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)
>     at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
>     at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
>     at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
>     at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
>     at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
>     at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
>     at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
>     at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
>     at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
>     at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
>     at java.lang.Thread.run(Thread.java:662)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message