Re: NPE in StrutsUploadedFile

2025-05-05 Thread Lukasz Lenart
PR is ready for review https://github.com/apache/struts/pull/1262 wt., 29 kwi 2025 o 19:13 Lukasz Lenart napisał(a): > > wt., 29 kwi 2025 o 14:59 Tamás Barta napisał(a): > > Lukas, could you please fix this bug? > > Sure, please register a ticket :) > > > Cheers > Łukasz ---

Re: NPE in StrutsUploadedFile

2025-04-29 Thread Lukasz Lenart
wt., 29 kwi 2025 o 14:59 Tamás Barta napisał(a): > Lukas, could you please fix this bug? Sure, please register a ticket :) Cheers Łukasz - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-m

Re: NPE in StrutsUploadedFile

2025-04-29 Thread Tamás Barta
Hi! I'm afraid I can't and the action class itself is not relevant here, because it isn't called yet. Before the ERROR log (the stacktrace) there is only one log line with empty message: 2025-04-29 10:08:21,810 WARN [org.apache.struts2.interceptor.AbstractFileUploadInterceptor] (default task-131

Re: NPE in StrutsUploadedFile

2025-04-29 Thread M Huzaifah
Hii Tamás, Could you please attach your action class, so all of us in here can see the details. Thank you On Tue, Apr 29, 2025 at 7:00 PM Tamás Barta wrote: > > Hi! > > We use Struts 6.7.4 and today we got the following exception in our > production system. I don't know how it is possible or ho

Re: NPE using OpenSessionBackgroundProcess class

2021-01-26 Thread Burton Rhodes
Ahh... many thanks. On Tue, Jan 26, 2021 at 7:02 AM Lukasz Lenart wrote: > wt., 26 sty 2021 o 13:45 Burton Rhodes > napisał(a): > > > > Lukasz - > > Sorry if this is a dumb question, but where and how do I call the > > readObject() method that you suggested? > > It is used by JVM when an object

Re: NPE using OpenSessionBackgroundProcess class

2021-01-26 Thread Lukasz Lenart
wt., 26 sty 2021 o 13:45 Burton Rhodes napisał(a): > > Lukasz - > Sorry if this is a dumb question, but where and how do I call the > readObject() method that you suggested? It is used by JVM when an object is deserialized https://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html https:

Re: NPE using OpenSessionBackgroundProcess class

2021-01-26 Thread Burton Rhodes
Lukasz - Sorry if this is a dumb question, but where and how do I call the readObject() method that you suggested? On Tue, Jan 26, 2021 at 6:33 AM Burton Rhodes wrote: > Many thanks... I will give that a try! > > > On Tue, Jan 26, 2021 at 1:51 AM Lukasz Lenart > wrote: > >> pon., 25 sty 2021 o

Re: NPE using OpenSessionBackgroundProcess class

