Use Exception Handling to trace the error.
Find the function in which you are getting the error.

From the code I see only 1 problem; syntax error in below line.
String orasel="select *from T6";

Correct code:
String orasel="select * from T6";