I am getting some SQLExceptions in my Java 1.6- Oracle11g- JDBC (ie OJDBC6) code. But I am unable to see which line of code caused the problem.
How do I use Eclipse to find out which line of code was responsible for the problem ?
The output of my code –
Running main...
Exception- java.sql.SQLSyntaxErrorException: ORA-00911: invalid character
Exiting main...
Thanks.
PS- I don’t think it is necessary to put the code here. I only want to know which line was responsible and fix the code myself. I am trying to take as little extra help as I can.
I’m assuming exceptions are being caught somewhere in your main method? Wherever they are being caught do a
myException.printStackTrace(). Or else just run your code with the debugger and go through line by line to see where it screws up.