Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

externalra-gui "HTTP Status 500 - java.lang.Exception: javax.faces.FacesException"

Help
2014-01-30
2014-05-21
  • ubuntu 12.4
    java version "1.7.0_25"
    postgresql-9.1
    EJBCA 6.0.3
    JBOSS EAP 6.1.0

    I deployed the ExternalRA-GUI using ant externalra-gui-deploy. I think there is no change in it in EJBCA 6.0.3 release but when i try to access the externalra-gui page. I am getting the error.

    JBWEB000065: HTTP Status 500 - java.lang.Exception: javax.faces.FacesException: Problem in renderResponse: null

    JBWEB000309: type JBWEB000066: Exception report

    JBWEB000068: message java.lang.Exception: javax.faces.FacesException: Problem in renderResponse: null

    JBWEB000069: description JBWEB000145: The server encountered an internal error that prevented it from fulfilling this request.

    JBWEB000070: exception

    javax.servlet.ServletException: java.lang.Exception: javax.faces.FacesException: Problem in renderResponse: null
    com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:158)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

    JBWEB000071: root cause

    java.lang.Exception: javax.faces.FacesException: Problem in renderResponse: null
    com.icesoft.faces.context.View.servePage(View.java:152)
    com.icesoft.faces.webapp.http.core.MultiViewServer.service(MultiViewServer.java:67)
    com.icesoft.faces.webapp.http.common.ServerProxy.service(ServerProxy.java:11)
    com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet$4.service(MainSessionBoundServlet.java:149)
    com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:24)
    com.icesoft.faces.webapp.http.servlet.BasicAdaptingServlet.service(BasicAdaptingServlet.java:16)
    com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
    com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:53)
    com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
    com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:131)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

    JBWEB000071: root cause

    javax.faces.FacesException: Problem in renderResponse: null
    com.icesoft.faces.facelets.D2DFaceletViewHandler.renderResponse(D2DFaceletViewHandler.java:296)
    com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:159)
    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.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:19)
    com.icesoft.faces.context.View$2$1.respond(View.java:48)
    com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.respondWith(ServletRequestResponse.java:201)
    com.icesoft.faces.context.View$2.serve(View.java:77)
    com.icesoft.faces.context.View.servePage(View.java:149)
    com.icesoft.faces.webapp.http.core.MultiViewServer.service(MultiViewServer.java:67)
    com.icesoft.faces.webapp.http.common.ServerProxy.service(ServerProxy.java:11)
    com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet$4.service(MainSessionBoundServlet.java:149)
    com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:24)
    com.icesoft.faces.webapp.http.servlet.BasicAdaptingServlet.service(BasicAdaptingServlet.java:16)
    com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
    com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:53)
    com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
    com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:131)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

    JBWEB000071: root cause

    java.lang.NullPointerException
    com.icesoft.faces.facelets.D2DFaceletViewHandler.renderResponse(D2DFaceletViewHandler.java:268)
    com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:159)
    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.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:19)
    com.icesoft.faces.context.View$2$1.respond(View.java:48)
    com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.respondWith(ServletRequestResponse.java:201)
    com.icesoft.faces.context.View$2.serve(View.java:77)
    com.icesoft.faces.context.View.servePage(View.java:149)
    com.icesoft.faces.webapp.http.core.MultiViewServer.service(MultiViewServer.java:67)
    com.icesoft.faces.webapp.http.common.ServerProxy.service(ServerProxy.java:11)
    com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet$4.service(MainSessionBoundServlet.java:149)
    com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:24)
    com.icesoft.faces.webapp.http.servlet.BasicAdaptingServlet.service(BasicAdaptingServlet.java:16)
    com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
    com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:53)
    com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
    com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:131)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

    JBWEB000072: note JBWEB000073: The full stack trace of the root cause is available in the JBoss Web/7.2.0.Final-redhat-1 logs.
    JBoss Web/7.2.0.Final-redhat-1

     
    • this problem is related to duplicate libs. the externalra-gui.war contains in the WEB-INF/lib directory the icefaces-facelets.jar as well as the jfs-facelets.jar. Since the implementation requires the first one you get this exception if the second one is loaded fist.
      simply open the war file remove the jfs-facelets.jar and redeploy.

      this helped for me

      regards
      stefan

       
      Last edit: Stefan Selbitschka 2014-05-21
  • I made a test run with Postgres now. It worked for me. I could enter CSR enrollment in the external RA GUI and messages were stored in the database.

    Cheers,
    Tomas

     
  • You will have to debug in the server.log.

     
  • may be its due to my old database.. I will try to drop the old database and re-test it again.

    also please provide me the patch of the ECA-3396.it seems to be fixed.

     
  • I'm sorry but providing hot patches is generally too much work to provide, and help, as a free community service (I have to work too).

    It will be available in the next release. But you can always dig it up yourself. Its open source after all.

    If you really need quick SLA you could look at a support contract.
    http://www.primekey.se/Services/Support/

    Kind regards,
    Tomas

     
  • I am still unable to deply ExternalRA-GUI. In the server log when jboss start there is an error.

    08:51:01,353 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 48) HHH000388: Unsuccessful: create table message (uniqueId varchar(250) not null, createtime bigint not null, message clob, messageid varchar(255), modifytime bigint not null, status integer not null, type integer not null, primary key (uniqueId))
    08:51:01,354 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 48) ERROR: type "clob" does not exist
    Position: 91