Sergey Beryozkin wrote
> I think the NPE is coming from your own code, see the exception fragment 
> below,
> 
> Cheers, Sergey
> 
> 
> On 16/07/13 13:56, nikosdim wrote:
>> Caused by: java.lang.NullPointerException
>>      at
>> com.ba.oasis.resources.ServersResource.doFindSelectedBooks(ServersResource.java:233)

@GET
@Path("matrix;{search}")
@Produces("plain/text")
public Response findSelectedBooks(
                @PathParam("search") String searchExpression,
                @MatrixParam("records") String records) {

        SearchCondition<Book> sc = searchContext.getCondition(
                        searchExpression, Book.class);
        List<String> cols = new ArrayList<String>();
        SQLPrinterVisitor<Book> visitor = new SQLPrinterVisitor<Book>(
                        beanPropertiesMap,
                        "books"), cols);
        sc.accept(visitor);

...
}

sc.accept(visitor);   is line 233. This is where I get NullPointerException
when I try to access books;author==Peter;records=20

If I remove ;records=20 then it works fine. 






--
View this message in context: 
http://cxf.547215.n5.nabble.com/Where-to-put-contextual-property-ignore-matrix-parameters-true-tp5730881p5730934.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to