Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Hari Dobbala
java.net.SocketTimeoutException: Read timed out while using liferay webserv
December 12, 2012 11:36 PM
Answer

Hari Dobbala

Rank: Junior Member

Posts: 29

Join Date: November 17, 2012

Recent Posts

Hi All,

I have created on webservice client to add new usergroup and assigning the user to newly created usergroup using this link. When I tried to execute client, below error is coming when it is inserting into the users_groups table.

AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.net.SocketTimeoutException: Read timed out
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(Unknown Source)
at java.io.BufferedInputStream.fill(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
at org.apache.axis.transport.http.HTTPSender.readHeadersFromSocket(HTTPSender.java:583)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:143)
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 com.liferay.portal.service.http.Portal_UserGroupServiceSoapBindingStub.addUserGroup(Portal_UserGroupServiceSoapBindingStub.java:324)
at com.dLife.webservice.LiferaySoapClient.main(LiferaySoapClient.java:89)

and attached is my webservice client java file.

Please suggest me how to resolve this error.

Thanks in advance.
Attachments: LiferaySoapClient.java (4.7k)
Hari Dobbala
RE: java.net.SocketTimeoutException: Read timed out while using liferay web
December 13, 2012 1:27 AM
Answer

Hari Dobbala

Rank: Junior Member

Posts: 29

Join Date: November 17, 2012

Recent Posts

Now it is working.. I don't know why it was not working previously.