----- Weitergeleitet von Markus Gierich/KA/FAG/FIDUCIA/DE am 26.07.2007 08:12
-----
                               ------------------------------------------------
       FIDUCIA IT AG                                                   
                                                                       
                                                                       
                                                                       
 Von:  Markus Gierich          An:                                     
       Informationssysteme           [EMAIL PROTECTED]                  
       (SYTIS)                                                         
                                                                       
                                                                       
 Vom:  26.07.2007 08:10                                                
                                                                       
                                                                       





Thema:      Connection timeout using Kannel



Hi!

I'm using the kannel sms gateway  (www.kannel.org) and call it via the HTTP
Interface from a java application. To connect to the interface I use the jakarta
commons httpclient.
After sent a sms I close the connection via method.releaseConnection(). If I
don't send a sms for more than 2 hours and then the next sms I get a connection
timeout. But after that, the 2 second sms works again. Does releaseConnection
really close the connection ? The java application runs as a daemon 24 hours a
day an connect to the smsgateway whenever a sms has to be send.

java.net.SocketException: Connection 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.commons.httpclient.HttpParser.readRawLine(HttpParser.java:77)
        at
org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:105)
        at
org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1115)
        at
org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.readLin
e(MultiThreadedHttpConnectionManager.java:1373)
        at
org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1832)
        at
org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1590)
        at
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:995)
        at
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)
        at
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
        at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
        at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)


Any Ideas?

Markus



----------------------------------------------------------------------------------------------------------------------------------------------

FIDUCIA IT AG
Fiduciastraße 20
76227 Karlsruhe

Sitz der Gesellschaft: Karlsruhe
AG Mannheim HRB 100059

Vorsitzender des Aufsichtsrats: Erwin Kuhn
Vorsitzender des Vorstands: Michael Krings
Vorstand: Klaus-Peter Bruns, Hans-Peter Straberger, Eckhardt Werner

Umsatzsteuer-ID.Nr. DE143582320, http://www.fiducia.de
----------------------------------------------------------------------------------------------------------------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to