| 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.
|
 |
 |
|
|
subject: servlet context listener problem
|
|
|