cancel
Showing results for 
Search instead for 
Did you mean: 

Webservice issue : timeout

Former Member
0 Kudos

Hello Community,

this is the problem I am facing :

I have developped a Deployable Proxy DC to call a Webservice, I have done the Web module DC and EAR DC also, built and deployed.

The code in my JSP seems to be OK, but when I execute it, I got the following error message :

Application error occurred during request processing.

Details: java.rmi.RemoteException: Service call exception; nested exception is:

java.net.ConnectException: Connection timed out: connect

Exception id: [1CC1DE01C0900070000000510000202C0004991ADB97D7C0]

when calling the JSP.

I do not need credits to call the Webservice.

Where did I go wrong ? How can I increase the value of the timeout period ?

Below is my JSP code :


<%@ page import="javax.naming.InitialContext" %>
<%@ page import="javax.rmi.PortableRemoteObject" %>
<%@ page import="fr.customer.CustomerWebServiceSoap" %>
<%@ page import="fr.customer.CustomerWebService" %>



<% 
InitialContext ctx = new InitialContext();

fr.customer.CustomerWebService obj = (fr.customer.CustomerWebService) ctx.lookup("java:comp/env/custo_proxy");
fr.customer.CustomerWebServiceSoap port = (fr.customer.CustomerWebServiceSoap)obj.getLogicalPort("CustomerWebServiceSoap",fr.customer.CustomerWebServiceSoap.class);


fr.customer.types.PrixOffre[] result = new fr.customer.types.PrixOffre[0];
result = port.getOffres();

%>

If I remove this part :

result = port.getOffres();

Then I got no timeout issue...

Thanks a lot,

Fabien.

Edited by: Fabien REVOL on Jan 5, 2011 4:26 PM

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

You don't even tell what system you are using....

Do you think we all have crystal balls to guess ?

Regards,

Olivier

Former Member
0 Kudos

Ouuups, sorry about that, I was totally stuck in my development issues...

I'm in EP7 EHP1.

After a few test it seems like it is coming from a firewall issue, the portal server did not manage to reach the external Web service.

I will be able to confirm that in a moment I think.

Fabien.

Former Member
0 Kudos

This was it !

the portal server could not connect to the internet, so the Webservice call could not work.

Solved.

Fabien.