Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to debug JSF  RSS feed

 
Joshua Antony
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
javax.faces.FacesException: ServletException in '/jsp/template/layout.jsp': Could not retrieve value of component with path : {Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId: /jsp/pages/companySearch/companyPaymentDetail.jsp][Class: javax.faces.component.html.HtmlForm,Id: layout][Class: javax.faces.component.html.HtmlPanelGrid,Id: _idJsp89][Class: javax.faces.component.html.HtmlPanelGrid,Id: _idJsp105][Class: javax.faces.component.html.HtmlPanelGroup,Id: _idJsp110][Class: javax.faces.component.UINamingContainer,Id: test][Class: javax.faces.component.html.HtmlPanelGrid,Id: companyRemarksTable1][Class: javax.faces.component.html.HtmlPanelGrid,Id: _idJsp155][Class: javax.faces.component.html.HtmlPanelGroup,Id: _idJsp159][Class: javax.faces.component.html.HtmlOutputText,Id: _idJsp166]}
org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:425)
org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl.dispatch(JspTilesViewHandlerImpl.java:236)
org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl.renderView(JspTilesViewHandlerImpl.java:222)
org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:140)
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)




Above is the error I get, Is there any way to find what it means?

Regards,
Joshua
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I highly recommend setting the "id" attribute on your controls. That way when you get an error, it will indicate which item needs to be fixed.
 
Joshua Antony
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Tim,

That will mean setting id attribute in many components, event for output text, which I suppose is not warranted.

Is there any tool or plugin which I can use?

Regards,
Joshua
 
Smith Sh
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Joshua,

What server are you using......

In case you are using the JBoss server, then you can refer to the post
"Running JBoss Project in Debug Mode" in the JBoss forum.

The solution provided there works (debugs) fine with the my end to end application(Server side, managed beans as well as JSP/JSF pages) in JBOss.

Hope this helps


Sumit
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!