Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v5.2
  HXTT Cobol v2.1
  HXTT DBF v5.2
  HXTT Excel v4.2
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Paradox v5.2
  HXTT Text(CSV) v5.2
  HXTT XML v1.2
Offshore Outsourcing
Oracle Data Import/Export
DB2 Data Import/Export
Sybase Data Import/Export
Free Resources
  Firewall Tunneling
  Search Indexing Robot
  Conditional Compilation
  Password Recovery for MS Access
  Password Recovery for Corel Paradox
  Checksum Tool for MD5
  Character Set Converter
  Pyramid - Poker of ZYH
   
   
   
Hongxin Technology & Trade Ltd. of Xiangtan City (abbr, HXTT)

HXTT Excel
Getting Null Pointer Exception
rama
2007-09-26 06:37:40.0
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










Re:Getting Null Pointer Exception
HXTT Support
2007-09-26 07:05:06.0
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.
Re:Re:Getting Null Pointer Exception
Rama
2007-09-26 21:42:05.0
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.
Re:Re:Re:Getting Null Pointer Exception
HXTT Support
2007-09-26 22:15:53.0
Failed to recur your issue. Maybe you're using an old package. Please download the latest package.

Search Key   Search by Last 50 Questions




Google
 

Address: 9 Station Rd., Xiangtan City, Hunan Province, P.R. China
Postcode: 411100
Phone: (86)731-58225727
Fax: (86)731-58225727
Email: webmaster@hxtt.com
Copyright © 1999-2011 Hongxin Technology & Trade Ltd. | All Rights Reserved. | Privacy | Legal | Sitemap