readTimeout exception while http service invoker is used

328 views Asked by At

I am new to spring boot.

I am getting this exception: COULD NOT ACCESS HTTP INVOKER REMOTE SERVICE AT [service URL]; nested exception is Java.net.SocketTimeOutException: Read Time out.

I need a solution for this. I went into the XML file to increase the readTimeout while that service URL is called but it says no such property There is a bean defined for that property

I tried increasing server and client timeout but no luck.

1

There are 1 answers

5
Vinayak Kamati On

Increase the read timeout for httpInvokerRequestExecuter OR you can set it to 0

<bean id="httpInvokerReqExecutor" class="org.springframework.remoting.httpinvoker.CommonsHttpInvokerRequestExecuto‌​r" > 
     <property name="readTimeout" value="0" /> 
</bean> 

Try this once.