Saturday, May 9, 2009

Solved - Exception thrown : javax.faces.FacesException: Assertion Failed

 

If you’re getting this set of exceptions in your Java ServerFaces application, it’s probably just because you have some commandLink or commandButton objects that are not encased within h:form tags.

If you’re using JSF, make sure all of those potential form objects are withing h:form tags, and all of that needs to be within f:view or f:subview tags.

Hope this helps solve the problem!

-Cameron McKenzie

 

 

[5/5/09 14:12:03:218 PDT] 0000001d ServletWrappe E   SRVE0068E: Uncaught exception thrown in one of the service methods of the servlet: /tie.jsp. Exception thrown : javax.faces.FacesException: Assertion Failed
    at com.sun.faces.util.Util.doAssert(Util.java:1353)
    at com.sun.faces.renderkit.html_basic.CommandLinkRenderer.encodeBegin(CommandLinkRenderer.java:200)
    at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:717)
    at javax.faces.webapp.UIComponentTag.encodeBegin(UIComponentTag.java:595)
    at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:547)

[5/5/09 14:12:03:218 PDT] 0000001d LocalTranCoor E   WLTC0017E: Resources rolled back due to setRollbackOnly() being called.
[5/5/09 14:12:03:234 PDT] 0000001d ServletWrappe E   SRVE0068E: Uncaught exception thrown in one of the service methods of the servlet: Faces Servlet. Exception thrown : javax.servlet.ServletException: Assertion Failed
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:202)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:966)

  

[5/5/09 14:12:03:250 PDT] 0000001d ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl initialize FFDC0009I: FFDC opened incident stream file C:\_irad7\core\runtimes\base_v61\profiles\AppSrv01\logs\ffdc\server1_7c067c06_09.05.05_14.12.03_0.txt
[5/5/09 14:12:03:250 PDT] 0000001d ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl resetIncidentStream FFDC0010I: FFDC closed incident stream file C:\_irad7\core\runtimes\base_v61\profiles\AppSrv01\logs\ffdc\server1_7c067c06_09.05.05_14.12.03_0.txt
[5/5/09 14:12:03:250 PDT] 0000001d WebApp        E   [Servlet Error]-[Faces Servlet]: javax.faces.FacesException: Assertion Failed
    at com.sun.faces.util.Util.doAssert(Util.java:1353)
    at 

[5/5/09 14:12:59:015 PDT] 00000023 FileRepositor A   ADMR0009I: Document cells/hp-000Node01Cell/applications/JSF01.ear/deltas/JSF01/delta-1241557978687 is created.
[5/5/09 14:12:59:015 PDT] 00000023 FileRepositor A   ADMR0010I: Document cells/hp-000Node01Cell/applications/JSF01.ear/deployments/JSF01/deployment.xml is modified.
[5/5/09 14:13:00:234 PDT] 0000001d ServletWrappe I   SRVE0253I: [JSF01] [/JSFWeb] [/tie.jsp]: Destroy successful.
[5/5/09 14:13:00:250 PDT] 0000001d ServletWrappe I   SRVE0242I: [JSF01] [/JSFWeb] [/tie.jsp]: Initialization successful.
[5/5/09 14:13:20:812 PDT] 0000001d ServletWrappe I   SRVE0242I: [JSF01] [/JSFWeb] [/win.jsp]: Initialization successful.
[5/5/09 14:13:20:812 PDT] 0000001d ServletWrappe E   SRVE0068E: Uncaught exception thrown in one of the service methods of the servlet: /win.jsp. Exception thrown : javax.faces.FacesException: Assertion Failed
    at com.sun.faces.util.Util.doAssert(Util.java:1353)
    at com.sun.faces.renderkit.html_basic.CommandLinkRenderer.encodeBegin(CommandLinkRenderer.java:200)
    at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:717)

[5/5/09 14:13:20:828 PDT] 0000001d LocalTranCoor E   WLTC0017E: Resources rolled back due to setRollbackOnly() being called.
[5/5/09 14:13:20:828 PDT] 0000001d ServletWrappe E   SRVE0068E: Uncaught exception thrown in one of the service methods of the servlet: Faces Servlet. Exception thrown : javax.servlet.ServletException: Assertion Failed
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:202)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:966)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
    at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:463)
    at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3129)
    at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:238)

[5/5/09 14:13:20:828 PDT] 0000001d WebApp        E   [Servlet Error]-[Faces Servlet]: javax.faces.FacesException: Assertion Failed
    at com.sun.faces.util.Util.doAssert(Util.java:1353)
    at com.sun.faces.renderkit.html_basic.CommandLinkRenderer.encodeBegin(CommandLinkRenderer.java:200)

2 comments:

  1. Thanks a lot sir....it helped :)

    ReplyDelete
  2. Thank you very much. This post helped. Want to buy your books and read sometime.

    ReplyDelete

Followers