[ http://jira.codehaus.org/browse/DISPL-563?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=154256#action_154256 ]
Graham Statham commented on DISPL-563: -------------------------------------- I've been able to consistently reproduce this error: Caused by: 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(Arrays.java:1270) I believe it has to deal with a combination of sorting and exporting. If I set defaultsort="1" on a table and specify the media='csv excel' on all the columns, I get this error consistently. If I change the defaultsort="0" then the columns I have specified are ignored and all columns in the dtos are displayed. Change the column media='all' and the null pointer error disappears. I'm running on tomcat 6.0.16, struts 1.3.8, jdk 1.6.0_07, and mysql 4.1.18. Hope this is helpful. > Displaytag is thrown a NULL pointer exception. > ---------------------------------------------- > > Key: DISPL-563 > URL: http://jira.codehaus.org/browse/DISPL-563 > Project: DisplayTag > Issue Type: Bug > Components: Paging/Sorting > Affects Versions: 1.1 > Reporter: brian yoshida > > JSP crashes with the following error message. > 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(Arrays.java:1278) at > java.util.Arrays.sort(Arrays.java:1219) at > java.util.Collections.sort(Collections.java:155) at > org.displaytag.model.TableModel.sortRowList(TableModel.java:451) at > org.displaytag.model.TableModel.sortPageList(TableModel.java:473) at > If we restart the container, it works for a little bit but resorts to the > behavior above. However, this cannot be reproduced in my development > environment - which makes it very difficult for me to debug. It only occurs > when deployed into production. Could it be library synchronization issue or > other setting issue within the Oracle 10g container? What would cause this? -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ displaytag-devel mailing list displaytag-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-devel