dcsimg
FileNotFoundException with multiple keywords
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   fellow_ls
Posted On:   Sunday, February 29, 2004 09:44 AM

With multiple keywords 'pi_keyword=account and manager',my program generates an error: java.io.FileNotFoundException. But the url works fine in IE address box. In addition, if only single keyword 'pi_keyword=account', my program works no problem. Any idea? Thanks. The following is my program: url= new URL(WebUtil.addHttp(_url)); con= (HttpURLConnection) url.openConnection(); java.io.InputStream uc= con.getInputStream();// <--cause the problem br= new BufferedReader(new InputStreamReader(uc)); //--------------------------------------- The full url is: http://jobs.workopolis.com/jobshome/db/work.process_job   More>>

With multiple keywords 'pi_keyword=account and manager',my program generates an error: java.io.FileNotFoundException.

But the url works fine in IE address box. In addition, if only single keyword 'pi_keyword=account', my program works no problem.

Any idea? Thanks.

The following is my program:

url= new URL(WebUtil.addHttp(_url));

con= (HttpURLConnection) url.openConnection();

java.io.InputStream uc= con.getInputStream();// <--cause the problem

br= new BufferedReader(new InputStreamReader(uc));

//---------------------------------------

The full url is:
http://jobs.workopolis.com/jobshome/db/work.process_job?pi_keyword=account and manager&pi_post_date=&pi_smart=N&pi_sort_col=&pi_employer=Dummy&pi_advertiser=Dummy&pi_category=Dummy&pi_industry=Dummy&pi_msg=LOCATION&pi_language=EN&pi_location=British Columbia

   <<Less

Re: FileNotFoundException with multiple keywords

Posted By:   fellow_ls  
Posted On:   Monday, March 1, 2004 08:02 AM

Solved.
About | Sitemap | Contact