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 exception error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "exception error" Watch "exception error" New topic
Author

exception error

mj zammit
Ranch Hand

Joined: Nov 16, 2008
Posts: 49
when i come to doing the following code:



i get the following error:
Exception: java.lang.NullPointerException

what does this mean?
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8709
    
    6

Is this a continuation of your previous topic?
NullPointerException means you tried to invoke a method on an object reference that has not been initialized. If you print the exception stack trace (there's a method in Exception that does it) it will tell you what line the exception occurred on.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
mj zammit
Ranch Hand

Joined: Nov 16, 2008
Posts: 49
yes yes it does continue from the previous topic.
I found out why it was not outputting the results
now i am trying to fix it...
I shall try out what you have suggested...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: exception error
 
Similar Threads
throws Error
Catching Exceptions
Exception
Why so many Exception Handling classes ?
Regex help