This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes JSP and the fly likes servlet context listener problem Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSP
Reply 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: 50

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: 50

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

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


Thanks for information.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: servlet context listener problem
 
Similar Threads
compilation error of servlet
HTTP Status 405 - HTTP method GET is not supported by this URL
cannot find symbol
JSP, Solr - How to get fields from an Interator
newbie question about servlets calling methods