voyent
Error 500 - Internal Server Error after Browser refresh  XML
Forum Index -> General Help
Author Message
tamrhein

Joined: 23/Jun/2009 00:00:00
Messages: 5
Offline


Hello,

I implemented a page using facelet with a dynamic datatable (pager, sortable header, dynamic columns).

I have following problem:
After a browser refresh my page can not be shown any more. I get a Error 500--Internal Server Error. My page can not be shown again until webapp is restarted.

Even if there is any problem in my code, I expect that a browser refresh should show the same page as on first load and not bring up any error.


My environment:
- eclipse galileo JavaEE with Oracle Enterprise Pack 11.1.1.5
- Icefaces 1.8.2
- Oracle weblogic 10.3.0.0
- Browser FF 3.6.6/IE 7.0
I also got a Icefaces EE 1.8.2_GA1 from a collegue but with same result.

Steps to reproduce:
- deploy my facelets-example.war (find it attached)
- point browser to http://localhost:7001/facelet-example/
or whereever your oracle weblogic is running
- you will see a table with two columns
- press refresh button in FF
-> Exception occurs (see below)


Error message:
Error 500--Internal Server Error

java.lang.Exception: javax.faces.FacesException: Problem in renderResponse: null
at com.icesoft.faces.context.View.servePage(View.java:189)
at com.icesoft.faces.webapp.http.core.SingleViewServer.service(SingleViewServer.java:84)
at com.icesoft.faces.webapp.http.common.ServerProxy.service(ServerProxy.java:43)
at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet$4.service(MainSessionBoundServlet.java:181)
at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:55)
at com.icesoft.faces.webapp.http.servlet.BasicAdaptingServlet.service(BasicAdaptingServlet.java:48)
at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:55)
at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:92)
at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:55)
at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:183)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:505)
at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:251)
at weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:159)
at jsp_servlet.__index._jspService(__index.java:81)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: javax.faces.FacesException: Problem in renderResponse: null
at com.icesoft.faces.facelets.D2DFaceletViewHandler.renderResponse(D2DFaceletViewHandler.java:295)
at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:158)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:51)
at com.icesoft.faces.context.View$2$1.respond(View.java:80)
at com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.respondWith(ServletRequestResponse.java:233)
at com.icesoft.faces.context.View$2.serve(View.java:114)
at com.icesoft.faces.context.View.servePage(View.java:186)
... 34 more
Caused by: java.lang.NullPointerException
at java.io.Writer.write(Writer.java:140)
at com.icesoft.faces.util.DOMUtils.printNode(DOMUtils.java:181)
at com.icesoft.faces.util.DOMUtils.printNode(DOMUtils.java:167)
at com.icesoft.faces.util.DOMUtils.printNode(DOMUtils.java:167)
at com.icesoft.faces.util.DOMUtils.printNode(DOMUtils.java:167)
at com.icesoft.faces.util.DOMUtils.printNode(DOMUtils.java:167)
at com.icesoft.faces.util.DOMUtils.printNode(DOMUtils.java:167)
at com.icesoft.faces.util.DOMUtils.printNode(DOMUtils.java:167)
at com.icesoft.faces.util.DOMUtils.printNode(DOMUtils.java:167)
at com.icesoft.faces.util.DOMUtils.printNode(DOMUtils.java:167)
at com.icesoft.faces.util.DOMUtils.printNode(DOMUtils.java:167)
at com.icesoft.faces.util.DOMUtils.printNode(DOMUtils.java:167)
at com.icesoft.faces.util.DOMUtils.printNode(DOMUtils.java:167)
at com.icesoft.faces.util.DOMUtils.printNode(DOMUtils.java:167)
at com.icesoft.faces.util.DOMUtils.printNode(DOMUtils.java:167)
at com.icesoft.faces.util.DOMUtils.printNode(DOMUtils.java:167)
at com.icesoft.faces.util.DOMUtils.printNode(DOMUtils.java:118)
at com.icesoft.faces.util.DOMUtils.printNode(DOMUtils.java:102)
at com.icesoft.faces.context.NormalModeSerializer.serialize(NormalModeSerializer.java:93)
at com.icesoft.faces.context.BridgeFacesContext$SaveCurrentDocument.serialize(BridgeFacesContext.java:934)
at com.icesoft.faces.context.DOMResponseWriter.endDocument(DOMResponseWriter.java:190)
at com.icesoft.faces.facelets.D2DFaceletViewHandler.renderResponse(D2DFaceletViewHandler.java:284)
... 43 more


Does anybody has an idea?
Or can the icefaces guys have a look at it?

Thank you,

Thomas

tamrhein

Joined: 23/Jun/2009 00:00:00
Messages: 5
Offline


I also got it to be reproducable with Tomcat 6.0.20:
- remove line 2 in web.xml ("!DOCTYPE") which made problems
- unzip WAR into webapps directory
- start tomcat
- use same steps as above to reproduce
- here I get no 500 error but the table data is no longer be visible.
- some more exception trace seen in catalina log:

Stack trace too long for this post. Find it attached.
 Filename tomcat-errormessage.txt [Disk] Download
 Description error message (running in tomcat 6.0.20)
 Filesize 68 Kbytes
 Downloaded:  320 time(s)

tamrhein

Joined: 23/Jun/2009 00:00:00
Messages: 5
Offline


Here a part of the WAR file.
I deleted the WEB-INF/lib directory, because it could not be attached to this post.
 Filename facelet-example.war.zip [Disk] Download
 Description WAR file for deployment on Oracle Weblogic.
 Filesize 101 Kbytes
 Downloaded:  252 time(s)

tamrhein

Joined: 23/Jun/2009 00:00:00
Messages: 5
Offline


Here the JAR files that are available in my WAR:

28.06.2010 13:10 326.319 backport-util-concurrent.jar
28.06.2010 13:10 231.320 commons-beanutils.jar
28.06.2010 13:10 571.259 commons-collections.jar
28.06.2010 13:10 143.602 commons-digester.jar
28.06.2010 13:10 57.779 commons-fileupload.jar
28.06.2010 13:10 52.915 commons-logging.jar
28.06.2010 13:10 291.779 FastInfoset.jar
28.06.2010 13:10 4.363.281 icefaces-composite-comps.jar
28.06.2010 13:10 2.058.974 icefaces-comps.jar
28.06.2010 13:10 610.765 icefaces-facelets.jar
28.06.2010 13:10 1.256.026 icefaces.jar
28.06.2010 13:10 358.295 jsf-api.jar
28.06.2010 13:10 835.478 jsf-impl.jar
28.06.2010 13:10 725.247 jxl.jar
28.06.2010 13:10 154.581 krysalis-jCharts-1.0.0-alpha-1.jar
15 Datei(en) 12.037.620 Bytes

This is Icefaces EE 1.8.2_GA1 here, but error was also reproducable with common 1.8.2 before.
tamrhein

Joined: 23/Jun/2009 00:00:00
Messages: 5
Offline


I created a jiry entry:

http://jira.icefaces.org/browse/ICE-5851
 
Forum Index -> General Help
Go to:   
Powered by JForum 2.1.7ice © JForum Team