File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Sockets and Internet Protocols and the fly likes HttpURLConnection null pointer exception Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply 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: 19216

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
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HttpURLConnection null pointer exception
 
Similar Threads
An application talking to a Servlet... problem!
Button click - String operation
Head First Java QuizCardBuilder not saving files correctly
SocketException ?
SocketException ??