7 Replies Latest reply on Mar 3, 2010 11:18 PM by 696034

    UI Shell: java.lang.InstantiationException TabContext$TabSelectionActionLis

    Rommel Pino
      JDeveloper 11.1.1.2
      EJB dataContols

      We have minor modification to the UI Shell but basically the the TabSelectionActionListener inner class, the tabSelectionListener private final attribute, and the refreshTabContent() method are still the same. Our application is working well except that we are encountering the above subject error once we launch a specific taskflow. This taskflow has two views (each views contains adf read-only tables drag and drop from an EJB DataControl) and with the following navigation rules:
      currency_list ---drilldown--> conversion_rate_by_currency_list
      currency_list <--back-------- conversion_rate_by_currency_list
      <control-flow-rule id="__18">
            <from-activity-id id="__19">currency_list</from-activity-id>
            <control-flow-case id="__21">
              <from-outcome id="__22">drilldown</from-outcome>
              <to-activity-id id="__20">conversion_rate_by_currency_list</to-activity-id>
            </control-flow-case>
          </control-flow-rule>
          <control-flow-rule id="__23">
            <from-activity-id id="__24">conversion_rate_by_currency_list</from-activity-id>
            <control-flow-case id="__26">
              <from-outcome id="__27">back</from-outcome>
              <to-activity-id id="__25">currency_list</to-activity-id>
            </control-flow-case>
          </control-flow-rule>
      If we will not invoke "drilldown" navigation in this taskflow, then we will not encounter the above error. We can open as many tabs and transfer from one to the other. But if we invoke "drilldown" in this task flow, we can transfer to another tab for once and after that, if we click another tab, we encounter the following error:
      java.lang.InstantiationException: com.alnaghi.nis.view.dynamicShell.NISTabContext$TabSelectionActionListener
           at java.lang.Class.newInstance0(Class.java:340)
           at java.lang.Class.newInstance(Class.java:308)
           at org.apache.myfaces.trinidad.bean.util.StateUtils$Saver.restoreState(StateUtils.java:533)
           at org.apache.myfaces.trinidad.bean.util.StateUtils.restoreStateHolder(StateUtils.java:411)
           at org.apache.myfaces.trinidad.bean.util.StateUtils.restoreList(StateUtils.java:466)
           at org.apache.myfaces.trinidad.bean.PropertyKey.restoreValue(PropertyKey.java:246)
           at org.apache.myfaces.trinidad.bean.util.StateUtils.restoreState(StateUtils.java:357)
           at org.apache.myfaces.trinidad.bean.util.FlaggedPropertyMap.restoreState(FlaggedPropertyMap.java:194)
           at org.apache.myfaces.trinidad.bean.FacesBeanImpl.restoreState(FacesBeanImpl.java:359)
           at org.apache.myfaces.trinidad.component.UIXComponentBase.restoreState(UIXComponentBase.java:930)
           at org.apache.myfaces.trinidad.component.UIXComponentBase.processRestoreState(UIXComponentBase.java:910)
           at org.apache.myfaces.trinidad.component.TreeState.restoreState(TreeState.java:96)
           at org.apache.myfaces.trinidad.component.UIXComponentBase.processRestoreState(UIXComponentBase.java:904)
           at org.apache.myfaces.trinidad.component.TreeState.restoreState(TreeState.java:96)
           at org.apache.myfaces.trinidad.component.UIXComponentBase.processRestoreState(UIXComponentBase.java:904)
           at org.apache.myfaces.trinidad.component.TreeState.restoreState(TreeState.java:144)
           at org.apache.myfaces.trinidad.component.UIXComponentBase.processRestoreState(UIXComponentBase.java:904)
           at org.apache.myfaces.trinidad.component.TreeState.restoreState(TreeState.java:144)
           at org.apache.myfaces.trinidad.component.UIXComponentBase.processRestoreState(UIXComponentBase.java:904)
           at org.apache.myfaces.trinidad.component.TreeState.restoreState(TreeState.java:144)
           at org.apache.myfaces.trinidad.component.UIXComponentBase.processRestoreState(UIXComponentBase.java:904)
           at org.apache.myfaces.trinidad.component.TreeState.restoreState(TreeState.java:144)
           at org.apache.myfaces.trinidad.component.UIXComponentBase.processRestoreState(UIXComponentBase.java:904)
           at org.apache.myfaces.trinidad.component.TreeState.restoreState(TreeState.java:144)
           at org.apache.myfaces.trinidad.component.UIXComponentBase.processRestoreState(UIXComponentBase.java:904)
           at org.apache.myfaces.trinidad.component.TreeState.restoreState(TreeState.java:144)
           at org.apache.myfaces.trinidad.component.UIXComponentBase.processRestoreState(UIXComponentBase.java:904)
           at org.apache.myfaces.trinidad.component.TreeState.restoreState(TreeState.java:144)
           at org.apache.myfaces.trinidad.component.UIXComponentBase.processRestoreState(UIXComponentBase.java:904)
           at org.apache.myfaces.trinidad.component.TreeState.restoreState(TreeState.java:144)
           at org.apache.myfaces.trinidad.component.UIXComponentBase.processRestoreState(UIXComponentBase.java:904)
           at org.apache.myfaces.trinidad.component.TreeState.restoreState(TreeState.java:96)
           at org.apache.myfaces.trinidad.component.UIXComponentBase.processRestoreState(UIXComponentBase.java:904)
           at org.apache.myfaces.trinidad.component.TreeState.restoreState(TreeState.java:96)
           at org.apache.myfaces.trinidad.component.UIXComponentBase.processRestoreState(UIXComponentBase.java:904)
           at org.apache.myfaces.trinidad.component.TreeState.restoreState(TreeState.java:96)
           at org.apache.myfaces.trinidad.component.UIXComponentBase.processRestoreState(UIXComponentBase.java:904)
           at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1182)
           at org.apache.myfaces.trinidadinternal.application.StateManagerImpl.restoreView(StateManagerImpl.java:651)
           at com.sun.faces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:316)
           at javax.faces.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:204)
           at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:279)
           at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._restoreView(LifecycleImpl.java:532)
           at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:280)
           at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
           at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
           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:292)
           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:191)
           at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
           at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
           at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
           at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
           at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
           at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
           at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
           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:94)
           at java.security.AccessController.doPrivileged(Native Method)
           at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
           at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
           at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138)
           at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:70)
           at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
           at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:159)
           at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
           at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:326)
           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.run(WebAppServletContext.java:3592)
           at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
           at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
           at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
           at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
           at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
           at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
           at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
      <StateUtils$Saver><restoreState> 
      Can anyone give any clue?
      pino