issue with tfilefetch

One Star

issue with tfilefetch

Hi All,
I am trying to download the xml file from web and process it.I am able to access the url using Internet explorer but not able to access using tfilefetch component when i am in office network but able to access when ia m out of office network.After that i came to know that this is because of PROXY settings in tfilefetch component.so i set the proxy settings as in screen shot but still i am getting the following error
Apr 18, 2013 7:09:13 PM org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
INFO: ntlm authentication scheme selected
Apr 18, 2013 7:09:13 PM org.apache.commons.httpclient.HttpMethodDirector executeConnect
SEVERE: Credentials cannot be used for NTLM authentication: org.apache.commons.httpclient.UsernamePasswordCredentials
org.apache.commons.httpclient.auth.InvalidCredentialsException: Credentials cannot be used for NTLM authentication: org.apache.commons.httpclient.UsernamePasswordCredentials
at org.apache.commons.httpclient.auth.NTLMScheme.authenticate(NTLMScheme.java:331)
at org.apache.commons.httpclient.HttpMethodDirector.authenticateProxy(HttpMethodDirector.java:319)
at org.apache.commons.httpclient.HttpMethodDirector.executeConnect(HttpMethodDirector.java:490)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:390)
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)
at non_gse.rest_0_1.rest.tFileFetch_1Process(rest.java:425)
at non_gse.rest_0_1.rest.runJobInTOS(rest.java:711)
at non_gse.rest_0_1.rest.main(rest.java:573)
Apr 18, 2013 7:09:13 PM org.apache.commons.httpclient.HttpMethodDirector processProxyAuthChallenge
INFO: Failure authenticating with NTLM <any realm>@asinproxy.ascorp.com:80
Exception in component tFileFetch_1
java.lang.Exception: Method failed: HTTP/1.0 407 Proxy Authentication Required
at non_gse.rest_0_1.rest.tFileFetch_1Process(rest.java:428)
at non_gse.rest_0_1.rest.runJobInTOS(rest.java:711)
at non_gse.rest_0_1.rest.main(rest.java:573)
disconnected
Job rest ended at 19:09 18/04/2013.


Can someone help me please.
Thanks in advance,
Ganga
Community Manager

Re: issue with tfilefetch

Hi
Please regitster an Talend account and become members, so that you can be able to upload a screenshot.
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: issue with tfilefetch

Hi Shong,
Thanks for your reply.
I am trying to download the xml file from web and process it.I am able to access the url using Internet explorer but not able to access using tfilefetch component when i am in office network but able to access when ia m out of office network.After that i came to know that this is because of PROXY settings in tfilefetch component.so i set the proxy settings as in screen shot but still i am getting the following error
Apr 18, 2013 7:09:13 PM org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
INFO: ntlm authentication scheme selected
Apr 18, 2013 7:09:13 PM org.apache.commons.httpclient.HttpMethodDirector executeConnect
SEVERE: Credentials cannot be used for NTLM authentication: org.apache.commons.httpclient.UsernamePasswordCredentials
org.apache.commons.httpclient.auth.InvalidCredentialsException: Credentials cannot be used for NTLM authentication: org.apache.commons.httpclient.UsernamePasswordCredentials
at org.apache.commons.httpclient.auth.NTLMScheme.authenticate(NTLMScheme.java:331)
at org.apache.commons.httpclient.HttpMethodDirector.authenticateProxy(HttpMethodDirector.java:319)
at org.apache.commons.httpclient.HttpMethodDirector.executeConnect(HttpMethodDirector.java:490)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:390)
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)
at non_gse.rest_0_1.rest.tFileFetch_1Process(rest.java:425)
at non_gse.rest_0_1.rest.runJobInTOS(rest.java:711)
at non_gse.rest_0_1.rest.main(rest.java:573)
Apr 18, 2013 7:09:13 PM org.apache.commons.httpclient.HttpMethodDirector processProxyAuthChallenge
INFO: Failure authenticating with NTLM <any realm>@asinproxy.ascorp.com:80
Exception in component tFileFetch_1
java.lang.Exception: Method failed: HTTP/1.0 407 Proxy Authentication Required
at non_gse.rest_0_1.rest.tFileFetch_1Process(rest.java:428)
at non_gse.rest_0_1.rest.runJobInTOS(rest.java:711)
at non_gse.rest_0_1.rest.main(rest.java:573)
disconnected
Job rest ended at 19:09 18/04/2013.


Please look at the attached screen shots for your reference.
Community Manager

Re: issue with tfilefetch

Hi
Do you really need to set both "NTLM Credentials" and "Need authenication"? To me, you should be able to access the URL in tFileFetch if you can access the URL in the internet browser, can you check if your browser has proxy setting? If so, you need to set the proxy setting in the component also, otherwise, you don't need to set the proxy setting in the component either.
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: issue with tfilefetch

