NullPointerException
import java.sql.*;
import java.util.*;
class JDBC_test
{
public static void main(String[] args)
{
Connection con ;
Statement stm ;
ResultSet rs;
String url ;
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
url = "jdbc:odbc:ymz";
con = DriverManager.getConnection(url);
stm = con.createStatement();
rs = stm.executeQuery("SELECT * FROM sysusers");
while(rs.next())
{
Vector vector = new Vector();
//System.out.println("OK");
for(int i=0;;i++)
{
vector.addElement(rs.getObject(i+1).toString());
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
}
//System.out.println("OK");
//System.out.println(vector);
}
/*
while(rs.next())
{
//int theInt = rs.getInt("uid");
String str = rs.getString("createdate");
System.out.println(str);
}
*/
}catch(Exception e){
e.printStackTrace();
}
}
}