From adffaces-user-return-2166-apmail-incubator-adffaces-user-archive=incubator.apache.org@incubator.apache.org Thu Feb 15 10:16:48 2007 Return-Path: Delivered-To: apmail-incubator-adffaces-user-archive@locus.apache.org Received: (qmail 11276 invoked from network); 15 Feb 2007 10:16:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Feb 2007 10:16:48 -0000 Received: (qmail 70505 invoked by uid 500); 15 Feb 2007 10:16:56 -0000 Delivered-To: apmail-incubator-adffaces-user-archive@incubator.apache.org Received: (qmail 70484 invoked by uid 500); 15 Feb 2007 10:16:55 -0000 Mailing-List: contact adffaces-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: adffaces-user@incubator.apache.org Delivered-To: mailing list adffaces-user@incubator.apache.org Received: (qmail 70475 invoked by uid 99); 15 Feb 2007 10:16:55 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Feb 2007 02:16:55 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of mwessendorf@gmail.com designates 64.233.182.188 as permitted sender) Received: from [64.233.182.188] (HELO nf-out-0910.google.com) (64.233.182.188) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Feb 2007 02:16:45 -0800 Received: by nf-out-0910.google.com with SMTP id d4so1072124nfe for ; Thu, 15 Feb 2007 02:16:24 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=VIgvtjoP2oEfkUNvlXmW/sQhaFTueLdC2B9Cvp3jsfahMe76YEyaw8llCnw/mWJLmac4P0VBWpJ7RrkgpWOPiGO36RNmucO8KiKmoS9p4c1vqymPdqBxq+RW+ohzgdIfkTIm0eTbISOy4UxDHvf+BqPtB/oYu3fdYxj3EcQY5+o= Received: by 10.48.202.18 with SMTP id z18mr1237446nff.1171534583921; Thu, 15 Feb 2007 02:16:23 -0800 (PST) Received: by 10.48.241.20 with HTTP; Thu, 15 Feb 2007 02:16:23 -0800 (PST) Message-ID: <71235db40702150216k5d5e4a52s37d7a4ced41e7bee@mail.gmail.com> Date: Thu, 15 Feb 2007 11:16:23 +0100 From: "Matthias Wessendorf" Sender: mwessendorf@gmail.com To: adffaces-user@incubator.apache.org Subject: Re: news for MYFACES-1342? In-Reply-To: <45D431EB.1010004@gmx.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <45D420BF.3010904@gmx.net> <71235db40702150203q520ca804u830a05bb1422104@mail.gmail.com> <45D431EB.1010004@gmx.net> X-Google-Sender-Auth: a00987952f5c0915 X-Virus-Checked: Checked by ClamAV on apache.org Perhaps I don't get it, but that class org.apache.myfaces.shared_impl.renderkit.html.HtmlResponseWriterImpl isn't Trinidad; it is MyFaces (SHARED package). On 2/15/07, Christopher Cudennec wrote: > Hi, > > I'd like to build trinidad manually to add the following lines of code > from the constructor of > org.apache.myfaces.shared_impl.renderkit.html.HtmlResponseWriterImpl: > > if (characterEncoding == null) > { > if (log.isDebugEnabled()) log.debug("No character encoding > given, using default character encoding " + DEFAULT_CHARACTER_ENCODING); > _characterEncoding = DEFAULT_CHARACTER_ENCODING; > } > > Here's my complete stack trace: > > java.lang.NullPointerException: charsetName > java.io.OutputStreamWriter.(OutputStreamWriter.java:81) > java.net.URLEncoder.encode(URLEncoder.java:189) > org.apache.myfaces.shared_impl.renderkit.html.HtmlLinkRendererBase.addParameterToHref(HtmlLinkRendererBase.java:445) > org.apache.myfaces.shared_impl.renderkit.html.HtmlLinkRendererBase.addChildParametersToHref(HtmlLinkRendererBase.java:383) > org.apache.myfaces.shared_impl.renderkit.html.HtmlLinkRendererBase.renderOutputLinkStart(HtmlLinkRendererBase.java:399) > org.apache.myfaces.shared_impl.renderkit.html.HtmlLinkRendererBase.encodeBegin(HtmlLinkRendererBase.java:101) > javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:512) > com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:232) > com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239) > com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239) > com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:580) > org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:181) > de.mindmatters.faces.spring.context.servlet.FacesExternalResourceView.render(FacesExternalResourceView.java:72) > de.mindmatters.faces.spring.context.servlet.AbstractFacesView.renderMergedOutputModel(AbstractFacesView.java:111) > org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:250) > org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:961) > de.mindmatters.faces.spring.context.servlet.DispatcherServlet.render(DispatcherServlet.java:121) > org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:738) > org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:658) > de.mindmatters.faces.spring.context.servlet.DispatcherServlet.doService(DispatcherServlet.java:86) > org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:392) > org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:347) > javax.servlet.http.HttpServlet.service(HttpServlet.java:689) > javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:329) > org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293) > org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:216) > org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:93) > org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:292) > org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:116) > org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:79) > org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303) > org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:143) > org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303) > org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:220) > com._24translate.web.support.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:75) > org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303) > org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:173) > org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:120) > org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144) > org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:75) > org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) > com._24translate.web.support.RequestTimeMeasurementFilter.doFilter(RequestTimeMeasurementFilter.java:158) > org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:137) > com._24translate.ui.hibernate.HibernateSessionAwareCleanUpListener.doFilter(HibernateSessionAwareCleanUpListener.java:56) > > Christopher > > Matthias Wessendorf schrieb: > > can you post the complete stack trace ? > > Looks to me like it's related to a thing in the MyFaces IMPL code (the > > shared package) > > > > -M > > > > On 2/15/07, Christopher Cudennec wrote: > >> Hi, > >> > >> I try to add trinidad to our project one more time, as I've tried it > >> before. I still get the same exception as before (see my post from > >> January, 23rd): > >> java.lang.NullPointerException: charsetName. > >> > >> I found a Jira ticket describing exactly the same behaviour for myfaces > >> + trinidad: > >> http://issues.apache.org/jira/browse/MYFACES-1342 > >> > >> Can anybody tell me if that issue is supposed to be fixed? > >> > >> Thanks, > >> > >> Christopher > >> > > > > > > -- Matthias Wessendorf http://tinyurl.com/fmywh further stuff: blog: http://jroller.com/page/mwessendorf mail: mwessendorf-at-gmail-dot-com