Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v5.2
  HXTT Cobol v2.1
  HXTT DBF v5.2
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Excel v4.2
  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 DBF
_memory_ java.lang.NullPointerException
Diego Rivero
2008-10-09 05:23:19.0
Im testing the creation of "memory" tables and This is the code that im trying to execute:

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.Statement;
public class PruebaCursor {
public static void main(String[] args) {
Connection con = null;
Statement stmt = null;
int create = 0;
String texto = "";
try{
Class.forName("com.hxtt.sql.dbf.DBFDriver").newInstance();
con = DriverManager.getConnection("jdbc:dbf:/_memory_/");
stmt = con.createStatement();
texto = "CREATE TABLE CLIENTE (nombre CHAR(20), apellido CHAR(20))";
create = stmt.executeUpdate(texto);
System.out.println(texto + " - > " + create);
} catch (InstantiationException e1) {
e1.printStackTrace();
} catch (IllegalAccessException e1) {
e1.printStackTrace();
} catch (ClassNotFoundException e1) {
e1.printStackTrace();
}catch (SQLException e) {
e.printStackTrace();
}
}
}

And this is the Exception that i dont know why it is happening.

java.sql.SQLException: java.lang.NullPointerException
at com.hxtt.concurrent.ay.a(Unknown Source)
at com.hxtt.concurrent.b.o(Unknown Source)
at com.hxtt.concurrent.t.do(Unknown Source)
at com.hxtt.concurrent.t.if(Unknown Source)
at com.hxtt.concurrent.t.a(Unknown Source)
at com.hxtt.concurrent.t.a(Unknown Source)
at com.hxtt.sql.dbf.i.a(Unknown Source)
at com.hxtt.sql.dbf.u.a(Unknown Source)
at com.hxtt.sql.de.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)
at com.hxtt.sql.ag.a(Unknown Source)
at com.hxtt.sql.ag.executeUpdate(Unknown Source)
at PruebaCursor.main(PruebaCursor.java:36)
at com.hxtt.global.SQLState.SQLException(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)
at com.hxtt.sql.ag.a(Unknown Source)
at com.hxtt.sql.ag.executeUpdate(Unknown Source)
at PruebaCursor.main(PruebaCursor.java:36)

I would like to know if im forget it something to use memory tables.
Thanks.
Re:_memory_ java.lang.NullPointerException
HXTT Support
2008-10-09 21:40:14.0
Thanks. Fixed a bug which was resulted by code optimization. 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