• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

servlet context listener problem

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
Check your Check.java...if possible then paste it here also

Thanks
 
Ranch Hand
Posts: 54
Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You are trying to use an object that has not been initialized with any reference, please check that.
 
sandeep pant
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 54
Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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

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



Thanks for information.
 
Greenhorn
Posts: 1
Netbeans IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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..
reply
    Bookmark Topic Watch Topic
  • New Topic