voyent
NPE when try to navigate second time using navigation rule  XML
Forum Index -> General Help
Author Message
glekol

Joined: 25/Nov/2010 15:10:13
Messages: 2
Offline


I have commandLinks and navigation rules for them.
When I click on any of them for the first time it navigates properly, but after that if I click any of them it throws NPE:

Code:
[11/29/10 15:44:39:010 EST] 00000044 ReceiveSendUp E com.icesoft.faces.webapp.http.core.ReceiveSendUpdates service Exception occured during rendering on http://localhost:9081/ssm/block/send-receive-updates [/index.jsp]
                                  java.lang.NullPointerException
 at com.icesoft.faces.context.DOMResponseWriter.enhanceAndFixDocument(DOMResponseWriter.java:319)
 at com.icesoft.faces.context.DOMResponseWriter.endDocument(DOMResponseWriter.java:190)
 at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:471)
 at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:159)
 at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
 at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:220)
 at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:118)
 at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:19)
 at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.renderCycle(ReceiveSendUpdates.java:132)
 at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.service(ReceiveSendUpdates.java:74)
 at com.icesoft.faces.webapp.http.core.RequestVerifier.service(RequestVerifier.java:31)
 at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:24)
 at com.icesoft.faces.webapp.http.servlet.BasicAdaptingServlet.service(BasicAdaptingServlet.java:16)
 at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
 at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:53)
 at com.icesoft.faces.webapp.http.servlet.SessionVerifier.service(SessionVerifier.java:26)
 at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
 at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:131)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
 at com.icesoft.faces.webapp.xmlhttp.BlockingServlet.service(BlockingServlet.java:56)
 at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1101)
 at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:569)
 at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
 at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90)
 at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:748)
 at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1461)
 at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:118)
 at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)
 at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387)
 at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:267)
 at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
 at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
 at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
 at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
 at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
 at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
 at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
 at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
 at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
 at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
 
 [11/29/10 15:44:39:010 EST] 00000044 ServletWrappe E SRVE0068E: Uncaught exception thrown in one of the service methods of the servlet: Blocking Servlet. Exception thrown : java.lang.RuntimeException: wrapped Exception: java.lang.NullPointerException
 at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:156)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
 at com.icesoft.faces.webapp.xmlhttp.BlockingServlet.service(BlockingServlet.java:56)
 at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1101)
 at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:569)
 at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
 at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90)
 at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:748)
 at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1461)
 at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:118)
 at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)
 at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387)
 at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:267)
 at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
 at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
 at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
 at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
 at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
 at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
 at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
 at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
 at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
 at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
 Caused by: java.lang.NullPointerException
 at com.icesoft.faces.context.DOMResponseWriter.enhanceAndFixDocument(DOMResponseWriter.java:319)
 at com.icesoft.faces.context.DOMResponseWriter.endDocument(DOMResponseWriter.java:190)
 at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:471)
 at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:159)
 at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
 at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:220)
 at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:118)
 at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:19)
 at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.renderCycle(ReceiveSendUpdates.java:132)
 at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.service(ReceiveSendUpdates.java:74)
 at com.icesoft.faces.webapp.http.core.RequestVerifier.service(RequestVerifier.java:31)
 at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:24)
 at com.icesoft.faces.webapp.http.servlet.BasicAdaptingServlet.service(BasicAdaptingServlet.java:16)
 at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
 at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:53)
 at com.icesoft.faces.webapp.http.servlet.SessionVerifier.service(SessionVerifier.java:26)
 at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
 at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:131)
 ... 22 more
 
 [11/29/10 15:44:39:026 EST] 00000044 LocalTranCoor E WLTC0017E: Resources rolled back due to setRollbackOnly() being called.
 [11/29/10 15:44:39:026 EST] 00000044 WebApp E [Servlet Error]-[Blocking Servlet]: java.lang.RuntimeException: wrapped Exception: java.lang.NullPointerException
 at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:156)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
 at com.icesoft.faces.webapp.xmlhttp.BlockingServlet.service(BlockingServlet.java:56)
 at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1101)
 at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:569)
 at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
 at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90)
 at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:748)
 at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1461)
 at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:118)
 at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)
 at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387)
 at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:267)
 at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
 at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
 at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
 at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
 at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
 at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
 at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
 at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
 at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
 at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
 Caused by: java.lang.NullPointerException
 at com.icesoft.faces.context.DOMResponseWriter.enhanceAndFixDocument(DOMResponseWriter.java:319)
 at com.icesoft.faces.context.DOMResponseWriter.endDocument(DOMResponseWriter.java:190)
 at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:471)
 at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:159)
 at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
 at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:220)
 at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:118)
 at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:19)
 at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.renderCycle(ReceiveSendUpdates.java:132)
 at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.service(ReceiveSendUpdates.java:74)
 at com.icesoft.faces.webapp.http.core.RequestVerifier.service(RequestVerifier.java:31)
 at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:24)
 at com.icesoft.faces.webapp.http.servlet.BasicAdaptingServlet.service(BasicAdaptingServlet.java:16)
 at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
 at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:53)
 at com.icesoft.faces.webapp.http.servlet.SessionVerifier.service(SessionVerifier.java:26)
 at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
 at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:131)
 ... 22 more




Navigation rule looks like this:

Code:
 <navigation-rule>
   <navigation-case>
     <from-outcome>home</from-outcome>
     <to-view-id>/index.iface</to-view-id>
   </navigation-case>
   <navigation-case>
     <from-outcome>applications</from-outcome>
     <to-view-id>/applications.iface</to-view-id>
   </navigation-case>
   <navigation-case>
     <from-outcome>servers</from-outcome>
     <to-view-id>/servers.iface</to-view-id>
   </navigation-case>
 </navigation-rule>
 



and simple commandLinks like this:

Code:
 <ice:commandLink action="home">
 <ice:outputText value="Home" styleClass="header_link" />
 </ice:commandLink>
 
 <ice:commandLink action="applications">
 <ice:outputText value="Applcations" styleClass="header_link" />
 </ice:commandLink>
 
 <ice:commandLink action="servers">
 <ice:outputText value="Servers" styleClass="header_link" />
 </ice:commandLink>
 


Could you please help me?
I'm struggling with issue 3rd day already and couldn't find anything related to my environment.

ICEFaces 1.8.2
RAD 7.5
Websphere AS 6.1
jre 1.5.0

Everything I found - was for the previous versions of ICEFaces
glekol

Joined: 25/Nov/2010 15:10:13
Messages: 2
Offline


Please somebody help me on this issue!

I really need to get it working soon =(
 
Forum Index -> General Help
Go to:   
Powered by JForum 2.1.7ice © JForum Team