I am running the SampleQuery.java code and I get the following error
org.oasis_open.docs.ns.cmis.ws._200908.CmisException : Search execution failed! - type : RUNTIME - code : 10035 - Cause message [ com.opentext.ecm.services.search.SearchServiceFaults$SearchServiceRuntimeException : com.opentext.ecm.services.search.SearchServiceFaults$SearchServiceRuntimeException : OTDS username and password are required.]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0( Native Method )
at sun.reflect.NativeConstructorAccessorImpl.newInstance( NativeConstructorAccessorImpl.java:57 )
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance( DelegatingConstructorAccessorImpl.java:45 )
at java.lang.reflect.Constructor.newInstance( Constructor.java:525 )
at com.sun.xml.ws.fault.SOAPFaultBuilder.createException( SOAPFaultBuilder.java:141 )
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke( SyncMethodHandler.java:119 )
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke( SyncMethodHandler.java:89 )
at com.sun.xml.ws.client.sei.SEIStub.invoke( SEIStub.java:118 )
at $Proxy48.query(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0( Native Method )
at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:57 )
at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:43 )
at java.lang.reflect.Method.invoke( Method.java:601 )
at com.opentext.ecm.cmis.handler.WebServiceInvocationHandler.invoke( WebServiceInvocationHandler.java:114 )
at $Proxy49.query(Unknown Source)
at com.opentext.ecm.cmis.sample.discoveryservice.SampleQuery.main( SampleQuery.java:40 )
The error suggests that that an OTDS user name & password are required - but I supply these as per the sample code:
String server = "http://otserver.comanaco.local:8080" ;
String user = "barrie@cs" ;
String password = "Hydrogen1" ;
Any suggestions ?
BTW - all other samples ( except the SampleQieryPersonalWorkspace.java) are working OK