cancel
Showing results for 
Search instead for 
Did you mean: 

authenticationUtils

yassine_036
Champ in-the-making
Champ in-the-making
hi
i'm dploying an alfresco's example but i have thhis problem when i run it
i don't know what's the problem
this my source:
public void clean() throws Exception {
      WebServiceFactory.setEndpointAddress("http://localhost:8080/alfresco/api");
        // Start the session
      AuthenticationUtils.startSession("admin", "admin");
      
        try {
           // Create a reference to the parent where we want to look for content
           Store storeRef = new Store(Constants.WORKSPACE_STORE, "SpacesStore");
           
and there is the error:
Exception in thread "main" org.alfresco.webservice.util.WebServiceException: Error starting session.
   at org.alfresco.webservice.util.AuthenticationUtils.startSession(AuthenticationUtils.java:94)
   at com.someco.examples.SomeCoDataCleaner.clean(SomeCoDataCleaner.java:39)
   at com.someco.examples.SomeCoDataCleaner.main(SomeCoDataCleaner.java:32)
Caused by: (400)Mauvaise Requ�te
   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:79)
   … 2 more
please i hope that you will help me
thanks
4 REPLIES 4

openpj
Elite Collaborator
Elite Collaborator
Are you using the correct version of Alfresco Web Service Client?
Maybe you could change some proxy settings in your IDE.

Hope this helps.

yassine_036
Champ in-the-making
Champ in-the-making
thank you for your help
what can i change in the proxy setting IDE? and How?
thank you

yassine_036
Champ in-the-making
Champ in-the-making
any idea??

yassine_036
Champ in-the-making
Champ in-the-making
i use alfresco-sdk-community 2.9
tomcat 6
eclipse JEE