Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v7.1
  HXTT Cobol v5.0
  HXTT DBF v7.1
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Excel v6.1
  HXTT Json v1.0
  HXTT Paradox v7.1
  HXTT PDF v2.0
  HXTT Text(CSV) v7.1
  HXTT Word v1.1
  HXTT XML v4.0
Offshore Outsourcing
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
   
   
   
Heng Xing Tian Tai Lab of Xi'an 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
 

Email: webmaster@hxtt.com
Copyright © 2003-2019 Heng Xing Tian Tai Lab of Xi'an City. | All Rights Reserved. | Privacy | Legal | Sitemap