One Star

HttpRequest component throws "505" error

Hi!
I have an HttpRequest component throwing a "505 HTTP Version Not Supported" error
The URI parameter contains:
"http://localhost:8080/iav350/update?stream.file=E:/Data Inflow/SolrXML/gtd.xml&commit=true&optimize=true"
Issuing the URI in the address field of a browser works fine though so the URI seems to be syntactically correct.
What am I doing wrong here?
Cheers
12 REPLIES
One Star

Re: HttpRequest component throws "505" error

You don't have to post every time it throws the error.
One Star

Re: HttpRequest component throws "505" error

BTW - I use the "GET" method...
One Star

Re: HttpRequest component throws "505" error

Hi
We need to fix this issue step by step.
Now change the URL into "http://www.google.com/" in tHttpRequest. "Get" method.
If you still get "505 error", maybe you are behind a http proxy.
If it works fine, you'd better check the configuration file of iav350 web application.
Regards,
Pedro
One Star

Re: HttpRequest component throws "505" error

Hi!
Entering "www.google.com" worked without a glitch. Hmmm, seems that I have an issue trying to reach the Solr-servlet in Tomcat. This is what I get in the "Tomcat access log":
127.0.0.1 - - "GET /iav350/update?stream.file=E:/Data Inflow/SolrXML/gtd.xml&commit=true&optimize=true HTTP/1.1" 505 -
Don't know if this helps...
Cheers
One Star

Re: HttpRequest component throws "505" error

Hi
The version is http/1.1.
Which version of JDK do you use? version of tomcat?
I don't know why it doesn't support HTTP/1.1.
Regards,
Pedro
One Star

Re: HttpRequest component throws "505" error

Hmmm, the installer's name is: jre-6u31-windows-i586-iftw.exe, Tomcat is v7...
Cheers
One Star

Re: HttpRequest component throws "505" error

Hi!
Any progress on this?
Cheers
One Star

Re: HttpRequest component throws "505" error

Hi
Here are all code about http request in tHttpRequest.
java.net.URL url_tHttpRequest_1 = new java.net.URL(
"http://localhost:8080/");
java.net.HttpURLConnection urlConn_tHttpRequest_1 = (java.net.HttpURLConnection) url_tHttpRequest_1
.openConnection();
urlConn_tHttpRequest_1.setRequestMethod("POST");
urlConn_tHttpRequest_1.setDoOutput(true);
urlConn_tHttpRequest_1.setDoInput(true);
urlConn_tHttpRequest_1.setUseCaches(false);

The class java.net.httpURLConnection can't modify http version.
I have talked with my co-worker and google it online.
It seems that this is still due to JDK...
I know that iftw is "Install From The Web". I try to confirm whether this is a bug in JDK. But fails.
Can you reinstall a normal version without installation online?
Regards,
Pedro
One Star

Re: HttpRequest component throws "505" error

Hi Pedro!
Absolutely - I'll try to install another version in parallell and see if it solves the issueSmiley Happy Stay tuned...
Hmmm, just for clarification, what do you mean with "normal version"?
Cheers
One Star

Re: HttpRequest component throws "505" error

Hi!
I made the asumption that you by "normal" meant not "iftw" so I downloaded a complete jre7 package, installed it, reconfigured both Talend Studio and Tomcat to use the new jre but I got the same error...
Cheers
One Star

Re: HttpRequest component throws "505" error

Hi!
Any news on this?
Cheers,
/Peter
One Star

Re: HttpRequest component throws "505" error

http://localhost:8080/iav350/update?stream.file=E:/Data Inflow/SolrXML/gtd.xml&commit=true&optimize=true
contains space...
Change to something like
http://localhost:8080/iav350/update?stream.file=E:/Data%20Inflow/SolrXML/gtd.xml&commit=true&optimize=true
it should work...