Saved Searches Return Blank Page from all Saved Searches Task Flow (Doc ID 1490836.1)

Last updated on MARCH 08, 2017

Applies to:

Oracle WebCenter Portal - Version 11.1.1.6.0 and later
Information in this document applies to any platform.

Symptoms

Saved Searches return a blank page from the All Saved Searches task flow.
When the blank page appears, the URL is the following:
http://<host>:<port>/webcenter/faces/oracle/webcenter/webcenterapp/view/pages/shared/GlobalSearchViewer.jspx?wc.taskFlowId=dynamic-view&immediate=true&newSearch=true&resourceId=cf0c19b1-abe6-4b45-b3e2-64324c4827a9&wc.taskFlowPath=%2Foracle%2Fwebcenter%2Fsearch%2Fcontroller%2Ftaskflows%2FdynamicSearch.xml&_adf.ctrl-state=1dhm367xw8_622&wc.contextURL=%2Fspaces%2FV7SearchSpace_10September2012&resourceType=savedSearchId&_afrLoop=5544221237058597

In the moment of the error the following exception is logged to the WC_Spaces-diagnostic.log:


[2012-09-11T12:00:13.874+00:00] [WC_Spaces] [ERROR] [] [oracle.webcenter.webcenterapp.internal.view.webapp] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic] [ecid: 004mMjH6xTvAHReLLa^Aye00054d000YTJ,0:1] [APP: webcenter#11.1.1.4.0] [URI: /webcenter/faces/oracle/webcenter/webcenterapp/view/pages/shared/GlobalSearchViewer.jspx] [[
javax.servlet.ServletException: OracleJSP error:
javax.el.ELException: java.lang.NullPointerException
at oracle.jsp.runtimev2.JspReportUtil.reportException(JspReportUtil.java:181)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:745)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
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:301)
...
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
Caused by: javax.el.ELException: java.lang.NullPointerException
at javax.el.BeanELResolver.getValue(BeanELResolver.java:298)
at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:173)
at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:200)
at com.sun.el.parser.AstValue.getValue(AstValue.java:138)
at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:206)
at org.apache.myfaces.trinidadinternal.taglib.ForEachTag.doStartTag(ForEachTag.java:117)
at oracle.jsp.runtime.tree.OracleJspIterationTagNode.executeHandler(OracleJspIterationTagNode.java:43)
at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:261)
at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:261)
at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
at oracle.jsp.runtime.tree.OracleJspIterationTagNode.executeHandler(OracleJspIterationTagNode.java:45)
at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:261)
at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:261)
at oracle.jsp.runtime.tree.OracleJspNode.execute(OracleJspNode.java:89)
at oracle.jsp.runtimev2.ShortCutServlet._jspService(ShortCutServlet.java:89)
at oracle.jsp.runtime.OracleJspBase.service(OracleJspBase.java:29)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:422)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:810)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:734)
... 200 more
Caused by: java.lang.NullPointerException
at oracle.webcenter.search.view.backing.SearchMainViewBean.consumeSavedSearch(SearchMainViewBean.java:452)
at oracle.webcenter.search.view.backing.SearchResultsBean.getQueryFromSavedSearch(SearchResultsBean.java:791)
at oracle.webcenter.search.view.backing.SearchResultsBean.getQuery(SearchResultsBean.java:758)
at oracle.webcenter.search.view.backing.SearchResultsBean.prepareQuery(SearchResultsBean.java:648)
at oracle.webcenter.search.view.backing.SearchResultsBean.executeSearch(SearchResultsBean.java:934)
at oracle.webcenter.search.view.backing.SearchResultsBean.getResultGroups(SearchResultsBean.java:896)
at sun.reflect.GeneratedMethodAccessor2177.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at javax.el.BeanELResolver.getValue(BeanELResolver.java:293)
... 222 more

]]

 

The same saved search works perfectly fine from the navigation.

Steps to Reproduce
==================
1. Create a custom resource catalog by copying the default one for the Space

2. Add the Search task flow to the Resource Catalog

3. Selected Show for the Resource Catalog so that it becomes visible

4. Set this new Resource Catalog as the Resource Catalog for Pages

5. Create a new page

6. Add the following task flows:

Search
All Saved Searches

7. Change to View mode

8. Perform a search from the Search task flow (i.e. with the keyword Space)

9. Click on Save in the Search task flow to start saving the search result

10. Specify a name (i.e. Space)

11. Check the Share in Space checkbox

12. Select the Space with the LOV where the search was added

13. Click on OK to save the search

14. Navigate away to another page then back to have the All Saved Searches task flow refresh

15. Click on the saved search under My Searches

Notice the blank page with the following URL:
http://<host>:<port>/webcenter/faces/oracle/webcenter/webcenterapp/view/pages/shared/GlobalSearchViewer.jspx?wc.taskFlowId=dynamic-view&immediate=true&newSearch=true&resourceId=cf0c19b1-abe6-4b45-b3e2-64324c4827a9&wc.taskFlowPath=%2Foracle%2Fwebcenter%2Fsearch%2Fcontroller%2Ftaskflows%2FdynamicSearch.xml&_adf.ctrl-state=1dhm367xw8_622&wc.contextURL=%2Fspaces%2FV7SearchSpace_10September2012&resourceType=savedSearchId&_afrLoop=5544221237058597

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms