Tuesday, December 20, 2011

ATG - atg.repository.rql.RqlStatement java.lang.IllegalArgumentException: CONTAINER:atg.repository.RepositoryException

Problem

I got this pretty simple error when I tried to inject an RQLStatement through a component property file and try and start my component

10:52:59,566 ERROR [nucleusNamespace.] Cannot parse property value "id=?0 OR name CONTAINS ?1 OR myBillingAddrs INCLUDES ITEM(postalCode CONTAINS ?2 OR city CONTAINS ?3" of "/demoApp/customer/dao/Cust
omerDAO.organizationSearchRQL" as a atg.repository.rql.RqlStatement java.lang.IllegalArgumentException: CONTAINER:atg.repository.RepositoryException; SOURCE:atg.repository.rql.ParseException: Encounte
red "<EOF>" at line 1, column 100.
Was expecting one of:
    <AND> ...
    <OR> ...
    ")" ...
    "." ...

Solution

The error message was pretty clear. I was missing a closing brace ")" at the end of the RQLStatement at column 100 as rightly notified by the Exception.

id=?0 OR name CONTAINS ?1 OR myBillingAddrs INCLUDES ITEM(postalCode CONTAINS ?2 OR city CONTAINS ?3)


No comments:

Post a Comment