incubator-adffaces-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Winer" <awi...@gmail.com>
Subject Re: Using Trinidad with Facelet Bug
Date Thu, 26 Apr 2007 16:55:18 GMT
It's not something for you to do.  It's an issue in the
Trinidad code.  But a question:  what is your default-render-kit-id
in faces-config.xml?

You should have:
  <application>
    <default-render-kit-id>
      org.apache.myfaces.trinidad.core
    </default-render-kit-id>
  </application>

-- Adam



On 4/25/07, Gareth Paglinawan <gareth.paglinawan@gmail.com> wrote:
> please give the detail what to do? what is the text that should not be
> non-null? Is there particular attribute needed not be non-null?
>
> On 4/24/07, Adam Winer <awiner@gmail.com> wrote:
> >
> > That'd be a Trinidad bug.  We need to check all our
> > calls to writeText() and make sure the text is non-null.
> >
> > -- Adam
> >
> >
> > On 4/24/07, Gareth Paglinawan <gareth.paglinawan@gmail.com> wrote:
> > > i got another error. You know what is this?
> > >
> > > 2007-04-24 18:46:30,848 DEBUG UserCounterListener.attributeAdded  -
> > > event.name: javax.faces.request.charset
> > > Apr 24, 2007 6:46:31 PM com.sun.facelets.FaceletViewHandler *
> > > handleRenderException*
> > > SEVERE: Error Rendering View[/underwriting.xhtml]
> > > *java.lang.NullPointerException*: Text must not be null.
> > >         at
> > >
> > org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlResponseWriterImpl.writeText
> > > (*HtmlResponseWriterImpl.java:395*)
> > >         at
> > >
> > org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.AccessKeyUtils.renderAccessKeyText
> > > (*AccessKeyUtils.java:92*)
> > >         at
> > >
> > org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.AccessKeyUtils.renderAccessKeyText
> > > (*AccessKeyUtils.java:110*)
> > >         at
> > >
> > org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.GoLinkRenderer.encodeBegin
> > > (*GoLinkRenderer.java:111*)
> > >         at
> > >
> > org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.CommandLinkRenderer.encodeBegin
> > > (*CommandLinkRenderer.java:110*)
> > >         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeBegin(*
> > > CoreRenderer.java:185*)
> > >         at
> > >
> > org.apache.myfaces.trinidadinternal.renderkit.htmlBasic.HtmlCommandLinkRenderer.encodeEnd
> > > (*HtmlCommandLinkRenderer.java:68*)
> > >         at javax.faces.component.UIComponentBase.encodeEnd(*
> > > UIComponentBase.java:536*)
> > >         at
> > >
> > org.apache.myfaces.custom.datascroller.HtmlDataScrollerRenderer.renderFacet
> > (
> > > *HtmlDataScrollerRenderer.java:295*)
> > >         at
> > >
> > org.apache.myfaces.custom.datascroller.HtmlDataScrollerRenderer.renderScroller
> > > (*HtmlDataScrollerRenderer.java:237*)
> > >         at
> > >
> > org.apache.myfaces.custom.datascroller.HtmlDataScrollerRenderer.encodeEnd
> > (*
> > > HtmlDataScrollerRenderer.java:202*)
> > >         at javax.faces.component.UIComponentBase.encodeEnd(*
> > > UIComponentBase.java:536*)
> > >         at
> > > org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChild(*
> > > RendererUtils.java:442*)
> > >         at
> > >
> > org.apache.myfaces.shared_impl.renderkit.html.HtmlGridRendererBase.renderChildren
> > > (*HtmlGridRendererBase.java:216*)
> > >         at
> > >
> > org.apache.myfaces.shared_impl.renderkit.html.HtmlGridRendererBase.encodeEnd
> > > (*HtmlGridRendererBase.java:98*)
> > >         at javax.faces.component.UIComponentBase.encodeEnd(*
> > > UIComponentBase.java:536*)
> > >         at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(*
> > > ComponentSupport.java:252*)
> > >         at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(*
> > > ComponentSupport.java:249*)
> > >         at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(*
> > > ComponentSupport.java:249*)
> > >         at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(*
> > > ComponentSupport.java:249*)
> > >         at com.sun.facelets.FaceletViewHandler.renderView(*
> > > FaceletViewHandler.java:573*)
> > >         at
> > >
> > org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView
> > (*
> > > ViewHandlerImpl.java:181*)
> > >         at org.apache.myfaces.lifecycle.LifecycleImpl.render(*
> > > LifecycleImpl.java:384*)
> > >         at javax.faces.webapp.FacesServlet.service(*FacesServlet.java
> > :138*)
> > >         at
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> > > *ApplicationFilterChain.java:237*)
> > >         at org.apache.catalina.core.ApplicationFilterChain.doFilter(*
> > > ApplicationFilterChain.java:157*)
> > >         at halo.webapp.filter.JAMonServletFilter.doFilterInternal(*
> > > JAMonServletFilter.java:65*)
> > >         at org.springframework.web.filter.OncePerRequestFilter.doFilter
> > (*
> > > OncePerRequestFilter.java:75*)
> > >         at
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> > > *ApplicationFilterChain.java:186*)
> > >         at org.apache.catalina.core.ApplicationFilterChain.doFilter(*
> > > ApplicationFilterChain.java:157*)
> > >         at
> > > org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(*
> > > FilterChainProxy.java:264*)
> > >         at
> > org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(
> > > *FilterSecurityInterceptor.java:107*)
> > >         at
> > > org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(*
> > > FilterSecurityInterceptor.java:72*)
> > >         at
> > > org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(*
> > > FilterChainProxy.java:274*)
> > >         at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(*
> > > ExceptionTranslationFilter.java:110*)
> > >         at
> > > org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(*
> > > FilterChainProxy.java:274*)
> > >         at
> > >
> > org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter
> > (*
> > > SecurityContextHolderAwareRequestFilter.java:81*)
> > >         at
> > > org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(*
> > > FilterChainProxy.java:274*)
> > >         at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(*
> > > AbstractProcessingFilter.java:217*)
> > >         at
> > > org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(*
> > > FilterChainProxy.java:274*)
> > >         at
> > > org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(*
> > > HttpSessionContextIntegrationFilter.java:229*)
> > >         at
> > > org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(*
> > > FilterChainProxy.java:274*)
> > >         at org.acegisecurity.util.FilterChainProxy.doFilter(*
> > > FilterChainProxy.java:148*)
> > >         at org.acegisecurity.util.FilterToBeanProxy.doFilter(*
> > > FilterToBeanProxy.java:98*)
> > >         at
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> > > *ApplicationFilterChain.java:186*)
> > >         at org.apache.catalina.core.ApplicationFilterChain.doFilter(*
> > > ApplicationFilterChain.java:157*)
> > >         at
> > >
> > org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter
> > > (*TrinidadFilterImpl.java:209*)
> > >         at
> > >
> > org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl
> > (
> > > *TrinidadFilterImpl.java:166*)
> > >         at
> > > org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(*
> > > TrinidadFilterImpl.java:139*)
> > >         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(*
> > > TrinidadFilter.java:92*)
> > >         at
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> > > *ApplicationFilterChain.java:186*)
> > >         at org.apache.catalina.core.ApplicationFilterChain.doFilter(*
> > > ApplicationFilterChain.java:157*)
> > >         at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(*
> > > ExtensionsFilter.java:144*)
> > >         at
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> > > *ApplicationFilterChain.java:186*)
> > >         at org.apache.catalina.core.ApplicationFilterChain.doFilter(*
> > > ApplicationFilterChain.java:157*)
> > >         at org.apache.catalina.core.StandardWrapperValve.invoke(*
> > > StandardWrapperValve.java:214*)
> > >         at org.apache.catalina.core.StandardValveContext.invokeNext(*
> > > StandardValveContext.java:104*)
> > >         at org.apache.catalina.core.StandardPipeline.invoke(*
> > > StandardPipeline.java:520*)
> > >         at org.apache.catalina.core.StandardContextValve.invokeInternal
> > (*
> > > StandardContextValve.java:198*)
> > >         at org.apache.catalina.core.StandardContextValve.invoke(*
> > > StandardContextValve.java:152*)
> > >         at org.apache.catalina.core.StandardValveContext.invokeNext(*
> > > StandardValveContext.java:104*)
> > >         at org.apache.catalina.core.StandardPipeline.invoke(*
> > > StandardPipeline.java:520*)
> > >         at org.apache.catalina.core.StandardHostValve.invoke(*
> > > StandardHostValve.java:137*)
> > >         at org.apache.catalina.core.StandardValveContext.invokeNext(*
> > > StandardValveContext.java:104*)
> > >         at org.apache.catalina.valves.ErrorReportValve.invoke(*
> > > ErrorReportValve.java:118*)
> > >         at org.apache.catalina.core.StandardValveContext.invokeNext(*
> > > StandardValveContext.java:102*)
> > >         at org.apache.catalina.core.StandardPipeline.invoke(*
> > > StandardPipeline.java:520*)
> > >         at org.apache.catalina.core.StandardEngineValve.invoke(*
> > > StandardEngineValve.java:109*)
> > >         at org.apache.catalina.core.StandardValveContext.invokeNext(*
> > > StandardValveContext.java:104*)
> > >         at org.apache.catalina.core.StandardPipeline.invoke(*
> > > StandardPipeline.java:520*)
> > >         at org.apache.catalina.core.ContainerBase.invoke(*
> > ContainerBase.java
> > > :929*)
> > >         at org.apache.coyote.tomcat5.CoyoteAdapter.service(*
> > > CoyoteAdapter.java:160*)
> > >         at org.apache.coyote.http11.Http11Processor.process(*
> > > Http11Processor.java:799*)
> > >         at
> > >
> > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection
> > > (*Http11Protocol.java:705*)
> > >         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(*
> > > PoolTcpEndpoint.java:577*)
> > >         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
> > (*
> > > ThreadPool.java:683*)
> > >         at java.lang.Thread.run(*Thread.java:595*)
> > > StandardWrapperValve[faces]: Servlet.service() for servlet faces threw
> > > exception
> > >
> > > On 4/24/07, Matthias Wessendorf <matzew@apache.org> wrote:
> > > >
> > > > and the 1.0.0-incubating for trinidad
> > > >
> > > > On 4/24/07, Gareth Paglinawan <gareth.paglinawan@gmail.com> wrote:
> > > > > Please tell me what's the version of facelet should I use. I
> > recently
> > > > join
> > > > > the company and Im planning to introduce the trinidad in the
> > existing
> > > > > development. I have not notice the facelet version they are using.
> > What
> > > > > should be the Trinidad and Facelet should I use?
> > > > >
> > > > > Regards,
> > > > >
> > > > > Gareth
> > > > >
> > > > > On 4/23/07, Gareth Paglinawan <gareth.paglinawan@gmail.com>
wrote:
> > > > > >
> > > > > > Hi Adam,
> > > > > >
> > > > > > This is the stacktrace I am getting
> > > > > >
> > > > > > 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)
> > > > > >
> > > > > > This was raised here
> > > > > >
> > > >
> > http://mail-archives.apache.org/mod_mbox/incubator-adffaces-user/200702.mbox/%3c45D431EB.1010004@gmx.net%3e
> > > > > >
> > > > > >
> > > > > > Gareth
> > > > > >
> > > > > > On 4/23/07, Adam Winer <awiner@gmail.com> wrote:
> > > > > > >
> > > > > > > A stack trace would help...  and version numbers for
> > > > > > > everything you're using would also help.
> > > > > > >
> > > > > > > -- Adam
> > > > > > >
> > > > > > >
> > > > > > > On 4/23/07, Gareth Paglinawan <gareth.paglinawan@gmail.com
>
> > wrote:
> > > > > > > > Hi,
> > > > > > > >
> > > > > > > > I would like to integrate the trinidad in our application.
> > > > Currently,
> > > > > > > we are
> > > > > > > > using facelet and myfaces. I still encounter problem
regarding
> > > > > > > charsetName.
> > > > > > > > There is a nullPointerException. Is this already solved?
> > > > > > > >
> > > > > > > > Gareth
> > > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > Matthias Wessendorf
> > > > http://tinyurl.com/fmywh
> > > >
> > > > further stuff:
> > > > blog: http://jroller.com/page/mwessendorf
> > > > mail: mwessendorf-at-gmail-dot-com
> > > >
> > >
> >
>

Mime
View raw message