본문 바로가기
개발/java

gsjava org.apache.coyote.http11.Http11Processor.service Error processing request

by 철권 2020. 1. 31.
728x90

31-Jan-2020 14:57:55.936 심각 [http-nio-80-exec-3] org.apache.coyote.http11.Http11Processor.service Error processing request
 java.lang.NullPointerException
        at org.apache.tomcat.util.buf.CharChunk.append(CharChunk.java:256)
        at org.apache.catalina.mapper.Mapper.map(Mapper.java:694)
        at org.apache.catalina.connector.CoyoteAdapter.postParseRequest(CoyoteAdapter.java:679)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:336)
        at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803)
        at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
        at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:790)
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1459)
        at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
        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:748)

한마디로, Catalina에 defaultHost로 지정한 Host가 null이어서 찍힌 로그

<Engine name="Catalina" defaultHost="localhost">

    <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true"></Host>

예외를 없애려면 server.xml  안에 <Host name="localhost"></Host> 를 내용에 맞게 추가

 

 

728x90
반응형

'개발 > java' 카테고리의 다른 글

gsjava 오늘 날짜 구하기 자바스크립트  (0) 2021.02.10
gsjava string 0으로 채워서 만들기  (0) 2020.02.03
gsjava 코딩시 취약점  (0) 2020.01.28
gsjava byte -> String 변환  (0) 2019.12.01
gsjava c++ memcpy 와 비슷한 함수  (0) 2019.12.01