4 Replies Latest reply on Aug 20, 2012 5:48 AM by 945312

    ATG10.1 CSC search issue | NullPointerException

    945312
      Hi All,

      I am facing issue with ATG10.1 CSC search, below are details.

      When I search either order or profile it throws Null Pinter exception on Linux box. Exception stack trace is below.

      11:35:43,270 ERROR [[FrameworkServlet]] Servlet.service() for servlet FrameworkServlet threw exception
      java.lang.NullPointerException
      at atg.core.util.StringUtils.makeList(StringUtils.java:1309)
      at atg.core.util.StringUtils.makeList(StringUtils.java:1262)
      at atg.search.routing.command.search.Field.getNamesString(Field.java:175)
      at atg.search.routing.command.search.Field.getAttributeXML(Field.java:246)
      at atg.search.routing.command.SearchXMLObject.getAllAttributeXML(SearchXMLObject.java:382)
      at atg.search.routing.command.SearchXMLObject.toXML(SearchXMLObject.java:449)
      at atg.search.routing.command.SearchXMLObject.toXML(SearchXMLObject.java:468)
      at atg.search.routing.command.SearchXMLObject.toString(SearchXMLObject.java:481)
      at java.lang.String.valueOf(String.java:2826)
      at java.lang.StringBuilder.append(StringBuilder.java:115)
      at atg.droplet.EventSender.sendEvent(EventSender.java:559)
      at atg.droplet.FormTag.doSendEvents(FormTag.java:823)
      at atg.droplet.FormTag.sendEvents(FormTag.java:671)
      at atg.droplet.DropletEventServlet.sendEvents(DropletEventServlet.java:614)
      at atg.droplet.DropletEventServlet.service(DropletEventServlet.java:642)
      at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
      at atg.epub.servlet.LocaleServlet.service(LocaleServlet.java:84)



      Before Null Pointer exception here is loggingDebug


      21:16:46,837 INFO [ServletUtil] DEBUG addPostRequestProcessor 1342671406837 Owner=/atg/dynamo/servlet/dafpipeline/ProjectServlet Request hashCode=309967306
      Thread=http-0.0.0.0-8280-1 DynamoPipeline?=false
      21:16:46,837 INFO [LocaleServlet] DEBUG response locale en_US
      21:16:46,837 INFO [DAFDropletEventServlet] DEBUG Session confirmation number:-2002115834268457990
      21:16:46,839 INFO [DAFDropletEventServlet] DEBUG calling beforeSet of: atg.commerce.csr.search.OrderSearchTreeQueryFormHandler@4566ba7f
      21:16:46,840 INFO [DAFDropletEventServlet] DEBUG name=/atg/commerce/custsvc/order/OrderSearchTreeQueryFormHandler.searchRequest.saveRequest has value='true'
      21:16:46,840 INFO [DAFDropletEventServlet] DEBUG setting property component=<treequery respform="comp" multiPartition="false" time="0" lm="true" ms="true"><
      /treequery>
      value=true set method=public void atg.search.routing.command.search.SearchRequest.setSaveRequest(boolean)
      21:16:46,841 INFO [DAFDropletEventServlet] DEBUG name=/atg/commerce/custsvc/order/OrderSearchTreeQueryFormHandler.searchRequest.multiSearchSession has value
      ='true'
      21:16:46,842 INFO [DAFDropletEventServlet] DEBUG setting property component=<treequery respform="comp" multiPartition="false" time="0" lm="true" sv="true" m
      s="true"></treequery>
      value=true set method=public void atg.search.routing.command.search.SearchRequest.setMultiSearchSession(boolean)
      21:16:46,842 INFO [DAFDropletEventServlet] DEBUG name=/atg/commerce/custsvc/order/OrderSearchTreeQueryFormHandler.searchRequest.fields[0].name has value='or
      derId'
      21:16:46,843 INFO [DAFDropletEventServlet] DEBUG Parameter name=/atg/commerce/custsvc/order/OrderSearchTreeQueryFormHandler.searchRequest.fields[0].name use
      d converter: Nullable to convert: orderId to orderId
      21:16:46,844 INFO [DAFDropletEventServlet] DEBUG setting property component=Ill-formed command: Search Request 'field' is missing a required argument: 'name
      ' value=orderId set method=public void atg.search.routing.command.search.Field.setName(java.lang.String)
      21:16:46,845 INFO [DAFDropletEventServlet] DEBUG name=/atg/commerce/custsvc/order/OrderSearchTreeQueryFormHandler.searchRequest.fields[0].op has value='star
      ts'
      21:16:46,845 INFO [DAFDropletEventServlet] DEBUG Parameter name=/atg/commerce/custsvc/order/OrderSearchTreeQueryFormHandler.searchRequest.fields[0].op used
      converter: Nullable to convert: starts to starts
      21:16:46,845 INFO [DAFDropletEventServlet] DEBUG setting property component=Ill-formed command: Search Request 'field' is missing a required argument: 'op'
      value=starts set method=public void atg.search.routing.command.search.Field.setOp(atg.search.routing.command.search.Field$Op)
      21:16:46,845 INFO [DAFDropletEventServlet] DEBUG name=/atg/commerce/custsvc/order/OrderSearchTreeQueryFormHandler.searchRequest.fields[0].value has value='o
      456123'
      21:16:46,846 INFO [DAFDropletEventServlet] DEBUG Parameter name=/atg/commerce/custsvc/order/OrderSearchTreeQueryFormHandler.searchRequest.fields[0].value us
      ed converter: Nullable to convert: o456123 to o456123
      21:16:46,846 INFO [DAFDropletEventServlet] DEBUG setting property component=Ill-formed command: Search Request 'field' is missing a required argument: 'body
      value' value=o456123 set method=public void atg.search.routing.command.search.Field.setValue(java.lang.String)
      21:16:46,846 INFO [DAFDropletEventServlet] DEBUG name=/atg/commerce/custsvc/order/OrderSearchTreeQueryFormHandler.searchRequest.fields[1].name has value=''
      21:16:46,846 INFO [DAFDropletEventServlet] DEBUG Parameter name=/atg/commerce/custsvc/order/OrderSearchTreeQueryFormHandler.searchRequest.fields[1].name used converter: Nullable to convert: to java.lang.Object@7b415693
      21:16:46,846 INFO [DAFDropletEventServlet] DEBUG setting property component=Ill-formed command: Search Request 'field' is missing a required argument: 'name' value=null set method=public void atg.search.routing.command.search.Field.setName(java.lang.String)
      21:16:46,846 INFO [DAFDropletEventServlet] DEBUG name=/atg/commerce/custsvc/order/OrderSearchTreeQueryFormHandler.searchRequest.fields[1].op has value=''
      21:16:46,847 INFO [DAFDropletEventServlet] DEBUG Parameter name=/atg/commerce/custsvc/order/OrderSearchTreeQueryFormHandler.searchRequest.fields[1].op used converter: Nullable to convert: to java.lang.Object@7b415693
      21:16:46,847 INFO [DAFDropletEventServlet] DEBUG calling afterSet of: atg.commerce.csr.search.OrderSearchTreeQueryFormHandler@4566ba7f
      21:16:46,856 INFO [ServletUtil] DEBUG addPostRequestProcessor 1342671406856 Owner=profileRequestServlet Request hashCode=309967306 Thread=http-0.0.0.0-8280:


      *2- Another point is - this exception occur on Linux only search works fine on Windows.*


      If I understand this issue then I would describe in this way - SearchRequest's input parameters are being considered as null instead of blank on Linux environment which cause Null Pointer exception.



      Any Help is appreciable.


      Thanks
      Abadhesh