[Advanced-java] java.io.IOException: Server returned HTTP response
code: 400 for URL:
Lothar Kimmeringer
adv-java at kimmeringer.de
Mon Apr 3 11:13:50 PDT 2006
gonella.jayprakash at wipro.com wrote:
> Hi,
>
> I am seeing this error and have no clue what the fix could be. Any
> idea?
HTTP-Response-codes starting with 4 (like 404) are indicating that
a resource being requested can't be found or is missing due to
other reasons.
HttpUrlConnection is throwing an exception in this case. Check your
URL or look into the server's log-file what has been requested and
what the request should look like.
> I am working on applet-servlet communication. The application is built
> on struts frameworks and the server is weblogic 8.1. The jdk version is
> jdk142_08.
Doesn't matter very much in this case.
> The url being passed for the construction of URLConnection object is
> "http://localhost:7001/pac/UploadRawData.do?method=uploadRawDataFiles".
> The control is not coming to the specified method in the action class.
> Any pointers as to what the fix could be?
Just guessing: Is the resource-handler not available for localhost and
maybe just for the "real" address?
> The information contained in this electronic message and any attachments
> to this message are intended for the exclusive use of the addressee(s)
> and may contain proprietary, confidential or privileged information.
> If you are not the intended recipient, you should not disseminate,
> distribute or copy this e-mail. Please notify the sender immediately
> and destroy all copies of this message and any attachments.
Just a sidenote: This text is irrelevant and lead to no obligations for
the recipient of the mail whatsoever.
> WARNING: Computer viruses can be transmitted via email. The recipient
> should check this email and any attachments for the presence of viruses.
> The company accepts no liability for any damage caused by any virus
> transmitted by this email.
Just another sidenote: This exclusion of liability is irrelevant
as well. If your company is spreading viruses and it lead to
damages on the receiving side, your company has to pay for the
damages.
Regards, Lothar
--
Lothar Kimmeringer E-Mail: spamfang at kimmeringer.de
PGP-encrypted mails preferred (Key-ID: 0x8BC3CD81)
Always remember: The answer is forty-two, there can only be wrong
questions!
More information about the Advanced-java
mailing list