Details
-
Bug
-
Status: Open
-
Resolution: Unresolved
-
1.0
-
None
-
None
-
Operating System: Windows XP
Platform: PC
-
49842
Description
I was happy to see the new event handling framework in FOP 1.0. It also works - but not for all events:
I wrote my own event EventListener and added it to the FOUserAgent (just as shown in http://xmlgraphics.apache.org/fop/1.0/events.html). Yahoo, I got events and was able to handle them differently instead of just log WARNING and SEVERE message to the log file.
But there are still events that my EventListener doesn't get. I have a case wher an SVG image is missing. I do get the events
1. Image not found. URI: images/MyPic.svg. (See position 1:2664)
2. Image not found. URI: images/MyPic.svg. (No context info available)
and can handle them in my EventListener. But I don't get the events
3. Unable to obtain stream from system identifier 'file:////C4711/A1/xml/images/MyPic.svg'
4. The Source that was returned from URI resolution didn't contain an InputStream for URI: images/MyPic.svg
that are just logged to the Java logger as SEVERE messages. At a breakpoint, I see that the logging is done from FOUserAgent$1(AbstractImageSessionContext).newSource(String) line: 165
So it seems that there are still events that are not redirected to registered EventListeners.