myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gerhard Petracek <gpetra...@apache.org>
Subject Re: Problem with CODI/OWB and PrimeFaces 3.2
Date Tue, 17 Apr 2012 11:45:34 GMT
please start a new mail-thread.

thx & regards,
gerhard



2012/4/17 Thomas Herzog <t.herzog@curecomp.com>

> C.ForEach is a JSTL tag and will be handled on BuildViewTime.
> This means that the list must be available at BuildViewTime, before any
> JSF event is fired such as ActionEvent.
> When we use C:ForEach we load our data at @PostConstruct of the bean.
> Maybe your problem is that the data  gets loaded after C:ForEach gets
> handled.
>
> Mit freundlichen Grüßen
>
> Thomas Herzog
> Softwareentwicklung
>
> curecomp Software Services GmbH
> Hafenstrasse 47-51
> 4020 Linz
>
> web: www.curecomp.com
> e-Mail: t.herzog@curecomp.com
> tel: +43 (0)732 9015-5563
> mobile: +43 (0)664 8867 9829
>
>
>
>
> -----Ursprüngliche Nachricht-----
> Von: Cédric Durmont [mailto:cdurmont@gmail.com]
> Gesendet: Dienstag, 17. April 2012 11:18
> An: MyFaces Discussion
> Betreff: Re: Problem with CODI/OWB and PrimeFaces 3.2
>
> Hi guys,
>
> I'm having the same error here, but I'm not using OWB nor CODI :
> -MyFaces 2.0.13 (tried several versions : 2.0.5, 2.0.7, 2.0.9, 2.1.3,
> 2.1.7. Issue differs slightly with 2.0.5/2.0.7 , but I still get the
> exception)
> -Trinidad 2.0.1
> - jetty 6.1.6 (embedded/standalone), 7.6.2
> - I have el-impl 2.2 in my classpath (groupId org.glassfish.web in my
> pom.xml)
>
>
>
> (see stack trace below)
>
>
> This is the part of my xhtml page that causes the error (when
> #{beanProduits.contenuArchives } changes from null to not-null, which
> happens in an actionListener during a full jsf cycle) :
> <tr:panelTabbed position="both">
>                <c:forEach items="#{beanProduits.contenuArchives }"
> var="contenu">
>                        <tr:showDetailItem text="#{contenu.gauche }">
>                                <tr:panelGroupLayout layout="vertical">
>                                        <c:forEach items="#{contenu.droite
> }" var="ligne">
>                                                <tr:outputText
> value="#{ligne }"/>
>                                        </c:forEach>
>                                </tr:panelGroupLayout>
>                        </tr:showDetailItem>
>                </c:forEach>
>        </tr:panelTabbed>
>
> Note that if I reload the page, the error does not show up again (well,
> until the list is set to null then not-null again)
>
> Do you have any idea, or any workaround like the one in OWB ?
>
> Regards,
> Cedric Durmont
>
> ==================================================
> Stack trace :
>
> java.lang.NoClassDefFoundError: javax/el/ValueReference
>        at java.lang.Class.getDeclaredMethods0(Native Method)
>        at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
>        at java.lang.Class.getDeclaredMethod(Class.java:1935)
>        at
> java.io.ObjectStreamClass.getInheritableMethod(ObjectStreamClass.java:1349)
>        at java.io.ObjectStreamClass.access$2200(ObjectStreamClass.java:52)
>        at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:448)
>        at java.security.AccessController.doPrivileged(Native Method)
>        at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:413)
>        at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:310)
>        at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1106)
>        at
> java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
>        at
> org.apache.myfaces.view.facelets.el.ContextAwareTagValueExpression.writeExternal(ContextAwareTagValueExpression.java:201)
>        at
> java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1421)
>        at
> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1390)
>        at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
>        at
> java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
>        at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
>        at
> java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
>        at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
>        at
> java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
>        at
> org.apache.myfaces.shared.util.StateUtils.getAsByteArray(StateUtils.java:273)
>        at
> org.apache.myfaces.renderkit.ErrorPageWriter._writeComponent(ErrorPageWriter.java:851)
>        at
> org.apache.myfaces.renderkit.ErrorPageWriter._writeComponent(ErrorPageWriter.java:886)
>        at
> org.apache.myfaces.renderkit.ErrorPageWriter._writeComponent(ErrorPageWriter.java:886)
>        at
> org.apache.myfaces.renderkit.ErrorPageWriter._writeComponent(ErrorPageWriter.java:886)
>        at
> org.apache.myfaces.renderkit.ErrorPageWriter._writeComponent(ErrorPageWriter.java:886)
>        at
> org.apache.myfaces.renderkit.ErrorPageWriter._writeComponent(ErrorPageWriter.java:886)
>        at
> org.apache.myfaces.renderkit.ErrorPageWriter._writeComponent(ErrorPageWriter.java:886)
>        at
> org.apache.myfaces.renderkit.ErrorPageWriter.debugHtml(ErrorPageWriter.java:414)
>        at
> org.apache.myfaces.view.facelets.tag.ui.UIDebug.writeDebugOutput(UIDebug.java:142)
>        at
> org.apache.myfaces.view.facelets.tag.ui.UIDebug.encodeBegin(UIDebug.java:126)
>        at
> javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:519)
>        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:710)
>        at
> org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
>        at
> org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:641)
>        at
> org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelPartialRootRenderer.renderContent(PanelPartialRootRenderer.java:70)
>        at
> org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.BodyRenderer.renderContent(BodyRenderer.java:159)
>        at
> org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelPartialRootRenderer.encodeAll(PanelPartialRootRenderer.java:153)
>        at
> org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.BodyRenderer.encodeAll(BodyRenderer.java:82)
>        at
> org.apache.myfaces.trinidad.render.CoreRenderer.delegateRenderer(CoreRenderer.java:656)
>        at
> org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.DocumentRenderer.encodeAll(DocumentRenderer.java:110)
>        at
> org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
>        at
> org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:1021)
>        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:714)
>        at
> javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:533)
>        at
> org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.renderView(FaceletViewDeclarationLanguage.java:1581)
>        at
> org.apache.myfaces.trinidadinternal.application.ViewDeclarationLanguageFactoryImpl$ChangeApplyingVDLWrapper.renderView(ViewDeclarationLanguageFactoryImpl.java:354)
>        at
> org.apache.myfaces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:264)
>        at
> com.ocpsoft.pretty.faces.application.PrettyViewHandler.renderView(PrettyViewHandler.java:157)
>        at
> javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:59)
>        at
> org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:165)
>        at
> org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:116)
>        at
> org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:239)
>        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:191)
>        at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
>        at
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1221)
>        at
> org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
>        at
> org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
>        at
> org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
>        at
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
>        at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:118)
>        at
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
>        at
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:399)
>        at
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
>        at
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
>        at
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
>        at
> org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
>        at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:327)
>        at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126)
>        at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:110)
>        at
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
>        at
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:399)
>        at
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
>        at
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
>        at
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
>        at
> org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
>        at
> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
>        at
> org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
>        at
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
>        at org.mortbay.jetty.Server.handle(Server.java:326)
>        at
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
>        at
> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:945)
>        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756)
>        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
>        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
>        at
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)
>        at
> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
> 2012-04-17 11:03:47.881:WARN::Error for /fuss-server/version/
> java.lang.NoClassDefFoundError: javax/el/ValueReference
>        at java.lang.Class.getDeclaredMethods0(Native Method)
>        at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
>        at java.lang.Class.getDeclaredMethod(Class.java:1935)
>        at
> java.io.ObjectStreamClass.getInheritableMethod(ObjectStreamClass.java:1349)
>        at java.io.ObjectStreamClass.access$2200(ObjectStreamClass.java:52)
>        at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:448)
>        at java.security.AccessController.doPrivileged(Native Method)
>        at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:413)
>        at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:310)
>        at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1106)
>        at
> java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
>        at
> org.apache.myfaces.view.facelets.el.ContextAwareTagValueExpression.writeExternal(ContextAwareTagValueExpression.java:201)
>        at
> java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1421)
>        at
> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1390)
>        at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
>        at
> java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
>        at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
>        at
> java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
>        at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
>        at
> java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
>        at
> org.apache.myfaces.shared.util.StateUtils.getAsByteArray(StateUtils.java:273)
>        at
> org.apache.myfaces.renderkit.ErrorPageWriter._writeComponent(ErrorPageWriter.java:851)
>        at
> org.apache.myfaces.renderkit.ErrorPageWriter._writeComponent(ErrorPageWriter.java:886)
>        at
> org.apache.myfaces.renderkit.ErrorPageWriter._writeComponent(ErrorPageWriter.java:886)
>        at
> org.apache.myfaces.renderkit.ErrorPageWriter._writeComponent(ErrorPageWriter.java:886)
>        at
> org.apache.myfaces.renderkit.ErrorPageWriter._writeComponent(ErrorPageWriter.java:886)
>        at
> org.apache.myfaces.renderkit.ErrorPageWriter._writeComponent(ErrorPageWriter.java:886)
>        at
> org.apache.myfaces.renderkit.ErrorPageWriter._writeComponent(ErrorPageWriter.java:886)
>        at
> org.apache.myfaces.renderkit.ErrorPageWriter.debugHtml(ErrorPageWriter.java:414)
>        at
> org.apache.myfaces.view.facelets.tag.ui.UIDebug.writeDebugOutput(UIDebug.java:142)
>        at
> org.apache.myfaces.view.facelets.tag.ui.UIDebug.encodeBegin(UIDebug.java:126)
>        at
> javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:519)
>        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:710)
>        at
> org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
>        at
> org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:641)
>        at
> org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelPartialRootRenderer.renderContent(PanelPartialRootRenderer.java:70)
>        at
> org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.BodyRenderer.renderContent(BodyRenderer.java:159)
>        at
> org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelPartialRootRenderer.encodeAll(PanelPartialRootRenderer.java:153)
>        at
> org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.BodyRenderer.encodeAll(BodyRenderer.java:82)
>        at
> org.apache.myfaces.trinidad.render.CoreRenderer.delegateRenderer(CoreRenderer.java:656)
>        at
> org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.DocumentRenderer.encodeAll(DocumentRenderer.java:110)
>        at
> org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
>        at
> org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:1021)
>        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:714)
>        at
> javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:533)
>        at
> org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.renderView(FaceletViewDeclarationLanguage.java:1581)
>        at
> org.apache.myfaces.trinidadinternal.application.ViewDeclarationLanguageFactoryImpl$ChangeApplyingVDLWrapper.renderView(ViewDeclarationLanguageFactoryImpl.java:354)
>        at
> org.apache.myfaces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:264)
>        at
> com.ocpsoft.pretty.faces.application.PrettyViewHandler.renderView(PrettyViewHandler.java:157)
>        at
> javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:59)
>        at
> org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:165)
>        at
> org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:116)
>        at
> org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:239)
>        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:191)
>        at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
>        at
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1221)
>        at
> org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
>        at
> org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
>        at
> org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
>        at
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
>        at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:118)
>        at
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
>        at
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:399)
>        at
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
>        at
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
>        at
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
>        at
> org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
>        at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:327)
>        at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126)
>        at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:110)
>        at
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
>        at
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:399)
>        at
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
>        at
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
>        at
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
>        at
> org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
>        at
> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
>        at
> org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
>        at
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
>        at org.mortbay.jetty.Server.handle(Server.java:326)
>        at
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
>        at
> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:945)
>        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756)
>        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
>        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
>        at
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)
>        at
> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message