• 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

NNTP

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My code is stalling at this point in my program...


String response215 = in.readLine();
if (!response215.startsWith("215")) {
System.err.println("Protocol Error");
System.exit(1); }

System.out.println("check");

It never makes it to the SOP "check". Any ideas?
 
Greg Walker
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I figured out why it's stalling, it was the server "news.readfreenews.net".
I switched to a diff host server and my original code works, but now this code fails again at the same portion I already posted due to NNTP protocol command error. Now I have to figure out why the command failed (returned 503 instead of 215).
 
reply
    Bookmark Topic Watch Topic
  • New Topic