struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Mawata <chris_mawata_str...@mathcove.net>
Subject <s:debug /> tag throws exceptions
Date Sat, 25 Sep 2010 15:18:46 GMT
  The server is GlassFish

jsp:
<!-- start jsp -- >

<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
<title>RainForest - Music and Video Store</title>
<meta name="heading" content="<s:property  value="name"/>, your T-Shirt 
is on its way! "/>
</head>
<body>
<ul>
<li>Name: <s:property  value="name"/></li>
<li>Email: <s:property  value="email"/></li>
<li>Street: <s:property  value="street"/></li>
<li>City: <s:property  value="city"/></li>
<li>State: <s:property  value="state"/></li>
<li>Zip Code: <s:property  value="zipcode"/></li>
<li>Country: <s:property  value="country"/></li>
<li>Shirt Size: <s:property  value="shirtSize"/></li>
</ul>
<img src="<s:property value="shirtImage"/>" alt="logo"    height="100" 
width="150" />
<s:debug/>
</body>
</html>

<!-- end jsp -->


Without the <s:debug/> tag the application runs. When you insert the 
debug tag the application gives you an HTTP 500 error and
you get the following stack trace in the logs.
The name of the application is ex81 and the name of the jsp is 
claim-shirt-success.  The same thing happens if you put the debug
tag on any jsp so it is not specific to this one.

<!-- start stack trace -->



WARNING: ApplicationDispatcher[/ex81] PWC1231: Servlet.service() for 
servlet jsp threw exception
Class: org.apache.jasper.compiler.TagLibraryInfoImpl
File: TagLibraryInfoImpl.java
Method: toString
Line: 124 - org/apache/jasper/compiler/TagLibraryInfoImpl.java:124:-1
     at org.apache.struts2.components.UIBean.end(UIBean.java:515)
     at 
org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:42)
     at 
org.apache.jsp.WEB_002dINF.content.users.claim_002dshirt_002dsuccess_jsp._jspx_meth_s_debug_0(claim_002dshirt_002dsuccess_jsp.java

from :165)
     at 
org.apache.jsp.WEB_002dINF.content.users.claim_002dshirt_002dsuccess_jsp._jspService(claim_002dshirt_002dsuccess_jsp.java

from :69)
     at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
     at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:406)
     at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:483)

<snip a few hundred lines>

     at 
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
     at 
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
     at 
com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
     at 
com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
     at 
com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
     at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
     at 
com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
     at 
com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
     at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NullPointerException
     at 
org.apache.jasper.compiler.TagLibraryInfoImpl.toString(TagLibraryInfoImpl.java:124)
     at java.lang.String.valueOf(String.java:2826)
     at java.lang.StringBuilder.append(StringBuilder.java:115)
     at java.util.AbstractMap.toString(AbstractMap.java:490)
     at java.lang.String.valueOf(String.java:2826)
     at java.lang.StringBuilder.append(StringBuilder.java:115)
     at java.util.AbstractMap.toString(AbstractMap.java:490)
     at java.lang.String.valueOf(String.java:2826)
     at java.lang.StringBuffer.append(StringBuffer.java:219)

<snip a few hundred lines>

     at freemarker.core.Environment.visit(Environment.java:210)
     at freemarker.core.MixedContent.accept(MixedContent.java:92)
     at freemarker.core.Environment.visit(Environment.java:210)
     at freemarker.core.Environment.process(Environment.java:190)
     at freemarker.template.Template.process(Template.java:237)
     at 
org.apache.struts2.components.template.FreemarkerTemplateEngine.renderTemplate(FreemarkerTemplateEngine.java:157)
     at org.apache.struts2.components.UIBean.mergeTemplate(UIBean.java:559)
     at org.apache.struts2.components.UIBean.end(UIBean.java:513)
     ... 97 more


<!-- end stack trace -->


Has anyone else faced and solved this?

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message