The small FO file in attachment causes an ArrayIndexOutOfBoundsException in TextLayoutManager.addALetterSpaceTo(). If the white-space-treatment property is removed, the Exception does not occur.
Created attachment 20828 [details] fo demonstrating the bug
Not white-space-preserve was causing the error, but white-space-collapse. The linefeed by itself is not related to the problem, and the same error occurs for non-collapsed white-space in the middle of a line. It is possible that a KnuthBox has a position of -1 in sequences of non-collapsed spaces, apparently, so by adding a check for this in the related method in TextLayoutManager (~ line 810), the Exception can be avoided.
for reference: http://svn.apache.org/viewvc?rev=577899&view=rev
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed