Hello,
I would like to save an xml file retrive from an Url.
In order to do that, I'm using a tFileFetch component but I have the following error :
Exception in component tFileFetch_1
java.net.SocketTimeoutException: connect timed out
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(Unknown Source)
at portefeuille_eg.test_0_1.test$1SocketFactory_tFileFetch_1.createSocket(test.java:382)
at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:706)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:386)
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)
I've checked in the advance setting "use authentication".
And if I call the url in internet explorer, a windows authentification windows open and after writing my ID, the xml appears well in internet explorer.
Someone have an idea please ?
Regards
Hi,
You can have a try to change the User Authentication:IE-->Tool-->Security-->Local Intranet Zone-->Custom level-->User Authentication log on -->Automatic logon with current user name and password to see if this windows authentification windows open?
Best regards
Sabrina
Hi, I suspect it is caused by your firewall. Do you still have this "windows authentification windows open" after close your firewall? Best regards Sabrina
Sorry Sabrina, I'm not sure if we understand well... I have this windows authentification when I call the url with internet explorer. I do that in order to test my url but what I need is to call the url with my talend job. And in order to provide this authentication, I've thinked that using advance setting provide me this problem. But It's not the case ... Regards, Stef
Sabrina, I think I've understood what you would like to say.
I have to set the parameters of my proxy in Talend.
I will take a look and let you know...
Regards,
Stef
By adding the proxy parameters, I still have a problem :
7 août 2013 14:58:40 org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
INFO: basic authentication scheme selected
27 août 2013 14:58:40 org.apache.commons.httpclient.HttpMethodBase readResponseBody
INFO: Response content length is not known
27 août 2013 14:58:41 org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
INFO: basic authentication scheme selected
27 août 2013 14:58:41 org.apache.commons.httpclient.HttpMethodDirector processAuthenticationResponse
GRAVE: Invalid challenge: Basic
org.apache.commons.httpclient.auth.MalformedChallengeException: Invalid challenge: Basic
at org.apache.commons.httpclient.auth.AuthChallengeParser.extractParams(AuthChallengeParser.java:97)
at org.apache.commons.httpclient.auth.RFC2617Scheme.processChallenge(RFC2617Scheme.java:93)
at org.apache.commons.httpclient.auth.BasicScheme.processChallenge(BasicScheme.java:111)
at org.apache.commons.httpclient.auth.AuthChallengeProcessor.processChallenge(AuthChallengeProcessor.java:161)
at org.apache.commons.httpclient.HttpMethodDirector.processWWWAuthChallenge(HttpMethodDirector.java:689)
at org.apache.commons.httpclient.HttpMethodDirector.processAuthenticationResponse(HttpMethodDirector.java:663)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:192)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)
at integration_conso_dwh.test_0_1.test.tFileFetch_1Process(test.java:593)
at integration_conso_dwh.test_0_1.test$1.run(test.java:970)
Exception in component tFileFetch_1
java.lang.Exception: Method failed: HTTP/1.1 401 Unauthorized
at integration_conso_dwh.test_0_1.test.tFileFetch_1Process(test.java:596)
at integration_conso_dwh.test_0_1.test$1.run(test.java:970)
828 milliseconds
Hello Sabrina, After some tests with the system administrator, it's not a problem of firewall or proxy. The connection to the https seems to be ok but I can't save the answer ... Regards, Stef
Do you mean you cannot store the retrieved file into destination directory? Could you please give us more info about your current issue?
Best regards
Sabrina
Hi, Yes I can't store the retrieved file into destination directory. I tried the save cookie but I have the same issue. For my system administrator, the connection to the https seems to be done ... So I don't understand.