please, i need help with debugging this project. i have looking for all the code searching errors or something like this, but unsucessfuly. so i'm doing it (in a last desperate action), i'm posting my project here, i hope you guys could help me-pleaaaaaase -
so here is...
I think that you'll have much greater success on getting help if you do one of two things:
1) Pay a professional programmer to review and correct your project
2) (most likely the preferred solution) Greatly limit the scope of your question. For this I recommend isolating each error and creating a Short, Self Contained, Correct (Compilable), Example (SSCCE) based on each error. For info on just what an SSCCE represents, please look here.
i guess i founded where is the error, the error happens in my connection pool, because he returns a null pointer exception on the method getconexao, where happens the connection with the DataBase... i alredy saw my Context.xml and my Access class, but it looks fine. :S i'm starting to think that the problem is in my DB(MySql) config.
the Acesso Class :
and... the error :
HTTP Status 500 -
type Exception report
description The server encountered an internal error () that prevented it from fulfilling this request.
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.
PreparedStatement pstm = getConexao().prepareStatement(sql);
Is it that line which is giving the null pointer exception? Just check if the String is null.
its in another class.