This discussion is archived
4 Replies Latest reply: Jan 28, 2013 4:05 AM by 961822 RSS

CSC - customised date search in order search is not working.

961822 Newbie
Currently Being Moderated
CSC - customised date search in order search is not working. Only search with 09/09/1990 is giving search results.
  • 1. Re: CSC - customised date search in order search is not working.
    Obed Murillo Newbie
    Currently Being Moderated
    Hi 958819 user,

    Yes I recall that error, there must be a fix already for this, which ATG version are you using?

    Regards,
    Obed
  • 2. Re: CSC - customised date search in order search is not working.
    961822 Newbie
    Currently Being Moderated
    I am using ATG 9.1
  • 3. Re: CSC - customised date search in order search is not working.
    Gareth-Oracle Pro
    Currently Being Moderated
    the ONLY search date that is working is 09/09/1990?

    Do the order bulk index correctly run?

    When you say customised date search, how have you customised this?
  • 4. Re: CSC - customised date search in order search is not working.
    961822 Newbie
    Currently Being Moderated
    Hi GarethR ,

    Yes , only date which is working is: 09/09/1990.
    order bulk index is getting indexed with few errors for some of the orders and i am able to search for orders when i remove the customization.
    below is my customization details:
    1. i have additional property called pickupdate in order respository
    2. so my requirement is to be able to search with pickupdate
    3. so i have added meta property in order-output-config.xml like below : <property name="pickupDate" type="date" store-as-meta-index="true"/>
    4. copied and modified orderSearchUIFragment.jsp and file kept in same context.
    5.copied search.jsp and made corresponding changes file kept in same context.
    6. added setters and getters in OrderSearchTreeQueryFormHandler component.

    when i do a fresh build, my search is working fine for the date 09/09/1990. If i stop and restart the server, but not rebuild, its giving me error like below:
    "An error occurred when talking to the server. Error: bad http response code:500" and i can below error in console:
    7:30:11,431 ERROR [[FrameworkServlet]] Servlet.service() for servlet FrameworkServlet threw exception
    ava.lang.NullPointerException
    at atg.search.routing.command.search.TreeQueryRequest.getBodyXML(TreeQueryRequest.java:191)
    at atg.search.routing.command.SearchXMLObject.getAllBodyXML(SearchXMLObject.java:352)
    at atg.search.routing.command.SearchXMLObject.toXML(SearchXMLObject.java:369)


    Please let me know if you need entire code of both the jsps. Thanks in advance

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points