Symptom
When doing a free text search in the catalog that is if they search for a particular text string like in the catalog search like 'test', 'sf' they get the following error.
2014-12-17T13:25:57,201 [ERROR] {REMOTE_ADDR=155.56.68.216, REQUEST_NUMBER=515056} [#515056] http-nio-8080-exec-243 - dc12lmspcp03 - https://dc12lmspcp03.plateau.com/learni ... verPing.do - errorpage_jsp - Ticket=8021 from errorpage.jsp. StackTrace is java.lang.NullPointerException: while trying to invoke the method java.lang.String.equals(java.lang.Object) of an object returned from
com.plateausystems.elms.client.struts.StrutsUtil.getMessage(java.lang.String, javax.servlet.jsp.PageContext)
at org.apache.jsp.user.catalogsearch.catalog_005fsearch_005fresults_jsp._jspService(catalog_005fsearch_005fresults_jsp.java:7032)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java)
at
Complete error is attched in the attchment section.
Environment
This error is not restricted to any set of environment.
This can occur in stand alone or integrated LMS instances.
Reproducing the Issue
1) Go to the user side and try doing a catalog search.
2) You can type any free text string like "text" or "sf" are any particular text and click 'go' or press enter you will see the error.
***************************************************
3) But again if you click back button on the page you will see the results fine.
4) The issue is not happening if you do a blank search.
Cause
This issue occurs because locale value for one specific label is not present in the label refrences.
The label id is label.hometiles.CatalogSearchPrompt,
The label value is present in the catalog search bar as shown
Label value in english locale is - What do you want to LEARN today.
Note - This also means that if you are facing the issue when you go for the catalog search you will not see this text highlighted tab.
Resolution
As the cause points out we need to populate the value of the locale for the label - label.hometiles.CatalogSearchPrompt
For doing the same you can follow the below pointers
1) Log in as Admin
3) Go to the references section.
3) Move to Geography then to labels.
4) In the search section put the id mentioned in above
5) You will get the label open it and move to the locales tab
6) Check which locale is not having a value.
7) Add the value.
Keywords
JAVA ERROR, CATALOG SEARCH ERROR, ITEM SEARCH ERROR, CATALOG SEARCH FAILING,FAIL , KBA , LOD-SF-LMS-DB , DB Data & Services , Problem
Product
Attachments
error %282%29.txt |