As per your suggestion, changing struts2 version to 2.1.8 fix the problem.
Thanks!
On Sun, Nov 12, 2017 at 12:29 PM, Yasser Zamani
wrote:
>
>
> On 11/12/2017 2:28 AM, albert kao wrote:
> > java.lang.NullPointerException
> > com.opensymphony.xwork2.util.FileManager$FileRevision.
> needsReloading(
On 11/12/2017 2:28 AM, albert kao wrote:
> java.lang.NullPointerException
> com.opensymphony.xwork2.util.FileManager$FileRevision.needsReloading(FileManager.java:209)
I just googled "needsReloading(FileManager.java:209)" and found [1] :)
it seems has been a bug and has fixed in 2.1.8.
[1] http
Please create a GitHub repo with your code and I'll take a look. Note that
the examples from the book were tested only on Tomcat, and a pretty long
time ago. I'll need any server details you're using.
Also note that S2 is fairly different now than when the book was written.
On Sun, Nov 12, 2017 a
struts2 version: 2.1.6
On Sat, Nov 11, 2017 at 9:47 PM, Dave Newton wrote:
> What version of Struts 2 are you attempting to use?
>
> On Sat, Nov 11, 2017 at 5:58 PM albert kao wrote:
>
> > I downloaded the source code of the book "Apache Struts 2 Web Application
> > Development" by Dave Newton
What version of Struts 2 are you attempting to use?
On Sat, Nov 11, 2017 at 5:58 PM albert kao wrote:
> I downloaded the source code of the book "Apache Struts 2 Web Application
> Development" by Dave Newton from the
> https://www.packtpub.com/books/content/support.
>
> Chapter 2 had compile err
I downloaded the source code of the book "Apache Struts 2 Web Application
Development" by Dave Newton from the
https://www.packtpub.com/books/content/support.
Chapter 2 had compile error with Apache Maven 3.5.0.
$ mvn -version
Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426;
2017-04-0
Sure, I’ll get a JIRA ticket registered for that.
And I would be happy to contribute the example.
> On Jul 17, 2017, at 3:45 AM, Lukasz Lenart wrote:
>
> 2017-07-14 12:16 GMT+02:00 Jon Eskin :
>> I just tried switching to 2.5.12 but I'm seeing the same error.
>
> Looks like a bug in the plugi
2017-07-14 12:16 GMT+02:00 Jon Eskin :
> I just tried switching to 2.5.12 but I'm seeing the same error.
Looks like a bug in the plugin - could you register a ticket in JIRA?
Also do you mind contributing your example to
https://github.com/apache/struts-examples ? The best way would be open
a PR
tutorial.html><https://struts.apache.org/docs/jasperreports-tutorial.html
>> <https://struts.apache.org/docs/jasperreports-tutorial.html>>).
>>
>> I’m seeing a NullPointerException in my logs when I try to run the report
>> (see below). It’s complaining abou
.org/docs/jasperreports-tutorial.html
> <https://struts.apache.org/docs/jasperreports-tutorial.html>).
>
> I’m seeing a NullPointerException in my logs when I try to run the report
> (see below). It’s complaining about not closing a db connection even though
> no db connecti
I tried to make a sample project using code from a tutorial I found for the
JasperReports plugin
(https://struts.apache.org/docs/jasperreports-tutorial.html
<https://struts.apache.org/docs/jasperreports-tutorial.html>).
I’m seeing a NullPointerException in my logs when I try to run the
gt;
> On Sep 22, 2013, at 1:14 PM, Lukasz Lenart wrote:
>
>> Hi,
>>
>> Remove validators.xml - you don't need them. Can you post your whole page?
>>
>>
>> Regards
>> --
>> Łukasz
>> + 48 606 323 122 http://www.lenart.org.pl/
>>
>
gt;
>
> Regards
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> 2013/9/21 Néstor Boscán :
>> With the DTD solved the NullPointerException problem but I'm still not
>> getting the javascript code that validates per field. My files are:
>>
Hi,
Remove validators.xml - you don't need them. Can you post your whole page?
Regards
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
2013/9/21 Néstor Boscán :
> With the DTD solved the NullPointerException problem but I'm still not
> getting the javascript code that val
With the DTD solved the NullPointerException problem but I'm still not
getting the javascript code that validates per field. My files are:
LoginAction-validation.xml
http://struts.apache.org/dtds/xwork-validator-1.0.3.dtd";>
El usuario es requerido
It could be related to the DTD:
http://stackoverflow.com/questions/17144563/struts2-annotation-valiation-nullpointer-exception
2013/9/20 JOSE L MARTINEZ-AVIAL
> I assume you have an xml file to set the definitions, right? could you
> share it?
>
>
> 2013/9/20 Néstor Boscán
>
>> I've been tryi
I assume you have an xml file to set the definitions, right? could you
share it?
2013/9/20 Néstor Boscán
> I've been trying to make Struts 2 JavaScript Validation work on WebLogic
> 10.3.6. I first used 2.3.8 version and then the latest 2.3.15.2 version. I
> still get the same error:
>
> java.l
I've been trying to make Struts 2 JavaScript Validation work on WebLogic
10.3.6. I first used 2.3.8 version and then the latest 2.3.15.2 version. I
still get the same error:
java.lang.NullPointerException
at
com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.lo
adFile(Annot
I'm pretty sure that logoName is always null in the following code line.
File(filePath, imageDetailBean.getLogoName());
According with the docs [1], you should change your setter from
setLogoName to set setLogoFileName
[1] http://struts.apache.org/2.x/docs/file-upload.html
Twitter :http://w
://www.coderanch.com/t/578754/Struts/struts-want-upload-image-but#>
> "com.webportal.admin.action.SetInfo" method="execute" >
>
>2097152
>
>image/png,image/gif,image/jpeg,image/jpg
>
>
>
>
>/success.jsp
>/error.jsp
>
>
> when i deploy my application i got nullpointerexception and on line number
> 28 of the action class i found it prints null on server
> please suggest me what can i do...
> thanking you
>
>
> ---
> Regards
> Rahul Bhalla
> (9953225211)
>
For future reference, I found the answer in
http://depressedprogrammer.wordpress.com/2007/06/18/unit-testing-struts-2-actions-spring-junit/
Basically, you need to initialize the tiles listener. As I already used
setupBeforeInitDispatcher to set the applicationContext attribute, I
added the code th
Hi there,
I trying to test an application with the help of StrutsTestCase (a class
that extends from StrutsSpringTestCase, to be more precise).
StrutsTestCase (which is in the struts junit plugin) involves proxied
actions to make tests more light.
I have used the same method in another applicatio
ruts2-NullPointerException-with-HttpServletRequest-tp4394036p4961170.html
Sent from the Struts - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: u
--
View this message in context:
http://struts.1045723.n5.nabble.com/unit-testing-with-junit-spring-struts2-NullPointerException-with-HttpServletRequest-tp4394036p4913525.html
Sent from the Struts - User mailing list archive at Nabble.com.
--
run tests against my actions.
> Anybody know any work arounds?
>
> thanks
>
> --
> View this message in context:
> http://struts.1045723.n5.nabble.com/unit-testing-with-junit-spring-struts2-NullPointerException-with-HttpServletRequest-tp4394036p4903696
s?
thanks
--
View this message in context:
http://struts.1045723.n5.nabble.com/unit-testing-with-junit-spring-struts2-NullPointerException-with-HttpServletRequest-tp4394036p4903696.html
Sent from the Struts - User mailing list archive at
On Fri, Jun 3, 2011 at 12:09 PM, Emi Lu wrote:
>
>
Ew. Use something nice.
Dave
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org
Hello,
For people who would like to do similar action, my solution is by using
the following:
Issue:
Send hundreds of emails (since our mail server, wait 50 seconds per 10
emails). Notify users that email action has not completed.
Solution:
==
1. "Send All" Button:
Hello,
The "completeStack" should be whatever your normal stack is, I think.
struts.xml
class="com.opensymphony.webwork.interceptor.ExecuteAndWaitInterceptor"/>
2000
500
/wait.jsp
browse_action1
Tiles.xml
==
b
The "completeStack" should be whatever your normal stack is, I think.
Dave
On Fri, Jun 3, 2011 at 9:57 AM, Emi Lu wrote:
> Good morning,
>
>> your interceptor stack doesn't appear to be complete.
>
> By adding the following codes into struts.xml, no exception anymore. But the
> action page does
Good morning,
your interceptor stack doesn't appear to be complete.
By adding the following codes into struts.xml, no exception anymore. But
the action page does *not* go to wait.jsp; but stays on the original
action class page.
class="com.opensymphony.webwork.interceptor.ExecuteAndWaitInt
ction-success.jsp
jb
/
From: Emi Lu
To: Struts Users Mailing List
Cc: Dale Newfield
Sent: Thursday, June 2, 2011 3:37 PM
Subject: Re: Call execAndWait but got NullPointerException ?
On 06/02/2011 03:40 PM, Dale Newfield wrote:
> You didn't add exec-and-wait, you replaced your entir
ction-success.jsp
jb
/
From: Emi Lu
To: Struts Users Mailing List
Cc: Dale Newfield
Sent: Thursday, June 2, 2011 3:37 PM
Subject: Re: Call execAndWait but got NullPointerException ?
On 06/02/2011 03:40 PM, Dale Newfield wrote:
> You didn't add exec-
On 06/02/2011 03:40 PM, Dale Newfield wrote:
You didn't add exec-and-wait, you replaced your entire interceptor stack with
just the exec-and-wait interceptor.
Can you provide more information please?
http://www.mkyong.com/struts2/struts-2-execandwait-interceptor-example/
I setup almost the
You didn't add exec-and-wait, you replaced your entire interceptor stack with
just the exec-and-wait interceptor.
-Dale
On Jun 2, 2011, at 3:35 PM, Emi Lu wrote:
> Hello,
>
> One action class to send emails to 50 users. Before action is done, I'd like
> to show a waiting page.
>
> When I add
Hello,
One action class to send emails to 50 users. Before action is done, I'd
like to show a waiting page.
When I added execAndWait shown as the following:
2000
500
/wait.jsp
browse_action1
...
I got the following Error message returned.
Could someone help what is
ds
> StrutsSpringTestCase. i followed the example at
> http://struts.apache.org/2.1.8.1/docs/struts-2-junit-plugin-tutorial.html,
> which was very helpful. however, when my code writes JSON back out
> using ServletOutputStream, i get a NullPointerException. The
> NullPointerException happen
followed the example at
http://struts.apache.org/2.1.8.1/docs/struts-2-junit-plugin-tutorial.html,
which was very helpful. however, when my code writes JSON back out
using ServletOutputStream, i get a NullPointerException. The
NullPointerException happens because the HttpServletResponse is null.
(i.e. null
-Test-A-Struts-2-Action-Class-In-An-Application-That-Also-Uses-Spring
Hopefully in a future version of Struts 2, StrutsTestCase will be updated to
use JUnit 4.
--
View this message in context:
http://struts.1045723.n5.nabble.com/NullPointerException-Using-StrutsSpringTestCase-tp3534567p3549698.html
> est interdite. Ce message sert à l'information seulement et n'aura pas
> n'importe quel effet légalement obligatoire. Étant donné que les email
> peuvent facilement être sujets à la manipulation, nous ne pouvons accepter
> aucune responsabilité pour le contenu fourni.
>
&
e les email peuvent facilement
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité
pour le contenu fourni.
> Date: Sat, 12 Mar 2011 17:16:29 -0600
> Subject: NullPointerException Using StrutsSpringTestCase
> From: fergusonja...@gmail.com
> To: user@struts
nd by overriding getContextLocations(), with no luck.
The project is set up on a "standard" Maven2 layout, so the
/src/test/resources directory has its own copy of
applicationContext.xml. However, on attempting to run the unit test, I
get a NullPointerException when my code tries to call
I am attempting to do some out-of-container testing of a Struts Action
which extends StrutsSpringTestCase. I've tried configuring the
application context two separate ways: via the @ContextConfiguration
annotation and by overriding getContextLocations()
On 8/26/10 7:04 AM, Rohit wrote:
Yes I have done that, it's not that every time I am getting the null pointer
exception. It's happening randomly.
First I'd track down the code in question and see just what objects are
getting dereferenced on that line. If you have any problem that is not
det
Yes I have done that, it's not that every time I am getting the null pointer
exception. It's happening randomly.
Regards,
Rohit
-Original Message-
From: Jan T. Kim [mailto:j@uea.ac.uk]
Sent: 26 August 2010 16:31
To: user@struts.apache.org
Subject: Re: NullPointerExcep
On Thu, Aug 26, 2010 at 10:24:41AM +0100, Rohit wrote:
> Hi,
>
> I am facing a strange error in Struts2, I am getting a null pointer
> exception when trying to set attribute into request scope,
>
> Struts Problem Report
>
> Struts has detected an unhandled exception: Messages:
> File: org/apache
Hi,
I am facing a strange error in Struts2, I am getting a null pointer
exception when trying to set attribute into request scope,
Struts Problem Report
Struts has detected an unhandled exception: Messages:
File: org/apache/catalina/connector/Request.java Line number: 1,424
Stacktraces java.lang
Hi,
I'm having this strange error.
When I'm trying to read a property from my properties file with the
"getText" @ ActionSupport method I get this NPE and this message:
DEBUG com.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor - Error
calling method through OGNL: object:
[org.gestor.actio
Hi All,
I am a newbee to struts and trying some hands on it. I was just trying to
develop a simple login form but getting following exception on initial run
itself.
-
SEVERE: Error creating form bean of cl
ation
Please help me on this.
Thanks!
--
View this message in context:
http://old.nabble.com/TextProviderHelper-throws-NullPointerException-tp27212314p27212314.html
Sent from the Struts - User mailing list archive at Nabble.com.
---
t;Hey you! Would you help me to carry the stone?" Pink Floyd
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>
>
--
View this message in context:
http://www.n
can you debug it and see what is actually null? It seems like a bug.
That being said, I am building 2.1.8 as we speak, so if you are
planning to upgrade, it might be worth waiting a bit.
musachy
On Tue, Sep 22, 2009 at 3:44 PM, Anandkris wrote:
> OgnlValueStack
--
"Hey you! Would you help me
Hi,
I recently upgraded struts from 2.0.11 to 2.1.6 for our App. Almost
everything works. But I recently got a nullPointerException on the select
tag though it was working fine for 2.0.11. "children" is a list and I am
trying to set name and age for each element in the children lis
Thanks, that worked.
>-Original Message-
>From: Lukasz Lenart [mailto:lukasz.len...@googlemail.com]
>Sent: Wednesday, August 26, 2009 10:33 AM
>To: Struts Users Mailing List
>Subject: Re: Redirect NullPointerException
>
>2009/8/26 Mike Baranski :
>> OK, t
2009/8/26 Mike Baranski :
> OK, the form submits, the user's password is changed, and the result is
> SUCCESS. Here's the stack trace:
You should use redirectAction instead redirect - it's just for ordinary URLs ;-)
Regards
--
Lukasz
http://www.lenart.org.pl/
http://dailylog.lenart.org.pl/
--
-
>From: Greg Lindholm [mailto:greg.lindh...@gmail.com]
>Sent: Wednesday, August 26, 2009 10:18 AM
>To: Struts Users Mailing List
>Subject: Re: Redirect NullPointerException
>
>A stack trace and some context might help you get an answer.
>
>On Wed, Aug 26, 2009 at 10:16
index
>/default
>
> name="input">/pages/user-administration/jsps/change-password.jsp
>
>
index
/default
/pages/user-administration/jsps/change-password.jsp
Any idea why I get the NullPointerException for that
: Néstor Boscán [mailto:nesto...@gmail.com]
Enviado el: Tuesday, February 10, 2009 3:32 PM
Para: 'Struts Users Mailing List'
Asunto: S2 NullPointerException when using jsp:include in WebLogic
Hi
I´m getting the following exception on WebLogic 10.3 with pages that have
jsp:include. This
Hi
I´m getting the following exception on WebLogic 10.3 with pages that have
jsp:include. This works with OC4J 10.1.3.4. The exception is:
java.lang.NullPointerException
at
org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupp
ort.java:50)
Any ideas?
Apologies, I had my a copy of FilterDispatcher in my source code which
was erroneous!
Sorry for the inconvenience caused!
Regards.
W.SayJon
Email Disclaimer:
The information contained in or attached to this email is confidential and
solely for the use of the individual or entity to whom it is add
Thanks for replying, Pawel.
However, I get the same error message when viewing the config browser. Any
ideas?
Regards.
W.SayJon
Email Disclaimer:
The information contained in or attached to this email is confidential and
solely for the use of the individual or entity to whom it is addressed.
If y
Hi Say,
have You looked at
http://localhost:8080/CONTEXT/config-browser/index.action where
CONTEXT is your app context? That might give You some clues, also to
see this page You need to have config-browser plugin.
Best greetings,
Paweł Wielgus.
2009/1/25 Say Jon :
> Hi everyone,
> I have recentl
Hi everyone,
I have recently upgraded to 2.1.6 from 2.0.11. Startup is OK but when I
tried accessing my action class, I get the following error:
2009-01-25 18:45:25,158 ERROR FilterDispatcher:391 - error getting
ActionMapping
java.lang.NullPointerException
at
org.apache.struts2.dispatcher.FilterDi
contains a struts2
, and if that tile page inserts a subtile page that contains
form controls, then the page will not render and a NullPointerException
will be thrown from the org.apache.struts2.views.util.UrlHelper class.
Attached to the JIRA is a very small sample that illustrates this issue.
I
Any ideas on this issue?
What I am trying to do is have a main tiles definition whose JSP has a
. That page pulls in a sub-tile using .
The sub-tile page has the form control(s). Just trying to render this
page causes the NullPointerException.
Thanks,
John
928572663 wrote:
I am getting a
I am getting a persistent NullPointerException from
UrlHelper.buildurl(). It happens in my app and also in my simple test
case below.
What I am trying to do is have a main tiles definition whose JSP has a
. That page pulls in a sub-tile using .
The sub-tile page has the form control(s
GREAT! That fixed it! I'll update the Jira. Thanks for your help!!!
Mark
On 10/09/2008, at 10:50 AM, Dave Newton wrote:
--- On Tue, 9/9/08, Mark wrote:
Ok, that makes sense. How would I set that up? Right now,
I have an index.jsp with the following: . This is so that someone accessing
th
--- On Tue, 9/9/08, Mark wrote:
> Ok, that makes sense. How would I set that up? Right now,
> I have an index.jsp with the following: page="login.jsp"/>. This is so that someone accessing
> the site via http://localhost/ will be presented with the
> login page.
I generally just use a redirec
Ok, that makes sense. How would I set that up? Right now, I have an
index.jsp with the following: . This
is so that someone accessing the site via http://localhost/ will be
presented with the login page.
Mark
On 10/09/2008, at 10:20 AM, Dave Newton wrote:
Ah; there we go. The attached
Ah; there we go. The attached validation file in JIRA didn't have the "key"
attribute; threw me off.
You're accessing the login page via the JSP, right? That won't work. You should
access it through an action so there's an action on the stack so the getText()
can be called on something that exi
--- On Tue, 9/9/08, Mark wrote:
> No, I'm not using an tag. Should I be?
Not if you don't need it.
Does it work if you have the validation XML file's DOCTYPE w/o the trailing
space after ".dtd "?
How are you accessing the login page the first time--through an action?
Dave
-
so wondering if there's anything else on the value stack. Are
you using an tag?
Dave
--- On Tue, 9/9/08, Mark <[EMAIL PROTECTED]> wrote:
From: Mark <[EMAIL PROTECTED]>
Subject: Re: NullPointerException with Validation Messages
To: "Struts Users Mailing List"
Date: Tue
You're extending ActionSupport, right?
I'm also wondering if there's anything else on the value stack. Are you using
an tag?
Dave
--- On Tue, 9/9/08, Mark <[EMAIL PROTECTED]> wrote:
> From: Mark <[EMAIL PROTECTED]>
> Subject: Re: NullPointerException with
. Because the markup is arguably somewhat
brittle, your element is colliding with the .
Try changing the id to something like "loginContainer" or
whatever and see what that does.
Dave
--- On Tue, 9/9/08, Dave Newton wrote:
--- On Tue, 9/9/08, Mark wrote:
Thank you for the suggest
the NullPointerException.
You may want to try putting the complete webapp up somewhere, or
post a minimal, but complete, source example on something like
pastebin/etc. I tried several different things to try to get the
NPE but couldn't.
Try changing the id to something like "loginContainer" or whatever and
see what that does.
Dave
--- On Tue, 9/9/08, Dave Newton wrote:
> --- On Tue, 9/9/08, Mark wrote:
>> Thank you for the suggestion. Yes, I have and it
>> still produces the NullPointerException.
&g
--- On Tue, 9/9/08, Mark wrote:
> Thank you for the suggestion. Yes, I have and it still
> produces the NullPointerException.
You may want to try putting the complete webapp up somewhere, or post a
minimal, but complete, source example on something like pastebin/etc. I tried
several dif
--- On Tue, 9/9/08, Mark wrote:
> Thank you for the suggestion. Yes, I have and it still
> produces the NullPointerException.
You may want to try putting the complete webapp up somewhere, or post a
minimal, but complete, source example on something like pastebin/etc. I tried
several dif
Thank you for the suggestion. Yes, I have and it still produces the
NullPointerException.
Mark
On 09/09/2008, at 10:45 PM, Pascal Lalonde wrote:
Have you tried this ?
- Pascal
Mark wrote:
Hi all
Have you tried this ?
- Pascal
Mark wrote:
Hi all:
I'm using Struts 2 validation and I'm getting a NullPointerException
when the page is being displayed (before it is even being submitted or
Sorry, what does AFAICT mean? :-)
I'm running Tomcat 6.0.16. No, it doesn't work with default stack.
Any other ideas?
Mark
On 09/09/2008, at 12:13 PM, Dave Newton wrote:
--- On Mon, 9/8/08, Mark wrote:
I'm using Struts 2 validation and I'm getting a NullPointerExcept
--- On Mon, 9/8/08, Mark wrote:
> I'm using Struts 2 validation and I'm getting a NullPointerException
> when the page is being displayed (before it is even being submitted
> or validated). I did some searches and found this Jira:
> https:// issues.apache.org/struts/b
Hi all:
I'm using Struts 2 validation and I'm getting a NullPointerException
when the page is being displayed (before it is even being submitted
or validated). I did some searches and found this Jira: https://
issues.apache.org/struts/browse/WW-2150. It states that it has been
...
...
This is the second Action, which should be invoked when a select option is
selected by user. Unfortun
ECTED]
Subject: NullPointerException 5.5.17 Request.setAttribute(Request.java:1376)
Hi All,
I'be been tearing my hair out for a couple of weeks over this one and would
appreciate any assistance anyone could give. It's a bit of a unique scenario,
so it'll take me a little while t
pet below) that works fine without validation, I need
> to conditionally include certain
> fields, I prefer that to the other choice of having two different copies
> of slightly similar input form JSP
> that I will then have to keep in sync.
>
> Only when I add a validation xml file correspond
file corresponding to the target Action
I get the
NullPointerException stacktrace below.
TIA,
regards,
Giovanni
** stacktrace
***
SEVERE: Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
at
Hi
I'm trying to use DefaultActionProxyFactory to create an ActionProxy to
invoke an Action manually. I'm using the Struts 2 jars that works with JDK
1.4. I'm getting NullPointerException because in the class there is a
container attribute that does not get injected. Any ideas a
hy [mailto:[EMAIL PROTECTED]
Sent: 11 June 2007 09:00
To: Struts Users Mailing List
Subject: RE: servlet.getServletContext().getAttribute("userList") is
throwing NullPointerException in my sessionDestroyed() method
Guys,
I think we are wasting our time here ... this thread ha
List
Subject: RE: servlet.getServletContext().getAttribute("userList") is
throwing NullPointerException in my sessionDestroyed() method
The listener class is extending Action as well as implementing
HttpSessionListener interface.
Cant I have servlet in my sessionDestroy() method?
---
: Re: servlet.getServletContext().getAttribute("userList") is
throwing NullPointerException in my sessionDestroyed() method
> I am getting NullPointerException in this line Hashtable userList =
(Hashtable) servlet.getServletContext().getAttribute("userList");
As suggested
> I am getting NullPointerException in this line Hashtable userList =
(Hashtable) servlet.getServletContext().getAttribute("userList");
As suggested by others the last time you asked this question, first try
to determine whether it's the the servlet, servletContext or Hash
");
System.out.print(" USER "+user);
session.removeAttribute("ServiceNo");
Hashtable userList = (Hashtable)
servlet.getServletContext().getAttribute("userList");
userList.remove(user);
I am getting NullPointerException in this line Hashtable userList =
(Ha
ton-4 wrote:
>>
>> --- panpan <[EMAIL PROTECTED]> wrote:
>>> They're served throught S1 and S2 since I'm in the
>>> middle for migration from S1 to S2.
>>
>> It is not clear to me that an S2 tag would function
>> under an S1 mapping because ther
ttp://smallbusiness.yahoo.com/domains/?p=BESTDEAL
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
--- panpan <[EMAIL PROTECTED]> wrote:
> They're served throught S1 and S2 since I'm in the
> middle for migration from S1 to S2.
It is not clear to me that an S2 tag would function
under an S1 mapping because there won't be a value
stack, which is what the stack trace implies.
The WW response cla
__
> Park yourself in front of a world of choices in alternative vehicles.
> Visit the Yahoo! Auto Green Center.
> http://autos.yahoo.com/green_center/
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e
--- panpan <[EMAIL PROTECTED]> wrote:
> Don't understand this one.
*Please* just say whether or not the page you're
serving is being served through S1 or S2.
> If you see the below struts JIRA link:
>
> http://issues.apache.org/struts/browse/WW-1388
>
> It has the almost same exception as mine.
-
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/NullPointerException-with-Struts-and-Struts2-plus-Sitemesh-tf3853336.html#a10917361
Sent from the Struts - User mailing lis
1 - 100 of 202 matches
Mail list logo