Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/318.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jsp/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
注册到我的web应用程序java时出错_Java_Jsp_Tomcat_Servlets - Fatal编程技术网

注册到我的web应用程序java时出错

注册到我的web应用程序java时出错,java,jsp,tomcat,servlets,Java,Jsp,Tomcat,Servlets,我有一个java web应用程序,允许用户搜索内容,当我尝试注册一个新用户时,我会收到以下消息 HTTP Status 500 – Internal Server Error Type Exception Report Description The server encountered an unexpected condition that prevented it from fulfilling the request. Exception java.lang.NullPointe

我有一个java web应用程序,允许用户搜索内容,当我尝试注册一个新用户时,我会收到以下消息

HTTP Status 500 – Internal Server Error

Type Exception Report

Description The server encountered an unexpected condition that prevented it from fulfilling the request.

Exception

java.lang.NullPointerException
    DBConnector.queries.selectUserNamePass(queries.java:30)
    Users.signupS.processRequest(signupS.java:42)
    Users.signupS.doPost(signupS.java:109)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
    org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
有人知道如何解决吗?

你有:

java.lang.NullPointerException
    DBConnector.queries.selectUserNamePass(queries.java:30)
所以打开这门课。在第30行或之前放置断点。然后在调试模式下运行应用程序,按F8键逐步运行。您将找到导致NullPointerException的原因。

有人知道如何解决它吗?即使看不到一点代码也很难帮助您。我们应该猜猜吗?