File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes servlet context listener problem 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 » JSP
Bookmark "servlet context listener problem" Watch "servlet context listener problem" New topic
Author

servlet context listener problem

sandeep pant
Greenhorn

Joined: Feb 19, 2011
Posts: 2
hi


_______________________________________________________________________________________________
i am trying to read content from a text file
but it is giving this error


java.lang.NullPointerException
at Check.check.doPost(check.java:92)


content of leagues.txt file is

1 sandeep summer
Goutam Chowdhury
Ranch Hand

Joined: Jan 20, 2009
Posts: 44
hi,
Check your Check.java...if possible then paste it here also

Thanks


Thanks And Regards
Goutam Chowdhury (Scjp1.4 86%,SCWCD5 94%)
Deepakkumar Devarajan
Ranch Hand

Joined: Apr 19, 2011
Posts: 54

You are trying to use an object that has not been initialized with any reference, please check that.


Regards,
Deepakkumar Devarajan
sandeep pant
Greenhorn

Joined: Feb 19, 2011
Posts: 2
Deepakkumar Devarajan wrote:You are trying to use an object that has not been initialized with any reference, please check that.

thank you for your help
i have sorted this problem
String[] fields =record.split("\t");

used " " instead of "\t" and it worked
Deepakkumar Devarajan
Ranch Hand

Joined: Apr 19, 2011
Posts: 54

sandeep pant wrote:
i have sorted this problem
String[] fields =record.split("\t");

used " " instead of "\t" and it worked


Thanks for information.
sargam dhamija
Greenhorn

Joined: Aug 17, 2013
Posts: 1

Hi i am still running this program but getting null while trying to insert the year season and title values
even I set the empty file"leagues.txt" to database using function open as by right click on it, Now its showing it as database...please let me know a solution..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: servlet context listener problem
 
Similar Threads
HTTP Status 405 - HTTP method GET is not supported by this URL
JSP, Solr - How to get fields from an Interator
newbie question about servlets calling methods
compilation error of servlet
cannot find symbol