为了账号安全,请及时绑定邮箱和手机立即绑定

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

五月 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://img1.sycdn.imooc.com//572709510001a11808730255.jpg

正在回答

2 回答

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

0 回复 有任何疑惑可以回复我~

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

0 回复 有任何疑惑可以回复我~
#1

慕粉1651148

我的不行唉!删掉../就直接报不能获得资源,删掉..保留/就是空指针报错
2016-05-24 回复 有任何疑惑可以回复我~
#2

慕粉1651148

我搞好了,跟你说的应该没有关系吧,反正我用../这个表示没问题,我是因为在login.jsp中的爱好,我设置的name是"favorite",而在UserInfo中我写的是getParameter("favorites");因为这个导致了空指针异常的
2016-05-24 回复 有任何疑惑可以回复我~
#3

big0god 回复 慕粉1651148

老哥感谢你!!我的错误和你的一模一样!!哈哈哈 卡了我一个晚上!
2017-07-25 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
JAVA遇见HTML——Servlet篇
  • 参与学习       160616    人
  • 解答问题       1029    个

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

进入课程

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

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信