Hi Shong,
We have proxy in our internet explorer because of which we selected the proxy settings and provided the credentials for the proxy.We check with our net work team with these credentials and confirmed that these are correct.
If we check only NTLM CREDENTIAL settings we are getting following error>:
Apr 23, 2013 11:09:50 AM org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
INFO: ntlm authentication scheme selected
Apr 23, 2013 11:09:51 AM org.apache.commons.httpclient.HttpMethodDirector processProxyAuthChallenge
INFO: Failure authenticating with NTLM <any realm>@asusproxy.ascorp.com:80
Exception in component tFileFetch_1
java.lang.Exception: Method failed: HTTP/1.0 407 Proxy Authentication Required
at non_gse.rest_0_1.rest.tFileFetch_1Process(rest.java:432)
at non_gse.rest_0_1.rest.runJobInTOS(rest.java:730)
at non_gse.rest_0_1.rest.main(rest.java:587)
if we check only "Need authenication" we are gettig the following error:

Apr 23, 2013 11:12:41 AM org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
INFO: ntlm authentication scheme selected
Apr 23, 2013 11:12:41 AM org.apache.commons.httpclient.HttpMethodDirector executeConnect
SEVERE: Credentials cannot be used for NTLM authentication: org.apache.commons.httpclient.UsernamePasswordCredentials
org.apache.commons.httpclient.auth.InvalidCredentialsException: Credentials cannot be used for NTLM authentication: org.apache.commons.httpclient.UsernamePasswordCredentials
at org.apache.commons.httpclient.auth.NTLMScheme.authenticate(NTLMScheme.java:331)
at org.apache.commons.httpclient.HttpMethodDirector.authenticateProxy(HttpMethodDirector.java:319)
at org.apache.commons.httpclient.HttpMethodDirector.executeConnect(HttpMethodDirector.java:490)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:390)
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)
at non_gse.rest_0_1.rest.tFileFetch_1Process(rest.java:437)
at non_gse.rest_0_1.rest.runJobInTOS(rest.java:738)
at non_gse.rest_0_1.rest.main(rest.java:595)
Apr 23, 2013 11:12:42 AM org.apache.commons.httpclient.HttpMethodDirector processProxyAuthChallenge
INFO: Failure authenticating with NTLM <any realm>@asusproxy.ascorp.com:80
Exception in component tFileFetch_1
java.lang.Exception: Method failed: HTTP/1.0 407 Proxy Authentication Required
at non_gse.rest_0_1.rest.tFileFetch_1Process(rest.java:440)
at non_gse.rest_0_1.rest.runJobInTOS(rest.java:738)
at non_gse.rest_0_1.rest.main(rest.java:595)
disconnected
One Star

Re: issue with tfilefetch

Hi Shong,
We have proxy in our internet explorer because of which we selected the proxy settings and provided the credentials for the proxy.We check with our net work team with these credentials and confirmed that these are correct.
If we check only NTLM CREDENTIAL settings we are getting following error>:
Apr 23, 2013 11:09:50 AM org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
INFO: ntlm authentication scheme selected
Apr 23, 2013 11:09:51 AM org.apache.commons.httpclient.HttpMethodDirector processProxyAuthChallenge
INFO: Failure authenticating with NTLM <any realm>@asusproxy.ascorp.com:80
Exception in component tFileFetch_1
java.lang.Exception: Method failed: HTTP/1.0 407 Proxy Authentication Required
at non_gse.rest_0_1.rest.tFileFetch_1Process(rest.java:432)
at non_gse.rest_0_1.rest.runJobInTOS(rest.java:730)
at non_gse.rest_0_1.rest.main(rest.java:587)
if we check only "Need authenication" we are gettig the following error:

Apr 23, 2013 11:12:41 AM org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
INFO: ntlm authentication scheme selected
Apr 23, 2013 11:12:41 AM org.apache.commons.httpclient.HttpMethodDirector executeConnect
SEVERE: Credentials cannot be used for NTLM authentication: org.apache.commons.httpclient.UsernamePasswordCredentials
org.apache.commons.httpclient.auth.InvalidCredentialsException: Credentials cannot be used for NTLM authentication: org.apache.commons.httpclient.UsernamePasswordCredentials
at org.apache.commons.httpclient.auth.NTLMScheme.authenticate(NTLMScheme.java:331)
at org.apache.commons.httpclient.HttpMethodDirector.authenticateProxy(HttpMethodDirector.java:319)
at org.apache.commons.httpclient.HttpMethodDirector.executeConnect(HttpMethodDirector.java:490)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:390)
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)
at non_gse.rest_0_1.rest.tFileFetch_1Process(rest.java:437)
at non_gse.rest_0_1.rest.runJobInTOS(rest.java:738)
at non_gse.rest_0_1.rest.main(rest.java:595)
Apr 23, 2013 11:12:42 AM org.apache.commons.httpclient.HttpMethodDirector processProxyAuthChallenge
INFO: Failure authenticating with NTLM <any realm>@asusproxy.ascorp.com:80
Exception in component tFileFetch_1
java.lang.Exception: Method failed: HTTP/1.0 407 Proxy Authentication Required
at non_gse.rest_0_1.rest.tFileFetch_1Process(rest.java:440)
at non_gse.rest_0_1.rest.runJobInTOS(rest.java:738)
at non_gse.rest_0_1.rest.main(rest.java:595)
disconnected