History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: NXP-1371
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Julien Anguenot
Reporter: Sergey Zhemzhitskiy
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Google issue summary
Nuxeo Enterprise Platform

Error when using remote api to search documents and size of the result set of documents is less than page size

Created: 20/07/07 15:17   Updated: 09/08/07 15:21
Component/s: None
Affects Version/s: 5.1 M3
Fix Version/s: 5.1.0.GA

Time Tracking:
Not Specified

Resolution Date: 09/08/07 15:21
Require Callback: No
Participants: Julien Anguenot and Sergey Zhemzhitskiy
Date of First Response: 03/08/07 18:30
Tags:


 Description  « Hide
When trying to search documents using the remote api and size of the result list of documents is less than page size I get the following:
javax.ejb.EJBException: java.lang.IllegalArgumentException: Can't preload with negative from [-5]
 
May be this issue is related to http://jira.compassframework.org/browse/CMP-386?

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Julien Anguenot - 03/08/07 18:30
fixed in rev [23393]

Julien Anguenot - 06/08/07 15:59
We got Lucene version conflicts with Jackrabbit. I rollbacked.

Julien Anguenot - 09/08/07 15:21
The problem does not appear anymore on trunk version. because we use our own pagination system on higher level.

See this example where the search matches 3 documents with page size = 2

http://svn.nuxeo.org/trac/nuxeo/browser/sandbox/nuxeo-api-sample/trunk/src/main/java/org/nuxeo/ecm/sample/search/SearchSample.java

Though, I'll update compass for 5.2 since that's not possible right now because we got an unresolved Lucene version conflict with jackrabbit.