voyent
Messages posted by: rvillane  XML
Profile for rvillane -> Messages posted by rvillane [34] Go to Page: 1, 2, 3 Next 
Author Message
No idea, I haven't tried yet version 1.8 at all
Yes, we successfully deployed ICEFaces 1.7.2 in WAS 6.1 with a Cluster
I had to use redirect, sadly no solution was found to forward. Good luck!
Hi

Attached you will see a funny behavior when one MenuItem text is longer than others. The shorter MenuItems display the piece with no text with a different backgroup color.

Any idea ?
I have a very simple facelet page with a menu bar, but the action listener associated to the menu item is not being executed

Code:
 <f:view xmlns:h="http://java.sun.com/jsf/html"
         xmlns:f="http://java.sun.com/jsf/core"
         xmlns:ice="http://www.icesoft.com/icefaces/component"
         xmlns:c="http://java.sun.com/jstl/core"
         xmlns:ui="http://java.sun.com/jsf/facelets" >
 
 
     <ice:outputDeclaration doctypeRoot="HTML"
           doctypePublic="-//W3C//DTD XHTML 1.0 Transitional//EN"
           doctypeSystem="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
 	
     <html>
 	<head>
 		<title><ui:insert name="title" /></title>
 		<ice:outputStyle href="./xmlhttp/css/xp/xp.css" />
 		<link rel="stylesheet" type="text/css" href="css/icefaces-llb.css" />
 		<link rel="stylesheet" type="text/css"
 			href="css/promotionsManagement.css" />
 	</head>
 	<body class="llbBody">
 		<ice:form id="mainForm" partialSubmit="true">
 			<table>
 	
 				<tr>
 					<td colspan="2">
 						<ice:panelGroup id="menuArea">
 							<ice:menuBar id="menuBar" orientation="Horizontal"  noIcons="true" displayOnClick="true">
 								<ice:menuItem value="Promotions Management"
 									id="PromotionsManagementMI">
 									<ice:menuItem actionListener="#{menuBar.elementClicked}"
 										id="GeneratePrintFileMI" value="Generate Print File">
 										<f:param name="viewPageURL" value="../generatePrintFile.xhtml" />
 									</ice:menuItem>
 								</ice:menuItem>
  							</ice:menuBar>
 						</ice:panelGroup>
 					</td>
 				</tr>
 			</table>
 		</ice:form>
 	</body>
 </html>
 </f:view>
 


Java code
Code:
 package com.llbean.application.promotions.jsf.bean.core;
 
 import javax.faces.event.ActionEvent;
 
 import com.llbean.ui.jsf.JSFUtils;
 
 public class MenuBarBean {
     
 	private String detailPanePage = "../blank2.xhtml";
 
 	public MenuBarBean() {
 		System.out.println("*** Hey, this is the constructor of MenuBarBean");
 	}
 
 	public void elementClicked(ActionEvent aEvent) {
 		detailPanePage = (String)JSFUtils.getRequestParameter("viewPageURL");
 		System.out.println("*** I should be displaying ["+detailPanePage+"] page");
 	}
 
 	public String getDetailPanePage() {
 		return detailPanePage;
 	}
 
 	public void setDetailPanePage(String aDetailPanePage) {
 		detailPanePage = aDetailPanePage;
 	}
 }
 


faces-config.xml
Code:
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
                               "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
 <faces-config>
  <managed-bean>
   <managed-bean-name>menuBar</managed-bean-name>
   <managed-bean-class>com.llbean.application.promotions.jsf.bean.core.MenuBarBean</managed-bean-class>
   <managed-bean-scope>session</managed-bean-scope>
  </managed-bean>
  <application>
   <view-handler>com.icesoft.faces.facelets.D2DFaceletViewHandler</view-handler>
  </application>
 </faces-config>
 
I still have the hourglass issue and in my case I´m using ICEFaces 1.7.2 SP1 and JSF 1.2

Any suggestion is very welcome
Still no luck here, any clue ?
I just confirm the hourglass mouse pointer is displayed when an actionListener execution fails, an exception is thrown and captured by the ErrorPage mechanism.

Any idea why is the hourglass mouse pointer displayed ? does it mean the request is in a non-stable state ?

thanks
Hi

I'm using ICEFaces with facelets and standard Error Pages configured on web.xml file. In general terms is working fine but when the error page (a facelet page) is displayed the mouse pointer changes to a hourglass icon.

The error page is rendered completely and not sure why the hourglass pointer displayed.

Any suggestion to fix this issue?

Needless is to say that error page is displayed because a backing bean method caused an exception.

thanks
I forgot to post the exception displayed on the AppServer console but not properly handled by the Error Page:

