Date Field in Rule with Default Value Causes ArrayIndexOutOfBoundsException (Doc ID 1062730.1)

Last updated on MAY 30, 2017

Applies to:

Oracle Universal Content Management - Version: 10.1.3.3.1 to 10.1.3.5.0 - Release: 10gR3 to 10gR3
Oracle Universal Content Management - Version: 10.1.3.3.1 to 10.1.3.5.0   [Release: 10gR3 to 10gR3]
Information in this document applies to any platform.

Symptoms

Using a profile that contains a rule which sets a default value in a date field causes a search exception.

To reproduce the issue:
  1. Create an Information Field of type Date.
  2. Create a Rule and associate it with the date field.
    Type: info only
    Use default value: <$dprDefaultValue=CURRENT_DATE$>
  3. Create a profile and associate it with the rule.
  4. Go to that Profile Search page and do any search.
The following exception is returned:

Unable to retrieve search results. Unable to execute service method 'getSearchResults'. (System Error: Runtime error:java.lang.ArrayIndexOutOfBoundsException: -5
at intradoc.search.UniversalSearchQueryParser.parseQueryEx(UniversalSearchQueryParser.java:804)
at intradoc.search.UniversalSearchQueryParser.parseQuery(UniversalSearchQueryParser.java:219)
at intradoc.search.UniversalSearchQueryParser.parse(UniversalSearchQueryParser.java:163)
at intradoc.search.DBSearchConfigCompanion.fixUpAndValidateQuery(DBSearchConfigCompanion.java:178)
at intradoc.shared.CommonSearchConfig.fixUpAndValidateQuery(CommonSearchConfig.java:1503)
at intradoc.server.SearchService.prepareLocalSearch(SearchService.java:1007)
at intradoc.server.SearchService.getSearchResults(SearchService.java:529)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at intradoc.common.IdcMethodHolder.invokeMethod(ClassHelperUtils.java:617)
at intradoc.common.ClassHelperUtils.executeMethodEx(ClassHelperUtils.java:279)
at intradoc.common.ClassHelperUtils.executeMethod(ClassHelperUtils.java:264)
at intradoc.server.Service.doCodeEx(Service.java:507)
at intradoc.server.Service.doCode(Service.java:472)
at intradoc.server.ServiceRequestImplementor.doAction(ServiceRequestImplementor.java:1360)
at intradoc.server.Service.doAction(Service.java:452)
at intradoc.server.ServiceRequestImplementor.doActions(ServiceRequestImplementor.java:1201)
at intradoc.server.Service.doActions(Service.java:447)
at intradoc.server.ServiceRequestImplementor.executeActions(ServiceRequestImplementor.java:1121)
at intradoc.server.Service.executeActions(Service.java:433)
at intradoc.server.ServiceRequestImplementor.doRequest(ServiceRequestImplementor.java:635)
at intradoc.server.Service.doRequest(Service.java:1707)
at intradoc.server.ServiceManager.processCommand(ServiceManager.java:359)
at intradoc.server.IdcServerThread.run(IdcServerThread.java:197))

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