Quantcast

$import.read("...") method get

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

$import.read("...") method get

chri6033
This post has NOT been accepted by the mailing list yet.
Migrating to tomcat 7 from tomcat 6 in my application i get a runtime exception with instruction

$import.read("/html/common/messages_inc.jsp").

Here the stack Trace. Any idea (code is not changed)?



org.apache.velocity.exception.MethodInvocationException: Invocation of method 'read' in  class org.apache.velocity.tools.view.tools.ImportTool threw exception java.lang.AbstractMethodError at static/preview_mode/preview_mode_controls.vl[line 8, column 9]
        at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:267)
        at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:192)
        at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:285)
        at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:374)
        at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:334)
        at org.apache.velocity.runtime.directive.Parse.render(Parse.java:264)
        at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:213)
        at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:334)
        at org.apache.velocity.Template.merge(Template.java:362)
        at org.apache.velocity.Template.merge(Template.java:265)
        at com.dotmarketing.velocity.VelocityServlet.doEditMode(VelocityServlet.java:1013)
        at com.dotmarketing.velocity.VelocityServlet.service(VelocityServlet.java:228)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:747)
        at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:485)
        at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:410)
        at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:337)
        at com.dotmarketing.filters.CMSFilter.doFilter(CMSFilter.java:567)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at com.dotmarketing.filters.AutoLoginFilter.doFilter(AutoLoginFilter.java:61)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at com.dotmarketing.cms.urlmap.filters.URLMapFilter.doFilter(URLMapFilter.java:379)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at com.dotmarketing.filters.TimeMachineFilter.doFilter(TimeMachineFilter.java:162)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at com.dotmarketing.filters.CharsetEncodingFilter.doFilter(CharsetEncodingFilter.java:163)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423)
        at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:190)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)
        at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.AbstractMethodError
Caused by: java.lang.AbstractMethodError
        at javax.servlet.ServletRequestWrapper.isAsyncStarted(ServletRequestWrapper.java:396)
        at org.apache.catalina.core.ApplicationDispatcher.unwrapRequest(ApplicationDispatcher.java:845)
        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:821)
        at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:603)
        at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:542)
        at org.apache.velocity.tools.view.ImportSupport.acquireString(ImportSupport.java:144)
        at org.apache.velocity.tools.view.tools.ImportTool.read(ImportTool.java:88)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:372)
        at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:361)
        at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:178)
        ... 50 more
Loading...