As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
In order to use Alfresco Web Services you MUST establish a valid session with the repository (which will return a ticket). See the "Starting a Session" section in this link.That's all I could think of (without having seen your code). Maybe you can get more help if you post the code that heads to that exception…Regards,Enrique
Query qt = new Query(Constants.QUERY_LANG_LUCENE, "PATH:\"app:company_home/\""); try { Node[] nodes = repositoryService.get(new Predicate(null,spacesStore, qt)); for (Node node : nodes) { results.add(getNodeAttributes(node)); } return results; }
Node[] nodes = repositoryService.get(new Predicate(null,spacesStore, qt));
WSHandler: password callback failed; nested exception is: org.alfresco.webservice.util.WebServiceException: Ticket could not be found when calling callback handler. Trace: Exception: org.apache.ws.security.WSSecurityException Message: WSHandler: password callback failed; nested exception is: org.alfresco.webservice.util.WebServiceException: Ticket could not be found when calling callback handler. at org.apache.ws.security.handler.WSHandler.performCallback(WSHandler.java:736) at org.apache.ws.security.handler.WSHandler.readPwViaCallbackClass(WSHandler.java:712) at org.apache.ws.security.handler.WSHandler.getPassword(WSHandler.java:670) at org.apache.ws.security.action.UsernameTokenAction.execute(UsernameTokenAction.java:35) at org.apache.ws.security.handler.WSHandler.doSenderAction(WSHandler.java:197) at org.apache.ws.axis.security.WSDoAllSender.invoke(WSDoAllSender.java:170) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:127) at org.apache.axis.client.Call.invokeEngine(Call.java:2784) at org.apache.axis.client.Call.invoke(Call.java:2767) at org.apache.axis.client.Call.invoke(Call.java:2443) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:1812) at org.alfresco.webservice.repository.RepositoryServiceSoapBindingStub.get(RepositoryServiceSoapBindingStub.java:1078)
AuthenticationUtils.startSession("user", "password"); request.getSession().setAttribute("authenticationDetails", AuthenticationUtils.getAuthenticationDetails());
AuthenticationUtils.setAuthenticationDetails((AuthenticationDetails) req.getSession().getAttribute("authenticationDetails")); Node[] nodes = repositoryService.get(new Predicate(null,spacesStore, qt));
I was assuming that if I retrieve the repositoryService from the WebServiceFactory after login, I am fine because it handles the session internally.And I don't find the getSession method anywhere.