You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by anil <an...@btinternet.com> on 2006/08/18 18:25:15 UTC

tableRowsIterator nullPointerException


Hi 

I'm fairly new to tapestry and am trying to create an implementation of the
IBasicTableModel interface so that I can paginate results and get results
(from Hibernate via Spring) when I need them.

I've written my component but whenever I load the page I get a ognlException
on the tableRowsIterator which seems to stem from a nullPointerException
from getCurrentPageRows.

Does this mean that there's no data being loaded into the table component to
be displayed? I must admit I'm not entirely sure what approach to take to
try and solve the problem.

If anyone could shed any light on what's happening, or could give me an idea
of where to start debugging this I'd be most grateful!

A.
-- 
View this message in context: http://www.nabble.com/tableRowsIterator-nullPointerException-tf2128224.html#a5872918
Sent from the Tapestry - User forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: tableRowsIterator nullPointerException

Posted by Karthik N <ka...@gmail.com>.
you would need to post the source of your IBasicTableModel for any further
specific help.

considering you're new to tapestry, i'd suggest a hardcoded implementaiton
of IBasicTableModel first and then get spring/hibernate into the picture.

On 8/18/06, anil <an...@btinternet.com> wrote:
>
>
>
> Hi
>
> I'm fairly new to tapestry and am trying to create an implementation of
> the
> IBasicTableModel interface so that I can paginate results and get results
> (from Hibernate via Spring) when I need them.
>
> I've written my component but whenever I load the page I get a
> ognlException
> on the tableRowsIterator which seems to stem from a nullPointerException
> from getCurrentPageRows.
>
> Does this mean that there's no data being loaded into the table component
> to
> be displayed? I must admit I'm not entirely sure what approach to take to
> try and solve the problem.
>
> If anyone could shed any light on what's happening, or could give me an
> idea
> of where to start debugging this I'd be most grateful!
>
> A.
> --
> View this message in context:
> http://www.nabble.com/tableRowsIterator-nullPointerException-tf2128224.html#a5872918
> Sent from the Tapestry - User forum at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Thanks, Karthik

Re: tableRowsIterator nullPointerException

Posted by Ryan Holmes <ry...@hyperstep.com>.
IIRC, an NPE from tableRowsIterator is often due to referencing an  
attribute of a related object in OGNL (e.g.  
ognl:customer.address.street) when the related object (e.g. address)  
is null.

HTH. If not, as Karthik said, please post the relevant source code,  
page or component specifications and HTML.

-Ryan

On Aug 18, 2006, at 9:25 AM, anil wrote:

>
>
> Hi
>
> I'm fairly new to tapestry and am trying to create an  
> implementation of the
> IBasicTableModel interface so that I can paginate results and get  
> results
> (from Hibernate via Spring) when I need them.
>
> I've written my component but whenever I load the page I get a  
> ognlException
> on the tableRowsIterator which seems to stem from a  
> nullPointerException
> from getCurrentPageRows.
>
> Does this mean that there's no data being loaded into the table  
> component to
> be displayed? I must admit I'm not entirely sure what approach to  
> take to
> try and solve the problem.
>
> If anyone could shed any light on what's happening, or could give  
> me an idea
> of where to start debugging this I'd be most grateful!
>
> A.
> -- 
> View this message in context: http://www.nabble.com/ 
> tableRowsIterator-nullPointerException-tf2128224.html#a5872918
> Sent from the Tapestry - User forum at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>

Ryan Holmes, CISSP

ryan@hyperstep.com
ph. (213) 626-0026



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org