2021-01-26 Thread Burton Rhodes
Many thanks... I will give that a try! On Tue, Jan 26, 2021 at 1:51 AM Lukasz Lenart wrote: > pon., 25 sty 2021 o 19:52 Burton Rhodes > napisał(a): > > public class OpenSessionBackgroundProcess extends BackgroundProcess { > > BackgroundProcess is marked as Serializable so container can > tempo

Re: NPE using OpenSessionBackgroundProcess class

2021-01-26 Thread Martin Gainty
AFAIK Object does not implement Serializable is there an object your code can implement for lock object that implements Serializable? m- From: Burton Rhodes Sent: Monday, January 25, 2021 1:52 PM To: Struts Users Mailing List Subject: Re: NPE using

Re: NPE using OpenSessionBackgroundProcess class

2021-01-25 Thread Lukasz Lenart
pon., 25 sty 2021 o 19:52 Burton Rhodes napisał(a): > public class OpenSessionBackgroundProcess extends BackgroundProcess { BackgroundProcess is marked as Serializable so container can temporarily store it on disk > private Object lock = new Object(); // used for synchronization I would mark th

Re: NPE using OpenSessionBackgroundProcess class

2021-01-25 Thread Burton Rhodes
The complete class is below (and also here: https://pastebin.com/Z8QyTRzM). It extends org.apache.struts2.interceptor.BackgroundProcess which implements serializable. Do I need to explicitly implement? Or do you see anything else that might be the cause? Many thanks. package com.afs.web.common.

Re: NPE using OpenSessionBackgroundProcess class

2021-01-22 Thread Lukasz Lenart
czw., 21 sty 2021 o 18:56 Burton Rhodes napisał(a): > synchronized (lock) { <-- NPE is here How is this lock defined? Is it a serializable class? Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ --

Re: NPE when running unit test with struts rest plugin

2020-11-09 Thread Lukasz Lenart
pon., 9 lis 2020 o 14:38 Paul Zepernick napisał(a): > > Thank you very much, this has resolved the issue! I have created a ticket in > Jira. > > https://issues.apache.org/jira/browse/WW-5095 Great, thanks a lot! Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ --

RE: NPE when running unit test with struts rest plugin

2020-11-09 Thread Paul Zepernick
: Saturday, November 7, 2020 8:51 AM To: Struts Users Mailing List Subject: Re: NPE when running unit test with struts rest plugin NOTICE: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe. śr

Re: NPE when running unit test with struts rest plugin

2020-11-07 Thread Lukasz Lenart
śr., 4 lis 2020 o 17:29 Paul Zepernick napisał(a): > I have posted an example project that reproduces the error in the junit test > > https://github.com/zepernick/struts25-rest-junit I think I have found the problem, mapping is not set in getActionProxy(), you can fix it by overriding it like thi

RE: NPE when running unit test with struts rest plugin

2020-11-04 Thread Paul Zepernick
Sent: Tuesday, November 3, 2020 2:42 PM To: Struts Users Mailing List Subject: RE: NPE when running unit test with struts rest plugin NOTICE: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe

RE: NPE when running unit test with struts rest plugin

2020-11-03 Thread Paul Zepernick
To: Struts Users Mailing List Subject: Re: NPE when running unit test with struts rest plugin NOTICE: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe. wt., 3 lis 2020 o 13:24 Paul

Re: NPE when running unit test with struts rest plugin

2020-11-03 Thread Lukasz Lenart
wt., 3 lis 2020 o 13:24 Paul Zepernick napisał(a): > Yes, I am using the struts2-junit plugin and extending > StrutsSpringJUnit4TestCase from the plugin. Would you mind preparing a small example and put it on Github? Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ --

RE: NPE when running unit test with struts rest plugin

2020-11-03 Thread Paul Zepernick
, November 3, 2020 1:16 AM To: Struts Users Mailing List Subject: Re: NPE when running unit test with struts rest plugin NOTICE: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe. pon., 2 lis 2020

Re: NPE when running unit test with struts rest plugin

2020-11-02 Thread Lukasz Lenart
pon., 2 lis 2020 o 14:48 Paul Zepernick napisał(a): > Struts: 5.2.25 > > Plugins: struts2-rest, struts2-spring, struts2-convention > junit 4 > > Did you try to use struts2-junit plugin and based your tests on StrutsJUnit4TestCase? https://struts.apache.org/plugins/junit/ Regards -- Łukasz + 48

Re: NPE in ActionSupport.getText() from servlet

2014-05-10 Thread Lukasz Lenart
2014-05-06 18:30 GMT+02:00 Bruno Klava : > Hi, > > in order to load a message from a *.properties file from a servlet, I used > to do: > > new ActionSupport().getText(messageKey); Do you use it inside Struts action? ActionContext is action specific which means you cannot access it from outside, fr

Re: NPE in ActionSupport.getText() from servlet

2014-05-06 Thread Bruno Klava
Answering my own question: LocalizedTextUtil.findDefaultText(messageKey, Locale.getDefault()) On Tue, May 6, 2014 at 1:30 PM, Bruno Klava wrote: > Hi, > > in order to load a message from a *.properties file from a servlet, I used > to do: > > new ActionSupport().getText(messageKey); > > It use

Re: NPE in StrutsTestCase after enabling Tiles

2011-04-29 Thread Justin Robbins
Ah, ok. So the SourceForge one is not the one I'm using then. I'm extending org.apache.struts2.StrutsTestCase in the test I'm having problems with. Thanks for your input! On Fri, Apr 29, 2011 at 1:47 PM, Dave Newton wrote: > On Fri, Apr 29, 2011 at 1:35 PM, Justin Robbins wrote: >> Lastly, can

Re: NPE in StrutsTestCase after enabling Tiles

2011-04-29 Thread Dave Newton
On Fri, Apr 29, 2011 at 1:35 PM, Justin Robbins wrote: > Lastly, can anyone explain what the deal is with StrutsTestCase? > There's a tutorial page for using it with Struts 2 on > struts.apache.org but the SourceForge page > (http://strutstestcase.sourceforge.net/) for it hasn't been updated > sinc

Re: NPE

2010-02-05 Thread Saeed Iqbal
I kind of didnt find a project i could deploy to appengine there. I think regular servlets is the way to go for me. On Fri, Feb 5, 2010 at 2:22 PM, Saeed Iqbal wrote: > Thanks will do. > > On Friday, February 5, 2010, Lukasz Lenart > wrote: > > 2010/2/5 Saeed Iqbal : > >> Looks like Google has

Re: NPE

2010-02-05 Thread Saeed Iqbal
Thanks will do. On Friday, February 5, 2010, Lukasz Lenart wrote: > 2010/2/5 Saeed Iqbal : >> Looks like Google has fixed the OGNL issue however this is the new issue I >> saw. > > Take a look here > http://code.google.com/p/struts2-jquery/source/browse/#svn/showcase > > The showcase is here > ht

Re: NPE

2010-02-04 Thread Lukasz Lenart
2010/2/5 Saeed Iqbal : > Looks like Google has fixed the OGNL issue however this is the new issue I > saw. Take a look here http://code.google.com/p/struts2-jquery/source/browse/#svn/showcase The showcase is here http://struts2-jquery.appspot.com/home.action Regards -- Łukasz http://www.lenart

Re: NPE

2010-02-04 Thread Saeed Iqbal
Looks like Google has fixed the OGNL issue however this is the new issue I saw. Please help. On Thu, Feb 4, 2010 at 7:14 PM, Saeed Iqbal wrote: > Any ideas why my application is throwing this error on Google App Engine > > Uncaught exception from servlet > java.lang.NullPointerException >

Re: NPE

2010-02-04 Thread Saeed Iqbal
Thanks. On Thu, Feb 4, 2010 at 7:17 PM, Cimballi wrote: > Look here, there are 2 tips, about security and swing, you will need : > > > http://whyjava.wordpress.com/2009/08/30/creating-struts2-application-on-google-app-engine-gae/ > > Cimballi > > > On Thu, Feb 4, 2010 at 9:14 AM, Saeed Iqbal wro

Re: NPE

2010-02-04 Thread Saeed Iqbal
That archetype doesnt exist anymore. On Thu, Feb 4, 2010 at 7:17 PM, Lukasz Lenart wrote: > 2010/2/4 Saeed Iqbal : > > Any ideas why my application is throwing this error on Google App Engine > > Take a look on struts2-convention-archetype > > > Regards > -- > Łukasz > http://www.lenart.org.pl/ >

Re: NPE

2010-02-04 Thread Lukasz Lenart
2010/2/4 Saeed Iqbal : > Any ideas why my application is throwing this error on Google App Engine Take a look on struts2-convention-archetype Regards -- Łukasz http://www.lenart.org.pl/ Kapituła Javarsovia 2010 http://javarsovia.pl --

Re: NPE

2010-02-04 Thread Cimballi
Look here, there are 2 tips, about security and swing, you will need : http://whyjava.wordpress.com/2009/08/30/creating-struts2-application-on-google-app-engine-gae/ Cimballi On Thu, Feb 4, 2010 at 9:14 AM, Saeed Iqbal wrote: > Any ideas why my application is throwing this error on Google App

Re: NPE in Visitor Validation migrating from 2.0.14 to 2.1.6

2009-04-01 Thread Musachy Barroso
This was fixed in xwork trunk(yesterday). I can't find the ticket now :) musachy On Wed, Apr 1, 2009 at 2:00 PM, Derrick Koes wrote: > If I attempt to use an empty message node in my visitor validator > configuration, I get a NullPointerException from > TextParseUtil.translateVariables (line 155

Re: NPE initializing 2.1.6 showcase in Tomcat 6.0.18

2009-01-23 Thread Lukasz Lenart
2009/1/22 Jan Fröhlich : > And if - are there any other work arounds than installing tomcat in a > different path, cause I have to use a preinstalled tomcat in a path with > blank spaces. You can checkout XWork and build it for your self or I can share my build, then you have to only replace tha

Re: NPE initializing 2.1.6 showcase in Tomcat 6.0.18

2009-01-22 Thread Musachy Barroso
fixed in xwork trunk, not that it helps much musachy On Thu, Jan 22, 2009 at 3:00 PM, Lukasz Lenart wrote: > 2009/1/22 Jan Fröhlich : >> is that already verified, that the NPE occurs cause of the spaces in the >> path names? >> And if - are there any other work arounds than installing tomca

Re: NPE initializing 2.1.6 showcase in Tomcat 6.0.18

2009-01-22 Thread Lukasz Lenart
2009/1/22 Jan Fröhlich : > is that already verified, that the NPE occurs cause of the spaces in the path > names? > And if - are there any other work arounds than installing tomcat in a > different path, cause I have to use a preinstalled tomcat in a path with > blank spaces. Yes, I can confirm

RE: NPE initializing 2.1.6 showcase in Tomcat 6.0.18

2009-01-16 Thread Giovanni Azua
9 11:14 AM > To: Struts Users Mailing List > Subject: Re: NPE initializing 2.1.6 showcase in Tomcat 6.0.18 > > 2009/1/16 Lukasz Lenart : > >> I installed Tomcat service and drop the war that comes within the > >> struts-2.1.6-all.zip and then saw the NPE blow. I restarte

Re: NPE initializing 2.1.6 showcase in Tomcat 6.0.18

2009-01-16 Thread Lukasz Lenart
2009/1/16 Lukasz Lenart : >> I installed Tomcat service and drop the war that comes within the >> struts-2.1.6-all.zip and then saw the NPE blow. I restarted the showcase >> several times from Tomcat manager but still got the NPE. > I've started it from console (via bat file) maybe that's the case

Re: NPE initializing 2.1.6 showcase in Tomcat 6.0.18

2009-01-16 Thread Lukasz Lenart
2009/1/16 Giovanni Azua : > I have the same here: > > Struts 2.1.6 > Tomcat 6.0.18 > JSE JDK 1.6.0_11 > Windows XP > > I installed Tomcat service and drop the war that comes within the > struts-2.1.6-all.zip and then saw the NPE blow. I restarted the showcase > several times from Tomcat manager but

RE: NPE initializing 2.1.6 showcase in Tomcat 6.0.18

2009-01-16 Thread Giovanni Azua
have a bit more time will checkout the sources and debug a bit. Best regards, Giovanni > -Original Message- > From: Lukasz Lenart [mailto:lukasz.len...@googlemail.com] > Sent: Thursday, January 15, 2009 9:48 PM > To: Struts Users Mailing List > Subject: Re: NPE initializing

Re: NPE initializing 2.1.6 showcase in Tomcat 6.0.18

2009-01-15 Thread Lukasz Lenart
JDK 1.6_11 Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Re: NPE initializing 2.1.6 showcase in Tomcat 6.0.18

2009-01-15 Thread Lukasz Lenart
I made the same setup, no problems. Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Re: NPE initializing 2.1.6 showcase in Tomcat 6.0.18

2009-01-15 Thread Musachy Barroso
It works for me, but I see how that could happen, if (file != null) { lastModified = file.lastModified(); files.put(fileName, new FileRevision(file, lastModified)); } else { // Never expire a non-file resource files.put(fileName, new FileRevision()); } in the else case,

Re: NPE in TagUtils.getStack after upgrading to 2.0.1

2006-12-06 Thread DNewfield
>Root cause follows. >java.lang.NullPointerException >at org.apache.struts2.views.jsp.TagUtils.getStack(TagUtils.java:56) I had this problem intermittently, and finally figured out its source and how to quash it for good. It has to do with when struts2 "cleans up" after itself to prevent memory l

Re: NPE in TagUtils.getStack after upgrading to 2.0.1

2006-11-26 Thread Jon Wilmoth
pp. Has anyone successfully used the struts 2 taglibs in a struts 1 app? - Original Message From: Martin Gainty <[EMAIL PROTECTED]> To: [EMAIL PROTECTED]; user@struts.apache.org Sent: Sunday, November 26, 2006 2:15:19 PM Subject: Re: NPE in TagUtils.getStack after upgrading

Re: NPE in TagUtils.getStack after upgrading to 2.0.1

2006-11-26 Thread Martin Gainty
Jon- http://jira.opensymphony.com/secure/IssueNavigator.jspa?view=rss&&pid=10050&fixfor=21200&tempMax=25&reset=true&decorator=none reported a bug with OpenSymphony 1 beta2 getStack method which was patched in version 1.0 Can you verify your OpenSymphony and or Xwork version? Anyone else? Mar

Re: NPE in TagUtils.getStack after upgrading to 2.0.1

2006-11-26 Thread Jon Wilmoth
I noticed there was an earlier posting on the dev list regarding this (10/10/06). I downloaded the beta version of 2.0.1 from the struts website and I'm getting the same NPE. Is there a work around? I'm trying to ease my transition into S2, and would like to use the datePicker tag w/Struts 1.3

Re: NPE iterating over form error messages

2004-06-28 Thread Eric Schneider
Oops. Figured it out. I was putting a string literal in the ActionError constructor instead of message resource references. Sorry for the noise. Thanks, Eric On Jun 28, 2004, at 2:00 PM, Eric Schneider wrote: Hi, I'm getting a error that I'm a bit confused about. I believe I'm doing everyth

Re: NPE in forwardURL

2004-06-11 Thread Niall Pemberton
hing is another matter - I guess you need to make the case to them that its a valid scenario. Good luck. Niall - Original Message - From: "Christopher Schultz" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Saturday, June 12, 200

Re: NPE in forwardURL

2004-06-11 Thread Christopher Schultz
Niall, (First, let me say that I'm very happy to see such a great response so fast. I really appreciate the time you took to research my problem and make suggestions. I expected to suffer several rounds of "go away and complain to the velocity tools guys" before getting anything useful. Thanks!

Re: NPE in forwardURL

2004-06-11 Thread Niall Pemberton
I have to say I don't use velocity and so I don't really understand how your using Struts without an Action, but anyway here goes... When modules were introduced in Struts 1.1 ActionServlet was modified so that every time a request was processed it stores the ModuleConfig as a parameter in the req