Hi all,
I have a very strange problem I have not been able to debug the last 3
days. I am using GWT 2.4, and the problem happens only on the remote
server. Not in development mode, nor on a Tomcat I have installed on
my PC.
My application needs to contact a web service that runs on an external
server. So I created a servlet that calls this web service using GET,
like this:
HttpsURLConnection connection = (HttpsURLConnection)
url.openConnection();
connection.setHostnameVerifier(new CustomizedHostnameVerifier());
and then I read the response in an input stream.
CustomizedHostnameVerifier is a hostname verifier I created to verify
the self-signed certificate we are using. In the client's "onSuccess"
I read this input stream as a string.
It used to work perfectly, but the last days, every rpc call fails
with this message:
com.google.gwt.user.client.rpc.StatusCodeException: 501
<html><head><title>Apache Tomcat/6.0.28 - Rapport d'erreur</
title><style><!--H1 {font-family:Tahoma,Arial,sans-
serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-
family:Tahoma,Arial,sans-serif;color:white;background-
color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-
serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-
family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B
{font-family:Tahoma,Arial,sans-serif;color:white;background-
color:#525D76;} P {font-family:Tahoma,Arial,sans-
serif;background:white;color:black;font-size:12px;}A {color : black;}
A.name {color : black;}HR {color : #525D76;}--></style> </
head><body><h1>Etat HTTP 501 - Le méthode OST n'est pas définie dans
la RFC 2068 et n'est pas supportée par l'API Servlet</h1><HR size="1"
noshade="noshade"><p><b>type</b> Rapport d'état</p><p><b>message</b>
<u>Le méthode OST n'est pas définie dans la RFC 2068 et n'est pas
supportée par l'API Servlet</u></p><p><b>description</b> <u>Le serveur
ne supporte pas la fonctionnalité demandée pour satisfaire cette
requête (Le méthode OST n'est pas définie dans la RFC 2068 et n'est
pas supportée par l'API Servlet).</u></p><HR size="1"
noshade="noshade"><h3>Apache Tomcat/6.0.28</h3></body></html>
Sorry for the french, it's because the remote server is in french. The
bottom line is that "the method OST is not defined for the HTTP
protocol", and that causes a 501 error. But where does this OST come
from? As I said, I am using the default GET of servlet's
"openConnection()".
Even if I use POST, like this
HttpsURLConnection connection = (HttpsURLConnection)
url.openConnection();
connection.setHostnameVerifier(new
CustomizedHostnameVerifier());
connection.setRequestMethod("POST");
the same happens. And if I misspell and write
"connection.setRequestMethod("OST"); ", the servlet throws as expected
another exception, different than the above described.
Please help, I am really stuck here. Thanks.
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.