• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Java URL class bug

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I guess this is a bug in java.

I tried opening a page : http://nds1.nds.nokia.com/uaprof/N3250r100.xml. The page has UAProf info of Nokia 3250. It works and opens fine.

However the page http://nds1.nds.nokia.com/ does not. If you tried opening it from browser (Mozilla) it returns page not found and specifically says "The requested object does not exist on this server. The link you followed is either outdated, inaccurate, or the server has been instructed not to let you have it."

While trying to open the page with the following snippet

profile="http://nds1.nds.nokia.com/uaprof/N3250r100.xml";
URL url = new URL(profile);
SAXReader reader = new SAXReader();
Document doc = reader.read(url);

It throws an UnknownHostException.

How can I fetch this page without havign this error, there shld be a way to bye pass this.
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You should be very wary of shouting "BUG!". More than likely the problem is with your code or configuration. I don't have dom4j installed, but your code works fine if I substitute a plain InputStream for your SaxReader. Have you eliminated SaxReader as a possible cause? Do you happen to use a proxy to connect to the internet?

Oh, and please change your displayed name to conform to our naming policy. In short, your name must be a first and last name separated by a space and not obviously fake. Thanks!
[ January 23, 2007: Message edited by: Joe Ess ]
 
If somebody says you look familiar, tell them you are in porn. Or in these tiny ads:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic