This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman 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 Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "HttpURLConnection null pointer exception" Watch "HttpURLConnection null pointer exception" New topic

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

Joined: Oct 27, 2005
Posts: 19911

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

How To Ask Questions How To Answer Questions
I agree. Here's the link:
subject: HttpURLConnection null pointer exception