You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Peter Hemmen (Created) (JIRA)" <ji...@apache.org> on 2012/01/19 12:42:52 UTC
[jira] [Created] (WW-3746) Struts 2.3.1.1 OGNL crashes on WebSphere
7
Struts 2.3.1.1 OGNL crashes on WebSphere 7
------------------------------------------
Key: WW-3746
URL: https://issues.apache.org/jira/browse/WW-3746
Project: Struts 2
Issue Type: Bug
Affects Versions: 2.3.1.1
Reporter: Peter Hemmen
Using WebSphere Application Server 7.0.0.11 and upgrading from Struts 2.2.3.1 to 2.3.1.1 breaks the application.
When enforcing the ognl version to 3.0.1, the application works fine. We can't figure out why using ognl 3.0.3 should break anything.
Error messages include:
Server-log:
Caused by: Error on line 31, column 9 in template/simple/radiomap.ftl
stack.findString(parameters.listValue) is undefined.
It cannot be assigned to itemValue - Class: freemarker.core.Assignment
File: Assignment.java
Method: accept
Line: 111 - freemarker/core/Assignment.java:111:-1
at org.apache.struts2.components.UIBean.end(UIBean.java:515)
at org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:42)
Application log:
[2012-01-18 13:17:34,992, ERROR, , Log4JLoggerFactory.java:96] - Template processing error: "Error on line 31, column 9 in template/simple/radiomap.ftl\nstack.findString(parameters.listValue) is undefined.\nIt cannot be assigned to itemValue"
Error on line 31, column 9 in template/simple/radiomap.ftl
stack.findString(parameters.listValue) is undefined.
It cannot be assigned to itemValue
The problematic instruction:
----------
==> assignment: itemValue=stack.findString(parameters.listValue) [on line 31, column 9 in template/simple/radiomap.ftl]
in user-directive s.iterator [on line 23, column 1 in template/simple/radiomap.ftl]
----------
Java backtrace for programmers:
----------
freemarker.core.InvalidReferenceException: Error on line 31, column 9 in template/simple/radiomap.ftl
stack.findString(parameters.listValue) is undefined.
It cannot be assigned to itemValue
at freemarker.core.Assignment.accept(Assignment.java:111)
at freemarker.core.Environment.visit(Environment.java:221)
at freemarker.core.IfBlock.accept(IfBlock.java:82)
at freemarker.core.Environment.visit(Environment.java:221)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:221)
at freemarker.core.Environment.visit(Environment.java:310)
at freemarker.core.UnifiedCall.accept(UnifiedCall.java:130)
at freemarker.core.Environment.visit(Environment.java:221)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:221)
at freemarker.core.Environment.process(Environment.java:199)
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)
at org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:42)
at com.ibm._jsp.<our_JSP_file>._jspx_meth_s_radio_0(<our_JSP_file>.java:637)
at com.ibm._jsp.<our_JSP_file>.access$52(<our_JSP_file>.java:608)
at com.ibm._jsp.<our_JSP_file>$<our_JSP_file>Helper.invoke14(<our_JSP_file>.java:1852)
at com.ibm._jsp.<our_JSP_file>$<our_JSP_file>Helper.invoke(<our_JSP_file>.java:2102)
We think this is the radio-tag in question:
<s:radio name="ourRadioName"
list="#{'true':'Ja', 'false':'Nei'}">
<s:param name="break" value="true" />
</s:radio>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Issue Comment Edited] (WW-3746) Struts 2.3.1.1 OGNL crashes
on WebSphere 7
Posted by "Lukasz Lenart (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WW-3746?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13248671#comment-13248671 ]
Lukasz Lenart edited comment on WW-3746 at 4/6/12 8:06 PM:
-----------------------------------------------------------
Version 3.0.5 of OGNL is under way to Central Repo, next step is update S2.
was (Author: lukaszlenart):
Version 3.0.5 is under way to Central Repo
> Struts 2.3.1.1 OGNL crashes on WebSphere 7
> ------------------------------------------
>
> Key: WW-3746
> URL: https://issues.apache.org/jira/browse/WW-3746
> Project: Struts 2
> Issue Type: Bug
> Affects Versions: 2.3.1.1
> Reporter: Peter Hemmen
> Assignee: Lukasz Lenart
> Fix For: 2.3.2
>
>
> Using WebSphere Application Server 7.0.0.11 and upgrading from Struts 2.2.3.1 to 2.3.1.1 breaks the application.
> When enforcing the ognl version to 3.0.1, the application works fine. We can't figure out why using ognl 3.0.3 should break anything.
> Error messages include:
> Server-log:
> Caused by: Error on line 31, column 9 in template/simple/radiomap.ftl
> stack.findString(parameters.listValue) is undefined.
> It cannot be assigned to itemValue - Class: freemarker.core.Assignment
> File: Assignment.java
> Method: accept
> Line: 111 - freemarker/core/Assignment.java:111:-1
> at org.apache.struts2.components.UIBean.end(UIBean.java:515)
> at org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:42)
>
>
> Application log:
>
> [2012-01-18 13:17:34,992, ERROR, , Log4JLoggerFactory.java:96] - Template processing error: "Error on line 31, column 9 in template/simple/radiomap.ftl\nstack.findString(parameters.listValue) is undefined.\nIt cannot be assigned to itemValue"
> Error on line 31, column 9 in template/simple/radiomap.ftl
> stack.findString(parameters.listValue) is undefined.
> It cannot be assigned to itemValue
> The problematic instruction:
> ----------
> ==> assignment: itemValue=stack.findString(parameters.listValue) [on line 31, column 9 in template/simple/radiomap.ftl]
> in user-directive s.iterator [on line 23, column 1 in template/simple/radiomap.ftl]
> ----------
> Java backtrace for programmers:
> ----------
> freemarker.core.InvalidReferenceException: Error on line 31, column 9 in template/simple/radiomap.ftl
> stack.findString(parameters.listValue) is undefined.
> It cannot be assigned to itemValue
> at freemarker.core.Assignment.accept(Assignment.java:111)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.IfBlock.accept(IfBlock.java:82)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.MixedContent.accept(MixedContent.java:92)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.Environment.visit(Environment.java:310)
> at freemarker.core.UnifiedCall.accept(UnifiedCall.java:130)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.MixedContent.accept(MixedContent.java:92)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.Environment.process(Environment.java:199)
> 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)
> at org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:42)
> at com.ibm._jsp.<our_JSP_file>._jspx_meth_s_radio_0(<our_JSP_file>.java:637)
> at com.ibm._jsp.<our_JSP_file>.access$52(<our_JSP_file>.java:608)
> at com.ibm._jsp.<our_JSP_file>$<our_JSP_file>Helper.invoke14(<our_JSP_file>.java:1852)
> at com.ibm._jsp.<our_JSP_file>$<our_JSP_file>Helper.invoke(<our_JSP_file>.java:2102)
> We think this is the radio-tag in question:
> <s:radio name="ourRadioName"
> list="#{'true':'Ja', 'false':'Nei'}">
> <s:param name="break" value="true" />
> </s:radio>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (WW-3746) Struts 2.3.1.1 OGNL crashes on
WebSphere 7
Posted by "Lukasz Lenart (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WW-3746?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lukasz Lenart resolved WW-3746.
-------------------------------
Resolution: Fixed
Done, new OGNL 3.0.5 released, Struts 2 upgraded. Could you test the latest build ? Thanks in advance!
> Struts 2.3.1.1 OGNL crashes on WebSphere 7
> ------------------------------------------
>
> Key: WW-3746
> URL: https://issues.apache.org/jira/browse/WW-3746
> Project: Struts 2
> Issue Type: Bug
> Affects Versions: 2.3.1.1
> Reporter: Peter Hemmen
> Assignee: Lukasz Lenart
> Fix For: 2.3.2
>
>
> Using WebSphere Application Server 7.0.0.11 and upgrading from Struts 2.2.3.1 to 2.3.1.1 breaks the application.
> When enforcing the ognl version to 3.0.1, the application works fine. We can't figure out why using ognl 3.0.3 should break anything.
> Error messages include:
> Server-log:
> Caused by: Error on line 31, column 9 in template/simple/radiomap.ftl
> stack.findString(parameters.listValue) is undefined.
> It cannot be assigned to itemValue - Class: freemarker.core.Assignment
> File: Assignment.java
> Method: accept
> Line: 111 - freemarker/core/Assignment.java:111:-1
> at org.apache.struts2.components.UIBean.end(UIBean.java:515)
> at org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:42)
>
>
> Application log:
>
> [2012-01-18 13:17:34,992, ERROR, , Log4JLoggerFactory.java:96] - Template processing error: "Error on line 31, column 9 in template/simple/radiomap.ftl\nstack.findString(parameters.listValue) is undefined.\nIt cannot be assigned to itemValue"
> Error on line 31, column 9 in template/simple/radiomap.ftl
> stack.findString(parameters.listValue) is undefined.
> It cannot be assigned to itemValue
> The problematic instruction:
> ----------
> ==> assignment: itemValue=stack.findString(parameters.listValue) [on line 31, column 9 in template/simple/radiomap.ftl]
> in user-directive s.iterator [on line 23, column 1 in template/simple/radiomap.ftl]
> ----------
> Java backtrace for programmers:
> ----------
> freemarker.core.InvalidReferenceException: Error on line 31, column 9 in template/simple/radiomap.ftl
> stack.findString(parameters.listValue) is undefined.
> It cannot be assigned to itemValue
> at freemarker.core.Assignment.accept(Assignment.java:111)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.IfBlock.accept(IfBlock.java:82)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.MixedContent.accept(MixedContent.java:92)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.Environment.visit(Environment.java:310)
> at freemarker.core.UnifiedCall.accept(UnifiedCall.java:130)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.MixedContent.accept(MixedContent.java:92)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.Environment.process(Environment.java:199)
> 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)
> at org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:42)
> at com.ibm._jsp.<our_JSP_file>._jspx_meth_s_radio_0(<our_JSP_file>.java:637)
> at com.ibm._jsp.<our_JSP_file>.access$52(<our_JSP_file>.java:608)
> at com.ibm._jsp.<our_JSP_file>$<our_JSP_file>Helper.invoke14(<our_JSP_file>.java:1852)
> at com.ibm._jsp.<our_JSP_file>$<our_JSP_file>Helper.invoke(<our_JSP_file>.java:2102)
> We think this is the radio-tag in question:
> <s:radio name="ourRadioName"
> list="#{'true':'Ja', 'false':'Nei'}">
> <s:param name="break" value="true" />
> </s:radio>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (WW-3746) Struts 2.3.1.1 OGNL crashes on
WebSphere 7
Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WW-3746?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13249211#comment-13249211 ]
Hudson commented on WW-3746:
----------------------------
Integrated in Struts2 #446 (See [https://builds.apache.org/job/Struts2/446/])
WW-3746 Upgrades OGNL to version 3.0.5 to solve problem with running Struts 2 application within secured environment (Revision 1310686)
Result = SUCCESS
lukaszlenart :
Files :
* /struts/struts2/trunk/pom.xml
> Struts 2.3.1.1 OGNL crashes on WebSphere 7
> ------------------------------------------
>
> Key: WW-3746
> URL: https://issues.apache.org/jira/browse/WW-3746
> Project: Struts 2
> Issue Type: Bug
> Affects Versions: 2.3.1.1
> Reporter: Peter Hemmen
> Assignee: Lukasz Lenart
> Fix For: 2.3.2
>
>
> Using WebSphere Application Server 7.0.0.11 and upgrading from Struts 2.2.3.1 to 2.3.1.1 breaks the application.
> When enforcing the ognl version to 3.0.1, the application works fine. We can't figure out why using ognl 3.0.3 should break anything.
> Error messages include:
> Server-log:
> Caused by: Error on line 31, column 9 in template/simple/radiomap.ftl
> stack.findString(parameters.listValue) is undefined.
> It cannot be assigned to itemValue - Class: freemarker.core.Assignment
> File: Assignment.java
> Method: accept
> Line: 111 - freemarker/core/Assignment.java:111:-1
> at org.apache.struts2.components.UIBean.end(UIBean.java:515)
> at org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:42)
>
>
> Application log:
>
> [2012-01-18 13:17:34,992, ERROR, , Log4JLoggerFactory.java:96] - Template processing error: "Error on line 31, column 9 in template/simple/radiomap.ftl\nstack.findString(parameters.listValue) is undefined.\nIt cannot be assigned to itemValue"
> Error on line 31, column 9 in template/simple/radiomap.ftl
> stack.findString(parameters.listValue) is undefined.
> It cannot be assigned to itemValue
> The problematic instruction:
> ----------
> ==> assignment: itemValue=stack.findString(parameters.listValue) [on line 31, column 9 in template/simple/radiomap.ftl]
> in user-directive s.iterator [on line 23, column 1 in template/simple/radiomap.ftl]
> ----------
> Java backtrace for programmers:
> ----------
> freemarker.core.InvalidReferenceException: Error on line 31, column 9 in template/simple/radiomap.ftl
> stack.findString(parameters.listValue) is undefined.
> It cannot be assigned to itemValue
> at freemarker.core.Assignment.accept(Assignment.java:111)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.IfBlock.accept(IfBlock.java:82)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.MixedContent.accept(MixedContent.java:92)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.Environment.visit(Environment.java:310)
> at freemarker.core.UnifiedCall.accept(UnifiedCall.java:130)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.MixedContent.accept(MixedContent.java:92)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.Environment.process(Environment.java:199)
> 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)
> at org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:42)
> at com.ibm._jsp.<our_JSP_file>._jspx_meth_s_radio_0(<our_JSP_file>.java:637)
> at com.ibm._jsp.<our_JSP_file>.access$52(<our_JSP_file>.java:608)
> at com.ibm._jsp.<our_JSP_file>$<our_JSP_file>Helper.invoke14(<our_JSP_file>.java:1852)
> at com.ibm._jsp.<our_JSP_file>$<our_JSP_file>Helper.invoke(<our_JSP_file>.java:2102)
> We think this is the radio-tag in question:
> <s:radio name="ourRadioName"
> list="#{'true':'Ja', 'false':'Nei'}">
> <s:param name="break" value="true" />
> </s:radio>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (WW-3746) Struts 2.3.1.1 OGNL crashes on
WebSphere 7
Posted by "Lukasz Lenart (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WW-3746?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13226145#comment-13226145 ]
Lukasz Lenart commented on WW-3746:
-----------------------------------
Or I can release a new version base on that [1] if someone could prepare a patch or lead me what should be changed.
[1] https://github.com/jkuhnert/ognl
> Struts 2.3.1.1 OGNL crashes on WebSphere 7
> ------------------------------------------
>
> Key: WW-3746
> URL: https://issues.apache.org/jira/browse/WW-3746
> Project: Struts 2
> Issue Type: Bug
> Affects Versions: 2.3.1.1
> Reporter: Peter Hemmen
> Fix For: 2.5
>
>
> Using WebSphere Application Server 7.0.0.11 and upgrading from Struts 2.2.3.1 to 2.3.1.1 breaks the application.
> When enforcing the ognl version to 3.0.1, the application works fine. We can't figure out why using ognl 3.0.3 should break anything.
> Error messages include:
> Server-log:
> Caused by: Error on line 31, column 9 in template/simple/radiomap.ftl
> stack.findString(parameters.listValue) is undefined.
> It cannot be assigned to itemValue - Class: freemarker.core.Assignment
> File: Assignment.java
> Method: accept
> Line: 111 - freemarker/core/Assignment.java:111:-1
> at org.apache.struts2.components.UIBean.end(UIBean.java:515)
> at org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:42)
>
>
> Application log:
>
> [2012-01-18 13:17:34,992, ERROR, , Log4JLoggerFactory.java:96] - Template processing error: "Error on line 31, column 9 in template/simple/radiomap.ftl\nstack.findString(parameters.listValue) is undefined.\nIt cannot be assigned to itemValue"
> Error on line 31, column 9 in template/simple/radiomap.ftl
> stack.findString(parameters.listValue) is undefined.
> It cannot be assigned to itemValue
> The problematic instruction:
> ----------
> ==> assignment: itemValue=stack.findString(parameters.listValue) [on line 31, column 9 in template/simple/radiomap.ftl]
> in user-directive s.iterator [on line 23, column 1 in template/simple/radiomap.ftl]
> ----------
> Java backtrace for programmers:
> ----------
> freemarker.core.InvalidReferenceException: Error on line 31, column 9 in template/simple/radiomap.ftl
> stack.findString(parameters.listValue) is undefined.
> It cannot be assigned to itemValue
> at freemarker.core.Assignment.accept(Assignment.java:111)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.IfBlock.accept(IfBlock.java:82)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.MixedContent.accept(MixedContent.java:92)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.Environment.visit(Environment.java:310)
> at freemarker.core.UnifiedCall.accept(UnifiedCall.java:130)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.MixedContent.accept(MixedContent.java:92)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.Environment.process(Environment.java:199)
> 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)
> at org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:42)
> at com.ibm._jsp.<our_JSP_file>._jspx_meth_s_radio_0(<our_JSP_file>.java:637)
> at com.ibm._jsp.<our_JSP_file>.access$52(<our_JSP_file>.java:608)
> at com.ibm._jsp.<our_JSP_file>$<our_JSP_file>Helper.invoke14(<our_JSP_file>.java:1852)
> at com.ibm._jsp.<our_JSP_file>$<our_JSP_file>Helper.invoke(<our_JSP_file>.java:2102)
> We think this is the radio-tag in question:
> <s:radio name="ourRadioName"
> list="#{'true':'Ja', 'false':'Nei'}">
> <s:param name="break" value="true" />
> </s:radio>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (WW-3746) Struts 2.3.1.1 OGNL crashes on
WebSphere 7
Posted by "Peter Hemmen (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WW-3746?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13189162#comment-13189162 ]
Peter Hemmen commented on WW-3746:
----------------------------------
I just rechecked the log files, and compared them when using both versions of ognl. I can't say that I see anything suspicious during startup. I agree that it does seem like a classloading issue, but I can't make sense of why it can be "fixed" by enforcing ognl 3.0.1.
> Struts 2.3.1.1 OGNL crashes on WebSphere 7
> ------------------------------------------
>
> Key: WW-3746
> URL: https://issues.apache.org/jira/browse/WW-3746
> Project: Struts 2
> Issue Type: Bug
> Affects Versions: 2.3.1.1
> Reporter: Peter Hemmen
>
> Using WebSphere Application Server 7.0.0.11 and upgrading from Struts 2.2.3.1 to 2.3.1.1 breaks the application.
> When enforcing the ognl version to 3.0.1, the application works fine. We can't figure out why using ognl 3.0.3 should break anything.
> Error messages include:
> Server-log:
> Caused by: Error on line 31, column 9 in template/simple/radiomap.ftl
> stack.findString(parameters.listValue) is undefined.
> It cannot be assigned to itemValue - Class: freemarker.core.Assignment
> File: Assignment.java
> Method: accept
> Line: 111 - freemarker/core/Assignment.java:111:-1
> at org.apache.struts2.components.UIBean.end(UIBean.java:515)
> at org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:42)
>
>
> Application log:
>
> [2012-01-18 13:17:34,992, ERROR, , Log4JLoggerFactory.java:96] - Template processing error: "Error on line 31, column 9 in template/simple/radiomap.ftl\nstack.findString(parameters.listValue) is undefined.\nIt cannot be assigned to itemValue"
> Error on line 31, column 9 in template/simple/radiomap.ftl
> stack.findString(parameters.listValue) is undefined.
> It cannot be assigned to itemValue
> The problematic instruction:
> ----------
> ==> assignment: itemValue=stack.findString(parameters.listValue) [on line 31, column 9 in template/simple/radiomap.ftl]
> in user-directive s.iterator [on line 23, column 1 in template/simple/radiomap.ftl]
> ----------
> Java backtrace for programmers:
> ----------
> freemarker.core.InvalidReferenceException: Error on line 31, column 9 in template/simple/radiomap.ftl
> stack.findString(parameters.listValue) is undefined.
> It cannot be assigned to itemValue
> at freemarker.core.Assignment.accept(Assignment.java:111)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.IfBlock.accept(IfBlock.java:82)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.MixedContent.accept(MixedContent.java:92)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.Environment.visit(Environment.java:310)
> at freemarker.core.UnifiedCall.accept(UnifiedCall.java:130)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.MixedContent.accept(MixedContent.java:92)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.Environment.process(Environment.java:199)
> 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)
> at org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:42)
> at com.ibm._jsp.<our_JSP_file>._jspx_meth_s_radio_0(<our_JSP_file>.java:637)
> at com.ibm._jsp.<our_JSP_file>.access$52(<our_JSP_file>.java:608)
> at com.ibm._jsp.<our_JSP_file>$<our_JSP_file>Helper.invoke14(<our_JSP_file>.java:1852)
> at com.ibm._jsp.<our_JSP_file>$<our_JSP_file>Helper.invoke(<our_JSP_file>.java:2102)
> We think this is the radio-tag in question:
> <s:radio name="ourRadioName"
> list="#{'true':'Ja', 'false':'Nei'}">
> <s:param name="break" value="true" />
> </s:radio>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (WW-3746) Struts 2.3.1.1 OGNL crashes on WebSphere
7
Posted by "Lukasz Lenart (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WW-3746?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lukasz Lenart updated WW-3746:
------------------------------
Fix Version/s: (was: 2.5)
2.3.2
Assignee: Lukasz Lenart
> Struts 2.3.1.1 OGNL crashes on WebSphere 7
> ------------------------------------------
>
> Key: WW-3746
> URL: https://issues.apache.org/jira/browse/WW-3746
> Project: Struts 2
> Issue Type: Bug
> Affects Versions: 2.3.1.1
> Reporter: Peter Hemmen
> Assignee: Lukasz Lenart
> Fix For: 2.3.2
>
>
> Using WebSphere Application Server 7.0.0.11 and upgrading from Struts 2.2.3.1 to 2.3.1.1 breaks the application.
> When enforcing the ognl version to 3.0.1, the application works fine. We can't figure out why using ognl 3.0.3 should break anything.
> Error messages include:
> Server-log:
> Caused by: Error on line 31, column 9 in template/simple/radiomap.ftl
> stack.findString(parameters.listValue) is undefined.
> It cannot be assigned to itemValue - Class: freemarker.core.Assignment
> File: Assignment.java
> Method: accept
> Line: 111 - freemarker/core/Assignment.java:111:-1
> at org.apache.struts2.components.UIBean.end(UIBean.java:515)
> at org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:42)
>
>
> Application log:
>
> [2012-01-18 13:17:34,992, ERROR, , Log4JLoggerFactory.java:96] - Template processing error: "Error on line 31, column 9 in template/simple/radiomap.ftl\nstack.findString(parameters.listValue) is undefined.\nIt cannot be assigned to itemValue"
> Error on line 31, column 9 in template/simple/radiomap.ftl
> stack.findString(parameters.listValue) is undefined.
> It cannot be assigned to itemValue
> The problematic instruction:
> ----------
> ==> assignment: itemValue=stack.findString(parameters.listValue) [on line 31, column 9 in template/simple/radiomap.ftl]
> in user-directive s.iterator [on line 23, column 1 in template/simple/radiomap.ftl]
> ----------
> Java backtrace for programmers:
> ----------
> freemarker.core.InvalidReferenceException: Error on line 31, column 9 in template/simple/radiomap.ftl
> stack.findString(parameters.listValue) is undefined.
> It cannot be assigned to itemValue
> at freemarker.core.Assignment.accept(Assignment.java:111)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.IfBlock.accept(IfBlock.java:82)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.MixedContent.accept(MixedContent.java:92)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.Environment.visit(Environment.java:310)
> at freemarker.core.UnifiedCall.accept(UnifiedCall.java:130)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.MixedContent.accept(MixedContent.java:92)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.Environment.process(Environment.java:199)
> 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)
> at org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:42)
> at com.ibm._jsp.<our_JSP_file>._jspx_meth_s_radio_0(<our_JSP_file>.java:637)
> at com.ibm._jsp.<our_JSP_file>.access$52(<our_JSP_file>.java:608)
> at com.ibm._jsp.<our_JSP_file>$<our_JSP_file>Helper.invoke14(<our_JSP_file>.java:1852)
> at com.ibm._jsp.<our_JSP_file>$<our_JSP_file>Helper.invoke(<our_JSP_file>.java:2102)
> We think this is the radio-tag in question:
> <s:radio name="ourRadioName"
> list="#{'true':'Ja', 'false':'Nei'}">
> <s:param name="break" value="true" />
> </s:radio>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (WW-3746) Struts 2.3.1.1 OGNL crashes on
WebSphere 7
Posted by "Kjetil Ødegaard (Commented JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WW-3746?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13227211#comment-13227211 ]
Kjetil Ødegaard commented on WW-3746:
-------------------------------------
This commit reverses the changes:
https://github.com/kjetilod/ognl/commit/db0fcaffbb7f7992c01ee865d50252a305f30cb9
Warning: This is only lightly tested, but it seems to fix the problem for us. The code is also identical with the previous version of this method.
> Struts 2.3.1.1 OGNL crashes on WebSphere 7
> ------------------------------------------
>
> Key: WW-3746
> URL: https://issues.apache.org/jira/browse/WW-3746
> Project: Struts 2
> Issue Type: Bug
> Affects Versions: 2.3.1.1
> Reporter: Peter Hemmen
> Fix For: 2.5
>
>
> Using WebSphere Application Server 7.0.0.11 and upgrading from Struts 2.2.3.1 to 2.3.1.1 breaks the application.
> When enforcing the ognl version to 3.0.1, the application works fine. We can't figure out why using ognl 3.0.3 should break anything.
> Error messages include:
> Server-log:
> Caused by: Error on line 31, column 9 in template/simple/radiomap.ftl
> stack.findString(parameters.listValue) is undefined.
> It cannot be assigned to itemValue - Class: freemarker.core.Assignment
> File: Assignment.java
> Method: accept
> Line: 111 - freemarker/core/Assignment.java:111:-1
> at org.apache.struts2.components.UIBean.end(UIBean.java:515)
> at org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:42)
>
>
> Application log:
>
> [2012-01-18 13:17:34,992, ERROR, , Log4JLoggerFactory.java:96] - Template processing error: "Error on line 31, column 9 in template/simple/radiomap.ftl\nstack.findString(parameters.listValue) is undefined.\nIt cannot be assigned to itemValue"
> Error on line 31, column 9 in template/simple/radiomap.ftl
> stack.findString(parameters.listValue) is undefined.
> It cannot be assigned to itemValue
> The problematic instruction:
> ----------
> ==> assignment: itemValue=stack.findString(parameters.listValue) [on line 31, column 9 in template/simple/radiomap.ftl]
> in user-directive s.iterator [on line 23, column 1 in template/simple/radiomap.ftl]
> ----------
> Java backtrace for programmers:
> ----------
> freemarker.core.InvalidReferenceException: Error on line 31, column 9 in template/simple/radiomap.ftl
> stack.findString(parameters.listValue) is undefined.
> It cannot be assigned to itemValue
> at freemarker.core.Assignment.accept(Assignment.java:111)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.IfBlock.accept(IfBlock.java:82)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.MixedContent.accept(MixedContent.java:92)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.Environment.visit(Environment.java:310)
> at freemarker.core.UnifiedCall.accept(UnifiedCall.java:130)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.MixedContent.accept(MixedContent.java:92)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.Environment.process(Environment.java:199)
> 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)
> at org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:42)
> at com.ibm._jsp.<our_JSP_file>._jspx_meth_s_radio_0(<our_JSP_file>.java:637)
> at com.ibm._jsp.<our_JSP_file>.access$52(<our_JSP_file>.java:608)
> at com.ibm._jsp.<our_JSP_file>$<our_JSP_file>Helper.invoke14(<our_JSP_file>.java:1852)
> at com.ibm._jsp.<our_JSP_file>$<our_JSP_file>Helper.invoke(<our_JSP_file>.java:2102)
> We think this is the radio-tag in question:
> <s:radio name="ourRadioName"
> list="#{'true':'Ja', 'false':'Nei'}">
> <s:param name="break" value="true" />
> </s:radio>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (WW-3746) Struts 2.3.1.1 OGNL crashes on
WebSphere 7
Posted by "Kjetil Ødegaard (Commented JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WW-3746?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13226006#comment-13226006 ]
Kjetil Ødegaard commented on WW-3746:
-------------------------------------
We've investigated this further, and it looks like this is the culprit:
https://issues.apache.org/jira/browse/OGNL-44
We only get this error with Java 2 Security enabled.
> Struts 2.3.1.1 OGNL crashes on WebSphere 7
> ------------------------------------------
>
> Key: WW-3746
> URL: https://issues.apache.org/jira/browse/WW-3746
> Project: Struts 2
> Issue Type: Bug
> Affects Versions: 2.3.1.1
> Reporter: Peter Hemmen
>
> Using WebSphere Application Server 7.0.0.11 and upgrading from Struts 2.2.3.1 to 2.3.1.1 breaks the application.
> When enforcing the ognl version to 3.0.1, the application works fine. We can't figure out why using ognl 3.0.3 should break anything.
> Error messages include:
> Server-log:
> Caused by: Error on line 31, column 9 in template/simple/radiomap.ftl
> stack.findString(parameters.listValue) is undefined.
> It cannot be assigned to itemValue - Class: freemarker.core.Assignment
> File: Assignment.java
> Method: accept
> Line: 111 - freemarker/core/Assignment.java:111:-1
> at org.apache.struts2.components.UIBean.end(UIBean.java:515)
> at org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:42)
>
>
> Application log:
>
> [2012-01-18 13:17:34,992, ERROR, , Log4JLoggerFactory.java:96] - Template processing error: "Error on line 31, column 9 in template/simple/radiomap.ftl\nstack.findString(parameters.listValue) is undefined.\nIt cannot be assigned to itemValue"
> Error on line 31, column 9 in template/simple/radiomap.ftl
> stack.findString(parameters.listValue) is undefined.
> It cannot be assigned to itemValue
> The problematic instruction:
> ----------
> ==> assignment: itemValue=stack.findString(parameters.listValue) [on line 31, column 9 in template/simple/radiomap.ftl]
> in user-directive s.iterator [on line 23, column 1 in template/simple/radiomap.ftl]
> ----------
> Java backtrace for programmers:
> ----------
> freemarker.core.InvalidReferenceException: Error on line 31, column 9 in template/simple/radiomap.ftl
> stack.findString(parameters.listValue) is undefined.
> It cannot be assigned to itemValue
> at freemarker.core.Assignment.accept(Assignment.java:111)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.IfBlock.accept(IfBlock.java:82)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.MixedContent.accept(MixedContent.java:92)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.Environment.visit(Environment.java:310)
> at freemarker.core.UnifiedCall.accept(UnifiedCall.java:130)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.MixedContent.accept(MixedContent.java:92)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.Environment.process(Environment.java:199)
> 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)
> at org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:42)
> at com.ibm._jsp.<our_JSP_file>._jspx_meth_s_radio_0(<our_JSP_file>.java:637)
> at com.ibm._jsp.<our_JSP_file>.access$52(<our_JSP_file>.java:608)
> at com.ibm._jsp.<our_JSP_file>$<our_JSP_file>Helper.invoke14(<our_JSP_file>.java:1852)
> at com.ibm._jsp.<our_JSP_file>$<our_JSP_file>Helper.invoke(<our_JSP_file>.java:2102)
> We think this is the radio-tag in question:
> <s:radio name="ourRadioName"
> list="#{'true':'Ja', 'false':'Nei'}">
> <s:param name="break" value="true" />
> </s:radio>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (WW-3746) Struts 2.3.1.1 OGNL crashes on WebSphere
7
Posted by "Lukasz Lenart (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WW-3746?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lukasz Lenart updated WW-3746:
------------------------------
Fix Version/s: 2.5
I must postpone fixing this till OGNL will be release with the fix
> Struts 2.3.1.1 OGNL crashes on WebSphere 7
> ------------------------------------------
>
> Key: WW-3746
> URL: https://issues.apache.org/jira/browse/WW-3746
> Project: Struts 2
> Issue Type: Bug
> Affects Versions: 2.3.1.1
> Reporter: Peter Hemmen
> Fix For: 2.5
>
>
> Using WebSphere Application Server 7.0.0.11 and upgrading from Struts 2.2.3.1 to 2.3.1.1 breaks the application.
> When enforcing the ognl version to 3.0.1, the application works fine. We can't figure out why using ognl 3.0.3 should break anything.
> Error messages include:
> Server-log:
> Caused by: Error on line 31, column 9 in template/simple/radiomap.ftl
> stack.findString(parameters.listValue) is undefined.
> It cannot be assigned to itemValue - Class: freemarker.core.Assignment
> File: Assignment.java
> Method: accept
> Line: 111 - freemarker/core/Assignment.java:111:-1
> at org.apache.struts2.components.UIBean.end(UIBean.java:515)
> at org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:42)
>
>
> Application log:
>
> [2012-01-18 13:17:34,992, ERROR, , Log4JLoggerFactory.java:96] - Template processing error: "Error on line 31, column 9 in template/simple/radiomap.ftl\nstack.findString(parameters.listValue) is undefined.\nIt cannot be assigned to itemValue"
> Error on line 31, column 9 in template/simple/radiomap.ftl
> stack.findString(parameters.listValue) is undefined.
> It cannot be assigned to itemValue
> The problematic instruction:
> ----------
> ==> assignment: itemValue=stack.findString(parameters.listValue) [on line 31, column 9 in template/simple/radiomap.ftl]
> in user-directive s.iterator [on line 23, column 1 in template/simple/radiomap.ftl]
> ----------
> Java backtrace for programmers:
> ----------
> freemarker.core.InvalidReferenceException: Error on line 31, column 9 in template/simple/radiomap.ftl
> stack.findString(parameters.listValue) is undefined.
> It cannot be assigned to itemValue
> at freemarker.core.Assignment.accept(Assignment.java:111)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.IfBlock.accept(IfBlock.java:82)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.MixedContent.accept(MixedContent.java:92)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.Environment.visit(Environment.java:310)
> at freemarker.core.UnifiedCall.accept(UnifiedCall.java:130)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.MixedContent.accept(MixedContent.java:92)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.Environment.process(Environment.java:199)
> 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)
> at org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:42)
> at com.ibm._jsp.<our_JSP_file>._jspx_meth_s_radio_0(<our_JSP_file>.java:637)
> at com.ibm._jsp.<our_JSP_file>.access$52(<our_JSP_file>.java:608)
> at com.ibm._jsp.<our_JSP_file>$<our_JSP_file>Helper.invoke14(<our_JSP_file>.java:1852)
> at com.ibm._jsp.<our_JSP_file>$<our_JSP_file>Helper.invoke(<our_JSP_file>.java:2102)
> We think this is the radio-tag in question:
> <s:radio name="ourRadioName"
> list="#{'true':'Ja', 'false':'Nei'}">
> <s:param name="break" value="true" />
> </s:radio>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (WW-3746) Struts 2.3.1.1 OGNL crashes on
WebSphere 7
Posted by "Lukasz Lenart (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WW-3746?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13248671#comment-13248671 ]
Lukasz Lenart commented on WW-3746:
-----------------------------------
Version 3.0.5 is under way to Central Repo
> Struts 2.3.1.1 OGNL crashes on WebSphere 7
> ------------------------------------------
>
> Key: WW-3746
> URL: https://issues.apache.org/jira/browse/WW-3746
> Project: Struts 2
> Issue Type: Bug
> Affects Versions: 2.3.1.1
> Reporter: Peter Hemmen
> Assignee: Lukasz Lenart
> Fix For: 2.3.2
>
>
> Using WebSphere Application Server 7.0.0.11 and upgrading from Struts 2.2.3.1 to 2.3.1.1 breaks the application.
> When enforcing the ognl version to 3.0.1, the application works fine. We can't figure out why using ognl 3.0.3 should break anything.
> Error messages include:
> Server-log:
> Caused by: Error on line 31, column 9 in template/simple/radiomap.ftl
> stack.findString(parameters.listValue) is undefined.
> It cannot be assigned to itemValue - Class: freemarker.core.Assignment
> File: Assignment.java
> Method: accept
> Line: 111 - freemarker/core/Assignment.java:111:-1
> at org.apache.struts2.components.UIBean.end(UIBean.java:515)
> at org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:42)
>
>
> Application log:
>
> [2012-01-18 13:17:34,992, ERROR, , Log4JLoggerFactory.java:96] - Template processing error: "Error on line 31, column 9 in template/simple/radiomap.ftl\nstack.findString(parameters.listValue) is undefined.\nIt cannot be assigned to itemValue"
> Error on line 31, column 9 in template/simple/radiomap.ftl
> stack.findString(parameters.listValue) is undefined.
> It cannot be assigned to itemValue
> The problematic instruction:
> ----------
> ==> assignment: itemValue=stack.findString(parameters.listValue) [on line 31, column 9 in template/simple/radiomap.ftl]
> in user-directive s.iterator [on line 23, column 1 in template/simple/radiomap.ftl]
> ----------
> Java backtrace for programmers:
> ----------
> freemarker.core.InvalidReferenceException: Error on line 31, column 9 in template/simple/radiomap.ftl
> stack.findString(parameters.listValue) is undefined.
> It cannot be assigned to itemValue
> at freemarker.core.Assignment.accept(Assignment.java:111)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.IfBlock.accept(IfBlock.java:82)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.MixedContent.accept(MixedContent.java:92)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.Environment.visit(Environment.java:310)
> at freemarker.core.UnifiedCall.accept(UnifiedCall.java:130)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.MixedContent.accept(MixedContent.java:92)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.Environment.process(Environment.java:199)
> 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)
> at org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:42)
> at com.ibm._jsp.<our_JSP_file>._jspx_meth_s_radio_0(<our_JSP_file>.java:637)
> at com.ibm._jsp.<our_JSP_file>.access$52(<our_JSP_file>.java:608)
> at com.ibm._jsp.<our_JSP_file>$<our_JSP_file>Helper.invoke14(<our_JSP_file>.java:1852)
> at com.ibm._jsp.<our_JSP_file>$<our_JSP_file>Helper.invoke(<our_JSP_file>.java:2102)
> We think this is the radio-tag in question:
> <s:radio name="ourRadioName"
> list="#{'true':'Ja', 'false':'Nei'}">
> <s:param name="break" value="true" />
> </s:radio>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (WW-3746) Struts 2.3.1.1 OGNL crashes on
WebSphere 7
Posted by "Philip Luppens (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WW-3746?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13189073#comment-13189073 ]
Philip Luppens commented on WW-3746:
------------------------------------
Are you positive there's no classloading issue? Anything suspicious in the log file earlier during startup?
> Struts 2.3.1.1 OGNL crashes on WebSphere 7
> ------------------------------------------
>
> Key: WW-3746
> URL: https://issues.apache.org/jira/browse/WW-3746
> Project: Struts 2
> Issue Type: Bug
> Affects Versions: 2.3.1.1
> Reporter: Peter Hemmen
>
> Using WebSphere Application Server 7.0.0.11 and upgrading from Struts 2.2.3.1 to 2.3.1.1 breaks the application.
> When enforcing the ognl version to 3.0.1, the application works fine. We can't figure out why using ognl 3.0.3 should break anything.
> Error messages include:
> Server-log:
> Caused by: Error on line 31, column 9 in template/simple/radiomap.ftl
> stack.findString(parameters.listValue) is undefined.
> It cannot be assigned to itemValue - Class: freemarker.core.Assignment
> File: Assignment.java
> Method: accept
> Line: 111 - freemarker/core/Assignment.java:111:-1
> at org.apache.struts2.components.UIBean.end(UIBean.java:515)
> at org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:42)
>
>
> Application log:
>
> [2012-01-18 13:17:34,992, ERROR, , Log4JLoggerFactory.java:96] - Template processing error: "Error on line 31, column 9 in template/simple/radiomap.ftl\nstack.findString(parameters.listValue) is undefined.\nIt cannot be assigned to itemValue"
> Error on line 31, column 9 in template/simple/radiomap.ftl
> stack.findString(parameters.listValue) is undefined.
> It cannot be assigned to itemValue
> The problematic instruction:
> ----------
> ==> assignment: itemValue=stack.findString(parameters.listValue) [on line 31, column 9 in template/simple/radiomap.ftl]
> in user-directive s.iterator [on line 23, column 1 in template/simple/radiomap.ftl]
> ----------
> Java backtrace for programmers:
> ----------
> freemarker.core.InvalidReferenceException: Error on line 31, column 9 in template/simple/radiomap.ftl
> stack.findString(parameters.listValue) is undefined.
> It cannot be assigned to itemValue
> at freemarker.core.Assignment.accept(Assignment.java:111)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.IfBlock.accept(IfBlock.java:82)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.MixedContent.accept(MixedContent.java:92)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.Environment.visit(Environment.java:310)
> at freemarker.core.UnifiedCall.accept(UnifiedCall.java:130)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.MixedContent.accept(MixedContent.java:92)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.Environment.process(Environment.java:199)
> 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)
> at org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:42)
> at com.ibm._jsp.<our_JSP_file>._jspx_meth_s_radio_0(<our_JSP_file>.java:637)
> at com.ibm._jsp.<our_JSP_file>.access$52(<our_JSP_file>.java:608)
> at com.ibm._jsp.<our_JSP_file>$<our_JSP_file>Helper.invoke14(<our_JSP_file>.java:1852)
> at com.ibm._jsp.<our_JSP_file>$<our_JSP_file>Helper.invoke(<our_JSP_file>.java:2102)
> We think this is the radio-tag in question:
> <s:radio name="ourRadioName"
> list="#{'true':'Ja', 'false':'Nei'}">
> <s:param name="break" value="true" />
> </s:radio>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (WW-3746) Struts 2.3.1.1 OGNL crashes on
WebSphere 7
Posted by "Philip Luppens (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WW-3746?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13189178#comment-13189178 ]
Philip Luppens commented on WW-3746:
------------------------------------
My first idea would have been a duplicate xwork jar somewhere on the classpath, but if that's not the case, then it might be something more dark deep inside the OGNL/Freemarker integration.
I cannot promise anything, but I'll try to have a look at another project that recently encountered a similarly strange error in a single Freemarker template after the upgrade to OGNL 3.0.3. If I find anything, I'll report back.
> Struts 2.3.1.1 OGNL crashes on WebSphere 7
> ------------------------------------------
>
> Key: WW-3746
> URL: https://issues.apache.org/jira/browse/WW-3746
> Project: Struts 2
> Issue Type: Bug
> Affects Versions: 2.3.1.1
> Reporter: Peter Hemmen
>
> Using WebSphere Application Server 7.0.0.11 and upgrading from Struts 2.2.3.1 to 2.3.1.1 breaks the application.
> When enforcing the ognl version to 3.0.1, the application works fine. We can't figure out why using ognl 3.0.3 should break anything.
> Error messages include:
> Server-log:
> Caused by: Error on line 31, column 9 in template/simple/radiomap.ftl
> stack.findString(parameters.listValue) is undefined.
> It cannot be assigned to itemValue - Class: freemarker.core.Assignment
> File: Assignment.java
> Method: accept
> Line: 111 - freemarker/core/Assignment.java:111:-1
> at org.apache.struts2.components.UIBean.end(UIBean.java:515)
> at org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:42)
>
>
> Application log:
>
> [2012-01-18 13:17:34,992, ERROR, , Log4JLoggerFactory.java:96] - Template processing error: "Error on line 31, column 9 in template/simple/radiomap.ftl\nstack.findString(parameters.listValue) is undefined.\nIt cannot be assigned to itemValue"
> Error on line 31, column 9 in template/simple/radiomap.ftl
> stack.findString(parameters.listValue) is undefined.
> It cannot be assigned to itemValue
> The problematic instruction:
> ----------
> ==> assignment: itemValue=stack.findString(parameters.listValue) [on line 31, column 9 in template/simple/radiomap.ftl]
> in user-directive s.iterator [on line 23, column 1 in template/simple/radiomap.ftl]
> ----------
> Java backtrace for programmers:
> ----------
> freemarker.core.InvalidReferenceException: Error on line 31, column 9 in template/simple/radiomap.ftl
> stack.findString(parameters.listValue) is undefined.
> It cannot be assigned to itemValue
> at freemarker.core.Assignment.accept(Assignment.java:111)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.IfBlock.accept(IfBlock.java:82)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.MixedContent.accept(MixedContent.java:92)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.Environment.visit(Environment.java:310)
> at freemarker.core.UnifiedCall.accept(UnifiedCall.java:130)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.MixedContent.accept(MixedContent.java:92)
> at freemarker.core.Environment.visit(Environment.java:221)
> at freemarker.core.Environment.process(Environment.java:199)
> 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)
> at org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:42)
> at com.ibm._jsp.<our_JSP_file>._jspx_meth_s_radio_0(<our_JSP_file>.java:637)
> at com.ibm._jsp.<our_JSP_file>.access$52(<our_JSP_file>.java:608)
> at com.ibm._jsp.<our_JSP_file>$<our_JSP_file>Helper.invoke14(<our_JSP_file>.java:1852)
> at com.ibm._jsp.<our_JSP_file>$<our_JSP_file>Helper.invoke(<our_JSP_file>.java:2102)
> We think this is the radio-tag in question:
> <s:radio name="ourRadioName"
> list="#{'true':'Ja', 'false':'Nei'}">
> <s:param name="break" value="true" />
> </s:radio>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira