Avatar billede fredand Forsker
11. oktober 2008 - 22:30 Der er 3 kommentarer og
1 løsning

Axis2 - why do I get "Read timed out"

Hello!
I got a small javaapplet that calls a webservice.
When I start it locally it works fine.
But when I start it from an other computer in my local LAN I get:
   
org.apache.axis2.AxisFault: Read timed out
    at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:486)
    at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:343)
    at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:389)
    at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211)
    at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
    at nameswebservices.client.NameswebserviceStub.addNameWSEJB(NameswebserviceStub.java:413)
    at namesjavaapplication.WSPanel.addName(WSPanel.java:98)
    at namesjavaapplication.NamesJavaApplication.actionPerformed(NamesJavaApplication.java:72)
...

The code looks like below:

NameswebserviceStub nameswebserviceStub = new NameswebserviceStub();
NameswebserviceStub.AddNameWSEJB addNameWSEJB = new NameswebserviceStub.AddNameWSEJB();
addNameWSEJB.setName(textField.getText());
nameswebserviceStub.addNameWSEJB(addNameWSEJB);

Is there any way to increase the timeout?

Or do you guys think something else is wrong?

Best regards
Fredrik
Avatar billede arne_v Ekspert
11. oktober 2008 - 22:39 #1
I don't think the problem can be fixed by increasing a timeout, when the systems are
on same LAN. The timeout are probably already set to support slow WAN.

My guess is that a firewall or routing problem permanent blocks the interaction.
Avatar billede fredand Forsker
13. oktober 2008 - 08:32 #2
Hello!

Yes that sounds really possible.
When I run it locally the server answers at once.
When I run it remote, I can not detect any incomming call at the server at all, after a while it just time out.

I will try to find out why.

Best regards
Fredrik
Avatar billede fredand Forsker
24. oktober 2008 - 21:46 #3
Hello!

You really was right on this!!

Everything was depending on settings in my firewalls.

Please give a svar Arne!
Best regards
Fredrik
Avatar billede arne_v Ekspert
24. oktober 2008 - 21:54 #4
.
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Kurser inden for grundlæggende programmering

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester