AnsweredAssumed Answered

Can not run 'TYPE'-query from Jeff Potts' article

Question asked by itrub on Dec 20, 2010
Latest reply on Dec 21, 2010 by jcustovic
Dear colleagues
I try to reproduce the simple example from well-known article of Jeff Potts "Alfresco Developer: Working with Custom Content Types". I want to run TYPE-query, so, to get all nodes of custom type. I form the query string with such code:
queryString = "+TYPE:\"" + Constants.createQNameString(RMSModel.NAMESPACE_RMS_CONTENT_MODEL, RMSModel.TYPE_RMS_INCOMINGDOCUMENT) + "\"";
so, it seems
Execution of program fall down on code:
QueryResult queryResult = getRepositoryService().query(getStoreRef(), query, false);

So, the result of
System.out.println(getStoreRef().getScheme()+" "+getStoreRef().getAddress());
workspace SpacesStore
The result of

The error is something like this:
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.reflect.Class.newInstance0(Unknown Source)
at java.lang.reflect.Class.newInstance(Unknown Source)
and at end
at org.apache.axis.client.Call.invoke(
at org.alfresco.webservice.repository.RepositoryServiceSoapBindingStub.query(

I use ALfresco 3.3, Community Version for Windows.
Could anybody help me? Thanks in advance
Sincerely, Iliya