You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by "Wang, XD (Xiao)" <x....@dl.ac.uk> on 2006/08/17 13:08:28 UTC

Frameset exception

Dear All

I encounted an exception when using frameset in jsf. I am using netBeans
5.5 IDE and Tomahawk 1.1.3, Tomcat 5.5, Java 1.5. Any idea is high
appreciated.

Thanks in advance.

Xiaodong


 
My code is:
Test1.jsp:
	<html>
	<frameset rows="50%,50%">
	<frame src="test2.jsp">
	<frame src="test2.jsp">
	</frameset>
	</html>

Test2.jsp:
	<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
	<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
	<html>
	<body>
	<f:view>
	<h:form>
	<h:outputLabel value="hello world" />
	</h:form>
	</f:view>
	</body>
	</html>


The exception is:

type Exception report

message 

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception 
org.apache.jasper.JasperException: Exception in JSP: /test2.jsp:7

3: <html> 
4: <body>
5: <f:view>
6: <h:form>
7: <h:outputLabel value="hello world" />
8: 


Stacktrace:
	
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServle
tWrapper.java:504)
	
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:393)
	
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
	
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root cause 
java.lang.NullPointerException
	
javax.faces.webapp.UIComponentTag.setupResponseWriter(UIComponentTag.jav
a:615)
	
javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:217)
	
org.apache.myfaces.taglib.core.ViewTag.doStartTag(ViewTag.java:71)
	org.apache.jsp.test2_jsp._jspx_meth_f_view_0(test2_jsp.java:90)
	org.apache.jsp.test2_jsp._jspService(test2_jsp.java:64)
	
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:332)
	
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
	
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

note The full stack trace of the root cause is available in the Apache
Tomcat/5.5.17 logs.