Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0006060 [Resin] major always 05-02-17 15:23 06-01-17 15:47
Reporter mnsh View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version 4.0.52
Summary 0006060: UnsupportedOperationException: com.caucho.bytecode.MethodTypeConstant
Description A webapp that works fine on 4.0.51 breaks with an UnsupportedOperationException: com.caucho.bytecode.MethodTypeConstant under 4.0.52.

This happens while compiling a .tag file, possibly triggered by several static imports in it.
Additional Information Somewhat complete stack trace:
2017-05-30 23:28:17.023 59 CONFIG Compiling _jsp/_web_22dinf/_tags/_myapp/_head__tag.java
2017-05-30 23:28:17.282 59 WARNING java.lang.UnsupportedOperationException: com.caucho.bytecode.MethodTypeConstant
                                at com.caucho.bytecode.MethodTypeConstant.write(MethodTypeConstant.java:86)
                                at com.caucho.bytecode.ConstantPool.write(ConstantPool.java:666)
                                at com.caucho.bytecode.JavaClass.write(JavaClass.java:783)
                                at com.caucho.java.JavaCompilerUtil.mergeSmap(JavaCompilerUtil.java:802)
                                at com.caucho.java.JavaCompilerUtil.compileInt(JavaCompilerUtil.java:757)
                                at com.caucho.java.JavaCompilerUtil.compile(JavaCompilerUtil.java:620)
                                at com.caucho.java.JavaCompilerUtil.compile(JavaCompilerUtil.java:556)
                                at com.caucho.jsp.JspCompilerInstance.compileJava(JspCompilerInstance.java:774)
                                at com.caucho.jsp.JspCompilerInstance.completeTag(JspCompilerInstance.java:738)
                                at com.caucho.jsp.JspCompilerInstance.generateTag(JspCompilerInstance.java:707)
                                at com.caucho.jsp.JspCompilerInstance.compileTag(JspCompilerInstance.java:602)
                                at com.caucho.jsp.TagFileManager.getTag(TagFileManager.java:147)
                                at com.caucho.jsp.TagFileManager.getTag(TagFileManager.java:119)
                                at com.caucho.jsp.TagFileManager.getTag(TagFileManager.java:89)
                                at com.caucho.jsp.ParseTagManager.getTagImpl(ParseTagManager.java:111)
                                at com.caucho.jsp.ParseTagManager.getTag(ParseTagManager.java:81)
                                at com.caucho.jsp.java.JavaJspGenerator.getTag(JavaJspGenerator.java:2434)
                                at com.caucho.jsp.java.JavaJspBuilder.startElement(JavaJspBuilder.java:264)
                                at com.caucho.jsp.JspParser.parseOpenTag(JspParser.java:1346)
                                at com.caucho.jsp.JspParser.parseNode(JspParser.java:554)
                                at com.caucho.jsp.JspParser.parseJsp(JspParser.java:384)
                                at com.caucho.jsp.JspParser.parse(JspParser.java:266)
                                at com.caucho.jsp.JspCompilerInstance.parse(JspCompilerInstance.java:559)
                                at com.caucho.jsp.JspCompilerInstance.generate(JspCompilerInstance.java:495)
                                at com.caucho.jsp.JspCompilerInstance.compile(JspCompilerInstance.java:405)
                                at com.caucho.jsp.JspManager.compile(JspManager.java:286)
                                at com.caucho.jsp.JspManager.createPage(JspManager.java:192)
                                at com.caucho.jsp.JspManager.createPage(JspManager.java:173)
                                at com.caucho.jsp.PageManager.getPageEntry(PageManager.java:366)
                                at com.caucho.jsp.PageManager.getPage(PageManager.java:317)
                                at com.caucho.jsp.PageManager.getPage(PageManager.java:267)
                                at com.caucho.jsp.PageManager.getPage(PageManager.java:250)
                                at com.caucho.jsp.QServlet.getSubPage(QServlet.java:294)
                                at com.caucho.jsp.QServlet.getPage(QServlet.java:210)
                                at com.caucho.server.dispatch.PageFilterChain.compilePage(PageFilterChain.java:240)
                                at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:144)
                                at com.caucho.server.webapp.DispatchFilterChain.doFilter(DispatchFilterChain.java:131)
                                at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:290)
                                at com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:298)
                                at com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:116)
                                at myapp.SomeServlet.doPost(SomeServlet.java:293)
                                at javax.servlet.http.HttpServlet.service(HttpServlet.java:120)
                                at javax.servlet.http.HttpServlet.service(HttpServlet.java:97)
                                ... (a bunch of filters)
                                at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:89)
                                at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:156)
                                at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:290)
                                at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:838)
                                at com.caucho.network.listen.TcpSocketLink.dispatchRequest(TcpSocketLink.java:1353)
                                at com.caucho.network.listen.TcpSocketLink.handleRequest(TcpSocketLink.java:1309)
                                at com.caucho.network.listen.TcpSocketLink.handleRequestsImpl(TcpSocketLink.java:1293)
                                at com.caucho.network.listen.TcpSocketLink.handleRequests(TcpSocketLink.java:1201)
                                at com.caucho.network.listen.TcpSocketLink.handleAcceptTaskImpl(TcpSocketLink.java:997)
                                at com.caucho.network.listen.ConnectionTask.runThread(ConnectionTask.java:117)
                                at com.caucho.network.listen.ConnectionTask.run(ConnectionTask.java:93)
                                at com.caucho.network.listen.SocketLinkThreadLauncher.handleTasks(SocketLinkThreadLauncher.java:169)
                                at com.caucho.network.listen.TcpSocketAcceptThread.run(TcpSocketAcceptThread.java:61)
                                at com.caucho.env.thread2.ResinThread2.runTasks(ResinThread2.java:173)
                                at com.caucho.env.thread2.ResinThread2.run(ResinThread2.java:118)

Attached Files  b6060.jsp [^] (138 bytes) 05-02-17 16:27
 b6060-v2.jsp [^] (164 bytes) 05-02-17 16:51

- Relationships

- Notes
(0006754)
mnsh
05-02-17 16:38
edited on: 05-02-17 16:52

Update: error is not triggered by static imports but a java.util.function.Function field or variable in a jsp.

Use attached file (b6060-v2.jsp) to reproduce.

 
(0006757)
ferg
06-01-17 15:47

jsp/0223
 

- Issue History
Date Modified Username Field Change
05-02-17 15:23 mnsh New Issue
05-02-17 16:27 mnsh File Added: b6060.jsp
05-02-17 16:38 mnsh Note Added: 0006754
05-02-17 16:51 mnsh File Added: b6060-v2.jsp
05-02-17 16:52 mnsh Note Edited: 0006754
05-02-17 16:52 mnsh Issue Monitored: mnsh
06-01-17 15:47 ferg Note Added: 0006757
06-01-17 15:47 ferg Assigned To  => ferg
06-01-17 15:47 ferg Status new => closed
06-01-17 15:47 ferg Resolution open => fixed
06-01-17 15:47 ferg Fixed in Version  => 4.0.53


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
35 total queries executed.
27 unique queries executed.
Powered by Mantis Bugtracker