1 Reply Latest reply: Feb 5, 2013 10:52 PM by Anirban Mukherjee RSS

    Binding for region model evaluated to null

    Anirban Mukherjee
      I have dragged a bounded taskflow on a jsf page. At runtime, I am getting the following error: "java.lang.IllegalStateException: The expression "#{bindings.securitylayout1.regionModel}" (that was specified for the RegionModel "value" attribute of the region component with id "r1") evaluated to null." This is the stacktrace:
      java.lang.IllegalStateException: The expression "#{bindings.securitylayout1.regionModel}" (that was specified for the RegionModel "value" attribute of the region component with id "r1") evaluated to null.
      This is typically due to an error in the configuration of the objects referenced by this expression.
      If it helps, the expression "#{bindings.securitylayout1}" evaluates to "null".
      If it helps, the expression "#{bindings}" evaluates to "null".  Now using an empty RegionModel instead.
           at oracle.adf.view.rich.component.fragment.UIXRegion.getRegionModel(UIXRegion.java:477)
           at oracle.adf.view.rich.component.fragment.UIXRegion._beginInterruptibleRegion(UIXRegion.java:751)
           at oracle.adf.view.rich.component.fragment.UIXRegion.processRegion(UIXRegion.java:525)
           at oracle.adf.view.rich.component.fragment.UIXRegion._preRenderView(UIXRegion.java:1043)
           at oracle.adf.view.rich.component.fragment.UIXRegion.processEvent(UIXRegion.java:1005)
           at oracle.adfinternal.view.faces.lifecycle.PreRenderViewUtils$1.visit(PreRenderViewUtils.java:122)
           at oracle.adfinternal.view.faces.lifecycle.PreRenderViewVisitContext._invokeVisitCallback(PreRenderViewVisitContext.java:152)
           at oracle.adfinternal.view.faces.lifecycle.PreRenderViewVisitContext.invokeVisitCallback(PreRenderViewVisitContext.java:131)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:531)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:354)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitAllChildren(UIXComponent.java:437)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:415)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:695)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:558)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:354)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitAllChildren(UIXComponent.java:437)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:415)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:695)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:558)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:354)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitAllChildren(UIXComponent.java:437)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:415)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:695)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:558)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:354)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitAllChildren(UIXComponent.java:437)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:415)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:695)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:558)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:354)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitAllChildren(UIXComponent.java:437)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:415)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:695)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:558)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:354)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitAllChildren(UIXComponent.java:437)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:415)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:695)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:558)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:354)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitAllChildren(UIXComponent.java:437)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:415)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:695)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:558)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:354)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitAllChildren(UIXComponent.java:437)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:415)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:695)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:558)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:354)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitAllChildren(UIXComponent.java:437)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:415)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:695)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:558)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:354)
           at org.apache.myfaces.trinidad.component.UIXDocument.visitTree(UIXDocument.java:82)
           at javax.faces.component.UIComponent.visitTree(UIComponent.java:1518)
           at oracle.adfinternal.view.faces.lifecycle.PreRenderViewUtils._visit(PreRenderViewUtils.java:110)
           at oracle.adfinternal.view.faces.lifecycle.PreRenderViewUtils.__deliverPreRenderViewEvents(PreRenderViewUtils.java:61)
           at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:997)
           at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:339)
           at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:237)
           at javax.faces.webapp.FacesServlet.service(FacesServlet.java:509)
           at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
           at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
           at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
           at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
           at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
           at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
           at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
           at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:125)
           at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
           at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
           at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
           at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
           at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
           at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
           at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
           at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
           at java.security.AccessController.doPrivileged(Native Method)
           at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
           at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
           at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
           at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
           at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
           at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
           at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
           at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
           at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
           at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
           at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
           at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
           at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
           at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
           at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
           at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
           at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
           at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
           at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
      The problem does not occur when I deploy the application using JDeveloper (version 11.1.2.2.0). It only happens when I compile (with jdk 1.6.0_38) and build the project using ant (version 1.8.2) and deploy the ear (both from Administration console and from ant wlst scripts).

      Not only this binding, but any binding dropped onto any jsf page evaluates to null.

      I have checked my dependency of my webapp project on the dataModel project and I have included the build output correctly.

      Am I missing something? Please let me know if I need to add more details to the post.

      Thanks,
      Anirban
        • 1. Re: Binding for region model evaluated to null
          Anirban Mukherjee
          I am closing this thread as the problem is fixed.

          The problem was with my build wherein the adfm.xml file in META-INF which contains the path to the DataBindings.cpx file was being overwritten with wrong path. The path should be correct.
          <?xml version="1.0" encoding="UTF-8" ?>
          <MetadataDirectory xmlns="http://xmlns.oracle.com/adfm/metainf" version="11.1.1.0.0">
            <DataBindingRegistry path="my_package_structure/DataBindings.cpx"/>
          </MetadataDirectory>