Hi Gregory, I cannot reproduce the exception with that material. Can you describe your environment (comprising jar coming with FOP) ? What FOP SVN revision do you use? When invoking FOP feeded with an XSL-FO, is there a file location in the log: if yes, that should help to retreive the faulty formatting object, if any
Pascal Gregory Buchenberger a écrit : > OK, I found the part of the FO that was throwing the error. I've > attached it. Can you tell what would cause it? > > > On Sun, Mar 7, 2010 at 11:50 PM, Georg Datterl <[email protected]> wrote: > >> Hi Gregory, >> >> I'd generate a fo file which throws the exception. Then I'd start by >> removing all image blocks. Check, if exception is still thrown. Then remove >> one page-sequence a time until only the page-sequence throwing the exception >> remains. Then the same for top-level blocks. And so on. And then I'd replace >> all text with dummy text. If that was all successfull, I'd have a short fo >> file without images or copyrighted text. I'd even try to remove as many >> attributes as possible. And that's what Vincent wants. >> >> Regards, >> >> Georg Datterl >> >> -----Ursprüngliche Nachricht----- >> Von: Gregory Buchenberger [mailto:[email protected]] >> Vincent, >> >> Unfortunately, the FO file is over 2MB and is accompanied by over >> 400MB of images. In addition, it is copyrighted primary grade textbook >> material that I can't distribute on a mailing list. Can you give me an >> idea of where to look? If I can find the offending XSL I will happily >> send a condensed example. >> >> Thanks, >> >> Gregory Buchenberger, CDIA+, ECMs >> >> >> On Fri, Mar 5, 2010 at 3:49 AM, Vincent Hennebert <[email protected]> >> wrote: >> >>> Hi Gregory, >>> >>> Can you please post a small XSL-FO file exhibiting the problem? >>> >>> Thanks, >>> Vincent >>> >>> >>> Gregory Buchenberger wrote: >>> >>>> Hello, >>>> >>>> I'm getting the following error when running FOP 1.0dev: >>>> >>>> STDERR: (Location of error unknown)java.lang.IllegalArgumentException: >>>> Only non-null Positions with an index can be checked >>>> >>>> The following code in AbstractLayoutManager.java appears to be >>>> throwing the exception: >>>> >>>> private void verifyNonNullPosition(Position pos) { >>>> if (pos == null || pos.getIndex() < 0) { >>>> throw new IllegalArgumentException( >>>> "Only non-null Positions with an index can be checked");} >>>> >>>> Does anyone know what could cause the exception? I'm hoping someone >>>> here is familiar with that bit of code. >>>> >>>> Thanks, >>>> >>>> Gregory Buchenberger, CDIA+, ECMs >>>> --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
