voyent
Menu Bar problem  XML
Forum Index -> Components
Author Message
dokannon

Joined: 15/Apr/2008 00:00:00
Messages: 9
Offline


i have this backing bean


package view.managedBeans;



import java.util.List;

import com.icesoft.faces.component.menubar.MenuItem;



public class BarraMenuBean {

@SuppressWarnings("unchecked")
private List lista;

@SuppressWarnings("unchecked")
public List getLista() {
if (lista ==null){
MenuItem topLevel1 = new MenuItem();
topLevel1.setIcon("xmlhttp/css/xp/css-images/menuitem.gif");
topLevel1.setValue("topLevel1");

MenuItem topLevel2 = new MenuItem();
topLevel2.setIcon("xmlhttp/css/xp/css-images/menuitem.gif");
topLevel2.setValue("topLevel2");

MenuItem topLevel3 = new MenuItem();
topLevel3.setIcon("xmlhttp/css/xp/css-images/menuitem.gif");
topLevel3.setValue("topLevel3");

lista.add(topLevel1);
lista.add(topLevel2);
lista.add(topLevel3);

MenuItem sub1_1 = new MenuItem();
sub1_1.setIcon("xmlhttp/css/xp/css-images/menuitem.gif");
sub1_1.setValue("sub1_1");
MenuItem sub1_2 = new MenuItem();
sub1_2.setIcon("xmlhttp/css/xp/css-images/menuitem.gif");
sub1_2.setValue("sub1_2");
MenuItem sub1_3 = new MenuItem();
sub1_3.setIcon("xmlhttp/css/xp/css-images/menuitem.gif");
sub1_3.setValue("sub1_3");

topLevel1.getChildren().add(sub1_1);
topLevel1.getChildren().add(sub1_2);
topLevel1.getChildren().add(sub1_3);

MenuItem sub1_1_1 = new MenuItem();
sub1_1_1.setIcon("xmlhttp/css/xp/css-images/menuitem.gif");
sub1_1_1.setValue("sub1_1_1");
MenuItem sub1_1_2 = new MenuItem();
sub1_1_2.setIcon("xmlhttp/css/xp/css-images/menuitem.gif");
sub1_1_2.setValue("sub1_1_2");
MenuItem sub1_1_3 = new MenuItem();
sub1_1_3.setIcon("xmlhttp/css/xp/css-images/menuitem.gif");
sub1_1_3.setValue("sub1_1_3");

sub1_1.getChildren().add(sub1_1_1);
sub1_1.getChildren().add(sub1_1_2);
sub1_1.getChildren().add(sub1_1_3);
}




return lista;
}

@SuppressWarnings("unchecked")
public void setLista(List lista) {
this.lista = lista;
}






}




and shows this error


--------------------------------------------------------------------------------

type Informe de Excepción

mensaje

descripción El servidor encontró un error interno () que hizo que no pudiera rellenar este requerimiento.

excepción

javax.faces.el.EvaluationException: javax.el.ELException: Error reading 'lista' on type view.managedBeans.BarraMenuBean
com.sun.faces.application.ValueBindingValueExpressionAdapter.getValue(ValueBindingValueExpressionAdapter.java:117)
com.icesoft.faces.component.menubar.MenuItems.getValue(MenuItems.java:82)
com.icesoft.faces.component.menubar.MenuItemsRenderer.encodeChildren(MenuItemsRenderer.java:55)
javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:825)
com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(DomBasicRenderer.java:351)
com.icesoft.faces.component.menubar.MenuBarRenderer.encodeChildren(MenuBarRenderer.java:90)
javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:825)
com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:585)
com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:589)
com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:589)
com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:589)
com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:589)
com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:559)
com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:153)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
com.icesoft.faces.webapp.http.core.PageServer$1.respond(PageServer.java:26)
com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.respondWith(ServletRequestResponse.java:147)
com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet$ThreadBlockingRequestResponse.respondWith(ThreadBlockingAdaptingServlet.java:36)
com.icesoft.faces.webapp.http.core.PageServer.service(PageServer.java:31)
com.icesoft.faces.webapp.http.core.MultiViewServer.service(MultiViewServer.java:54)
com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer$Matcher.serviceOnMatch(PathDispatcherServer.java:50)
com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:19)
com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service(ThreadBlockingAdaptingServlet.java:19)
com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:29)
com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:110)
com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:35)
com.icesoft.faces.webapp.http.servlet.PathDispatcher$Matcher.serviceOnMatch(PathDispatcher.java:52)
com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:29)
com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


