USPS Shipping not Working from

I have tried to test the USPS shipping from the code available in the Sandbox, AD206.

I keep getting a java error on the attempt to OpenStream to the USPS server.

It appears that for some reason the Java is erroring on the URL. It was a

known bug in Pre 1.4.1 JVM that there could be an problem with

HttpURLConnection error handling. The problem was that only certain file types

(.html, .htm, .txt) that will not generate a FileNotFoundException if the

server returns a >400 response code.

[Bug

Report:
]http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4160499

Is this code failing because of inconsistencies with the JVM. I am using 6.5.3

which runs 1.3.1.

I have been able to point the code at other sites and it makes the

HttpConnection with out issue.

Any Ideas on what is happening here?

[Error from JavaConsole: :
]

http://Production.ShippingAPIs.com/ShippingAPI.dll?API=Rate&XML=<RateV2Request

USERID=‘MYUSERID’ PASSWORD=“MYPASSWORD”><Package

ID=“0”>PRIORITY10022<ZipDest

ination>20008105Fl

at Rate BoxREGULAR

java.io.FileNotFoundException:

http://Production.ShippingAPIs.com/ShippingAPI.dll?API=Rate&XML=<RateV2Request

USERID=‘MYUSERID’ PASSWORD=“MyPassword”><Package

ID=“0”>PRIORITY10022<ZipDest

ination>20008105Fl

at Rate BoxREGULAR

at

COM.ibm.JEmpower.applet.http.HttpURLConnection.getInputStream(HttpURLConnection.

java:459)

at java.net.URL.openStream(URL.java:826)

at URLLoader.load(URLLoader.java:19)

at JavaAgent.NotesMain(JavaAgent.java:129)

at lotus.domino.AgentBase.runNotes(Unknown Source)

at lotus.domino.NotesThread.run(NotesThread.java:215)

Subject: USPS Shipping not Working from

If you are using a GET (that is, the XML lives in the URL query string), then you need to ensure that the query string does not contain any illegal characters (such as spaces). Use the URLEncoder class to prepare the XML for use in the query string.