You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by "that.SelectedDude" <th...@gmx.net> on 2006/10/29 14:50:35 UTC

Re: StackOverflowError

Hi again, 

I've reduced the test setting to its basics. For me, the
StackOverflowError is reproducable with:

- a newly created Dynamic Web Project in Eclipse 3.2.1 (added the
default Java Server Faces 1.1 project facet)
- a clean installation of either Tomcat 5.5.20 or Tomcat 6.0.0
- as soon as an arbitrary file is called via HTTP, which file extension
is mapped to the the Faces Servlet. This test file contains plain HTML
only. A duplicate of it, which has a file extension that's *not* mapped
to the Faces Servlet, will run.

Other information:
- Ubuntu Linux 6.10
- Sun Java 1.5.0_06-b05
- I was exporting the web through a WAR (so Eclipse settings don't come
in).

faces-config.xml
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="Tests-StackOverflow" version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
	<display-name>
	Tests-StackOverflow</display-name>
	<servlet>
		<servlet-name>Faces Servlet</servlet-name>
		<servlet-class>
		javax.faces.webapp.FacesServlet</servlet-class>
		<load-on-startup>1</load-on-startup>
	</servlet>
	<servlet-mapping>
		<servlet-name>Faces Servlet</servlet-name>
		<url-pattern>*.jsp</url-pattern>
	</servlet-mapping>
</web-app>
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Any ideas?

Thanks again
Robert


On Sun, 2006-10-29 at 12:51 +0100, that.SelectedDude wrote:
> Hi, I'm using Eclipse 3.2.1 and Tomcat 3.5.20, and I'm trying to get my
> first MyFaces application running (following a specific tutorial [1] if
> it matters).
> 
> However, I'm getting a StackOverflowError:
> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
> [INFO] Catalina - Server startup in 12002 ms
> [ERROR] [Faces Servlet] - Servlet.service() for servlet Faces Servlet
> threw exception
> <java.lang.StackOverflowError>java.lang.StackOverflowError
> 	at
> org.apache.catalina.session.ManagerBase.findSession(ManagerBase.java:858)
> 	at
> org.apache.catalina.connector.Request.doGetSession(Request.java:2196)
> 	at org.apache.catalina.connector.Request.getSession(Request.java:2024)
> 	at
> org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:831)
> 	at
> javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:215)
> 	at
> org.apache.catalina.core.ApplicationHttpRequest.getSession(ApplicationHttpRequest.java:544)
> 	at
> javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:215)
> 	at
> org.apache.catalina.core.ApplicationHttpRequest.getSession(ApplicationHttpRequest.java:544)
> ...
> <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
> 
> >From the tutorial's time of writing to publishing my Eclipse version,
> some things have changed with the Editor for the faces-config.xml file,
> so this might be a reason.
> 
> Would someone be so kind to look at the file, or point me to an idea on
> how this typically would be debugged.
> 
> faces-config.xml
> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
> <?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>signupData</managed-bean-name>
> 		<managed-bean-class>test.myfaces.SignupData</managed-bean-class>
> 		<managed-bean-scope>request</managed-bean-scope>
> 	</managed-bean>
> 	<navigation-rule>
> 		<display-name>signup</display-name>
> 		<from-view-id>/signup.jsp</from-view-id>
> 		<navigation-case>
> 			<from-action>register</from-action>
> 			<from-outcome>signup-failure</from-outcome>
> 			<to-view-id>/signup-success.jsp</to-view-id>
> 		</navigation-case>
> 	</navigation-rule>
> 	<navigation-rule>
> 		<display-name>signup</display-name>
> 		<from-view-id>/signup.jsp</from-view-id>
> 		<navigation-case>
> 			<from-action>register</from-action>
> 			<from-outcome>signup-success</from-outcome>
> 			<to-view-id>/signup-failure.jsp</to-view-id>
> 		</navigation-case>
> 	</navigation-rule>
> </faces-config>
> <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
> 
> Thanks sincerely
> Robert
> 
> [1]
> https://www6.software.ibm.com/developerworks/education/os-ag-jsf1/index.html
>