You are viewing a plain text version of this content. The canonical link for it is here.
Posted to adffaces-user@incubator.apache.org by Christopher Cudennec <Sm...@gmx.net> on 2007/02/15 08:58:39 UTC
news for MYFACES-1342?
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
Re: news for MYFACES-1342?
Posted by Felix Gonschorek <fe...@gg-media.biz>.
I have solved this issue by using <tr:goLink /> instead of
<h:outputLink/>, using trinidad snapshot and facelets 1.1.12.
this issue only occured with <h:outputLink /> and <f:param /> tags...
Felix
Matthias Wessendorf schrieb:
> I saw issues (no null pointer) that the setting was to late (only w/ RI)
>
> https://facelets.dev.java.net/issues/show_bug.cgi?id=190
>
> -M
>
> On 2/15/07, Christopher Cudennec <Sm...@gmx.net> wrote:
>> https://facelets.dev.java.net/issues/show_bug.cgi?id=167
>>
>> Matthias Wessendorf schrieb:
>> >>
>> >> A bug for sun?
>> >
>> > for facelets (not sun), I think..
>> >
>> > https://facelets.dev.java.net/
>> >
>> >
>>
>>
>
>
--
Felix Gonschorek
GG-Media
Rombachweg 6a
69118 Heidelberg
Tel: +49 6221 890 168-0
Fax: +49 6221 890 168-1
Mobil: +49 176 2234 1338
felix@gg-media.biz
http://www.gg-media.biz
Vertretungsberechtigte Gesellschafter:
Felix Gonschorek & Jochen Greiner
Umsatzsteuer-Identifikationsnummer
gemäß § 27a Umsatzsteuergesetz:
DE232906440
Re: news for MYFACES-1342?
Posted by Matthias Wessendorf <ma...@apache.org>.
I saw issues (no null pointer) that the setting was to late (only w/ RI)
https://facelets.dev.java.net/issues/show_bug.cgi?id=190
-M
On 2/15/07, Christopher Cudennec <Sm...@gmx.net> wrote:
> https://facelets.dev.java.net/issues/show_bug.cgi?id=167
>
> Matthias Wessendorf schrieb:
> >>
> >> A bug for sun?
> >
> > for facelets (not sun), I think..
> >
> > https://facelets.dev.java.net/
> >
> >
>
>
--
Matthias Wessendorf
http://tinyurl.com/fmywh
further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com
Re: news for MYFACES-1342?
Posted by Christopher Cudennec <Sm...@gmx.net>.
https://facelets.dev.java.net/issues/show_bug.cgi?id=167
Matthias Wessendorf schrieb:
>>
>> A bug for sun?
>
> for facelets (not sun), I think..
>
> https://facelets.dev.java.net/
>
>
Re: news for MYFACES-1342?
Posted by Matthias Wessendorf <ma...@apache.org>.
>
> A bug for sun?
for facelets (not sun), I think..
https://facelets.dev.java.net/
Re: news for MYFACES-1342?
Posted by Christopher Cudennec <Sm...@gmx.net>.
One more thing:
the character encoding definitely is null because of the following lines
of code (FaceletViewHandler.createResponseWriter, line 382)
// get the encoding
String encoding = null;
// Create a dummy ResponseWriter with a bogus writer,
// so we can figure out what content type the ReponseWriter
// is really going to ask for
ResponseWriter writer = renderKit.createResponseWriter(
NullWriter.Instance, contentType, encoding);
contentType = getResponseContentType(context,
writer.getContentType());
encoding = getResponseEncoding(context,
writer.getCharacterEncoding());
// apply them to the response
response.setContentType(contentType + "; charset=" + encoding);
// removed 2005.8.23 to comply with J2EE 1.3
// response.setCharacterEncoding(encoding);
// Now, clone with the real writer
writer = writer.cloneWithWriter(response.getWriter());
As far as I can see the character encoding is not set for writer. It's
set to null initially and not set to another value or 'encoding' after it.
A bug for sun?
Cheers,
Christopher
Christopher Cudennec schrieb:
> 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
>
>
Re: news for MYFACES-1342?
Posted by Christopher Cudennec <Sm...@gmx.net>.
The fix mentioned below works fine. Maybe you could think about adding
it to the repository :) ?
Christopher
Christopher Cudennec schrieb:
> Hi, maybe that was a bit confusing ;)
>
> what I did was comparing HtmlResponseWriterImpl (MyFaces) to
> HtmlResponseWriter (Trinidad) to find out why I don't get the same
> exception when not using trinidad. I found out that 'encoding' can't
> be null for MyFaces because they set a default encoding in case it's
> null. So I would like to do the same for trinidad.
>
> Cheers,
>
> Christopher
>
> Matthias Wessendorf schrieb:
>> 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 <Sm...@gmx.net> 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.<init>(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 <Sm...@gmx.net> 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
>>> >>
>>> >
>>> >
>>>
>>>
>>
>>
>
>
Re: news for MYFACES-1342?
Posted by Christopher Cudennec <Sm...@gmx.net>.
Hi, maybe that was a bit confusing ;)
what I did was comparing HtmlResponseWriterImpl (MyFaces) to
HtmlResponseWriter (Trinidad) to find out why I don't get the same
exception when not using trinidad. I found out that 'encoding' can't be
null for MyFaces because they set a default encoding in case it's null.
So I would like to do the same for trinidad.
Cheers,
Christopher
Matthias Wessendorf schrieb:
> 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 <Sm...@gmx.net> 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.<init>(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 <Sm...@gmx.net> 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
>> >>
>> >
>> >
>>
>>
>
>
Re: news for MYFACES-1342?
Posted by Matthias Wessendorf <ma...@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 <Sm...@gmx.net> 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.<init>(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 <Sm...@gmx.net> 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
Re: news for MYFACES-1342?
Posted by Christopher Cudennec <Sm...@gmx.net>.
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.<init>(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 <Sm...@gmx.net> 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
>>
>
>
Re: news for MYFACES-1342?
Posted by Matthias Wessendorf <ma...@apache.org>.
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 <Sm...@gmx.net> 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