Difficult to tell without seeing your code. The code below truncates the
file when opening it for the second time. There's no garbage after
"Hello World!". You should check how you write your output files. Maybe
you use RandomAccessFile in a wrong way. Not really a FOP question, is
it?

    File f = new File("D:/testfile.tmp");
    FileOutputStream fout = new FileOutputStream(f);
    fout.write("aksjdhfl akjsdh lkajshd fkjha sldjfh laksjdhlkjash dljf 
hlaksjdhlkjas hdlfkjha lskdjh".getBytes());
    fout.close();
    fout = new FileOutputStream(f);
    fout.write("Hello World!".getBytes());
    fout.close();


On 27.03.2003 17:22:23 Celine Murphy wrote:
> Has anyone ever experienced this type of error?
>  
> [INFO] [2]
> [Fatal Error] output.xml:3729:1: Content is not allowed in trailing section.
> [ERROR] Content is not allowed in trailing section.
>  
> It seems that somewhere in the transformation a part of the file is actually
> being written to at the bottom of the file. Hence the error. If I delete the
> files and start over then their is no error. It is only when the files are
> being overwritten that I get this error. 
>  
> Does anyone know if the file is deleted and a new one written out or does
> the transformation overwrite the original file and if the lengths of the
> files are different it leaves a part of the old file? Although it happens
> even if my changes are minimal - ie no file length difference. - (it doesn't
> happen all the time ie sometimes if the files are not deleted the error does
> not occur.)
>  
> Anybody any ideas??


Jeremias Maerki

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to