Code:
 [1/19/09 15:26:26:681 CST] 00000028 jsf           E com.sun.faces.lifecycle.InvokeApplicationPhase execute /index.jspx @20,116 actionListener="#{authorizationBean.doSomethingNull}": java.lang.NullPointerException: Just a test...
                                  javax.faces.el.EvaluationException: /index.jspx @20,116 actionListener="#{authorizationBean.doSomethingNull}": java.lang.NullPointerException: Just a test...
 	at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:73)
 	at javax.faces.component.UICommand.broadcast(UICommand.java:305)
 	at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:302)
 	at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:419)
 	at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:77)
 	at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:220)
 	at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:91)
 	at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:17)
 	at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.renderCycle(ReceiveSendUpdates.java:94)
 	at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.service(ReceiveSendUpdates.java:54)
 	at com.icesoft.faces.webapp.http.core.RequestVerifier.service(RequestVerifier.java:26)
 	at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:24)
 	at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:160)
 	at com.icesoft.faces.webapp.http.servlet.SessionDispatcher$1.service(SessionDispatcher.java:38)
 	at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service(ThreadBlockingAdaptingServlet.java:19)
 	at com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:63)
 	at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:55)
 	at com.icesoft.faces.webapp.http.servlet.SessionVerifier.service(SessionVerifier.java:19)
 	at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
 	at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:91)
 	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:1076)
 	at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1017)
 	at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:118)
 	at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
 	at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:773)
 	at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:681)
 	at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:546)
 	at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:486)
 	at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3391)
 	at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:267)
 	at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811)
 	at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1455)
 	at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:115)
 	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.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
 	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: Just a test...
 	at com.llbean.application.icefacestest.ICEFacesTestAppAuthorizationBean.doSomethingNull(ICEFacesTestAppAuthorizationBean.java:73)
 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 	at java.lang.reflect.Method.invoke(Method.java:618)
 	at com.sun.el.parser.AstValue.invoke(AstValue.java:130)
 	at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:274)
 	at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
 	at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:69)
 	... 45 more
 
 [1/19/09 15:26:26:696 CST] 00000028 ServletWrappe E   SRVE0068E: Uncaught exception thrown in one of the service methods of the servlet: Blocking Servlet. Exception thrown : java.lang.NullPointerException: Just a test...
 	at com.llbean.application.icefacestest.ICEFacesTestAppAuthorizationBean.doSomethingNull(ICEFacesTestAppAuthorizationBean.java:73)
 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 	at java.lang.reflect.Method.invoke(Method.java:618)
 	at com.sun.el.parser.AstValue.invoke(AstValue.java:130)
 	at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:274)
 	at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
 	at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:69)
 	at javax.faces.component.UICommand.broadcast(UICommand.java:305)
 	at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:302)
 	at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:419)
 	at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:77)
 	at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:220)
 	at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:91)
 	at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:17)
 	at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.renderCycle(ReceiveSendUpdates.java:94)
 	at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.service(ReceiveSendUpdates.java:54)
 	at com.icesoft.faces.webapp.http.core.RequestVerifier.service(RequestVerifier.java:26)
 	at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:24)
 	at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:160)
 	at com.icesoft.faces.webapp.http.servlet.SessionDispatcher$1.service(SessionDispatcher.java:38)
 	at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service(ThreadBlockingAdaptingServlet.java:19)
 	at com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:63)
 	at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:55)
 	at com.icesoft.faces.webapp.http.servlet.SessionVerifier.service(SessionVerifier.java:19)
 	at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
 	at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:91)
 	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:1076)
 	at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1017)
 	at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:118)
 	at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
 	at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:773)
 	at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:681)
 	at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:546)
 	at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:486)
 	at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3391)
 	at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:267)
 	at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811)
 	at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1455)
 	at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:115)
 	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.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
 	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)
 
 [1/19/09 15:26:26:712 CST] 00000028 ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl initialize FFDC0009I: FFDC opened incident stream file C:\llbtools\WAS6_Profiles\CAFImpl\logs\ffdc\server1_00000028_09.01.19_15.26.26_0.txt
 [1/19/09 15:26:26:759 CST] 00000028 ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl resetIncidentStream FFDC0010I: FFDC closed incident stream file C:\llbtools\WAS6_Profiles\CAFImpl\logs\ffdc\server1_00000028_09.01.19_15.26.26_0.txt
 [1/19/09 15:26:26:775 CST] 00000028 ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl open FFDC0009I: FFDC opened incident stream file C:\llbtools\WAS6_Profiles\CAFImpl\logs\ffdc\server1_00000028_09.01.19_15.26.26_1.txt
 [1/19/09 15:26:26:790 CST] 00000028 ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl resetIncidentStream FFDC0010I: FFDC closed incident stream file C:\llbtools\WAS6_Profiles\CAFImpl\logs\ffdc\server1_00000028_09.01.19_15.26.26_1.txt
 [1/19/09 15:26:26:790 CST] 00000028 WebApp        E   [Servlet Error]-[Blocking Servlet]: java.lang.NullPointerException: Just a test...
 	at com.llbean.application.icefacestest.ICEFacesTestAppAuthorizationBean.doSomethingNull(ICEFacesTestAppAuthorizationBean.java:73)
 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 	at java.lang.reflect.Method.invoke(Method.java:618)
 	at com.sun.el.parser.AstValue.invoke(AstValue.java:130)
 	at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:274)
 	at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
 	at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:69)
 	at javax.faces.component.UICommand.broadcast(UICommand.java:305)
 	at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:302)
 	at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:419)
 	at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:77)
 	at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:220)
 	at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:91)
 	at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:17)
 	at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.renderCycle(ReceiveSendUpdates.java:94)
 	at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.service(ReceiveSendUpdates.java:54)
 	at com.icesoft.faces.webapp.http.core.RequestVerifier.service(RequestVerifier.java:26)
 	at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:24)
 	at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:160)
 	at com.icesoft.faces.webapp.http.servlet.SessionDispatcher$1.service(SessionDispatcher.java:38)
 	at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service(ThreadBlockingAdaptingServlet.java:19)
 	at com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:63)
 	at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:55)
 	at com.icesoft.faces.webapp.http.servlet.SessionVerifier.service(SessionVerifier.java:19)
 	at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
 	at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:91)
 	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:1076)
 	at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1017)
 	at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:118)
 	at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
 	at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:773)
 	at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:681)
 	at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:546)
 	at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:486)
 	at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3391)
 	at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:267)
 	at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811)
 	at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1455)
 	at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:115)
 	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.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
 	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)
 
 [1/19/09 15:26:26:806 CST] 00000028 ServletWrappe I   SRVE0242I: [ICEFacesTestingAppEAR] [/ICEFacesTestingApp] [/AppError.jsp]: Initialization successful.
 

