Hi All,
I need a small help.I am getting java.lang.null pointer exception.
Here is my code snippet.
Class.forName("com.hxtt.sql.excel.ExcelDriver").newInstance();
String s="e:/adwords.xls";
String url="jdbc:excel:////"+filename+" ";
c = DriverManager.getConnection(url, "", "");
stmnt = c.createStatement();
String query = "Select * from Sheet1";
ResultSet rs = stmnt.executeQuery( query );
Here i am getting null pointer exception like this at java.sql.SQLException: java.lang.NullPointerException
at com.hxtt.sql.excel.ca.a(Unknown Source)
at com.hxtt.sql.excel.a9.a(Unknown Source)
at com.hxtt.sql.excel.a9.a(Unknown Source)
at com.hxtt.sql.ce.a(Unknown Source)
at com.hxtt.sql.aw.F(Unknown Source)
at com.hxtt.sql.dc.a(Unknown Source)
at com.hxtt.sql.dc.a(Unknown Source)
at com.hxtt.sql.bm.a(Unknown Source)
at com.hxtt.sql.bm.a(Unknown Source)
at com.hxtt.sql.ag.a(Unknown Source)
at com.hxtt.sql.ag.a(Unknown Source)
I didnot understand whether it is a file problem or not?.Please help me how i can resolve this problem?. Same code is working fine using JDBC-ODBC Driver.
Thanking you in Advance.
Regards,
Rama
|
You can zip and upload adwords.xls into:
ftp site: ftp.hxtt.com
ftp user: anonymous@hxtt.com
ftp password: (empty)
login mode: normal (not anonymous)
ftp port:21
upload directory: incoming
transer mode: binary (not ASCII)
After upload, you can't see that upload file, but it has been upload.
You can choose to zip and email it to webmaster@hxtt.com too.
|
Hi All,
Thanks for your response.we have uploaded the adwords.xls in zip format in the address specified by you.we are waiting for your response.
Thanking You
Regards,
Rama.
|
Failed to recur your issue. Maybe you're using an old package. Please download the latest package.
|