03-07-2007 12:23 PM
# The maximum time spent pruning results
system.acl.maxPermissionCheckTimeMillis=100000
# The maximum number of results to perform permission checks against
system.acl.maxPermissionChecks=5000
QueryResult queryResult = repositoryService.query( store , query, false );
String querySession = queryResult.getQuerySession();
ResultSet resultSet = queryResult.getResultSet();
ResultSetRow[] rows = resultSet.getRows();
if (rows!= null) {
System.out .println( "RESULTS: there are "+rows. length + " results");
QueryResult q = repositoryService .fetchMore(querySession);
ResultSet rs = q.getResultSet();
ResultSetRow[] r = rs.getRows();
System.out .println( "RESULTS: there are "+r. length + " results in the second batch");
}
ERROR: ; nested exception is:
org.xml.sax.SAXParseException : Premature end of file.
AxisFault
faultCode: { http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: org.xml.sax.SAXParseException : Premature end of file.
faultActor:
faultNode:
faultDetail:
{ http://xml.apache.org/axis/ }stackTracerg.xml.sax.SAXParseException : Premature end of file.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at org.apache.axis.encoding.DeserializationContext.parse( DeserializationContext.java:227 )
at org.apache.axis.SOAPPart.getAsSOAPEnvelope( SOAPPart.java:696 )
at org.apache.axis.Message.getSOAPEnvelope( Message.java:435 )
at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke( MustUnderstandChecker.java:62 )
at org.apache.axis.client.AxisClient.invoke( AxisClient.java:206 )
at org.apache.axis.client.Call.invokeEngine( Call.java:2784 )
14:13:04,487 ERROR [org.apache.axis.Message] java.io.IOException:
AxisFault
faultCode: { http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
faultSubcode:
faultString:
faultActor:
faultNode:
faultDetail:
{ http://xml.apache.org/axis/ }exceptionNamerg.alfresco.repo.webservice.repository.RepositoryFault
{ http://xml.apache.org/axis/}stackTrace:
at org.alfresco.repo.webservice.repository.RepositoryWebService.fetchMore(RepositoryWebService.java:465)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397)
at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)
at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
12-10-2007 05:19 PM
12-10-2007 05:48 PM
12-10-2007 10:23 PM
String sQuery = "TYPE:\"" + Constants.TYPE_CONTENT + "\"";
// set the batch size in the query header
int batchSize = 10;
QueryConfiguration queryCfg = new QueryConfiguration();
queryCfg.setFetchSize(batchSize);
RepositoryServiceSoapBindingStub repositoryService = WebServiceFactory.getRepositoryService();
repositoryService.setHeader(new RepositoryServiceLocator().getServiceName().getNamespaceURI(), "QueryHeader", queryCfg);
// get the first batch of results
QueryResult result = repositoryService.query(STORE, getQuery(sQuery), true);
//process the first query result
String querySession = result.getQuerySession();
while (querySession != null) {
// get the next batch of results
result = repositoryService.fetchMore(querySession);
// process subsequent query results
querySession = result.getQuerySession();
}
04-16-2008 11:37 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.