cancel
Showing results for 
Search instead for 
Did you mean: 

Socket ReadTimeOut / Versionable Aspect Issue

jerome_guyon
Champ in-the-making
Champ in-the-making
Hi,

I'm facing an issue with webService client against Alfresco1.4.

I obtain sometimes some ReadTimeOut exceptions


java.net.SocketTimeoutException: Read timed out

at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
       at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:154)
       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)

I have found this link about this kind of issue :
http://www.samaxes.com/2009/04/axis-14-read-timed-out-and-http-11/
It explains that this issue is because of Axis1.4.

Should i change the 1.4 alfresco webService client?

I'm also wondering if i'll face this issue with a newer version of alfresco (3.2r2). But if i'm not wrong it also uses Axis 1.4…..

Can someone help me?
4 REPLIES 4

jerome_guyon
Champ in-the-making
Champ in-the-making
Any idea?

dward
Champ on-the-rise
Champ on-the-rise
Your client is trying to connect to a socket that the server is not listening on.

Make sure the repository.location in your webserviceclient.properties is pointing to the correct host and port number, and that the alfresco server is up.

See

http://wiki.alfresco.com/wiki/Alfresco_SDK#Executing_the_Web_Services_Examples

jerome_guyon
Champ in-the-making
Champ in-the-making
Thank you for your response, but the server is well listening.

In fact i have discover that the problem seems to be on alfresco (version 1.4)

The first thing i do is to create a new node and to put content on it :

1) CMLCreate
2) CMLAddAspect of Aspect Titled
3) Construct the CML request and make repositoryService().update(cml)
4) Write Node Content contentService.write( … )
At this step, the document is well created immediately and with the Titled aspect.

Next I tried to add the Versionable Aspect

5) CMLAddAspect of Aspect Versionable on the reference of the created Node
6) Construct the CML request and make repositoryService().update(cml)

This call takes a lot of time. If i hadn't change the timeout of the Axis WS call, i should have always SocketReadTimeOut.
It takes about 5minutes to complete.

Is-it a known issue on Alfresco 1.4 ?
Should i better upgrade my Alfresco to a newer version?
Why this only the Aspect Versionable that cause issue?

Please not that the Alfresco server runs since about 2 years, and i have tried on a fresh installed version of Alfresco 1.4 on my computer and the previous code works fine.


Thanks for your help

jerome_guyon
Champ in-the-making
Champ in-the-making
Nobody?