*
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 Android Security Essentials Live Lessons this week in the Android 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: 19654
    
  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
 
It is sorta covered in the JavaRanch Style Guide.
 
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 ??