Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=4563858
By: jpsoriano

when I try to access a page with a displaytag, that jsp appears in blank and
the following error is showed:
java.lang.NullPointerException
        at 
org.displaytag.model.RowSorter.checkNullsAndCompare(RowSorter.java:176)
        at org.displaytag.model.RowSorter.compare(RowSorter.java:144)
        at java.util.Arrays.mergeSort(Unknown Source)
        at java.util.Arrays.mergeSort(Unknown Source)
        at java.util.Arrays.sort(Unknown Source)
        at java.util.Collections.sort(Unknown Source)
        at org.displaytag.model.TableModel.sortRowList(TableModel.java:451)
        at org.displaytag.model.TableModel.sortFullList(TableModel.java:486)
        at org.displaytag.tags.TableTag.setupViewableData(TableTag.java:1514)
        at org.displaytag.tags.TableTag.doEndTag(TableTag.java:1185)
        ...


I have checked that error is produced because the attribute comparator of 
RowSorter
is null .That happens when, the table is drawn for first time and the attribute
rowNumber of TableTag isn't equal to 1 (the header row isn't drawn so the 
comparator
is null or I think so). But this error doesn't appear always for the same page
and the same data.
When it doesn't work, reloading the page it works again.

I use struts, spring and hibernate and the version 1.1 of displaytags but i
have proved with the version 1.1.1 too. I hope that someone can help me. Thanks.

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=249318

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to