Hi, I'm using ICEFaces with Facelets and I'm trying to use standard error pages but they doesn't seem to work with facelets, only in normal JSP pages. Is this combination valid? if not, how facelets is supposed to handle error pages ?

Any idea is welcome.

Here is my web.xml:

Code:
 <error-page>
 	<exception-type>java.lang.Exception</exception-type>
 	<location>/AppError.jsp</location>
   </error-page>  
   <error-page>
 	<exception-type>java.lang.Throwable</exception-type>
 	<location>/AppError.jsp</location>
   </error-page>
   <error-page>
     <error-code>500</error-code>
     <location>/AppError.jsp</location>
   </error-page>   
 


And my facelet page:

Code:
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml"
       xmlns:f="http://java.sun.com/jsf/core"
       xmlns:c="http://java.sun.com/jstl/core"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:ice="http://www.icesoft.com/icefaces/component"
       xmlns:ui="http://java.sun.com/jsf/facelets">
 <head>
 	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
 </head>
        
 <body>               
 	<ice:form id="iceForm" partialSubmit="true">
     <ice:commandButton value="Cause a NullPointerException" actionListener="#{authorizationBean.doSomethingNull}"/> 
 	</ice:form>
 </body>
 </html>
 


It calls a authorizationBean.doSomethingNull method that explicitly forces a NUllpOinterException to be thrown.


AppError.jsp is a plain JSP page:

Code:
 <%@ page isErrorPage="true" %>
 <HTML>
 <HEAD>
 	<TITLE>Error Information</TITLE>
 </HEAD>
 
 <BODY>
 
 An error occurred during processing!<br><br>
 
 </BODY>
 </HTML>
 
Any idea why this may happen ? I still run into this same issue

thanks
Hi all

I noticed that PersistanceServlet is invoked multiple times on the same request when is a GET request but is invoked only once when is a POST request (which for me is the expected behavior).

Any idea why the multiple invokation may be happening ?
changing the navigation rule to redirect the request prevents the nullPointer exception to occur.

Code:
 <navigation-rule>
          <from-view-id>/security.jspx</from-view-id>
          <navigation-case>
              <from-outcome>viewResults</from-outcome>
              <to-view-id>/results.iface</to-view-id>
              <redirect>
          </navigation-case>
   </navigation-rule> 
 


What special consideration should I have to be able to use forward and not redirect?

thanks

Looking at the stacktrace:

[12/9/08 7:01:56:673 CST] 00000028 WebApp E [Servlet Error]-[Blocking Servlet]: java.lang.NullPointerException
at com.icesoft.faces.context.DOMResponseWriter.enhanceAndFixDocument(DOMResponseWriter.java:270)
at com.icesoft.faces.context.DOMResponseWriter.endDocument(DOMResponseWriter.java:159)
at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:552)
at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:159)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)

The error is caused in com.icesoft.faces.context.DOMResponseWriter.enhanceAndFixDocument because in this line:

Code:
     private void enhanceAndFixDocument() {
         Element html = (Element) document.getDocumentElement();
         ......
     }
 


document.getDocumentElement() is returning null.

Any idea why this may happen ?
 
Profile for rvillane -> Messages posted by rvillane [34] Go to Page: 1, 2, 3 Next 
Go to:   
Powered by JForum 2.1.7ice © JForum Team