Hello, I am a Thai beginner and this is my test code.
I run my old code and it error 500.
I don't know how to fix it because last time i can run it and no error.
And i didn't change anything in my code, just run it again.
Other java class that use a model.user.findByUsername can run and no error.
I very confuse and try to fix it but i don't know how to do.
pls help me T_T
HTTP Status 500 -
--------------------------------------------------------------------------------
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
java.lang.NullPointerException
model.user.findByUsername(user.java:66)
model.user.add(user.java:87)
register.regis.processRequest(regis.java:53)
register.regis.doPost(regis.java:83)
javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)
note The full stack trace of the root cause is available in the Apache Tomcat/7.0.11 logs.
--------------------------------------------------------------------------------
http://www.4shared.com/file/DpV2cLzg/Register.html?
this is my code. it error when i submit register form.
a login form is no error, it can run normally.