Re: NullPointerException - com.opensymphony.xwork2.util.FileManager$FileRevision.needsReloading(FileManager.java:209) of "Apache Struts 2 Web Application Development" book

2017-11-13 Thread albert kao
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(

Re: NullPointerException - com.opensymphony.xwork2.util.FileManager$FileRevision.needsReloading(FileManager.java:209) of "Apache Struts 2 Web Application Development" book

2017-11-12 Thread Yasser Zamani
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

Re: NullPointerException - com.opensymphony.xwork2.util.FileManager$FileRevision.needsReloading(FileManager.java:209) of "Apache Struts 2 Web Application Development" book

2017-11-12 Thread Dave Newton
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

Re: NullPointerException - com.opensymphony.xwork2.util.FileManager$FileRevision.needsReloading(FileManager.java:209) of "Apache Struts 2 Web Application Development" book

2017-11-12 Thread albert kao
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

Re: NullPointerException - com.opensymphony.xwork2.util.FileManager$FileRevision.needsReloading(FileManager.java:209) of "Apache Struts 2 Web Application Development" book

2017-11-11 Thread 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

NullPointerException - com.opensymphony.xwork2.util.FileManager$FileRevision.needsReloading(FileManager.java:209) of "Apache Struts 2 Web Application Development" book

2017-11-11 Thread albert kao
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

Re: JasperReports plugin - confused on a NullPointerException

2017-07-17 Thread Jon Eskin
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

Re: JasperReports plugin - confused on a NullPointerException

2017-07-17 Thread Lukasz Lenart
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

Re: JasperReports plugin - confused on a NullPointerException

2017-07-14 Thread Jon Eskin
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

Re: JasperReports plugin - confused on a NullPointerException

2017-07-13 Thread Lukasz Lenart
.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

JasperReports plugin - confused on a NullPointerException

2017-07-13 Thread Jon Eskin
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

Re: S2: NullPointerException at AnnotationActionValidatorManager.lo adFile

2013-09-22 Thread Lukasz Lenart
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/ >> >

Re: S2: NullPointerException at AnnotationActionValidatorManager.lo adFile

2013-09-22 Thread Jose L Martinez-Avial
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: >>

Re: S2: NullPointerException at AnnotationActionValidatorManager.lo adFile

2013-09-22 Thread Lukasz Lenart
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

Re: S2: NullPointerException at AnnotationActionValidatorManager.lo adFile

2013-09-21 Thread 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: LoginAction-validation.xml http://struts.apache.org/dtds/xwork-validator-1.0.3.dtd";> El usuario es requerido

Re: S2: NullPointerException at AnnotationActionValidatorManager.lo adFile

2013-09-20 Thread JOSE L MARTINEZ-AVIAL
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

Re: S2: NullPointerException at AnnotationActionValidatorManager.lo adFile

2013-09-20 Thread 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 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

S2: NullPointerException at AnnotationActionValidatorManager.lo adFile

2013-09-20 Thread 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.lang.NullPointerException at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.lo adFile(Annot

Re: using struts2 i want to upload image but nullpointerexception occur

2012-04-23 Thread Maurizio Cucchiara
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

Re: using struts2 i want to upload image but nullpointerexception occur

2012-04-23 Thread Dave Newton
://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) >

Re: Testing with StrutsTestCase in a Tiles application - NullPointerException

2012-01-30 Thread Miguel Almeida
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

Testing with StrutsTestCase in a Tiles application - NullPointerException

2012-01-27 Thread Miguel Almeida
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

Re: unit testing with junit + spring + struts2, NullPointerException with HttpServletRequest

2011-11-03 Thread vbalrog
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

Re: unit testing with junit + spring + struts2, NullPointerException with HttpServletRequest

2011-10-20 Thread jaredtims
-- 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. --

Re: unit testing with junit + spring + struts2, NullPointerException with HttpServletRequest

2011-10-15 Thread dan.zheng
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

Re: unit testing with junit + spring + struts2, NullPointerException with HttpServletRequest

2011-10-14 Thread jaredtims
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

[OT] Re: Call execAndWait but got NullPointerException ?

2011-06-03 Thread Dave Newton
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

Re: Call execAndWait but got NullPointerException ?

2011-06-03 Thread Emi Lu
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:

Re: Call execAndWait but got NullPointerException ?

2011-06-03 Thread Emi Lu
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

Re: Call execAndWait but got NullPointerException ?

2011-06-03 Thread Dave Newton
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

Re: Call execAndWait but got NullPointerException ?

2011-06-03 Thread Emi Lu
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

Re: Call execAndWait but got NullPointerException ?

2011-06-03 Thread Jeff Black
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

Re: Call execAndWait but got NullPointerException ?

2011-06-03 Thread Jeff Black
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-

Re: Call execAndWait but got NullPointerException ?

2011-06-02 Thread Emi Lu
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

Re: Call execAndWait but got NullPointerException ?

2011-06-02 Thread Dale Newfield
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

Call execAndWait but got NullPointerException ?

2011-06-02 Thread Emi Lu
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

Re: unit testing with junit + spring + struts2, NullPointerException with HttpServletRequest

2011-05-13 Thread Jake Vang
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

unit testing with junit + spring + struts2, NullPointerException with HttpServletRequest

2011-05-13 Thread Jake Vang
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

Re: NullPointerException Using StrutsSpringTestCase

2011-03-12 Thread bphill...@ku.edu
-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

Re: NullPointerException Using StrutsSpringTestCase

2011-03-12 Thread Jason Ferguson
> 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. > &

RE: NullPointerException Using StrutsSpringTestCase

2011-03-12 Thread Martin Gainty
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

NullPointerException Using StrutsSpringTestCase

2011-03-12 Thread Jason Ferguson
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

NullPointerException Using StrutsSpringTestCase

2011-03-12 Thread Jason Ferguson
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()

Re: NullPointerException while accessing request struts2

2010-08-26 Thread Dale Newfield
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

RE: NullPointerException while accessing request struts2

2010-08-26 Thread Rohit
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

Re: NullPointerException while accessing request struts2

2010-08-26 Thread Jan T. Kim
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

NullPointerException while accessing request struts2

2010-08-26 Thread Rohit
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

NullPointerException at struts2 LocalizedTextUtil

2010-07-27 Thread Rubén khanser
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

Error creating form bean - nullpointerexception - struts 1.2 + weblogic 8.1 + myeclipse 5.5

2010-04-01 Thread Nanu Khota
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

TextProviderHelper throws NullPointerException

2010-01-18 Thread psycotrompus
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. ---

Re: Nullpointerexception s:select tag on name="alist[#status.index].something"

2009-09-25 Thread Anandkris
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

Re: Nullpointerexception s:select tag on name="alist[#status.index].something"

2009-09-22 Thread Musachy Barroso
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

Nullpointerexception s:select tag on name="alist[#status.index].something"

2009-09-22 Thread Anandkris
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

RE: Redirect NullPointerException

2009-08-26 Thread Mike Baranski
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

Re: Redirect NullPointerException

2009-08-26 Thread Lukasz Lenart
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/ --

RE: Redirect NullPointerException

2009-08-26 Thread Mike Baranski
- >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

Re: Redirect NullPointerException

2009-08-26 Thread Greg Lindholm
index >/default > > name="input">/pages/user-administration/jsps/change-password.jsp > >

Redirect NullPointerException

2009-08-26 Thread Mike Baranski
index /default /pages/user-administration/jsps/change-password.jsp Any idea why I get the NullPointerException for that

RE: S2 NullPointerException when using jsp:include in WebLogic

2009-02-11 Thread Néstor Boscán
: 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

S2 NullPointerException when using jsp:include in WebLogic

2009-02-10 Thread Néstor Boscán
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?

Re: NullPointerException when migrating to 2.1.6

2009-01-28 Thread Say Jon
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

Re: NullPointerException when migrating to 2.1.6

2009-01-28 Thread Say Jon
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

Re: NullPointerException when migrating to 2.1.6

2009-01-26 Thread Paweł Wielgus
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

RE: NullPointerException when migrating to 2.1.6

2009-01-25 Thread Say Jon
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

[22] NullPointerException in UrlHelper issue with nested tiles

2008-11-17 Thread 928572663
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

Re: [S2][T2] NullPointerException from UrlHelper.buildurl()

2008-10-08 Thread 928572663
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

[S2][T2] NullPointerException from UrlHelper.buildurl()

2008-10-01 Thread 928572663
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

Re: NullPointerException with Validation Messages

2008-09-09 Thread Mark
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

Re: NullPointerException with Validation Messages

2008-09-09 Thread Dave Newton
--- 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

Re: NullPointerException with Validation Messages

2008-09-09 Thread Mark
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

Re: NullPointerException with Validation Messages

2008-09-09 Thread Dave Newton
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

Re: NullPointerException with Validation Messages

2008-09-09 Thread Dave Newton
--- 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 -

Re: NullPointerException with Validation Messages

2008-09-09 Thread Mark
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

Re: NullPointerException with Validation Messages

2008-09-09 Thread Dave Newton
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

Re: NullPointerException with Validation Messages

2008-09-09 Thread Mark
. 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

Re: NullPointerException with Validation Messages

2008-09-09 Thread Mark
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.

Re: NullPointerException with Validation Messages

2008-09-09 Thread Dave Newton
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

Re: NullPointerException with Validation Messages

2008-09-09 Thread Dave Newton
--- 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

Re: NullPointerException with Validation Messages

2008-09-09 Thread Dave Newton
--- 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

Re: NullPointerException with Validation Messages

2008-09-09 Thread Mark
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

Re: NullPointerException with Validation Messages

2008-09-09 Thread Pascal Lalonde
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

Re: NullPointerException with Validation Messages

2008-09-08 Thread Mark
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

Re: NullPointerException with Validation Messages

2008-09-08 Thread Dave Newton
--- 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

NullPointerException with Validation Messages

2008-09-08 Thread Mark
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

logic:iterate problem: NullPointerException

2008-09-06 Thread cacodemon79
... ... This is the second Action, which should be invoked when a select option is selected by user. Unfortun

NullPointerException 5.5.17 Request.setAttribute(Request.java:1376)

2008-08-18 Thread Adam Jenkins
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

Re: adding validation leads to NullPointerException

2007-11-29 Thread j alex
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

adding validation leads to NullPointerException

2007-11-29 Thread Giovanni Azua
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

NullPointerException using DefaultActionProxyFactory to invoke Actions manually

2007-07-19 Thread Néstor Boscán
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

RE: servlet.getServletContext().getAttribute("userList") is throwing NullPointerException in my sessionDestroyed() method

2007-06-11 Thread Al Sutton
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

RE: servlet.getServletContext().getAttribute("userList") is throwing NullPointerException in my sessionDestroyed() method

2007-06-11 Thread Raghupathy, Gurumoorthy
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

2007-06-10 Thread Srinivasula Reddy A , Bangalore
: 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

Re: servlet.getServletContext().getAttribute("userList") is throwing NullPointerException in my sessionDestroyed() method

2007-06-10 Thread Jeromy Evans
> 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

servlet.getServletContext().getAttribute("userList") is throwing NullPointerException in my sessionDestroyed() method

2007-06-10 Thread Srinivasula Reddy A , Bangalore
"); 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

Re: NullPointerException with Struts and Struts2 plus Sitemesh

2007-06-04 Thread panpan
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

Re: NullPointerException with Struts and Struts2 plus Sitemesh

2007-06-04 Thread panpan
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:

Re: NullPointerException with Struts and Struts2 plus Sitemesh

2007-06-04 Thread Dave Newton
--- 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

Re: NullPointerException with Struts and Struts2 plus Sitemesh

2007-06-04 Thread panpan
__ > 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

Re: NullPointerException with Struts and Struts2 plus Sitemesh

2007-06-03 Thread Dave Newton
--- 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.

Re: NullPointerException with Struts and Struts2 plus Sitemesh

2007-06-01 Thread panpan
- > 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   2   3   >