Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to solve NullpointerException  RSS feed

saravanan rajendran
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, i hardly trying this using fileInputStream retrieve a xls file from particular directory like /var/www/html/sara/book1.xls i getting nullpointer exception


conn = DriverManager.getConnection("jdbc dbc river={Microsoft Excel Driver ( *.xls)};DBQ=" + dis);//file name i given has dis this only giving nullpointer exception please see my below code you will get full flow

please see below code:

I am very thank full if you solved that problem please help me

JCE: Please use code tags in the future
[ August 07, 2008: Message edited by: Joe Ess ]
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!