causa raíz

javax.el.ELException: Error reading 'lista' on type view.managedBeans.BarraMenuBean
javax.el.BeanELResolver.getValue(BeanELResolver.java:66)
javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:73)
org.apache.el.parser.AstValue.getValue(AstValue.java:97)
org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
com.sun.faces.application.ValueBindingValueExpressionAdapter.getValue(ValueBindingValueExpressionAdapter.java:113)
com.icesoft.faces.component.menubar.MenuItems.getValue(MenuItems.java:82)
com.icesoft.faces.component.menubar.MenuItemsRenderer.encodeChildren(MenuItemsRenderer.java:55)
javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:825)
com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(DomBasicRenderer.java:351)
com.icesoft.faces.component.menubar.MenuBarRenderer.encodeChildren(MenuBarRenderer.java:90)
javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:825)
com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:585)
com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:589)
com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:589)
com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:589)
com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:589)
com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:559)
com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:153)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
com.icesoft.faces.webapp.http.core.PageServer$1.respond(PageServer.java:26)
com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.respondWith(ServletRequestResponse.java:147)
com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet$ThreadBlockingRequestResponse.respondWith(ThreadBlockingAdaptingServlet.java:36)
com.icesoft.faces.webapp.http.core.PageServer.service(PageServer.java:31)
com.icesoft.faces.webapp.http.core.MultiViewServer.service(MultiViewServer.java:54)
com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer$Matcher.serviceOnMatch(PathDispatcherServer.java:50)
com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:19)
com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service(ThreadBlockingAdaptingServlet.java:19)
com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:29)
com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:110)
com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:35)
com.icesoft.faces.webapp.http.servlet.PathDispatcher$Matcher.serviceOnMatch(PathDispatcher.java:52)
com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:29)
com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


causa raíz

java.lang.NullPointerException
view.managedBeans.BarraMenuBean.getLista(BarraMenuBean.java:31)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.lang.reflect.Method.invoke(Unknown Source)
javax.el.BeanELResolver.getValue(BeanELResolver.java:62)
javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:73)
org.apache.el.parser.AstValue.getValue(AstValue.java:97)
org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
com.sun.faces.application.ValueBindingValueExpressionAdapter.getValue(ValueBindingValueExpressionAdapter.java:113)
com.icesoft.faces.component.menubar.MenuItems.getValue(MenuItems.java:82)
com.icesoft.faces.component.menubar.MenuItemsRenderer.encodeChildren(MenuItemsRenderer.java:55)
javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:825)
com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(DomBasicRenderer.java:351)
com.icesoft.faces.component.menubar.MenuBarRenderer.encodeChildren(MenuBarRenderer.java:90)
javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:825)
com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:585)
com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:589)
com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:589)
com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:589)
com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:589)
com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:559)
com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:153)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
com.icesoft.faces.webapp.http.core.PageServer$1.respond(PageServer.java:26)
com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.respondWith(ServletRequestResponse.java:147)
com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet$ThreadBlockingRequestResponse.respondWith(ThreadBlockingAdaptingServlet.java:36)
com.icesoft.faces.webapp.http.core.PageServer.service(PageServer.java:31)
com.icesoft.faces.webapp.http.core.MultiViewServer.service(MultiViewServer.java:54)
com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer$Matcher.serviceOnMatch(PathDispatcherServer.java:50)
com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:19)
com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service(ThreadBlockingAdaptingServlet.java:19)
com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:29)
com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:110)
com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:35)
com.icesoft.faces.webapp.http.servlet.PathDispatcher$Matcher.serviceOnMatch(PathDispatcher.java:52)
com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:29)
com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


