From notifications-return-4991-archive-asf-public=cust-asf.ponee.io@freemarker.incubator.apache.org Sun Feb 4 10:39:09 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id 9C21918064A for ; Sun, 4 Feb 2018 10:39:09 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 8B907160C40; Sun, 4 Feb 2018 09:39:09 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id D35DA160C37 for ; Sun, 4 Feb 2018 10:39:08 +0100 (CET) Received: (qmail 61023 invoked by uid 500); 4 Feb 2018 09:39:08 -0000 Mailing-List: contact notifications-help@freemarker.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@freemarker.incubator.apache.org Delivered-To: mailing list notifications@freemarker.incubator.apache.org Received: (qmail 61014 invoked by uid 99); 4 Feb 2018 09:39:08 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Feb 2018 09:39:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 7A5661A0AF4 for ; Sun, 4 Feb 2018 09:39:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -102.311 X-Spam-Level: X-Spam-Status: No, score=-102.311 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id bGfsHtYMgZ4o for ; Sun, 4 Feb 2018 09:39:06 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 825315F29A for ; Sun, 4 Feb 2018 09:39:06 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 0F4F9E008D for ; Sun, 4 Feb 2018 09:39:06 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 1138D21E84 for ; Sun, 4 Feb 2018 09:39:02 +0000 (UTC) Date: Sun, 4 Feb 2018 09:39:00 +0000 (UTC) From: "Marko (JIRA)" To: notifications@freemarker.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FREEMARKER-88) ClassCastException - freemarker.ext.jsp.JspTagModelBase MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FREEMARKER-88?page=3Dcom.atlass= ian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1= 6351710#comment-16351710 ]=20 Marko commented on FREEMARKER-88: --------------------------------- Great, thank you! > ClassCastException - freemarker.ext.jsp.JspTagModelBase > ------------------------------------------------------- > > Key: FREEMARKER-88 > URL: https://issues.apache.org/jira/browse/FREEMARKER-88 > Project: Apache Freemarker > Issue Type: Bug > Components: jsp > Affects Versions: 2.3.27-incubating > Reporter: Marko > Priority: Major > Fix For: 2.3.28-incubating > > Attachments: freemarker_88_01.jpg > > > calling jsp from ftl with an invalid reference is causing an _freemarker.= core.InvalidReferenceException_=C2=A0which is not handled properly. > {code:java} > Caused by: java.lang.ClassCastException: freemarker.core.InvalidReference= Exception cannot be cast to freemarker.template.TemplateModelException > at freemarker.ext.jsp.JspTagModelBase.toTemplateModelExceptionOrR= ethrow(JspTagModelBase.java:146) ~[freemarker-2.3.27-incubating.jar:2.3.27] > at freemarker.ext.jsp.SimpleTagDirectiveModel.execute(SimpleTagDi= rectiveModel.java:98) ~[freemarker-2.3.27-incubating.jar:2.3.27] > at freemarker.core.Environment.visit(Environment.java:440) ~[free= marker-2.3.27-incubating.jar:2.3.27] > at freemarker.core.UnifiedCall.accept(UnifiedCall.java:101) ~[fre= emarker-2.3.27-incubating.jar:2.3.27] > at freemarker.core.Environment.visit(Environment.java:325) ~[free= marker-2.3.27-incubating.jar:2.3.27] > at freemarker.core.Environment.visit(Environment.java:331) ~[free= marker-2.3.27-incubating.jar:2.3.27] > at freemarker.core.Environment.process(Environment.java:304) ~[fr= eemarker-2.3.27-incubating.jar:2.3.27] > {code} > Environment: Java 1.8.0_152 64Bit, Win7 x64, Tomcat 7.0.82 -- This message was sent by Atlassian JIRA (v7.6.3#76005)