Used the latest xwork. Am I missing something? On Fri, Dec 20, 2013 at 2:15 AM, Lukasz Lenart <[email protected]> wrote: > Be sure you use the same XWork version as Struts2 because > > http://svn.apache.org/viewvc/struts/struts2/tags/STRUTS_2_3_16/xwork-core/src/main/java/com/opensymphony/xwork2/util/TextParseUtil.java?view=markup#l170 > > points to comment ;-) > > > Regards > -- > Ćukasz > + 48 606 323 122 http://www.lenart.org.pl/ > > 2013/12/19 Andrew Carr <[email protected]>: >> Hello team, >> >> I started to post this as a bug, but thought better of it. I figured >> I would throw it out here and see how it sounds to you pros before >> logging it in Jira. The key thing to remember is this problem does >> not occur using Struts 2.3.4.1. There are a couple of false >> indicators that I have worked through and I do believe this is due to >> a recent change in the code. I have debugged it thoroughly and would >> appreciate any pointers in the right direction. >> >> Should I file this as a bug against 2.3.16? Thanks in advance for >> your expert review. >> >> I have tested this on MAC/OSX with Java 7u25 and 7u45, and tomcat >> 7047, 800rc5, 800rc9 as well. >> >> Call to TextParseUtil.translateVariable throws Null Pointer exception. >> >> This happens when I call >> >> TextProviderFactory.createInstance(Class,LocaleProvider).getText(String) >> >> from an "init()" method of an interceptor. >> >> This works fine in struts 2.3.4.1. After upgrading to 2.3.15.1, >> 2.3.15.3 and 2.3.16, the server fails to deploy the application with >> the following exception: >> >> Caused by: java.lang.NullPointerException >> at >> com.opensymphony.xwork2.util.TextParseUtil.translateVariables(TextParseUtil.java:170) >> at >> com.opensymphony.xwork2.util.TextParseUtil.translateVariables(TextParseUtil.java:127) >> at >> com.opensymphony.xwork2.util.TextParseUtil.translateVariables(TextParseUtil.java:49) >> at >> com.opensymphony.xwork2.util.LocalizedTextUtil.getMessage(LocalizedTextUtil.java:683) >> at >> com.opensymphony.xwork2.util.LocalizedTextUtil.findText(LocalizedTextUtil.java:467) >> at >> com.opensymphony.xwork2.util.LocalizedTextUtil.findText(LocalizedTextUtil.java:362) >> at >> com.opensymphony.xwork2.TextProviderSupport.getText(TextProviderSupport.java:208) >> at >> com.opensymphony.xwork2.TextProviderSupport.getText(TextProviderSupport.java:123) >> at example.TextUtil.getText(TextUtil.java:59) >> at example.HitachiTestInterceptor.init(HitachiTestInterceptor.java:29) >> at >> org.apache.struts2.impl.StrutsObjectFactory.buildInterceptor(StrutsObjectFactory.java:57) >> >> >> The full stack trace is available here: >> http://pastebin.com/Us7AFxWT >> >> I have debugged the code update. It appears this is happening when >> calling ValueStack#findValue(java.lang.String) from the interceptor. >> >> I have time to work on a patch, if this issue is valid. >> >> -- >> With Regards, >> Andrew Carr >> >> e. [email protected] >> w. [email protected] >> h. 4235255668 >> c. 4239489852 >> a. 101 Francis Drive, Greeneville, TN, 37743 >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] >
-- With Regards, Andrew Carr e. [email protected] w. [email protected] h. 4235255668 c. 4239489852 a. 101 Francis Drive, Greeneville, TN, 37743 --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
