This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Sockets and Internet Protocols and the fly likes HttpURLConnection null pointer exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "HttpURLConnection null pointer exception" Watch "HttpURLConnection null pointer exception" New topic
Author

HttpURLConnection null pointer exception

chop ficaro
Ranch Hand

Joined: May 02, 2010
Posts: 30
this code generally works (accesses thousands of urls successfully), but once in a while i get a null pointer exception on particular HttpURLConnections, and its always the same urls
for conciseness ive trunkated the code to only up to where the exception was thrown.

why could this possibly be happening?




Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19651
    
  18

Please CarefullyChooseOneForum. This question is completely not GUI related. I'm moving this thread to our sockets / Internet protocols forum.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
Don't get me started about those stupid light bulbs.
 
subject: HttpURLConnection null pointer exception
 
Similar Threads
Head First Java QuizCardBuilder not saving files correctly
An application talking to a Servlet... problem!
SocketException ?
Button click - String operation
SocketException ??