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.
WebServiceFactory.setEndpointAddress("http://localhost:8080/alfresco/api"); AuthenticationUtils.startSession("user", "pwd"); AuthenticationUtils.getTicket();
Caused by: org.alfresco.webservice.util.WebServiceException: Error starting session. at org.alfresco.webservice.util.AuthenticationUtils.startSession(AuthenticationUtils.java:94) at beans.FirstWebServiceClient.hello(FirstWebServiceClient.java:63) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.el.parser.AstValue.invoke(AstValue.java:170) at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276) at org.apache.jasper.el.JspMethodExpression.invoke(JspMethodExpression.java:68) at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88) … 36 more Caused by: java.lang.ClassCastException: org.apache.axis.attachments.AttachmentsImpl at org.apache.axis.AxisFault.makeFault(AxisFault.java:101) at org.apache.axis.client.Call.invoke(Call.java:1828) at org.alfresco.webservice.authentication.AuthenticationServiceSoapBindingStub.startSession(AuthenticationServiceSoapBindingStub.java:187) at org.alfresco.webservice.util.AuthenticationUtils.startSession(AuthenticationUtils.java:79) … 45 more Caused by: java.lang.ClassCastException: org.apache.axis.attachments.AttachmentsImpl at org.apache.axis.Message.setup(Message.java:352) at org.apache.axis.Message.<init>(Message.java:246) at org.apache.axis.client.Call.invoke(Call.java:2425) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:1812)