#107: 投票問題


chest (資處科玟玟)

學校 : 高雄市私立樹德高級家事商業職業學校
編號 : 1173
來源 : [211.21.98.229]
最後登入時間 :
2020-05-15 13:46:14
. Unfinished! | From: [210.71.22.35] | 發表日期 : 2008-01-10 18:45

網頁發生錯誤:java.lang.NullPointerException

 

顯示例外堆疊追蹤:
idv.jiangsir.utils.CRUDVotelog.rebuiltUserDifficulity(CRUDVotelog.java:42)
idv.jiangsir.utils.CRUDVotelog.insertVotelog(CRUDVotelog.java:73)
idv.jiangsir.utils.controller.VoteServlet.doPost(VoteServlet.java:32)
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
idv.jiangsir.utils.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:44)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
idv.jiangsir.utils.filter.PreviousFilter.doFilter(PreviousFilter.java:19)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
java.lang.Thread.run(Thread.java:595)
 
#108: Re:投票問題


debugger (殺蟲劑)

學校 : 不指定學校
編號 : 1
來源 : [163.32.93.124]
最後登入時間 :
2023-10-31 17:39:44
. Unfinished! | From: [220.129.144.16] | 發表日期 : 2008-01-11 23:14

網頁發生錯誤:java.lang.NullPointerException

 

顯示例外堆疊追蹤:
idv.jiangsir.utils.CRUDVotelog.rebuiltUserDifficulity(CRUDVotelog.java:42)
idv.jiangsir.utils.CRUDVotelog.insertVotelog(CRUDVotelog.java:73)
idv.jiangsir.utils.controller.VoteServlet.doPost(VoteServlet.java:32)
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
idv.jiangsir.utils.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:44)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
idv.jiangsir.utils.filter.PreviousFilter.doFilter(PreviousFilter.java:19)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
java.lang.Thread.run(Thread.java:595)


很抱歉,最近在更新系統到 mysql 5

有些欄位的定義允許 null ,導致一些 NullPointerException 的問題...

謝謝提醒,已經改正囉~~~

 

 
ZeroJudge Forum