apache-tomcat-9.0.0.M20 java.lang.VerifyError: Jenis pulangan buruk
给我你的怀抱
给我你的怀抱 2017-05-17 10:02:15
0
1
926
严重: Servlet.service() for servlet [jsp] in context with path [] threw exception [java.lang.VerifyError: Bad return type
Exception Details:
  Location:
    org/apache/jasper/compiler/JspUtil.getInputStream(Ljava/lang/String;Lorg/apache/tomcat/Jar;Lorg/apache/jasper/JspCompilationContext;)Ljava/io/BufferedInputStream; @35: areturn
  Reason:
    Type 'java/io/InputStream' (current frame, stack[0]) is not assignable to 'java/io/BufferedInputStream' (from method signature)
  Current Frame:
    bci: @35
    flags: { }
    locals: { 'java/lang/String', 'org/apache/tomcat/Jar', 'org/apache/jasper/JspCompilationContext', 'java/io/InputStream' }
    stack: { 'java/io/InputStream' }
  Bytecode:
    0x0000000: 2b01 b803 a299 001f 2cb6 0368 b803 6e2b
    0x0000010: b903 7201 002a b603 754e 2d01 b803 a299
    0x0000020: 0005 2db0 014e 2bc6 001a 2a04 2ab6 0002
    0x0000030: b600 083a 042b 1904 b900 b802 004e a700
    0x0000040: 092c 2ab6 00b9 4e2d c700 17bb 00ba 5912
    0x0000050: bb2a b800 bcb7 00bd b803 a8c0 03aa bfbb
    0x0000060: 00be 592d 1104 00b7 00bf b0            
  Stackmap Table:
    same_frame(@36)
    append_frame(@65,Null)
    full_frame(@71,{Object[#16],Object[#650],Object[#652],Object[#421]},{})
    same_frame(@95)
] with root cause
java.lang.VerifyError: Bad return type
Exception Details:
  Location:
    org/apache/jasper/compiler/JspUtil.getInputStream(Ljava/lang/String;Lorg/apache/tomcat/Jar;Lorg/apache/jasper/JspCompilationContext;)Ljava/io/BufferedInputStream; @35: areturn
  Reason:
    Type 'java/io/InputStream' (current frame, stack[0]) is not assignable to 'java/io/BufferedInputStream' (from method signature)
  Current Frame:
    bci: @35
    flags: { }
    locals: { 'java/lang/String', 'org/apache/tomcat/Jar', 'org/apache/jasper/JspCompilationContext', 'java/io/InputStream' }
    stack: { 'java/io/InputStream' }
  Bytecode:
    0x0000000: 2b01 b803 a299 001f 2cb6 0368 b803 6e2b
    0x0000010: b903 7201 002a b603 754e 2d01 b803 a299
    0x0000020: 0005 2db0 014e 2bc6 001a 2a04 2ab6 0002
    0x0000030: b600 083a 042b 1904 b900 b802 004e a700
    0x0000040: 092c 2ab6 00b9 4e2d c700 17bb 00ba 5912
    0x0000050: bb2a b800 bcb7 00bd b803 a8c0 03aa bfbb
    0x0000060: 00be 592d 1104 00b7 00bf b0            
  Stackmap Table:
    same_frame(@36)
    append_frame(@65,Null)
    full_frame(@71,{Object[#16],Object[#650],Object[#652],Object[#421]},{})
    same_frame(@95)

    at org.apache.jasper.JspCompilationContext.getServletClassName(JspCompilationContext.java:353)
    at org.apache.jasper.JspCompilationContext.getClassFileName(JspCompilationContext.java:540)
    at org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:457)
    at org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:423)
    at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:593)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:368)
    at org.apache.jasper.servlet.JspServlet._serviceJspFile(JspServlet.java:385)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
    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:53)
    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:199)
    at org.apache.catalina.core.StandardContextValve.__invoke(StandardContextValve.java:96)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:80)
    at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:624)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
    at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:498)
    at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
    at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:796)
    at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1368)
    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:745)
    

Apabila menggunakan Tomcat9.0 dalam eclipse, pengecualian akan dilaporkan Jika anda menjalankan permulaan secara langsung, tidak akan ada ralat sedemikian


给我你的怀抱
给我你的怀抱

membalas semua(1)
滿天的星座

Adakah versi JDK dalam Eclipse berbeza daripada yang dilaksanakan oleh Tomcat, atau adakah versi kompilasi yang lebih rendah dalam Eclipse?

Muat turun terkini
Lagi>
kesan web
Kod sumber laman web
Bahan laman web
Templat hujung hadapan