You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Nick Dimizas (JIRA)" <ji...@apache.org> on 2013/06/13 15:07:27 UTC

[jira] [Commented] (CXF-4949) FIQL - searchContext returns null SearchCondition

    [ https://issues.apache.org/jira/browse/CXF-4949?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13682219#comment-13682219 ] 

Nick Dimizas commented on CXF-4949:
-----------------------------------

Hi, 

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
cxf-rt-frontend-jaxrs:2.7.5
cxf-rt-rs.extension-providers:2.7.5
spring-core:3.2.2.RELEASE
spring-context:3.2.2.RELEASE
spring-web:3.2.2.RELEASE
cxf-rt-rs-extension-search:2.7.5

Any ideas?

Thanks
                
> FIQL - searchContext returns null SearchCondition
> -------------------------------------------------
>
>                 Key: CXF-4949
>                 URL: https://issues.apache.org/jira/browse/CXF-4949
>             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(), TourTicketStats.class);
> 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: http://www.atlassian.com/software/jira