hello i am trying to get resultset from
java.sql.Reultset resultset =java.sql.DatabaseMetaData.getTables(null,null,null,null);
for the Excel file having size 34.0 Mb in that its giving me sqlException
as:
"Timeout Interrupted Exception: beyond 1000 msecs to open a database of SALES nested exception is: java.sql.SQLException: Timeout Interrupted Exception: beyond 1000 msecs to open a database of SALES."
and after that if i try to get result set from a small size of file then also its giving me same Exception
|
Maybe your xls file has some unknown information for HXTT Excel. You can use the following code to see the detailed error message.
catch( SQLException sqle )
{
do
{
System.out.println(sqle.getMessage());
System.out.println("Error Code:"+sqle.getErrorCode());
System.out.println("SQL State:"+sqle.getSQLState());
sqle.printStackTrace();
}while((sqle=sqle.getNextException())!=null);
}
|