Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 46523 invoked from network); 16 May 2008 13:08:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 May 2008 13:08:45 -0000 Received: (qmail 8711 invoked by uid 500); 16 May 2008 13:08:44 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 8389 invoked by uid 500); 16 May 2008 13:08:44 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 8378 invoked by uid 99); 16 May 2008 13:08:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 May 2008 06:08:44 -0700 X-ASF-Spam-Status: No, hits=3.0 required=10.0 tests=SPF_NEUTRAL,SUBJECT_DRUG_GAP_L X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [64.97.136.129] (HELO n064.sc1.he.tucows.com) (64.97.136.129) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 May 2008 13:07:48 +0000 Received: from sc1-out03.emaildefenseservice.com (64.97.139.2) by n064.sc1.he.tucows.com (7.2.069.1) id 47697705014AE21D for dev@tomcat.apache.org; Fri, 16 May 2008 13:08:08 +0000 X-SpamScore: 2 X-Spamcatcher-Summary: 2,0,0,a9b48959aa9a0dab,0804c7f2f169f0e0,markt@apache.org,-,RULES_HIT:152:355:379:599:601:854:945:967:973:988:989:1187:1260:1261:1277:1311:1313:1314:1345:1358:1359:1437:1515:1516:1518:1534:1542:1593:1594:1676:1711:1730:1747:1766:1792:1801:2198:2199:2393:2525:2534:2553:2559:2563:2682:2685:2827:2857:2859:2933:2937:2939:2942:2945:2947:2951:2954:3022:3027:3352:3653:3865:3866:3867:3869:3870:3934:3936:3938:3941:3944:3947:3950:4605:5007:6117:6120:7652:7679:7875: 7903,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fu,MSBL:none,DNSBL:none,TSO:0 X-Spamcatcher-Explanation: Received: from [192.168.1.16] (host217-46-220-102.in-addr.btopenworld.com [217.46.220.102]) (Authenticated sender: med.thomas) by sc1-out03.emaildefenseservice.com (Postfix) with ESMTP for ; Fri, 16 May 2008 13:08:07 +0000 (UTC) Message-ID: <482D8733.1080802@apache.org> Date: Fri, 16 May 2008 14:08:03 +0100 From: Mark Thomas User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: Tomcat Developers List Subject: Re: svn commit: r656839 - in /tomcat/tc6.0.x/trunk: STATUS.txt java/org/apache/jasper/compiler/Validator.java webapps/docs/changelog.xml References: <20080515210847.AB0732388A12@eris.apache.org> <482D7F82.6020806@list-post.mks-mail.de> In-Reply-To: <482D7F82.6020806@list-post.mks-mail.de> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Markus Schönhaber wrote: > markt@apache.org wrote: > >> Modified: tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/Validator.java >> URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/Validator.java?rev=656839&r1=656838&r2=656839&view=diff >> ============================================================================== >> --- tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/Validator.java (original) >> +++ tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/Validator.java Thu May 15 14:08:47 2008 >> @@ -323,11 +323,12 @@ >> * >> * @throws JasperException in case of page encoding mismatch >> */ >> - private String comparePageEncodings(String pageDirEnc, >> + private String comparePageEncodings(String thePageDirEnc, >> Node.PageDirective pageDir) throws JasperException { >> >> Node.Root root = pageDir.getRoot(); >> - String configEnc = root.getJspConfigPageEncoding(); >> + String configEnc = root.getJspConfigPageEncoding().toUpperCase(); >> + String pageDirEnc = thePageDirEnc.toUpperCase(); >> >> /* >> * Compare the 'pageEncoding' attribute of the page directive with >> @@ -355,7 +356,7 @@ >> * identical. >> */ >> if ((root.isXmlSyntax() && root.isEncodingSpecifiedInProlog()) || root.isBomPresent()) { >> - String pageEnc = root.getPageEncoding(); >> + String pageEnc = root.getPageEncoding().toUpperCase(); >> if (!pageDirEnc.equals(pageEnc) >> && (!pageDirEnc.startsWith("UTF-16") || !pageEnc >> .startsWith("UTF-16"))) { > > While a build yesterday - without this change - works fine, a build with > the above patch applied fails to compile JSPs for me: > >> java.lang.NullPointerException >> at org.apache.jasper.compiler.Validator$DirectiveVisitor.comparePageEncodings(Validator.java:330) Yep, my bad. I'll take a look over the weekend. Fix should be simple. Mark --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org