Re: Null pointer exception when updating a component in a loop

2013-01-23 Thread Thiago H de Paula Figueiredo
On Wed, 23 Jan 2013 13:54:58 -0200, Peter Farkas wrote: Thiago H de Paula Figueiredo wrote I'm sorry, but you're wrong here. It has absolutely nothing to do with loops. Nothing. The issue, as I've said before, was not passing a parameter in an later AJAX render. The first render, a full page

Re: Null pointer exception when updating a component in a loop

2013-01-23 Thread Peter Farkas
simple :) -- View this message in context: http://tapestry.1045711.n5.nabble.com/Null-pointer-exception-when-updating-a-component-in-a-loop-tp5719424p5719452.html Sent from the Tapestry - User mailing list archive at Nabble.com. ---

Re: Null pointer exception when updating a component in a loop

2013-01-23 Thread Thiago H de Paula Figueiredo
On Wed, 23 Jan 2013 06:03:33 -0200, Peter Farkas wrote: Thanks a lot, Thiago! Yes, passing the child as a context parameter fixes it. ;) I think Tapestry does try to figure out the component parameters for a partial update, but for loops, it can't. I'm sorry, but you're wrong here. It

Re: Null pointer exception when updating a component in a loop

2013-01-23 Thread Peter Farkas
ndered multiple times with different parameters. Thus the component injected by is always the same and doesn't hold the information for a particular iteration. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Null-pointer-exception-when-updating-a-component-in-a-lo

Re: Null pointer exception when updating a component in a loop

2013-01-22 Thread Thiago H de Paula Figueiredo
You said: When rendering the AJAX response, Tapestry tries to evaluate an expression on 'child' (*), but 'child' is null.Why does Tapestry need the value of 'child'? How is it supposed to know? The stack trace says the problem is elsewhere: [ERROR] batch.ViewBatch Render queue error in B

Re: Null pointer exception when updating a component in a loop

2013-01-22 Thread Peter Farkas
Ok. There are more nested components than necessary, though. ExecutableRowPair.tml: ExecutableRowPair.java: Stack trace (actually the null pointer exception is in ExecutableRowPair): -- View this message in context: http://tapestry.1045711.n5.nabble.com/Null-pointer-exception-when

Re: Null pointer exception when updating a component in a loop

2013-01-22 Thread Thiago H de Paula Figueiredo
x27; is null. Why does Tapestry need the value of 'child'? How is it supposed to know? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Null-pointer-exception-when-updating-a-component-in-a-loop-tp5719424.html Sent

Null pointer exception when updating a component in a loop

2013-01-22 Thread Peter Farkas
r.java, I'm injecting the component as follows: When rendering the AJAX response, Tapestry tries to evaluate an expression on 'child' (*), but 'child' is null. Why does Tapestry need the value of 'child'? How is it supposed to know? -- View this message in

Re: Null Pointer Exception in Palette component in tapestry 5.2.6/5.3.3

2012-07-11 Thread Thiago H de Paula Figueiredo
On Wed, 11 Jul 2012 12:34:04 -0300, Norman Franke wrote: I've got those before as well, and that was the problem. Perhaps Tapestry could handle that better and just select the first item in this case? Pallete is a multiple object selection component, so, in my humble opinion, this soluti

Re: Null Pointer Exception in Palette component in tapestry 5.2.6/5.3.3

2012-07-11 Thread Norman Franke
I've got those before as well, and that was the problem. Perhaps Tapestry could handle that better and just select the first item in this case? Norman Franke Answering Service for Directors, Inc. www.myasd.com On Jul 10, 2012, at 8:11 AM, Thiago H de Paula Figueiredo wrote: > On Tue, 10 Jul 2

Re: Null Pointer Exception in Palette component in tapestry 5.2.6/5.3.3

2012-07-10 Thread Jabbar
Thanks Thiago I'll bear that in mind, next time the problem occurs On Jul 10, 2012 1:11 PM, "Thiago H de Paula Figueiredo" wrote: > On Tue, 10 Jul 2012 08:54:25 -0300, Jabbar wrote: > > I think I found the problem, although I'm not 100% sure. I deleted the >> data which populated the selected p

Re: Null Pointer Exception in Palette component in tapestry 5.2.6/5.3.3

2012-07-10 Thread Thiago H de Paula Figueiredo
On Tue, 10 Jul 2012 08:54:25 -0300, Jabbar wrote: I think I found the problem, although I'm not 100% sure. I deleted the data which populated the selected property of the palette component and then added the data back into the database. The problem has disappeared. NPEs in Palette happen

Re: Null Pointer Exception in Palette component in tapestry 5.2.6/5.3.3

