cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nick Dimizas (JIRA)" <>
Subject [jira] [Commented] (CXF-4949) FIQL - searchContext returns null SearchCondition
Date Thu, 13 Jun 2013 13:07:27 GMT


Nick Dimizas commented on CXF-4949:


I am trying to implement FIQL into my CXF service but I am getting java.lang.NullPointerException
in the line 
SearchCondition<Book> condition = searchContext.getCondition(Book.class);

I am injecting the searchContext with the way below:

public List<Book> getBook(@Context SearchContext searchContext)

I have read both the CXF-4305 and (apparently) the CXF-4949 but I haven't manage to solve
it. I am using cxf 2.7.5 (which is supposed to have this bug fixed). I am importing the CXF
.jar files from maven pom.xml

Here are my pom.xml dependencies

Any ideas?

> FIQL - searchContext returns null SearchCondition
> -------------------------------------------------
>                 Key: CXF-4949
>                 URL:
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 2.6.6
>            Reporter: Swarup
>            Assignee: Sergey Beryozkin
>             Fix For: 2.6.8, 2.7.5, 3.0.0
> Hi,
> I'm trying the fiql expression for the first time, and I get null searchCondition. But
when i print the searchContext.getSearchExpression(), it seems to have parsed the query param
fine with: lowestPrice=gt=10
> SearchCondition<TourTicketStats> sc = searchContext.getCondition(filterContext.getSearchExpression(),
> I'm atleast expecting some kind of exception raised if it's not able to parse it. 
> Any help to debug it is appreciated.
> Using v2.6.6
> Thanks

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message