Skip to main content

Artix client times out while awaiting response from the server

  • May 17, 2013
  • 0 replies
  • 0 views

Summary Artix client times out while awaiting response from the server
Article Number 14131
Environment Artix 4.1
Question/Problem Description Artix client times out while sending message to the server
java.rmi.RemoteException: WebClient::receive - timedout; nested exception is:
com.iona.jbus.ntv.NativeIOException: WebClient::receive - timedout
(IT_HTTP:32) E - Timeout awaiting response from server : IDL:omg.org/CORBA/TIMEOUT:1.0: minor =0x495409C2 (IT_HTTP:EXPIRED_DURING_RECEIVE_RESPONSE), completion status = NO
Clarifying Information
Error Message
Defect/Enhancement Number
Cause
Resolution

The SendTimeout and ReceiveTimeout can be configured as follows

1. Via the WSDL port extensor in the WSDL file by adding the following namespace to your definitions element

<definitions
...
xmlns:http-conf="http://schemas.iona.com/transports/http/configuration"
... >

And then adding the below http-conf element as a child element to your port element
<http-conf:client SendTimeout="..." ReceiveTimeout="..." />

2. Programmatically by using the outgoing context HTTP_CLIENT_OUTGOING_CONTEXTS which is available in the client's request context and set the values prior to making the invocation calls.

import com.iona.schemas.transports.http.configuration.context.*;
import com.iona.jbus.ContextConstants;
...
ContextRegistry contReg = bus.getContextRegistry();

IonaMessageContext context = (IonaMessageContext)contReg.getCurrent();

ClientType httpAtribs = (ClientType)context.getRequestContext(ContextConstants.HTTP_CLIENT_OUTGOING_CONTEXTS, true);

httpAtribs.setSendTimeout(value in millisecs);
httpAtribs.setReceiveTimeout(value in millisecs);

Workaround
Notes Please make sure you installed at least Artix 4.1 patch 20090430
Attachment
Created date: 06 September 2011
Last Modified: 14 February 2013
Last Published: 09 September 2011
First Published date: 09 September 2011

#KnowledgeDocs
#Orbix