7 Replies Latest reply: Aug 21, 2013 4:49 AM by ArchieJLP RSS

    NullPointerException while running the page from jdeveloper

    975404
      Hi ,

      I am getting following Exception while Running the OAF page in Jdeveloper after downloading from the server which is working correctly (in the instance).
      Can you please help to resolve this exception.


      Error Page
      Exception Details.
      oracle.apps.fnd.framework.OAException: java.lang.NullPointerException
           at oracle.apps.fnd.framework.OAException.wrapperException(Unknown Source)
           at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(Unknown Source)
           at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(Unknown Source)
           at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(Unknown Source)
           at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
           at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
           at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
           at OA.jspService(_OA.java:71)
           at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
           at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
           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.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
           at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
           at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
           at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
           at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
           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:595)
      ## Detail 0 ##
      java.lang.NullPointerException
           at oracle.apps.fnd.framework.webui.OASlideMenuUtil.prepareNavAndFavList(Unknown Source)
           at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.addGlobalButtons(Unknown Source)
           at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.addGlobalMenu(Unknown Source)
           at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.displayMenus(Unknown Source)
           at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.prepareForRendering(Unknown Source)
           at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequestAfterController(Unknown Source)
           at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(Unknown Source)
           at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(Unknown Source)
           at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(Unknown Source)
           at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(Unknown Source)
           at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(Unknown Source)
           at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(Unknown Source)
           at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(Unknown Source)
           at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(Unknown Source)
           at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(Unknown Source)
           at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(Unknown Source)
           at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(Unknown Source)
           at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(Unknown Source)
           at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(Unknown Source)
           at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(Unknown Source)
           at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(Unknown Source)
           at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
           at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
           at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
           at OA.jspService(_OA.java:71)
           at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
           at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
           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.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
           at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
           at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
           at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
           at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
           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:595)
      java.lang.NullPointerException
           at oracle.apps.fnd.framework.webui.OASlideMenuUtil.prepareNavAndFavList(Unknown Source)
           at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.addGlobalButtons(Unknown Source)
           at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.addGlobalMenu(Unknown Source)
           at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.displayMenus(Unknown Source)
           at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.prepareForRendering(Unknown Source)
           at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequestAfterController(Unknown Source)
           at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(Unknown Source)
           at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(Unknown Source)
           at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(Unknown Source)
           at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(Unknown Source)
           at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(Unknown Source)
           at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(Unknown Source)
           at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(Unknown Source)
           at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(Unknown Source)
           at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(Unknown Source)
           at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(Unknown Source)
           at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(Unknown Source)
           at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(Unknown Source)
           at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(Unknown Source)
           at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(Unknown Source)
           at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(Unknown Source)
           at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
           at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
           at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
           at OA.jspService(_OA.java:71)
           at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
           at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
           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.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
           at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
           at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
           at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
           at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
           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:595)



      Thanks,
      Narayan.

      Edited by: 972401 on Nov 20, 2012 11:32 PM
        • 1. Re: NullPointerException while running the page from jdeveloper
          972542
          Hi,

          You have to download all schema/server, server and webui files and place these files in your my classes folder of jdev.
          Copy all xml files in side that to my projects accordingly.

          many of these class files will be importing more class files.
          Identify those folders and download those also and keep them in your myclasses folder.

          Generally i will suggest to download like this.

          Assume your page is located at oracle/apps/eng/changemgmt/attachment/webui/

          then download all files with in oracle/apps/eng/changemgmt/

          This approach will get all the needed files in your jdeveloper.

          Regards
          jyothi
          • 2. Re: NullPointerException while running the page from jdeveloper
            975404
            Thanks for the reply.

            Previously i did the same way as you said, i downloaded all the class files and xml files from the servers as per the page path from the corresponding folder.

            But still i am getting this error for this.

            Any other Approach......

            Regards,
            narayan.
            • 3. Re: NullPointerException while running the page from jdeveloper
              Sushant Sharma
              Hi,

              There might be possibility that the page you are running might be getting called from another page from the instance.
              If that is the case, PR method will not be getting the parameters required.

              Check the PR method of CO file.

              --Sushant                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   
              • 4. Re: NullPointerException while running the page from jdeveloper
                972542
                Hi Narayan,

                If your page is receiving some parameters from any previous page, then create a new page and call you standard page from there by passing some valid parameter values.

                This way you can run such pages in jdeveloper easily.

                Regards
                jyothi
                • 5. Re: NullPointerException while running the page from jdeveloper
                  957554
                  Hi All,

                  i recently faced similar issues,then finally i got cause of this problem

                  In OAF There are 2 types of pages are there,

                  One is Dependent Page
                  Another One is Non- Dependent Page

                  Dependent Page will run based on the values of previous page,
                  Non-Dependent Page will run independently with out getting the values of previous page...


                  your page may have dependent on previous page,if you are trying to run the next page with out running first page ,you will get only NULL pointer Exception,Because No parameters are passed from first page,So try to run the page as in flow to overcome this issues.


                  Thanks All,
                  Subramaniam R
                  • 6. Re: NullPointerException while running the page from jdeveloper
                    975404
                    Thanks Guys.. I am checking that one..
                    • 7. Re: NullPointerException while running the page from jdeveloper
                      ArchieJLP

                      This is caused by 'Function Name' attribute on the page layout region being NULL but with the XML tag still in the page XML i.e.:

                       

                      <oa:pageLayout id="PageLayoutRN" amDefName="xxjlp.oracle.apps.fnd.por.econtent.server.EContentAM" windowTitle="Portal Guidance Documents" title="Portal Guidance Documents" controllerClass="xxjlp.oracle.apps.fnd.por.econtent.webui.GuidanceDocSumCO" function="">

                       

                      Check the page you are forwarding to either has a valid value for 'Function Name' or ensure that this tag is removed from the page XML by clicking the 'Set to default' button on the component pallet toolbar.

                       

                      This is normally caused when a value was added by the developer then removed by highlighting the value and hitting delete.  This action keeps the tag in the XML file.  You should use the 'Set to default' button which will remove the tag completely.