The PDF that is generated contains XSL-FO syntax at random places. To view the issue go to the below pdf and do a search for ":block":
Put the files fop.xml and fop.xsl in /temp/ . The java will pull in the two files and output /temp/fop.pdf . I believe this is a memory issue. If you cut the size of the XML document down it works fine.