按照老师写的空指针异常?

来源:1-11 Servlet获取表单数据

风陵渡9

2016-05-02 16:01

五月 02, 2016 3:59:11 下午 org.apache.catalina.core.AprLifecycleListener init

信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.8.0_73\bin;C:\software\MyEclipse 2015\plugins\com.genuitec.eclipse.server.embedded.tomcat.core_13.0.0.me201503191638\tomcat70\bin

五月 02, 2016 3:59:12 下午 org.apache.coyote.AbstractProtocol init

信息: Initializing ProtocolHandler ["http-bio-8080"]

五月 02, 2016 3:59:12 下午 org.apache.coyote.AbstractProtocol init

信息: Initializing ProtocolHandler ["ajp-bio-8009"]

五月 02, 2016 3:59:12 下午 org.apache.catalina.startup.Catalina load

信息: Initialization processed in 698 ms

五月 02, 2016 3:59:12 下午 org.apache.catalina.core.StandardService startInternal

信息: Starting service Catalina

五月 02, 2016 3:59:12 下午 org.apache.catalina.core.StandardEngine startInternal

信息: Starting Servlet Engine: Apache Tomcat/7.0.56

五月 02, 2016 3:59:12 下午 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deploying web application directory D:\myeclipse\.metadata\.me_tcat7\webapps\bootsrop

五月 02, 2016 3:59:13 下午 org.apache.catalina.util.SessionIdGenerator createSecureRandom

信息: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [110] milliseconds.

五月 02, 2016 3:59:13 下午 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deployment of web application directory D:\myeclipse\.metadata\.me_tcat7\webapps\bootsrop has finished in 719 ms

五月 02, 2016 3:59:13 下午 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deploying web application directory D:\myeclipse\.metadata\.me_tcat7\webapps\cookieDome1

五月 02, 2016 3:59:13 下午 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deployment of web application directory D:\myeclipse\.metadata\.me_tcat7\webapps\cookieDome1 has finished in 203 ms

五月 02, 2016 3:59:13 下午 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deploying web application directory D:\myeclipse\.metadata\.me_tcat7\webapps\cookieDome2

五月 02, 2016 3:59:13 下午 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deployment of web application directory D:\myeclipse\.metadata\.me_tcat7\webapps\cookieDome2 has finished in 188 ms

五月 02, 2016 3:59:13 下午 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deploying web application directory D:\myeclipse\.metadata\.me_tcat7\webapps\docs

五月 02, 2016 3:59:13 下午 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deployment of web application directory D:\myeclipse\.metadata\.me_tcat7\webapps\docs has finished in 34 ms

五月 02, 2016 3:59:13 下午 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deploying web application directory D:\myeclipse\.metadata\.me_tcat7\webapps\examples

五月 02, 2016 3:59:13 下午 org.apache.catalina.core.ApplicationContext log

信息: ContextListener: contextInitialized()

五月 02, 2016 3:59:13 下午 org.apache.catalina.core.ApplicationContext log

信息: SessionListener: contextInitialized()

五月 02, 2016 3:59:13 下午 org.apache.catalina.core.ApplicationContext log

信息: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@412fd0e0')

五月 02, 2016 3:59:13 下午 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deployment of web application directory D:\myeclipse\.metadata\.me_tcat7\webapps\examples has finished in 281 ms

五月 02, 2016 3:59:13 下午 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deploying web application directory D:\myeclipse\.metadata\.me_tcat7\webapps\host-manager

五月 02, 2016 3:59:13 下午 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deployment of web application directory D:\myeclipse\.metadata\.me_tcat7\webapps\host-manager has finished in 62 ms

五月 02, 2016 3:59:13 下午 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deploying web application directory D:\myeclipse\.metadata\.me_tcat7\webapps\htmluilt

五月 02, 2016 3:59:14 下午 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deployment of web application directory D:\myeclipse\.metadata\.me_tcat7\webapps\htmluilt has finished in 110 ms

五月 02, 2016 3:59:14 下午 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deploying web application directory D:\myeclipse\.metadata\.me_tcat7\webapps\javabeansdemo

五月 02, 2016 3:59:14 下午 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deployment of web application directory D:\myeclipse\.metadata\.me_tcat7\webapps\javabeansdemo has finished in 140 ms

五月 02, 2016 3:59:14 下午 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deploying web application directory D:\myeclipse\.metadata\.me_tcat7\webapps\JspLoginDemoByModel1

