07-02-2007 03:32 AM
07-03-2007 09:30 AM
07-06-2007 11:57 AM
07-27-2009 11:17 AM
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
08-17-2010 08:03 PM
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;
}
And that worked half an hour before and since then nothing helps, not even a reboot (I am on community 3.3g under Ubuntu 10.04).
08-17-2010 08:09 PM
Node[] nodes = repositoryService.get(new Predicate(null,spacesStore, qt));
is the exact location where the exception occurs an I have no idea why. I start and end sessions as intended and shown in the link given earlier. And again: It worked half an hour before.08-17-2010 08:11 PM
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)
08-18-2010 07:43 AM
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));
08-26-2010 07:20 AM
08-27-2010 10:33 AM
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.
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.