2 Replies Latest reply on Nov 28, 2010 3:11 PM by Sandeep Oracle

    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-271

    Sandeep Oracle
      Hi All,

      I am trying to create a Dynamic VO on the fly in my extended controller and i am getting the following error stack . I am getting the error when i am setting this

      xxOnTheFlyViewObject.setWhereClauseParam(0, str2); Please help me ASAP


      Controller code :

      String str2 = pageContext.getParameter("ASNReqFrmCustId");




      System.out.println("in processRequest " + radioValue);
      if (flag == null)
      {
      OAApplicationModule oam = pageContext.getApplicationModule(webBean);
      OAMessageRadioGroupBean rGBean1 = (OAMessageRadioGroupBean)webBean.findIndexedChildRecursive("RadioGroup");
      String xxOnTheFlyVOQuery = "select (address1 || ',' ||city || ',' || Country ||','||postal_code)address from HZ_ORG_PROFILES_CPUI_V ";
      /*String sWhereClauseValue = "33604";*/
      ViewObject xxOnTheFlyViewObject = oam.findViewObject("xxFNDUserDescVO");
      if (xxOnTheFlyViewObject == null)
      xxOnTheFlyViewObject = oam.createViewObjectFromQueryStmt("xxFNDUserDescVO", xxOnTheFlyVOQuery);

      xxOnTheFlyVOQuery = xxOnTheFlyVOQuery + "where party_id = :1 ";
      xxOnTheFlyViewObject.setWhereClauseParams(null);
      xxOnTheFlyViewObject.setWhereClauseParam(0, str2);
      pageContext.writeDiagnostics(this, "@@ The party ID is " + str2, 1);

      xxOnTheFlyViewObject.executeQuery();
      oracle.jbo.Row row = xxOnTheFlyViewObject.first();
      String mSupHierarchyUsed = row.getAttribute(0).toString();
      //get the value of description column from View Object record returned
      if(row != null)
      {
      String mSupHierarchyUsed1 = row.getAttribute(0).toString();
      System.out.println("Result from Dynamic VO is =>" + mSupHierarchyUsed1 );
      }
      //Remove the view object, as this is no longer required
      xxOnTheFlyViewObject.remove();
      xxOnTheFlyViewObject.remove();
      System.out.println("The value of the Radio Button is " + rGBean1);
      rGBean1.setSelectionValue(pageContext, "XXCONTACT_ADDR_BUTTON1");
      OAMessageTextInputBean headerBean = (OAMessageTextInputBean)webBean.findIndexedChildRecursive("ASNCtctSelAddr");
      pageContext.writeDiagnostics(this, "@@ The query which is executing " + headerBean, 1);
      headerBean.setText(pageContext,mSupHierarchyUsed);
      }


      Error Page
      Exception Details.
      oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: select (address1 || ',' ||city || ',' || Country ||','||postal_code)address from HZ_ORG_PROFILES_CPUI_V
           at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:896)
           at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:612)
           at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:251)
           at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1166)
           at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
           at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:964)
           at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:931)
           at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:655)
           at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:251)
           at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
           at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:964)
           at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:931)
           at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:655)
           at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:251)
           at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
           at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2513)
           at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1894)
           at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:538)
           at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:426)
           at OA.jspService(_OA.java:212)
           at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
           at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
           at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
           at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
           at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
           at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
           at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:259)
           at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:51)
           at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193)
           at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:284)
           at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)
           at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:395)
           at OA.jspService(_OA.java:221)
           at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
           at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
           at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
           at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
           at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
           at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
           at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
           at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
           at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
           at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
           at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
           at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
           at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
           at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
           at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
           at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
           at java.lang.Thread.run(Thread.java:619)
      ## Detail 0 ##
      java.sql.SQLException: Invalid column index
           at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
           at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
           at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:199)
           at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:263)
           at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:271)
           at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:445)
           at oracle.jdbc.driver.OraclePreparedStatement.setStringInternal(OraclePreparedStatement.java:5013)
           at oracle.jdbc.driver.OraclePreparedStatement.setObjectCritical(OraclePreparedStatement.java:7577)
           at oracle.jdbc.driver.OraclePreparedStatement.setObjectInternal(OraclePreparedStatement.java:7517)
           at oracle.jdbc.driver.OraclePreparedStatement.setObjectInternal(OraclePreparedStatement.java:8174)
           at oracle.jdbc.driver.OraclePreparedStatement.setObject(OraclePreparedStatement.java:8155)
           at oracle.jdbc.driver.OraclePreparedStatementWrapper.setObject(OraclePreparedStatementWrapper.java:230)
           at oracle.jbo.server.BaseSQLBuilderImpl.bindParamValue(BaseSQLBuilderImpl.java:1847)
           at oracle.jbo.server.OracleSQLBuilderImpl.bindParamValue(OracleSQLBuilderImpl.java:3893)
           at oracle.jbo.server.BaseSQLBuilderImpl.bindParametersForStmt(BaseSQLBuilderImpl.java:3335)
           at oracle.jbo.server.ViewObjectImpl.bindParametersForCollection(ViewObjectImpl.java:13827)
           at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:804)
           at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:669)
           at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3723)
           at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:743)
           at oracle.jbo.server.ViewRowSetImpl.executeQueryForMasters(ViewRowSetImpl.java:892)
           at oracle.jbo.server.ViewRowSetImpl.executeQueryForMode(ViewRowSetImpl.java:806)
           at oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java:800)
           at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3643)
           at ceridian.oracle.apps.xxasn.common.customer.webui.aaCtctCreateCO40.processRequest(aaCtctCreateCO40.java:54)
           at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:596)
           at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:251)
           at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1166)
           at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
           at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:964)
           at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:931)
           at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:655)
           at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:251)
           at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
           at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:964)
           at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:931)
           at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:655)
           at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:251)
           at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
           at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2513)
           at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1894)
           at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:538)
           at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:426)
           at OA.jspService(_OA.java:212)
           at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
           at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
           at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
           at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
           at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
           at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
           at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:259)
           at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:51)
           at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193)
           at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:284)
           at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)
           at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:395)
           at OA.jspService(_OA.java:221)
           at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
           at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
           at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
           at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
           at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
           at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
           at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
           at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
           at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
           at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
           at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
           at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
           at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
           at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
           at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
           at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
           at java.lang.Thread.run(Thread.java:619)
      java.sql.SQLException: Invalid column index
           at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
           at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
           at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:199)
           at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:263)
           at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:271)
           at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:445)
           at oracle.jdbc.driver.OraclePreparedStatement.setStringInternal(OraclePreparedStatement.java:5013)
           at oracle.jdbc.driver.OraclePreparedStatement.setObjectCritical(OraclePreparedStatement.java:7577)
           at oracle.jdbc.driver.OraclePreparedStatement.setObjectInternal(OraclePreparedStatement.java:7517)
           at oracle.jdbc.driver.OraclePreparedStatement.setObjectInternal(OraclePreparedStatement.java:8174)
           at oracle.jdbc.driver.OraclePreparedStatement.setObject(OraclePreparedStatement.java:8155)
           at oracle.jdbc.driver.OraclePreparedStatementWrapper.setObject(OraclePreparedStatementWrapper.java:230)
           at oracle.jbo.server.BaseSQLBuilderImpl.bindParamValue(BaseSQLBuilderImpl.java:1847)
           at oracle.jbo.server.OracleSQLBuilderImpl.bindParamValue(OracleSQLBuilderImpl.java:3893)
           at oracle.jbo.server.BaseSQLBuilderImpl.bindParametersForStmt(BaseSQLBuilderImpl.java:3335)
           at oracle.jbo.server.ViewObjectImpl.bindParametersForCollection(ViewObjectImpl.java:13827)
           at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:804)
           at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:669)
           at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3723)
           at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:743)
           at oracle.jbo.server.ViewRowSetImpl.executeQueryForMasters(ViewRowSetImpl.java:892)
           at oracle.jbo.server.ViewRowSetImpl.executeQueryForMode(ViewRowSetImpl.java:806)
           at oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java:800)
           at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3643)
           at ceridian.oracle.apps.xxasn.common.customer.webui.aaCtctCreateCO40.processRequest(aaCtctCreateCO40.java:54)
           at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:596)
           at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:251)
           at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1166)
           at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
           at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:964)
           at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:931)
           at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:655)
           at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:251)
           at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
           at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:964)
           at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:931)
           at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:655)
           at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:251)
           at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
           at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2513)
           at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1894)
           at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:538)
           at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:426)
           at OA.jspService(_OA.java:212)
           at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
           at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
           at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
           at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
           at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
           at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
           at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:259)
           at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:51)
           at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193)
           at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:284)
           at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)
           at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:395)
           at OA.jspService(_OA.java:221)
           at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
           at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
           at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
           at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
           at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
           at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
           at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
           at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
           at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
           at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
           at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
           at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
           at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
           at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
           at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
           at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
           at java.lang.Thread.run(Thread.java:619)


      Logout

      Copyright (c) 2006, Oracle. All rights reserved.
        • 1. Re: oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-271
          ORA_AJ
          Please check your code as you are create the VO first and not setting the where clause and just trying to set its param.

          Please modify your code as
          String str2 = pageContext.getParameter("ASNReqFrmCustId");
          System.out.println("in processRequest " + radioValue);
          if (flag == null)
          {
          OAApplicationModule oam = pageContext.getApplicationModule(webBean);
          OAMessageRadioGroupBean rGBean1 = (OAMessageRadioGroupBean)webBean.findIndexedChildRecursive("RadioGroup");
          String xxOnTheFlyVOQuery = "select (address1 || ',' ||city || ',' || Country ||','||postal_code)address from HZ_ORG_PROFILES_CPUI_V ";
          /*String sWhereClauseValue = "33604";*/
          ViewObject xxOnTheFlyViewObject = oam.findViewObject("xxFNDUserDescVO");
          if (xxOnTheFlyViewObject == null)
          xxOnTheFlyViewObject = oam.createViewObjectFromQueryStmt("xxFNDUserDescVO", xxOnTheFlyVOQuery);
          //xxOnTheFlyVOQuery = xxOnTheFlyVOQuery + "where party_id = :1 ";   //Remove this Line
          xxOnTheFlyViewObject.setWhereClauseParams(null);
          xxOnTheFlyViewObject.setWhereClause(null);   //Add this Code
          xxOnTheFlyViewObject.setWhereClause( "party_id = :1 ");  //Add this Code
          xxOnTheFlyViewObject.setWhereClauseParam(0, str2);
          pageContext.writeDiagnostics(this, "@@ The party ID is " + str2, 1);
          xxOnTheFlyViewObject.executeQuery();
          oracle.jbo.Row row = xxOnTheFlyViewObject.first();
          String mSupHierarchyUsed = row.getAttribute(0).toString();
          //get the value of description column from View Object record returned
          if(row != null)
          {
          String mSupHierarchyUsed1 = row.getAttribute(0).toString();
          System.out.println("Result from Dynamic VO is =>" + mSupHierarchyUsed1 );
          }
          //Remove the view object, as this is no longer required
          xxOnTheFlyViewObject.remove();
          xxOnTheFlyViewObject.remove();
          System.out.println("The value of the Radio Button is " + rGBean1);
          rGBean1.setSelectionValue(pageContext, "XXCONTACT_ADDR_BUTTON1");
          OAMessageTextInputBean headerBean = (OAMessageTextInputBean)webBean.findIndexedChildRecursive("ASNCtctSelAddr");
          pageContext.writeDiagnostics(this, "@@ The query which is executing " + headerBean, 1);
          headerBean.setText(pageContext,mSupHierarchyUsed);
          }
          Thanks
          AJ
          • 2. Re: oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-271
            Sandeep Oracle
            Thanks AJ. It worked you are great help to me evertime

            Thanks