Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-844

IllegalStateException when use cdi DelegatingVariableResolver

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Later Later
    • 6.0.2
    • 5.0.10
    • None
    • None
    • WELD-Servlet 1.1.4.Final and 1.1.5.Final

      when use cdi DelegatingVariableResolver
      version WELD-Servlet 1.1.4.Final and 1.1.5.Final

      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
      org.jboss.weld.el.AbstractWeldELResolver.getELCreationalContext(AbstractWeldELResolver.java:148)
      org.jboss.weld.el.AbstractWeldELResolver.lookup(AbstractWeldELResolver.java:123)
      org.jboss.weld.el.AbstractWeldELResolver.getValue(AbstractWeldELResolver.java:96)
      org.zkoss.zkplus.cdi.DelegatingVariableResolver.resolveVariable(DelegatingVariableResolver.java:52)
      org.zkoss.xel.util.Evaluators.resolveVariable(Evaluators.java:196)
      org.zkoss.zk.ui.impl.PageImpl.getXelVariable(PageImpl.java:532)
      org.zkoss.zk.xel.impl.ExecutionResolver.resolveVariable(ExecutionResolver.java:172)
      org.zkoss.xel.zel.XelELResolver.resolve(XelELResolver.java:78)
      org.zkoss.xel.zel.XelELResolver.getValue(XelELResolver.java:72)
      org.zkoss.zel.impl.parser.AstIdentifier.getValue(AstIdentifier.java:75)
      org.zkoss.zel.impl.parser.AstValue.getValue(AstValue.java:155)
      org.zkoss.zel.impl.parser.AstDynamicExpression.getValue(AstDynamicExpression.java:44)
      org.zkoss.zel.impl.parser.AstCompositeExpression.getValue(AstCompositeExpression.java:50)
      org.zkoss.zel.impl.ValueExpressionImpl.getValue(ValueExpressionImpl.java:189)
      org.zkoss.xel.zel.ELXelExpression.evaluate(ELXelExpression.java:40)
      org.zkoss.zk.xel.impl.SimpleEvaluator.evaluate(SimpleEvaluator.java:72)
      org.zkoss.zk.ui.metainfo.AbstractEvalRef.evaluate(AbstractEvalRef.java:48)
      org.zkoss.zk.xel.ExValue.getValue(ExValue.java:109)
      org.zkoss.zk.ui.metainfo.Property.getValue(Property.java:134)
      org.zkoss.zk.ui.metainfo.Property.assign0(Property.java:227)
      org.zkoss.zk.ui.metainfo.Property.assign(Property.java:169)
      org.zkoss.zk.ui.metainfo.ComponentInfo.applyProperties(ComponentInfo.java:729)
      org.zkoss.zk.ui.impl.AbstractUiFactory.newComponent(AbstractUiFactory.java:101)
      org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild0(UiEngineImpl.java:795)
      org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:764)
      org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:673)
      org.zkoss.zk.ui.impl.UiEngineImpl.execCreate(UiEngineImpl.java:637)
      org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild0(UiEngineImpl.java:810)
      org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:764)
      org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:673)
      org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:735)
      org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:695)
      org.zkoss.zk.ui.impl.UiEngineImpl.execCreate(UiEngineImpl.java:637)
      org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage0(UiEngineImpl.java:388)
      org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage(UiEngineImpl.java:310)
      org.zkoss.zk.ui.http.DHtmlLayoutServlet.process(DHtmlLayoutServlet.java:214)
      org.zkoss.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:134)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

      No such exception in weld-servlet 1.0.1-Final

            Hudson Hudson (Inactive)
            dennis dennis
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: