Hi,
It would be kind if anybody could tell me why i am getting :java.io.FileNotFoundException:
on line
InputStream in = uConnect.getInputStream();
-----------------------------------------------
I am created a URL object and passing that URL object in a URLConnection object.
String page_to_connect = "http://cd2iis02/inbi/admin/updatestatus.cfm?domain="+sdomain_name+"&requestid="+sreq_id+"&status="+status+"&msg="+ smessage;
URL serverUrl = new URL(page_to_connect);
URLConnection uConnect = serverUrl.openConnection();
uConnect.setDoOutput(true);
uConnect.setUseCaches(false);
PrintStream out = new PrintStream(uConnect.getOutputStream());
out.close();
//Filenotfound exception is thrown at the below line**
InputStream in = uConnect.getInputStream();// error at this line
StringBuffer response = new StringBuffer();
int chr;
while((chr=in.read())!=-1) { // this is line number 94
response.append((char)chr);
}
in.close();
String sResponse = response.toString();
Can anyone tell me why is this exception coming ,Its not finding the file . Is there any way to rectify this error.
Any replies will be appreciated
Thanks
Regards,
John