nota La traza completa de la causa de este error se encuentra en los archivos de diario de Apache Tomcat/6.0.13.



some can help me plz ???
yangzhit

Joined: 29/Jul/2009 00:00:00
Messages: 1
Offline


I also encounter this problem.
It look like it is the problem of 1.8.0.
The exception will disappear on 1.8.2 RC.
But is it fixed on 1.8.2 offical release?

The following log is from our system.

2009-10-02 16:59:40,796 ERROR [com.icesoft.faces.facelets.D2DFaceletViewHandler] - <Problem in renderResponse: /inc/tops-header.jspx @28,66 rendered="#{menuBar.rendered}": Error getting property 'rendered' from bean of type sg.gov.mda.soa.common.tops.MenuBarBean: java.lang.NullPointerException>
javax.faces.el.EvaluationException: /inc/tops-header.jspx @28,66 rendered="#{menuBar.rendered}": Error getting property 'rendered' from bean of type sg.gov.mda.soa.common.tops.MenuBarBean: java.lang.NullPointerException
at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:60)
at javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:335)
at com.icesoft.faces.component.menubar.MenuBar.isRendered(MenuBar.java:324)
at com.icesoft.faces.renderkit.dom_html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:95)
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:721)
at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:517)
at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:522)
at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:522)
at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:522)
at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:522)
at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:522)
at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:522)
at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:522)
at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:522)
at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:522)
at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:522)
at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:522)
at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:522)
at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:522)
at com.icesoft.faces.facelets.D2DFaceletViewHandler.renderResponse(D2DFaceletViewHandler.java:282)
at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:153)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:17)
at com.icesoft.faces.context.View$2$1.respond(View.java:47)
at com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.respondWith(ServletRequestResponse.java:197)
at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet$ThreadBlockingRequestResponse.respondWith(ThreadBlockingAdaptingServlet.java:36)
at com.icesoft.faces.context.View$2.serve(View.java:72)
at com.icesoft.faces.context.View.servePage(View.java:133)
at com.icesoft.faces.webapp.http.core.MultiViewServer.service(MultiViewServer.java:55)
at com.icesoft.faces.webapp.http.common.ServerProxy.service(ServerProxy.java:11)
at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet$4.service(MainSessionBoundServlet.java:114)
at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:24)
at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:160)
at com.icesoft.faces.webapp.http.servlet.SessionDispatcher$1.service(SessionDispatcher.java:42)
at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service(ThreadBlockingAdaptingServlet.java:19)
at com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:63)
at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:62)
at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:153)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at sg.gov.mda.soa.common.tops.SessionFilter.doFilter(SessionFilter.java:73)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:799)
Caused by:
java.lang.NullPointerException
at java.util.ArrayList.<init>(ArrayList.java:158)
at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.inRole(SessionDispatcher.java:148)
at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.access$300(SessionDispatcher.java:29)
at com.icesoft.faces.webapp.http.servlet.SessionDispatcher$2.isUserInRole(SessionDispatcher.java:98)
at com.icesoft.faces.context.BridgeExternalContext.isUserInRole(BridgeExternalContext.java:203)
at com.icesoft.faces.component.ext.taglib.Util.isRenderedOnUserRole(Util.java:112)
at com.icesoft.faces.component.menubar.MenuItem.isRendered(MenuItem.java:412)
at sg.gov.mda.soa.common.tops.MenuBarBean.isChildRendered(MenuBarBean.java:250)
at sg.gov.mda.soa.common.tops.MenuBarBean.processChildMenusRendered(MenuBarBean.java:198)
at sg.gov.mda.soa.common.tops.MenuBarBean.isRendered(MenuBarBean.java:168)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at com.sun.faces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:99)
at com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyELContext.java:141)
at com.sun.el.parser.AstValue.getValue(AstValue.java:96)
at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:183)
at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:56)
... 59 more
 
Forum Index -> Components
Go to:   
Powered by JForum 2.1.7ice © JForum Team