五月 02, 2016 3:59:14 下午 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deployment of web application directory D:\myeclipse\.metadata\.me_tcat7\webapps\JspLoginDemoByModel1 has finished in 125 ms

五月 02, 2016 3:59:14 下午 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deploying web application directory D:\myeclipse\.metadata\.me_tcat7\webapps\jspViewListDeam

五月 02, 2016 3:59:14 下午 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deployment of web application directory D:\myeclipse\.metadata\.me_tcat7\webapps\jspViewListDeam has finished in 188 ms

五月 02, 2016 3:59:14 下午 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deploying web application directory D:\myeclipse\.metadata\.me_tcat7\webapps\manager

五月 02, 2016 3:59:14 下午 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deployment of web application directory D:\myeclipse\.metadata\.me_tcat7\webapps\manager has finished in 47 ms

五月 02, 2016 3:59:14 下午 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deploying web application directory D:\myeclipse\.metadata\.me_tcat7\webapps\myFirstWebApp

五月 02, 2016 3:59:14 下午 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deployment of web application directory D:\myeclipse\.metadata\.me_tcat7\webapps\myFirstWebApp has finished in 127 ms

五月 02, 2016 3:59:14 下午 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deploying web application directory D:\myeclipse\.metadata\.me_tcat7\webapps\myJspViewListDeam

五月 02, 2016 3:59:14 下午 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deployment of web application directory D:\myeclipse\.metadata\.me_tcat7\webapps\myJspViewListDeam has finished in 172 ms

五月 02, 2016 3:59:14 下午 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deploying web application directory D:\myeclipse\.metadata\.me_tcat7\webapps\myServletDemoByMyeclipse

五月 02, 2016 3:59:14 下午 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deployment of web application directory D:\myeclipse\.metadata\.me_tcat7\webapps\myServletDemoByMyeclipse has finished in 109 ms

五月 02, 2016 3:59:14 下午 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deploying web application directory D:\myeclipse\.metadata\.me_tcat7\webapps\myServletforminfoDemo

五月 02, 2016 3:59:15 下午 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deployment of web application directory D:\myeclipse\.metadata\.me_tcat7\webapps\myServletforminfoDemo has finished in 141 ms

五月 02, 2016 3:59:15 下午 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deploying web application directory D:\myeclipse\.metadata\.me_tcat7\webapps\ROOT

五月 02, 2016 3:59:15 下午 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deployment of web application directory D:\myeclipse\.metadata\.me_tcat7\webapps\ROOT has finished in 46 ms

五月 02, 2016 3:59:15 下午 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deploying web application directory D:\myeclipse\.metadata\.me_tcat7\webapps\servletDemoByMyeclipse

五月 02, 2016 3:59:15 下午 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deployment of web application directory D:\myeclipse\.metadata\.me_tcat7\webapps\servletDemoByMyeclipse has finished in 250 ms

五月 02, 2016 3:59:15 下午 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deploying web application directory D:\myeclipse\.metadata\.me_tcat7\webapps\ServletGetFormInfoDemo

五月 02, 2016 3:59:15 下午 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deployment of web application directory D:\myeclipse\.metadata\.me_tcat7\webapps\ServletGetFormInfoDemo has finished in 157 ms

五月 02, 2016 3:59:15 下午 org.apache.coyote.AbstractProtocol start

信息: Starting ProtocolHandler ["http-bio-8080"]

五月 02, 2016 3:59:15 下午 org.apache.coyote.AbstractProtocol start

信息: Starting ProtocolHandler ["ajp-bio-8009"]

五月 02, 2016 3:59:15 下午 org.apache.catalina.startup.Catalina start

信息: Server startup in 3191 ms

java.lang.NullPointerException

at servlet.RegServlet.doPost(RegServlet.java:89)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)

at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)

at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)

at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)

at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)

at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)

at java.lang.Thread.run(Thread.java:745)

http://img.mukewang.com/572709510001a11808730255.jpg

写回答 关注

2回答

  • 连宏伟HW
    2016-07-16 10:26:35

    未必就是那样子的,那个../表示上层目录

  • 风陵渡9
    2016-05-02 16:29:43

    自己解决了 不要../就好了,不清楚为什么会这样,求大神解释下

    big0go... 回复慕粉1651...

    老哥感谢你!!我的错误和你的一模一样!!哈哈哈 卡了我一个晚上!

    2017-07-25 00:59:53

    共 3 条回复 >

JAVA遇见HTML——Servlet篇

本门课程在JSP课程的基础上,深入介绍Servlet的基础知识

160613 学习 · 1029 问题

查看课程

相似问题