12 Replies Latest reply: May 31, 2012 7:59 PM by EJP RSS

    passs Container's getter to the method

    Tshifhiwa
      how can i passs Container's getter to the method
      protected void callPerformSdmsLogon(String stmt, Object[] bindVars) {
                      PreparedStatement st;
                      st = null;
                      try {
                          // 1. Create a JDBC PreparedStatement for
                          st = getDBTransaction().createPreparedStatement("begin " + stmt + ";end;", 0);
      
                          if (bindVars != null) {
                              // 2. Loop over values for the bind variables passed in, if any
                              for (int z = 0; z < bindVars.length; z++) {
                                  // 3. Set the value of each bind variable in the statement
                                  st.setObject(z + 1, bindVars[z]);
                              }
                          }
                          // 4. Execute the statement
                          st.executeUpdate();
                      } catch (SQLException e) {
                          throw new JboException(e);
                      } finally {
                          if (st != null) {
                              try {
                                  // 5. Close the statement
                                  st.close();
                              } catch (SQLException e) {
                              }
                          }
                      }
                  }
      
       public ViewLinkImpl getpar_facfkViewLink() {
              return (ViewLinkImpl)findViewLink("par_facfkViewLink");
          }
      
          /**
           * Container's getter for drepfkViewLink.
           * @return drepfkViewLink
           */
          public ViewLinkImpl getdrepfkViewLink() {
              return (ViewLinkImpl)findViewLink("drepfkViewLink");
          }
      public void PerformDeleteAgr(String agrid) {
                  
                  agrid = this.getagrid();
                  how can i pass this hear getpar_facfkViewLink  
                      agrid =   getpar_facfkViewLink 
                      
                  callPerformSdmsLogon("SMS_FORM_TO_ADf.delete_agr(?)", new Object[] { agrid });
                 // return agrid;
              }
      
                  public void PerformAgrSubmit() {
                  
                    String agr_id = this.getagrid();
                    String parid = this.getparid();
                    String tasid = this.getasid();
                    String drefid = this.getdrefid();
                 
                  
      
                      callPerformSdmsLogon("SMS_FORM_TO_ADf.agr_submit(?,?,?,?)", new Object[] { agr_id,parid,tasid,drefid });
                      
                     
                  }
      Edited by: Tshifhiwa on 2012/05/27 12:32 PM

      Edited by: EJP on 27/05/2012 19:46: code tags. Please use them.

      Edited by: Tshifhiwa on 2012/05/29 1:27 PM
        • 1. Re: passs Container's getter to the method
          morgalr
          Maybe I'm missing something, but "this" referes to the current running instance, so just using the convention of this.myMethod() would be referencing the currently running instance of the object when calling myMethod().
          • 2. Re: passs Container's getter to the method
            aksarben
            Tip: Your code would be much easier to read (& you're thus more likely to receive answers to your questions) if you follow the standard Java coding conventions (see here: http://www.oracle.com/technetwork/java/codeconvtoc-136057.html).
            • 3. Re: passs Container's getter to the method
              Tshifhiwa
              hi my use case is i have a variable in my view i what to pass to my method in my class. my class are the following i what to pass the userid when i call the procedure
              import java.sql.ResultSet;
              import java.sql.PreparedStatement;
              import java.sql.SQLException;
              
              import oracle.jbo.JboException;
              import oracle.jbo.server.ApplicationModuleImpl;
              
              import oracle.jbo.server.ViewObjectImpl;
              import oracle.jbo.server.ViewRowImpl;
              import oracle.jbo.server.ViewRowSetImpl;
              
              public class HRowImpl extends ViewRowImpl implements HRow {
              
              
                  public static final int ENTITY_SMSHOMEVW1 = 0;
              
                  public enum AttributesEnum {
                      UserId {
                          public Object get(HRowImpl obj) {
                              return obj.getUserId();
                          }
              
                          public void put(HRowImpl obj, Object value) {
                              obj.setUserId((String)value);
                          }
                      }
              
               public static final int USERID = AttributesEnum.UserId.index();
              
                  /**
                   * Gets the attribute value for USER_ID using the alias name UserId.
                   * @return the USER_ID
                   */
                  public String getUserId() {
                      return (String) getAttributeInternal(USERID);
                  }
              
                  /**
                   * Sets <code>value</code> as attribute value for USER_ID using the alias name UserId.
                   * @param value value to set the USER_ID
                   */
                  public void setUserId(String value) {
                      setAttributeInternal(USERID, value);
                  }
              
              
              my clientrow class is
              import oracle.jbo.client.remote.RowImpl;
              import oracle.jbo.domain.RowID;
              
              public class HRowClient extends RowImpl {
                  /**
                   * This is the default constructor (do not remove).
                   */
                  public HRowClient() {
                  }
              
                  public String getUserId() {
                      return (String)getAttribute("UserId");
                  }
              
                  public void setUserId(String value) {
                      setAttribute("UserId", value);
                  }
              
              
              now i what to pass my userid to this class method
              import java.sql.ResultSet;
              
              import oracle.jbo.server.ViewObjectImpl;
              import oracle.jbo.server.ViewRowImpl;
              import oracle.jbo.server.ViewRowSetImpl;
              
              public class HImpl extends ViewObjectImpl {
                  /**
                   * This is the default constructor (do not remove).
                   */
                  public HImpl() {
                  }
              
                  public HImpl getH1() {
                      return (HImpl)findViewObject("H1");
                  }
              
                  protected void callPerformSdmsLogon(String stmt, Object[] bindVars) {
                             PreparedStatement st;
                             st = null;
                             try {
                                 // 1. Create a JDBC PreparedStatement for
                                 st = getDBTransaction().createPreparedStatement("begin " + stmt + ";end;", 0);
              
                                 if (bindVars != null) {
                                     // 2. Loop over values for the bind variables passed in, if any
                                     for (int z = 0; z < bindVars.length; z++) {
                                         // 3. Set the value of each bind variable in the statement
                                         st.setObject(z + 1, bindVars[z]);
                                     }
                                 }
                                 // 4. Execute the statement
                                 st.executeUpdate();
                             } catch (SQLException e) {
                                 throw new JboException(e);
                             } finally {
                                 if (st != null) {
                                     try {
                                         // 5. Close the statement
                                         st.close();
                                     } catch (SQLException e) {
                                     }
                                 }
                             }
                         }
                  public String PerformSdmsLogon(String userid, String upwd) {
                                    getH1() --this view is where my userid is located
                                
                                 callPerformSdmsLogon("SMS_FORM_TO_ADf.perform_sdms_logon(?,?)", new Object[] { userid, upwd, });
                                 return "sms0000-v2";
                             }
              Edited by: Tshifhiwa on 2012/05/29 1:27 PM
              • 4. Re: passs Container's getter to the method
                EJP
                Moderator: Please edit that illegible mess to include code tags like I did for your first post. Please also explain your question.
                • 5. Re: passs Container's getter to the method
                  Tshifhiwa
                  hi a trying to acces the view attribute so i can pass it to my procedure am geting error (oracle.jbo.DeadViewRowAccessException) JBO-27102: Attempt to access dead view row of persistent id 0
                  public class HRowImpl extends ViewRowImpl implements HRow {
                  
                  
                      public static final int ENTITY_SMSHOMEVW1 = 0;
                           public enum AttributesEnum {
                          UserId {
                              public Object get(HRowImpl obj) {
                                  return obj.getUserId();
                              }
                  
                              public void put(HRowImpl obj, Object value) {
                                  obj.setUserId((String)value);
                              }
                          }
                          ,
                    public static final int USERID = AttributesEnum.UserId.index();
                     public static final int PWD = AttributesEnum.pwd.index();
                    
                        public EntityImpl getSmsHomeVw1() {
                          return (EntityImpl)getEntity(ENTITY_SMSHOMEVW1);
                      }
                      public String getUserId() {
                          return (String) getAttributeInternal(USERID);
                      }
                  
                      /**
                       * Sets <code>value</code> as attribute value for USER_ID using the alias name UserId.
                       * @param value value to set the USER_ID
                       */
                      public void setUserId(String value) {
                          setAttributeInternal(USERID, value);
                      }
                  
                      public String getpwd() {
                          return (String) getAttributeInternal(PWD);
                      }
                  
                      /**
                       * Sets <code>value</code> as the attribute value for the calculated attribute pwd.
                       * @param value value to set the  pwd
                       */
                      public void setpwd(String value) {
                          setAttributeInternal(PWD, value);
                      }
                  
                  
                  public class sms0000AppModuleImpl extends ApplicationModuleImpl implements sms0000AppModule {
                         public String PerformSdmsLogon(String userid, String upwd) {
                  
                                    
                                     HRowImpl result = new HRowImpl();
                                     result.setUserId(userid);
                                     result.setpwd(upwd);
                                     callPerformSdmsLogon("SMS_FORM_TO_ADf.perform_sdms_logon(?,?)", new Object[] { userid, upwd, });
                                     return userid;
                  }
                  • 6. Re: passs Container's getter to the method
                    morgalr
                    Tshifhiwa,

                    As far as I can see, or have noticed, you have a simple life/visibility problem. You need to return your RecordSet and have a reference to it in a vaiable that is scoped appropriately, so you can see it later and it does not do out of scope for your execution path.
                    • 7. Re: passs Container's getter to the method
                      Tshifhiwa
                      so how can i return RecordSet and have a reference to it in a vaiable
                      • 8. Re: passs Container's getter to the method
                        EJP
                        Moderator:
                        trying to acces the view attribute so i can pass it to my procedure
                        Trying to access which view attribute, at which line of code, and which line of code throws the exception?

                        NB your duplicate post has been deleted.
                        • 9. Re: passs Container's getter to the method
                          Tshifhiwa
                          you mean to return like this
                          HRowImpl result = new HRowImpl();
                          result.setUserId(userid);
                          result.setpwd(upwd);
                          callPerformSdmsLogon("SMS_FORM_TO_ADf.perform_sdms_logon(?,?)", new Object[] { userid, upwd, });
                          return results;
                          • 10. Re: passs Container's getter to the method
                            Tshifhiwa
                            userid view attributes is the one i what to access my view is
                            <?xml version="1.0" encoding="windows-1252" ?>
                            <!DOCTYPE ViewObject SYSTEM "jbo_03_01.dtd">
                            <!---->
                            <ViewObject
                            xmlns="http://xmlns.oracle.com/bc4j"
                            Name="H"
                            Version="11.1.2.60.81"
                            BindingStyle="OracleName"
                            CustomQuery="true"
                            PageIterMode="Full"
                            UseGlueCode="false"
                            RowClass="sms0000.HRowImpl"
                            ComponentClass="sms0000.HImpl"
                            RowInterface="sms0000.common.HRow"
                            ClientRowProxyName="sms0000.client.HRowClient">
                            <DesignTime>
                            <Attr Name="_isExpertMode" Value="true"/>
                            <Attr Name="_codeGenFlag2" Value="Access|Coll|Prog|VarAccess"/>
                            <Attr Name="_isCodegen" Value="true"/>
                            </DesignTime>
                            <Properties>
                            <SchemaBasedProperties>
                            <LABEL
                            ResId="sms0000.H_LABEL"/>
                            </SchemaBasedProperties>
                            </Properties>
                            <SQLQuery><![CDATA[SELECT SmsHomeVw.USER_ID,
                                   SmsHomeVw.NAME,
                                   SmsHomeVw.SURNAME,
                                   SmsHomeVw.OFFICE_NAME,
                                   SmsHomeVw.ROLE_LIST,
                                   SmsHomeVw.MENU_LIST,
                                   SmsHomeVw.MENU_REPORT_LIST,
                                   SmsHomeVw.ROWID
                            FROM SMS_HOME_VW SmsHomeVw
                            order by SmsHomeVw.USER_ID]]></SQLQuery>
                            <ViewAttribute
                            Name="UserId"
                            IsUpdateable="false"
                            IsPersistent="false"
                            PrecisionRule="true"
                            Precision="255"
                            Type="java.lang.String"
                            ColumnType="VARCHAR2"
                            AliasName="USER_ID"
                            Expression="USER_ID"
                            SQLType="VARCHAR">
                            <DesignTime>
                            <Attr Name="_DisplaySize" Value="240"/>
                            </DesignTime>
                            </ViewAttribute>
                            <ViewAttribute
                            Name="Name"
                            IsUpdateable="false"
                            IsPersistent="false"
                            PrecisionRule="true"
                            Precision="50"
                            Type="java.lang.String"
                            ColumnType="VARCHAR2"
                            AliasName="NAME"
                            Expression="NAME"
                            SQLType="VARCHAR">
                            <DesignTime>
                            <Attr Name="_DisplaySize" Value="50"/>
                            </DesignTime>
                            </ViewAttribute>
                            <ViewAttribute
                            Name="Surname"
                            IsUpdateable="false"
                            IsPersistent="false"
                            PrecisionRule="true"
                            Precision="60"
                            Type="java.lang.String"
                            ColumnType="VARCHAR2"
                            AliasName="SURNAME"
                            Expression="SURNAME"
                            SQLType="VARCHAR">
                            <DesignTime>
                            <Attr Name="_DisplaySize" Value="60"/>
                            </DesignTime>
                            </ViewAttribute>
                            <ViewAttribute
                            Name="OfficeName"
                            IsUpdateable="false"
                            IsPersistent="false"
                            PrecisionRule="true"
                            Precision="4000"
                            Type="java.lang.String"
                            ColumnType="VARCHAR2"
                            AliasName="OFFICE_NAME"
                            Expression="OFFICE_NAME"
                            SQLType="VARCHAR">
                            <DesignTime>
                            <Attr Name="_DisplaySize" Value="4000"/>
                            </DesignTime>
                            </ViewAttribute>
                            <ViewAttribute
                            Name="RoleList"
                            IsUpdateable="false"
                            IsPersistent="false"
                            PrecisionRule="true"
                            Precision="4000"
                            Type="java.lang.String"
                            ColumnType="VARCHAR2"
                            AliasName="ROLE_LIST"
                            Expression="ROLE_LIST"
                            SQLType="VARCHAR">
                            <DesignTime>
                            <Attr Name="_DisplaySize" Value="4000"/>
                            </DesignTime>
                            </ViewAttribute>
                            <ViewAttribute
                            Name="MenuList"
                            IsUpdateable="false"
                            IsPersistent="false"
                            PrecisionRule="true"
                            Precision="4000"
                            Type="java.lang.String"
                            ColumnType="VARCHAR2"
                            AliasName="MENU_LIST"
                            Expression="MENU_LIST"
                            SQLType="VARCHAR">
                            <DesignTime>
                            <Attr Name="_DisplaySize" Value="4000"/>
                            </DesignTime>
                            </ViewAttribute>
                            <ViewAttribute
                            Name="MenuReportList"
                            IsUpdateable="false"
                            IsPersistent="false"
                            PrecisionRule="true"
                            Precision="4000"
                            Type="java.lang.String"
                            ColumnType="VARCHAR2"
                            AliasName="MENU_REPORT_LIST"
                            Expression="MENU_REPORT_LIST"
                            SQLType="VARCHAR">
                            <DesignTime>
                            <Attr Name="_DisplaySize" Value="4000"/>
                            </DesignTime>
                            </ViewAttribute>
                            <ViewAttribute
                            Name="Rowid1"
                            IsUpdateable="false"
                            IsPersistent="false"
                            PrecisionRule="true"
                            Type="oracle.jbo.domain.RowID"
                            ColumnType="ROWID"
                            AliasName='"ROWID"'
                            Expression='"ROWID"'
                            SQLType="ROWID"/>
                            <ViewLinkAccessor
                            Name="LogOn1"
                            ViewLink="sms0000.USRIDVLink"
                            Type="oracle.jbo.RowIterator"
                            IsUpdateable="false"/>
                            <ResourceBundle>
                            <PropertiesBundle
                            PropertiesFile="SmsFrontService.SmsFrontServiceBundle"/>
                            </ResourceBundle>
                            </ViewObject>
                            • 11. Re: passs Container's getter to the method
                              Tshifhiwa
                              am having error in this line public void setUserId(String value) {
                              setAttributeInternal(USERID, value);
                              } and

                              public String PerformSdmsLogon(String userid, String upwd) {

                              HRowImpl result = new HRowImpl();
                              result.setUserId(userid);
                              // result.setpwd(upwd);
                              callPerformSdmsLogon("SMS_FORM_TO_ADf.perform_sdms_logon(?,?)", new Object[] { userid, upwd, });
                              return userid;
                              }

                              my stack trace is
                              oracle.jbo.DeadViewRowAccessException: JBO-27102: Attempt to access dead view row of persistent id 0
                                   at oracle.jbo.server.ViewRowImpl.useInner(ViewRowImpl.java:300)
                                   at oracle.jbo.server.ViewRowImpl.getViewObject(ViewRowImpl.java:2112)
                                   at oracle.jbo.server.ViewRowImpl.getSyncLock(ViewRowImpl.java:2080)
                                   at oracle.jbo.server.ViewRowImpl.setAttributeInternal(ViewRowImpl.java:1473)
                                   at sms0000.HRowImpl.setUserId(HRowImpl.java:181)
                                   at sms0000.sms0000AppModuleImpl.PerformSdmsLogon(sms0000AppModuleImpl.java:87)
                                   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                                   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                                   at java.lang.reflect.Method.invoke(Method.java:597)
                                   at oracle.adf.model.binding.DCInvokeMethod.invokeMethod(DCInvokeMethod.java:655)
                                   at oracle.adf.model.binding.DCDataControl.invokeMethod(DCDataControl.java:2162)
                                   at oracle.adf.model.bc4j.DCJboDataControl.invokeMethod(DCJboDataControl.java:3088)
                                   at oracle.adf.model.binding.DCInvokeMethod.callMethod(DCInvokeMethod.java:266)
                                   at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1626)
                                   at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2169)
                                   at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:731)
                                   at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.executeEvent(PageLifecycleImpl.java:402)
                                   at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding._execute(FacesCtrlActionBinding.java:252)
                                   at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding.execute(FacesCtrlActionBinding.java:185)
                                   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                                   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                                   at java.lang.reflect.Method.invoke(Method.java:597)
                                   at com.sun.el.parser.AstValue.invoke(Unknown Source)
                                   at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
                                   at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)
                                   at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1545)
                                   at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183)
                                   at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:787)
                                   at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1252)
                                   at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:965)
                                   at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:346)
                                   at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:204)
                                   at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
                                   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:122)
                                   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.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
                                   at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
                                   at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
                                   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.runJaasMode(JpsAbsFilter.java:94)
                                   at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
                                   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:136)
                                   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)

                              and my logfile is
                              StateManagerImpl> <restoreView> Could not find saved view state for token -7g1kyl2tr
                              <LifecycleImpl> <_handleException> ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase RESTORE_VIEW 1
                              javax.faces.application.ViewExpiredException: viewId:/LogOn - ADF_FACES-30107:The view state of the page has expired. Reload the page.
                                   at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._restoreView(LifecycleImpl.java:718)
                                   at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:341)
                                   at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:204)
                                   at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
                                   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:122)
                                   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.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
                                   at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
                                   at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
                                   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.runJaasMode(JpsAbsFilter.java:94)
                                   at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
                                   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:136)
                                   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)
                              <Utils> <buildFacesMessage> ADF: Adding the following JSF error message: Attempt to access dead view row of persistent id 0
                              oracle.jbo.DeadViewRowAccessException: JBO-27102: Attempt to access dead view row of persistent id 0
                                   at oracle.jbo.server.ViewRowImpl.useInner(ViewRowImpl.java:300)
                                   at oracle.jbo.server.ViewRowImpl.getViewObject(ViewRowImpl.java:2112)
                                   at oracle.jbo.server.ViewRowImpl.getSyncLock(ViewRowImpl.java:2080)
                                   at oracle.jbo.server.ViewRowImpl.setAttributeInternal(ViewRowImpl.java:1473)
                                   at sms0000.HRowImpl.setUserId(HRowImpl.java:181)
                                   at sms0000.sms0000AppModuleImpl.PerformSdmsLogon(sms0000AppModuleImpl.java:87)
                                   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                                   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                                   at java.lang.reflect.Method.invoke(Method.java:597)
                                   at oracle.adf.model.binding.DCInvokeMethod.invokeMethod(DCInvokeMethod.java:655)
                                   at oracle.adf.model.binding.DCDataControl.invokeMethod(DCDataControl.java:2162)
                                   at oracle.adf.model.bc4j.DCJboDataControl.invokeMethod(DCJboDataControl.java:3088)
                                   at oracle.adf.model.binding.DCInvokeMethod.callMethod(DCInvokeMethod.java:266)
                                   at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1626)
                                   at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2169)
                                   at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:731)
                                   at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.executeEvent(PageLifecycleImpl.java:402)
                                   at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding._execute(FacesCtrlActionBinding.java:252)
                                   at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding.execute(FacesCtrlActionBinding.java:185)
                                   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                                   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                                   at java.lang.reflect.Method.invoke(Method.java:597)
                                   at com.sun.el.parser.AstValue.invoke(Unknown Source)
                                   at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
                                   at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)
                                   at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1545)
                                   at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183)
                                   at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:787)
                                   at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1252)
                                   at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:965)
                                   at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:346)
                                   at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:204)
                                   at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
                                   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:122)
                                   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.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
                                   at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
                                   at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
                                   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.runJaasMode(JpsAbsFilter.java:94)
                                   at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
                                   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:136)
                                   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)
                              <Utils> <buildFacesMessage> ADF: Adding the following JSF error message: Attempt to access dead view row of persistent id 0
                              oracle.jbo.DeadViewRowAccessException: JBO-27102: Attempt to access dead view row of persistent id 0
                                   at oracle.jbo.server.ViewRowImpl.useInner(ViewRowImpl.java:300)
                                   at oracle.jbo.server.ViewRowImpl.getViewObject(ViewRowImpl.java:2112)
                                   at oracle.jbo.server.ViewRowImpl.getSyncLock(ViewRowImpl.java:2080)
                                   at oracle.jbo.server.ViewRowImpl.setAttributeInternal(ViewRowImpl.java:1473)
                                   at sms0000.HRowImpl.setUserId(HRowImpl.java:181)
                                   at sms0000.sms0000AppModuleImpl.PerformSdmsLogon(sms0000AppModuleImpl.java:87)
                                   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                                   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                                   at java.lang.reflect.Method.invoke(Method.java:597)
                                   at oracle.adf.model.binding.DCInvokeMethod.invokeMethod(DCInvokeMethod.java:655)
                                   at oracle.adf.model.binding.DCDataControl.invokeMethod(DCDataControl.java:2162)
                                   at oracle.adf.model.bc4j.DCJboDataControl.invokeMethod(DCJboDataControl.java:3088)
                                   at oracle.adf.model.binding.DCInvokeMethod.callMethod(DCInvokeMethod.java:266)
                                   at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1626)
                                   at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2169)
                                   at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:731)
                                   at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.executeEvent(PageLifecycleImpl.java:402)
                                   at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding._execute(FacesCtrlActionBinding.java:252)
                                   at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding.execute(FacesCtrlActionBinding.java:185)
                                   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                                   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                                   at java.lang.reflect.Method.invoke(Method.java:597)
                                   at com.sun.el.parser.AstValue.invoke(Unknown Source)
                                   at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
                                   at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)
                                   at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1545)
                                   at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183)
                                   at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:787)
                                   at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1252)
                                   at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:965)
                                   at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:346)
                                   at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:204)
                                   at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
                                   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:122)
                                   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.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
                                   at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
                                   at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
                                   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.runJaasMode(JpsAbsFilter.java:94)
                                   at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
                                   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:136)
                                   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)

                              Edited by: Tshifhiwa on 2012/06/01 3:49 AM
                              • 12. Re: passs Container's getter to the method
                                EJP
                                Moderator: All this has nothing to do with your title 'pass Container's getter to the method'? I see no getter method here.
                                I suggest you seek help from a colleague. I suggest you should already have done so. You haven't managed to ask an answerable question in a week here in more than one thread. This is a waste of time. I am locking this thread.