java.lang.NullPointerException

Hi,

I am a newbie to webwork .I downloaded a sample project (quickstart) from http://www.struts2.org/ and tried to point my browser to http://localhost:8080/quickstart/WebContent/index.jsp I get the following error.

Can anyone help me solve this problem?

org.apache.jasper.JasperException: Exception in JSP: /WebContent/index.jsp:4

1: <%@ taglib prefix="s" uri="/struts-tags"%>

2: <html>

3: <head>

4: <s:head theme="ajax" debug="true"/>

5: <script type="text/javascript">

6: dojo.event.topic.subscribe("/save", function(data, type, request) {

7: if(type == "load") {

Stacktrace:

org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrappe r.java:467)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:389)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)

javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

root cause

java.lang.NullPointerException

org.apache.struts2.views.jsp.TagUtils.getStack(TagUtils.java:58)

org.apache.struts2.views.jsp.StrutsBodyTagSupport.getStack(StrutsBodyTagSupport .java:54)

org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport .java:49)

org.apache.jsp.WebContent.index_jsp._jspx_meth_s_005fhead_005f0(index_jsp.java: 155)

org.apache.jsp.WebContent.index_jsp._jspService(index_jsp.java:77)

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)

javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)

javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

Thanks,

Aarthy

[2066 byte] By [aarthyjavaa] at [2007-11-27 5:10:06]
# 1
First find where and why you're getting null values. Check for null values, and add an if condition to get rid of this error.if (xyz != null) {}
skp71a at 2007-7-12 10:30:05 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...