원인
: jsp 처리 중 예외 발생
자바 또는 SQL 또는 SERVER 설정 오류
해결법
: 이클립스 console에서 오류 확인 필수
- NullPointException 발생
11월 29, 2021 3:41:55 오후 org.apache.catalina.startup.VersionLoggerListener log
INFO: 서버 버전 이름: Apache Tomcat/8.5.73
11월 29, 2021 3:41:55 오후 org.apache.catalina.startup.VersionLoggerListener log
INFO: Server 빌드 시각: Nov 11 2021 13:14:36 UTC
11월 29, 2021 3:41:55 오후 org.apache.catalina.startup.VersionLoggerListener log
INFO: Server 버전 번호: 8.5.73.0
11월 29, 2021 3:41:55 오후 org.apache.catalina.startup.VersionLoggerListener log
INFO: 운영체제 이름: Windows 10
11월 29, 2021 3:41:55 오후 org.apache.catalina.startup.VersionLoggerListener log
INFO: 운영체제 버전: 10.0
11월 29, 2021 3:41:55 오후 org.apache.catalina.startup.VersionLoggerListener log
INFO: 아키텍처: amd64
11월 29, 2021 3:41:55 오후 org.apache.catalina.startup.VersionLoggerListener log
INFO: 자바 홈: C:\tools\eclipse-jee-2021-06-R-win32-x86_64\eclipse\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_16.0.1.v20210528-1205\jre
11월 29, 2021 3:41:55 오후 org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM 버전: 16.0.1+9-24
11월 29, 2021 3:41:55 오후 org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM 벤더: Oracle Corporation
11월 29, 2021 3:41:55 오후 org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_BASE: C:\workspace\Servlet_JSP\.metadata\.plugins\org.eclipse.wst.server.core\tmp1
11월 29, 2021 3:41:55 오후 org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_HOME: C:\tools\server\apache-tomcat-8.5.73
11월 29, 2021 3:41:55 오후 org.apache.catalina.startup.VersionLoggerListener log
INFO: 명령 행 아규먼트: -Dcatalina.base=C:\workspace\Servlet_JSP\.metadata\.plugins\org.eclipse.wst.server.core\tmp1
11월 29, 2021 3:41:55 오후 org.apache.catalina.startup.VersionLoggerListener log
INFO: 명령 행 아규먼트: -Dcatalina.home=C:\tools\server\apache-tomcat-8.5.73
11월 29, 2021 3:41:55 오후 org.apache.catalina.startup.VersionLoggerListener log
INFO: 명령 행 아규먼트: -Dwtp.deploy=C:\workspace\Servlet_JSP\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps
11월 29, 2021 3:41:55 오후 org.apache.catalina.startup.VersionLoggerListener log
INFO: 명령 행 아규먼트: --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
11월 29, 2021 3:41:55 오후 org.apache.catalina.startup.VersionLoggerListener log
INFO: 명령 행 아규먼트: --add-opens=java.base/java.io=ALL-UNNAMED
11월 29, 2021 3:41:55 오후 org.apache.catalina.startup.VersionLoggerListener log
INFO: 명령 행 아규먼트: --add-opens=java.base/java.util=ALL-UNNAMED
11월 29, 2021 3:41:55 오후 org.apache.catalina.startup.VersionLoggerListener log
INFO: 명령 행 아규먼트: --add-opens=java.base/java.util.concurrent=ALL-UNNAMED
11월 29, 2021 3:41:55 오후 org.apache.catalina.startup.VersionLoggerListener log
INFO: 명령 행 아규먼트: --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
11월 29, 2021 3:41:55 오후 org.apache.catalina.startup.VersionLoggerListener log
INFO: 명령 행 아규먼트: -Dfile.encoding=UTF-8
11월 29, 2021 3:41:55 오후 org.apache.catalina.startup.VersionLoggerListener log
INFO: 명령 행 아규먼트: -XX:+ShowCodeDetailsInExceptionMessages
11월 29, 2021 3:41:55 오후 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: 프로덕션 환경들에서 최적의 성능을 제공하는, APR 기반 Apache Tomcat Native 라이브러리가, 다음 java.library.path에서 발견되지 않습니다: [C:\tools\eclipse-jee-2021-06-R-win32-x86_64\eclipse\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_16.0.1.v20210528-1205\jre\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/tools/eclipse-jee-2021-06-R-win32-x86_64/eclipse//plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_16.0.1.v20210528-1205/jre/bin/server;C:/tools/eclipse-jee-2021-06-R-win32-x86_64/eclipse//plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_16.0.1.v20210528-1205/jre/bin;C:\oraclexe\app\oracle\product\11.2.0\server\bin;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\ojdkbuild\java-1.8.0-openjdk-1.8.0.302-1\bin;C:\Program Files (x86)\ojdkbuild\java-1.8.0-openjdk-1.8.0.302-1\jre\bin;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files\Azure Data Studio\bin;C:\Program Files\PuTTY\;C:\Program Files (x86)\IncrediBuild;C:\Users\User\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Bandizip\;C:\Users\User\AppData\Local\Programs\Microsoft VS Code\bin;C:\Program Files\Azure Data Studio\bin;C:\tools\eclipse-jee-2021-06-R-win32-x86_64\eclipse;;.]
11월 29, 2021 3:41:56 오후 org.apache.coyote.AbstractProtocol init
INFO: 프로토콜 핸들러 ["http-nio-8080"]을(를) 초기화합니다.
11월 29, 2021 3:41:56 오후 org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
11월 29, 2021 3:41:56 오후 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 653 ms
11월 29, 2021 3:41:56 오후 org.apache.catalina.core.StandardService startInternal
INFO: 서비스 [Catalina]을(를) 시작합니다.
11월 29, 2021 3:41:56 오후 org.apache.catalina.core.StandardEngine startInternal
INFO: 서버 엔진을 시작합니다: [Apache Tomcat/8.5.73]
11월 29, 2021 3:41:56 오후 org.apache.coyote.AbstractProtocol start
INFO: 프로토콜 핸들러 ["http-nio-8080"]을(를) 시작합니다.
11월 29, 2021 3:41:56 오후 org.apache.catalina.startup.Catalina start
INFO: Server startup in 499 ms
11월 29, 2021 4:08:47 오후 org.apache.catalina.core.ApplicationDispatcher invoke
SEVERE: 서블릿 [jsp]을(를) 위한 Servlet.service() 호출이 예외를 발생시켰습니다.
java.lang.NullPointerException: Cannot invoke "String.length()" because "str" is null
at org.apache.jsp.WEB_002dINF.views.EL.result_jsp._jspService(result_jsp.java:205)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:764)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:465)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:383)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:331)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:764)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:712)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:462)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:388)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:316)
at edu.kh.jsp.controller.ELResultServlet.doPost(ELResultServlet.java:36)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:681)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:764)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:196)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:542)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:698)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:364)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:624)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:831)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1673)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.base/java.lang.Thread.run(Thread.java:831)
11월 29, 2021 4:08:47 오후 org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: 경로 [/JSPProject]의 컨텍스트 내의 서블릿 [edu.kh.jsp.controller.ELResultServlet]을(를) 위한 Servlet.service() 호출이, 근본 원인(root cause)과 함께, 예외 [행 [73]에서 [/WEB-INF/views/EL/result.jsp]을(를) 처리하는 중 예외 발생
70: 1) JSP <br>
71: <% String str = request.getParameter("str"); %>
72: str : <%= str %> <br>
73: <%= str.length() %>
74:
75:
76: <br><br>
Stacktrace:]을(를) 발생시켰습니다.
java.lang.NullPointerException: Cannot invoke "String.length()" because "str" is null
at org.apache.jsp.WEB_002dINF.views.EL.result_jsp._jspService(result_jsp.java:205)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:764)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:465)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:383)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:331)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:764)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:712)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:462)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:388)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:316)
at edu.kh.jsp.controller.ELResultServlet.doPost(ELResultServlet.java:36)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:681)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:764)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:196)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:542)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:698)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:364)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:624)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:831)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1673)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.base/java.lang.Thread.run(Thread.java:831)
반응형
'Backend > Error' 카테고리의 다른 글
[Oracle] 계정 비밀번호 변경하기 (0) | 2022.01.03 |
---|---|
[Spring] Spring Legacy Project할 때 MVC Project 추가하는 법 (0) | 2022.01.02 |
[eclipse ::xml 에러] web-app에서 에러 (0) | 2021.11.29 |
[JSP 에러] 자식 컨테이너를 시작 중 실패했습니다. (0) | 2021.11.29 |
ORA-01034 : Oracle not available ) 에러 해결하기 (0) | 2021.11.28 |