Hi Blair,

        Thanks for pointing this error out to me.

        What really puzzles me is how some of the list members have
managed to get this working on their iSeries but it just
        refuses to work on my Iseries.

        I don't know if you had a chance to look at my emails yesterday.
Another puzzling question is when I remove the file
        name from the URL, the pgm does not give this error message and
a file is created which contains some data returned
        from the server.

        I can rule out the proxy issue as I've already proved that it
connects to the server and some data is returned.

        However, when I qualify the full file name as
http://www.slashdot.org/slashdot.xml then the pgm fails to find this
        file at the server location as this error says.

http://www.slashdot.org/slashdot.xml "

        Can you give me some expert advise as to what I should or should
not be doing.

Rajesh Anand

-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx
[mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of Blair Wyman
Sent: 04 January 2005 19:29
To: Java Programming on and around the iSeries / AS400
Subject: Re: Java Error

java400-l-bounces@xxxxxxxxxxxx wrote on 01/04/2005 07:32:02 AM:

>    I've a simple program that is meant to read a xml file from a
> website but I get an error.

I think your code is a little bit wrong.  I found this (wrong) code:

      System.getProperties().put("proxySet", "true");
      System.getProperties().put("proxyHost", "myProxyMachineName");
      System.getProperties().put("proxyPort", "85");



This page says the code is wrong, and points to the fix...
The WRONG part is the property keys specified.  Per
they should be:

      System.setProperty("proxySet", "true");
      System.setProperty("http.proxyHost", "your.proxy.server");
      System.setProperty("http.proxyPort", "8083");

So, for a quick and easy test, you might just try adding this to
your command line:

      -Dhttp.proxyHost=proxy.ml.com -Dhttp.proxyPort=8083



  ___   _           Blair Wyman                  IBM Rochester
 ( /_)  /  _  ' _   (507)253-2891            blairw@xxxxxxxxxx
__/__)_/_<_/_/_/_'  Opinions expressed may not be those of IBM

This is the Java Programming on and around the iSeries / AS400
(JAVA400-L) mailing list
To post a message email: JAVA400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l. 
If you are not an intended recipient of this e-mail, please notify the sender, 
delete it and do not read, act upon, print, disclose, copy, retain or 
redistribute it. Click here for important additional terms relating to this 
e-mail.     http://www.ml.com/email_terms/ 

This thread ...

Return to Archive home page | Return to MIDRANGE.COM home page