So I swear this used to work just fine...but now the following code throws the error above. Does anyone see what I'm doing wrong?
/** * Looks for a document by memberNumber * * @param session * @param memberNumber */ public SearchResultListing searchForDocumentByMemberNumber(Session session, String memberNumber) throws Exception { session = ConnectionResourcePool.INSTANCE.acquire(Arrays.asList(new String[] {"Nathan"}), Arrays.asList(new String[] {"nathan"})).getSession(); Search searchForDocument = new Search(session); searchForDocument.setCommand("{[Members]:[MemberNumber]=\"" + memberNumber + "*\"}"); searchForDocument.run(); EntryListingSettings entryListingSettings = new EntryListingSettings(); ColumnSpecifierCollection columnSpecifierCollection = new ColumnSpecifierCollection(); columnSpecifierCollection.add(SystemColumn.CreationDate); columnSpecifierCollection.add(SystemColumn.CreatorName); columnSpecifierCollection.add(SystemColumn.Id); columnSpecifierCollection.add(SystemColumn.Name); columnSpecifierCollection.add(SystemColumn.Tags); columnSpecifierCollection.add(SystemColumn.TemplateId); columnSpecifierCollection.add(SystemColumn.TemplateName); entryListingSettings.setColumns(columnSpecifierCollection); SearchResultListing searchResultListing = searchForDocument.getResult(entryListingSettings); LOGGER.log(Level.FINE, "Number of documents found: " + searchResultListing.getRowCount()); return searchResultListing; }
The error is thrown on the searchForDocument.getResult(entryListingSettings); line.
This is the full stack trace:
com.laserfiche.repositoryaccess.LaserficheRepositoryException: The specified operation was aborted by the user.
at com.laserfiche.repositoryaccess.ProtocolUtil.decodeError(ProtocolUtil.java:105)
at com.laserfiche.repositoryaccess.ProtocolUtil.decodeError(ProtocolUtil.java:114)
at com.laserfiche.repositoryaccess.EntryListingBase.getRowsetData(EntryListingBase.java:578)
at com.laserfiche.repositoryaccess.EntryListingBase.<init>(EntryListingBase.java:42)
at com.laserfiche.repositoryaccess.SearchResultListing.<init>(SearchResultListing.java:12)
at com.laserfiche.repositoryaccess.Search.getResult(Search.java:444)
I put a breakpoint in the code and I can see in the laserfiche SDK code that it's a 9052 error #. I have no idea what that means. Is there some reference documentation that lists all the error codes and their meanings?