Security Exception - TechRepublic
General discussion
August 19, 2002 at 08:37 PM
peter

Security Exception

by peter . Updated 23 years, 3 months ago

Dear all,

I am developing an wireless application using J2ME and NTT DoCoMo

I want to read one text file using HttpConnection, but it is throwing
“security exception” saying package URL mismatch.The code is like this.

HttpConnection hc
=(HttpConnection)Connector.open(“http://perumal:80/values.csv”);
InputStream is = hc.openInputStream();

The first line of the code is throwing exception. I have handled all the
exceptions. still I could not able to solve it.

I want your guidance in this regards

regards
peter

This discussion is locked

All Comments