java - This SQL query over JDBC crashed the JVM, why? -
i have omitted actual select fields brevity, following query works:
select * my_db convert(termination_date, sql_varchar) null or (rehire_date > termination_date)"; this works fine.
this 1 literally crashes jvm:
select * my_db convert(termination_date, sql_varchar) null or (rehire_date > termination_date , convert(termination_date, sql_varchar) not null)"; i realize second query wrong, ran it, , crashed jvm instead of sql exception. repeatable every time. why?

this error occurs when program stops responding. if lock program long enough long query, error can occur.
the best way around use background thread run query , not run such long queries.
just in case jvm bug, make sure have latest patch of java version. however, given program works except 1 query suspect tying gui event thread long.
Comments
Post a Comment