You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2008/09/09 10:52:29 UTC
DO NOT REPLY [Bug 45770] New: "Image not found" when using Java
embedding
https://issues.apache.org/bugzilla/show_bug.cgi?id=45770
Summary: "Image not found" when using Java embedding
Product: Fop
Version: 0.95
Platform: PC
OS/Version: Windows 2000
Status: NEW
Severity: normal
Priority: P2
Component: images
AssignedTo: fop-dev@xmlgraphics.apache.org
ReportedBy: mhilpert@gmx.de
I tested FOP 0.95 after migrating the XSL files from 0.20.5 and all went very
well when tested with the fop.bat included with FOP 0.95 - including the SVG
and GIF images.
Then I started migrating the Java application from FOP 0.20.5 to FOP 0.95 and
now all the images are missing. The baseUrl is set up correctly in the used
fopUserAgent (I tried both "file:///" + oldFopBaseDir and "file:/" +
oldFopBaseDir leading to "file:///C:\temp", "file:/C:\temp"). As the reports
also include other XSL files with relative URLs, the userAgents baseURL seems
basically to work. So I wonder why FOP 0.95 can't find the images:
Image not found: images/top.svg
Image not found: images/singlearr.gif
Again: the same baseDir used to create the report with fop.bat works including
all the images. So, it's not a bug with the XSL/image files but with the Java
embedding config.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 45770] "Image not found" when using Java embedding
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45770
Jeremias Maerki <je...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WORKSFORME
--- Comment #1 from Jeremias Maerki <je...@apache.org> 2008-09-17 08:14:33 PST ---
I'm not sure what the problem could be. Relative URIs work just fine for me.
Can you try the following:
- Set the Base URL on the FopFactory rather than on the FOUserAgent. That
shouldn't make any difference for images, though, as they use the base URL from
the FOUserAgent.
- Remove any base URL from the configuration file if you use one. Shouldn't
really make a difference, either. But redundance can sometimes make for nasty
surprises.
If this doesn't help (and it probably won't), the only thing that comes to my
mind is setting a break point in FOUserAgent.resolveURI(String, String) and
check what exactly is going on. Please reopen this issue if you doesn't lead
you to the problem.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 45770] "Image not found" when using Java embedding
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45770
--- Comment #2 from M.H. <mh...@gmx.de> 2008-09-17 11:07:39 PST ---
I found the cause: the problem is, that the new FOP doesn't accept relative
URLs anymore ... at least when using with Java embedding - with the fop.batr
command line command, it works. After writing my own URIResolver to workaround
this probem (by appending a fixed URL string as a prefix) I got it to work
again. However, this is a rather bad workaround.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 45770] "Image not found" when using Java embedding
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45770
Glenn Adams <gl...@skynav.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |CLOSED
--- Comment #3 from Glenn Adams <gl...@skynav.com> 2012-04-01 13:54:56 UTC ---
batch transition to closed remaining pre-FOP1.0 resolved bugs
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.