Bug 49842 - 1.0: not all events redirected
Summary: 1.0: not all events redirected
Status: NEEDINFO
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: general (show other bugs)
Version: 1.0
Hardware: PC Windows XP
: P3 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-30 05:15 UTC by M.H.
Modified: 2012-04-24 05:27 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description M.H. 2010-08-30 05:15:25 UTC
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.
Comment 1 Glenn Adams 2012-04-07 01:44:37 UTC
resetting P2 open bugs to P3 pending further review
Comment 2 Glenn Adams 2012-04-07 23:50:01 UTC
please provide input FO file for testing along with console output you obtain
Comment 3 Glenn Adams 2012-04-24 05:27:14 UTC
(In reply to comment #2)
> please provide input FO file for testing along with console output you obtain

M.H., I am still awaiting your input as requested above. if I see no further input by April 30, I will close this bug due to lack of requested information. Regards, Glenn