搜尋

首頁  >  問答  >  主體

apache-tomcat-9.0.0.M20 java.lang.VerifyError:回傳類型錯誤

严重: 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)
    

在eclipse使用Tomcat9.0會報異常,直接startup 運行沒有這種錯誤


给我你的怀抱给我你的怀抱2752 天前932

全部回覆(1)我來回復

  • 滿天的星座

    滿天的星座2017-05-17 10:04:15

    Eclipse 中的JDK 版本是否與 Tomcat 執行時不同,或是在Eclipse中是否有降低編譯版本!

    回覆
    0
  • 取消回覆