AnsweredAssumed Answered

AuthenticationUtils.startSession no longer working under 4.2d?

Question asked by hheckel on Sep 7, 2013
Latest reply on Jan 16, 2014 by cszamudio
Hello,

Trying to authenticate using AuthenticationUtils.startSession no longer works for me using Alfresco 4.2d CE, while it works like a charm for 4.2c

Code:

    WebServiceFactory.setEndpointAddress("http://some-server-ip-address:8080/alfresco/api);
    AuthenticationUtils.startSession("myusername","mypassword");



Stacktrace:

org.alfresco.webservice.util.WebServiceException: Error starting session.
   at org.alfresco.webservice.util.AuthenticationUtils.startSession(AuthenticationUtils.java:88)
   at com.domain.myapp.alfresco.AlfrescoConnector.connect(AlfrescoConnector.java:173)
   at com.domain.myapp.alfresco.AlfrescoConnectorTest.main(AlfrescoConnectorTest.java:14)
Caused by: (401)Unauthorized
   at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:744)
   at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)
   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:165)
   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.authentication.AuthenticationServiceSoapBindingStub.startSession(AuthenticationServiceSoapBindingStub.java:187)
   at org.alfresco.webservice.util.AuthenticationUtils.startSession(AuthenticationUtils.java:73)
   … 2 more


Any ideas?

Outcomes