One Star

tFileFetch and proxy/ NTLM problems

Hi - I'm getting the following error while trying to connect to a website using tFileFetch:
Starting job sandbox at 15:58 07/02/2011.
connecting to socket on port 3931
connected
07-Feb-2011 15:58:46 org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
INFO: ntlm authentication scheme selected
07-Feb-2011 15:58:46 org.apache.commons.httpclient.HttpMethodDirector processProxyAuthChallenge
INFO: Failure authenticating with NTLM <any realm>@
Exception in component tFileFetch_1
java.lang.Exception: Method failed: HTTP/1.1 407 Proxy Authentication Required
at prototype.sandbox_0_1.sandbox.tFileFetch_1Process(sandbox.java:272)
at prototype.sandbox_0_1.sandbox.runJobInTOS(sandbox.java:555)
at prototype.sandbox_0_1.sandbox.main(sandbox.java:426)
disconnected
Job sandbox ended at 15:58 07/02/2011.

I have "Enable NTLM Credentials" unchecked in the advanced settings
If I enable NTLM I get this error:
Starting job sandbox at 16:06 07/02/2011.
connecting to socket on port 3798
connected
07-Feb-2011 16:06:55 org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
INFO: ntlm authentication scheme selected
07-Feb-2011 16:06:56 org.apache.commons.httpclient.HttpMethodDirector processProxyAuthChallenge
INFO: Failure authenticating with NTLM <any realm>@
Exception in component tFileFetch_1
java.lang.Exception: Method failed: HTTP/1.1 407 Proxy Authentication Required
at prototype.sandbox_0_1.sandbox.tFileFetch_1Process(sandbox.java:272)
at prototype.sandbox_0_1.sandbox.runJobInTOS(sandbox.java:555)
at prototype.sandbox_0_1.sandbox.main(sandbox.java:426)
disconnected
Job sandbox ended at 16:06 07/02/2011.

Does anyone know if this is a bug/ issue with Talend or whether it's an incorrectly configured proxy at my company?
any help would be much appreciated
1 REPLY
Four Stars

Re: tFileFetch and proxy/ NTLM problems

Hi,
I also have some troubles with this component : I don't want to enable NTLM Authentication but it seems to be enabled by default.
As maxillis, when I run the job I get the following output :
14 févr. 2011 14:47:20 org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
INFO: ntlm authentication scheme selected
14 févr. 2011 14:47:20 org.apache.commons.httpclient.HttpMethodDirector authenticate
GRAVE: 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.authenticate(HttpMethodDirector.java:231)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:169)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)
at jose.get_currency_xml_0_1.Get_Currency_xml.tFileFetch_2Process(Get_Currency_xml.java:542)
at jose.get_currency_xml_0_1.Get_Currency_xml.runJobInTOS(Get_Currency_xml.java:3885)
at jose.get_currency_xml_0_1.Get_Currency_xml.main(Get_Currency_xml.java:3692)
14 févr. 2011 14:47:20 org.apache.commons.httpclient.HttpMethodDirector processProxyAuthChallenge
INFO: Failure authenticating with NTLM <any realm>@myproxy:8080
Exception in component tFileFetch_2
java.lang.Exception: Method failed: HTTP/1.1 407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied. )
at jose.get_currency_xml_0_1.Get_Currency_xml.tFileFetch_2Process(Get_Currency_xml.java:544)
at jose.get_currency_xml_0_1.Get_Currency_xml.runJobInTOS(Get_Currency_xml.java:3885)
at jose.get_currency_xml_0_1.Get_Currency_xml.main(Get_Currency_xml.java:3692)

How are we suppose to set the component to bypass NTLM Credentials ? I only want to input my proxy parameters.