struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy Birchall <andy.birch...@gmail.com>
Subject Re: Exception when using Struts debug tag on Glassfish
Date Sat, 18 Jun 2011 12:41:20 GMT
Thanks, don't know why I thought 2.2.1 was the latest version, bit of
a brain fail on my part there.
I've tried the latest 2.2.3 and still get the same error though when
using the <s:debug> tag :(
Andy

On 17 June 2011 01:12, Maurizio Cucchiara <mcucchiara@apache.org> wrote:
> 2.2.1 is not exactly the latest version. Take a look at
> http://struts.apache.org, upgrade your S2 version and see what happens (I'm
> not sure it will work, but it surely worths a try)
>
> Maurizio Cucchiara
>
> Il giorno 16/giu/2011 17.18, "Andy Birchall" <andy.birchall@gmail.com> ha
> scritto:
>> Hello, I am using the latest Struts2 release - 2.2.1 and have it
>> declared as a dependecy in Maven:
>>
>> <dependency>
>> <groupId>org.apache.struts</groupId>
>> <artifactId>struts2-core</artifactId>
>> <version>2.2.1</version>
>> </dependency>
>>
>> and I am running on Glassfish 3.1
>>
>> I have a simple JSP page which includes the <s:debug/> tag in the body
>>
>> With the debug tag I get the following exception:
>>
>> 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)
>> at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:130)
>> at freemarker.core.MethodCall._getAsTemplateModel(MethodCall.java:93)
>> at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
>> at freemarker.core.Expression.getStringValue(Expression.java:93)
>> at
> freemarker.core.StringBuiltins$StringBuiltIn._getAsTemplateModel(StringBuiltins.java:71)
>> at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
>> at freemarker.core.Expression.getStringValue(Expression.java:93)
>> at freemarker.core.DollarVariable.accept(DollarVariable.java:76)
>> at freemarker.core.Environment.visit(Environment.java:210)
>> at freemarker.core.IfBlock.accept(IfBlock.java:82)
>> 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.IteratorBlock$Context.runLoop(IteratorBlock.java:167)
>> at freemarker.core.Environment.visit(Environment.java:417)
>> at freemarker.core.IteratorBlock.accept(IteratorBlock.java:102)
>> 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)
>> ... 93 more
>>
>> Without the the <s:debug/> tag the page loads and runs fine.
>> Also if I deploy to Tomcat it works fine.
>>
>> Can anyone help with this?
>>
>> Many thanks
>> Andy Birchall
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>

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


Mime
View raw message