2012-07-10 Thread Jabbar
ta. On 10 July 2012 09:47, Jabbar wrote: > Hello all, > > I've just spent too long trying to track down a null pointer exception I'm > having in the Palette component. The partial stack trace I keep getting is > > [ERROR] pages.RepairPage Render

Re: Null Pointer Exception

2012-05-12 Thread Felix Gonschorek
is = null; > > os.close(); > } > finally > { > InternalUtils.close(is); > } > > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com

Re: Null Pointer Exception

2012-05-10 Thread Lance Java
estry.1045711.n5.nabble.com/Null-Pointer-Exception-tp5698238p5699340.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail:

Re: Null Pointer Exception

2012-05-10 Thread Lance Java
-Pointer-Exception-tp5698238p5699330.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h

Re: Null Pointer Exception

2012-05-09 Thread Simon Raveh
Thanks, But I searched my all project and this is not in my code. Thanks again, I"ll keep looking. Simon On 5/9/12 2:39 PM, "Lance Java" wrote: >I think you might be explicitly calling close() on the response >outputstream somewhere in your code which you shouldn't do. It's the >servlet c

Re: Null Pointer Exception

2012-05-09 Thread Lance Java
I think you might be explicitly calling close() on the response outputstream somewhere in your code which you shouldn't do. It's the servlet container's responsibility and I think it's failing when tomcat is trying to close() a stream that has already been closed. I could be wrong too ;)

Null Pointer Exception

2012-05-09 Thread Simon Raveh
Hi All, I have a Tapestry 5.2.6 Application in production running on Tomcat 7. In general everything is running smoothly but from time to time I get the exception below. I did not get any user complain related to it, so I can't really attached it to any specific operation a user does. I did not se

T5.2.0: Unit test using PageTester gets null pointer exception using Flash persistence.

2010-07-13 Thread Josh Canfield
ctSelected() { final TestObject obj = getLoopObject(); // This line causes a nullpointerexception final boolean notNull = selected != null; return notNull && selected.containsKey(obj.getId()); } If I use the default Session persistence then I don't get the

AW: WG: Question: Can not get access to object fields (Null Pointer Exception) pls pls help!

2006-09-12 Thread m-woelm
- Von: Steve Shucker [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 12. September 2006 16:03 An: Tapestry users Betreff: Re: WG: Question: Can not get access to object fields (Null Pointer Exception) pls pls help! As a general rule, it's safer to put the literal first in statements like

Re: WG: Question: Can not get access to object fields (Null Pointer Exception) pls pls help!

2006-09-12 Thread Steve Shucker
uld be pleased, if anybody could give me an advice for my problem. Greettings from Germany, Michael Wölm Original message is under this. -Ursprüngliche Nachricht- Von: m-woelm [mailto:[EMAIL PROTECTED] Gesendet: Sonntag, 10. September 2006 16:13 An: 'Tapestry users' Betreff: Questio

Re: WG: Question: Can not get access to object fields (Null Pointer Exception) pls pls help!

2006-09-12 Thread Martin Strand
incomprehensible? I would be pleased, if anybody could > give me an advice for my problem. > > Greettings from Germany, > Michael Wölm > > Original message is under this. > > -Ursprüngliche Nachricht- > Von: m-woelm [mailto:[EMAIL PROTECTED] > Gesendet: Sonntag, 10. Septem

Re: Question: Can not get access to object fields (Null Pointer Exception) pls pls help!

2006-09-12 Thread Jesse Kuhnert
my problem. Greettings from Germany, Michael Wölm Original message is under this. -Ursprüngliche Nachricht- Von: m-woelm [mailto:[EMAIL PROTECTED] Gesendet: Sonntag, 10. September 2006 16:13 An: 'Tapestry users' Betreff: Question: Can not get access to object fields (Null Point

WG: Question: Can not get access to object fields (Null Pointer Exception) pls pls help!

2006-09-12 Thread Michael Wölm
- Von: m-woelm [mailto:[EMAIL PROTECTED] Gesendet: Sonntag, 10. September 2006 16:13 An: 'Tapestry users' Betreff: Question: Can not get access to object fields (Null Pointer Exception) Hi, I hope anybody could explain me why I get a Null Pointer Exception, if I want to get access to a f

Question: Can not get access to object fields (Null Pointer Exception)

2006-09-10 Thread m-woelm
Hi, I hope anybody could explain me why I get a Null Pointer Exception, if I want to get access to field of an object. My method is similar to the eshop-project of the book “Enjoying web dev with Tapestry”. I tried to change the Listener-method onLogin as follows: public void onLogin