Can you check against version 2.3.16 and post the stacktrace again? 2013/12/20 Lukasz Lenart <[email protected]>: > Looks ok :/ > > 2013/12/20 Andrew Carr <[email protected]>: >> My apologies for missing this email. I pasted the code from eclipse, >> however I did it manually from VI before trying it in eclipse. I >> built a fresh TC and put the following in my webapp lib folder: >> >> This is the test app libs that allows it to start properly: >> total 8024 >> drwxr-xr-x 16 andrewcarr staff 544 Dec 19 08:34 . >> drwxr-xr-x 6 andrewcarr staff 204 Dec 4 17:25 .. >> -rw-r--r-- 1 andrewcarr staff 43578 Jun 24 2011 asm-3.3.jar >> -rw-r--r-- 1 andrewcarr staff 38275 Jun 24 2011 asm-commons-3.3.jar >> -rw-r--r-- 1 andrewcarr staff 21503 Jun 24 2011 asm-tree-3.3.jar >> -rw-r--r-- 1 andrewcarr staff 59590 Sep 7 2011 >> commons-fileupload-1.2.2.jar >> -rw-r--r-- 1 andrewcarr staff 159509 Sep 5 2011 commons-io-2.0.1.jar >> -rw-r--r--@ 1 andrewcarr staff 261809 Mar 17 2009 commons-lang-2.4.jar >> -rw-r--r-- 1 andrewcarr staff 315805 Feb 21 2012 commons-lang3-3.1.jar >> -rw-r--r--@ 1 andrewcarr staff 931168 May 4 2012 freemarker-2.3.19.jar >> -rw-r--r-- 1 andrewcarr staff 614203 Oct 13 2010 javassist-3.11.0.GA.jar >> drwxrwxrwx 81 andrewcarr staff 2754 Dec 19 08:34 lib >> -rw-r--r--@ 1 andrewcarr staff 227807 May 4 2012 ognl-3.0.5.jar >> drwxrwxrwx 16 andrewcarr staff 544 Dec 19 08:32 struts-2.3.4.1 >> -rw-r--r--@ 1 andrewcarr staff 783539 Aug 3 2012 >> struts2-core-2.3.4.1.jar >> -rw-r--r--@ 1 andrewcarr staff 628714 Aug 3 2012 xwork-core-2.3.4.1.jar >> >> >> >> This is the test app libs that causes the NPE when calling from init() method >> >> total 8168 >> drwxr-xr-x 15 andrewcarr staff 510 Dec 19 08:39 . >> drwxr-xr-x 6 andrewcarr staff 204 Dec 19 08:36 .. >> -rw-r--r-- 1 andrewcarr staff 43578 Dec 19 08:36 asm-3.3.jar >> -rw-r--r-- 1 andrewcarr staff 38275 Dec 19 08:36 asm-commons-3.3.jar >> -rw-r--r-- 1 andrewcarr staff 21503 Dec 19 08:36 asm-tree-3.3.jar >> -rw-r--r--@ 1 andrewcarr staff 68622 Nov 23 17:57 >> commons-fileupload-1.3.jar >> -rw-r--r--@ 1 andrewcarr staff 173587 Nov 23 17:55 commons-io-2.2.jar >> -rw-r--r--@ 1 andrewcarr staff 261809 Dec 19 08:36 commons-lang-2.4.jar >> -rw-r--r-- 1 andrewcarr staff 315805 Dec 19 08:36 commons-lang3-3.1.jar >> -rw-r--r--@ 1 andrewcarr staff 931168 Dec 19 08:36 freemarker-2.3.19.jar >> -rw-r--r-- 1 andrewcarr staff 614203 Dec 19 08:36 javassist-3.11.0.GA.jar >> -rw-r--r--@ 1 andrewcarr staff 227997 Nov 23 17:55 ognl-3.0.6.jar >> drwxrwxrwx 16 andrewcarr staff 544 Nov 30 12:27 struts-2.3.16 >> -rw-r--r--@ 1 andrewcarr staff 807290 Nov 30 11:42 struts2-core-2.3.16.jar >> -rw-r--r--@ 1 andrewcarr staff 653404 Nov 30 11:39 xwork-core-2.3.16.jar >> >> On Fri, Dec 20, 2013 at 2:34 AM, Lukasz Lenart <[email protected]> >> wrote: >>> Can you list deployed libs? Eclipse is cheating very often ;-) >>> >>> >>> Regards >>> -- >>> Łukasz >>> + 48 606 323 122 http://www.lenart.org.pl/ >>> >>> 2013/12/20 Andrew Carr <[email protected]>: >>>> 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] >>>> >>> >>> --------------------------------------------------------------------- >>> 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] >>
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
