You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by dvzoerlandt <dv...@vanboxtel.nl> on 2010/09/16 09:42:58 UTC
FOP 1.0: images fail to render
Hello,
Since the migration from Apache FOP 0.95 to FOP 1.00 in our Java application
images fail to render. The interesting part of the logging is as follows:
---
Image not available. URI:
file:/u/vbs/stylesheets/images/compas_vbfooter.bmp. Reason:
org.apache.xmlgraphics.image.loader.ImageException: The file format is not
supported. No ImagePreloader found for
file:/u/vbs/stylesheets/images/compas_vbfooter.bmp (No context info
available)
---
I also had to upgrade Apache XML Graphics Commons from 1.3.1 to 1.4. When
reverting back to FOP 0.95 (and to XML Graphics Commons 1.3.1) images are
working again. The combination FOP 0.95 with XML Graphics Commons 1.4 also
results in working images.
As well as BMP files as JPEG files are failing to render. With both file
types the same message is reported.
I enabled finest logging for org.apache.fop and org.apache.xmlgraphics but I
didn't find no corresponding messages about an ImagePreloader.
I also installed JAI Image I/O Tools and the corresponding JAI (according to
http://xmlgraphics.apache.org/fop/1.0/graphics.html#imageio ) but to no
success regarding to this problem.
Can anyone give me a pointer in the right direction?
Regards,
Dennis
--
View this message in context: http://old.nabble.com/FOP-1.0%3A-images-fail-to-render-tp29725748p29725748.html
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
RE: FOP 1.0: images fail to render (Solved)
Posted by Dennis van Zoerlandt <dv...@vanboxtel.nl>.
I downloaded the fop-1.0-src.zip and built it with ant. This one made the
difference, now the BMP and JPEG images are rendered correctly. The log
files also seem to be happy now.
So this problem is solved.
Regards,
Dennis
P.S.: What's the best way to indicate this problem isn't active anymore? I
added '(Solved)' to the subject. Is this sufficient?
Eric Douglas wrote:
>
> Dependancies have surely changed between FOP 0.95 and 1.0. Read the
> manifest and make sure you have all the referenced jars.
> The manifest classpath was causing problems for me so I downloaded the
> source and compiled without it.
> Hopefully the classpath will be removed from the manifests in the next
> available binary with some documentation listing jar dependancies for
> the classpath.
> I searched the manifests of all the jars I had for FOP and found that
> xalan had a classpath in it's manifest as well so I have my own compile
> of that one also from the source download to exclude it.
>
>
> -----Original Message-----
> From: Dennis van Zoerlandt [mailto:dvzoerlandt@vanboxtel.nl]
> Sent: Thursday, September 16, 2010 5:00 AM
> To: fop-users@xmlgraphics.apache.org
> Subject: Re: FOP 1.0: images fail to render
>
>
> I am running the application under root (uid 0). I tested it a minute
> ago with a newly created non-root user in its own newly created group,
> but it got the same result. The log files also reported no different
> messages.
>
> Your hint about batik-all-1.7.jar I tried also. I formerly used
> batik-1.7 already, but then with all included Batik libraries one by one
> in my IDE (Eclipse). Now I use the all-in-one library, but with no
> changes in result.
> I tried this before and after the change of the user id under which the
> application is running.
>
> I already used xmlgraphics-commons-1.4.jar, so that's already right.
>
> Regards,
> Dennis
>
>
> Glenn Adams-2 wrote:
>>
>> would you happen to be running as root user (uid 0), or non-root? i
>> recently encountered a similar problem on 1.0 when running junit tests
>
>> as root; the other thing to check is verify you are using
>> xmlgraphics-commons-1.4.jar and batik-all-1.7.jar;
>>
>> On Thu, Sep 16, 2010 at 3:42 PM, dvzoerlandt
>> <dv...@vanboxtel.nl>wrote:
>>
>>>
>>> Hello,
>>>
>>> Since the migration from Apache FOP 0.95 to FOP 1.00 in our Java
>>> application images fail to render. The interesting part of the
>>> logging is as follows:
>>>
>>> ---
>>> Image not available. URI:
>>> file:/u/vbs/stylesheets/images/compas_vbfooter.bmp. Reason:
>>> org.apache.xmlgraphics.image.loader.ImageException: The file format
>>> is not supported. No ImagePreloader found for
>>> file:/u/vbs/stylesheets/images/compas_vbfooter.bmp (No context info
>>> available)
>>> ---
>>>
>>> I also had to upgrade Apache XML Graphics Commons from 1.3.1 to 1.4.
>>> When reverting back to FOP 0.95 (and to XML Graphics Commons 1.3.1)
>>> images are working again. The combination FOP 0.95 with XML Graphics
>>> Commons 1.4 also results in working images.
>>>
>>> As well as BMP files as JPEG files are failing to render. With both
>>> file types the same message is reported.
>>>
>>> I enabled finest logging for org.apache.fop and
>>> org.apache.xmlgraphics but I didn't find no corresponding messages
>>> about an ImagePreloader.
>>>
>>> I also installed JAI Image I/O Tools and the corresponding JAI
>>> (according to
>>> http://xmlgraphics.apache.org/fop/1.0/graphics.html#imageio ) but to
>>> no success regarding to this problem.
>>>
>>> Can anyone give me a pointer in the right direction?
>>>
>>> Regards,
>>> Dennis
>>> --
>>> View this message in context:
>>> http://old.nabble.com/FOP-1.0%3A-images-fail-to-render-tp29725748p297
>>> 25748.html Sent from the FOP - Users mailing list archive at
>>> Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
>>> For additional commands, e-mail:
>>> fop-users-help@xmlgraphics.apache.org
>>>
>>>
>>
>>
>
> --
> View this message in context:
> http://old.nabble.com/FOP-1.0%3A-images-fail-to-render-tp29725748p297262
> 49.html
> Sent from the FOP - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
>
--
View this message in context: http://old.nabble.com/FOP-1.0%3A-images-fail-to-render-tp29725748p29729208.html
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: FOP 1.0: images fail to render
Posted by Peter Hancock <pe...@gmail.com>.
Hi Dennis,
If it is any help the fop-1.0's MANIFEST.MF includes
Class-Path: avalon-framework-4.2.0.jar batik-all-1.7.jar commons-io-1.
3.1.jar commons-logging-1.0.4.jar fop-hyph.jar serializer-2.7.0.jar s
ervlet-2.2.jar xalan-2.7.0.jar xercesImpl-2.7.1.jar xml-apis-1.3.04.j
ar xml-apis-ext-1.3.04.jar xmlgraphics-commons-1.4.jar
Other than checking those dependencies I can only suggest checking out
the source from subversion
(http://svn.eu.apache.org/repos/asf/xmlgraphics/fop/tags/fop-1_0) and
building a clean version.
I was able to run your example fine with my build of 1.0.
Pete
On Thu, Sep 16, 2010 at 1:11 PM, Eric Douglas <ed...@blockhouse.com> wrote:
> Dependancies have surely changed between FOP 0.95 and 1.0. Read the
> manifest and make sure you have all the referenced jars.
> The manifest classpath was causing problems for me so I downloaded the
> source and compiled without it.
> Hopefully the classpath will be removed from the manifests in the next
> available binary with some documentation listing jar dependancies for
> the classpath.
> I searched the manifests of all the jars I had for FOP and found that
> xalan had a classpath in it's manifest as well so I have my own compile
> of that one also from the source download to exclude it.
>
>
> -----Original Message-----
> From: Dennis van Zoerlandt [mailto:dvzoerlandt@vanboxtel.nl]
> Sent: Thursday, September 16, 2010 5:00 AM
> To: fop-users@xmlgraphics.apache.org
> Subject: Re: FOP 1.0: images fail to render
>
>
> I am running the application under root (uid 0). I tested it a minute
> ago with a newly created non-root user in its own newly created group,
> but it got the same result. The log files also reported no different
> messages.
>
> Your hint about batik-all-1.7.jar I tried also. I formerly used
> batik-1.7 already, but then with all included Batik libraries one by one
> in my IDE (Eclipse). Now I use the all-in-one library, but with no
> changes in result.
> I tried this before and after the change of the user id under which the
> application is running.
>
> I already used xmlgraphics-commons-1.4.jar, so that's already right.
>
> Regards,
> Dennis
>
>
> Glenn Adams-2 wrote:
>>
>> would you happen to be running as root user (uid 0), or non-root? i
>> recently encountered a similar problem on 1.0 when running junit tests
>
>> as root; the other thing to check is verify you are using
>> xmlgraphics-commons-1.4.jar and batik-all-1.7.jar;
>>
>> On Thu, Sep 16, 2010 at 3:42 PM, dvzoerlandt
>> <dv...@vanboxtel.nl>wrote:
>>
>>>
>>> Hello,
>>>
>>> Since the migration from Apache FOP 0.95 to FOP 1.00 in our Java
>>> application images fail to render. The interesting part of the
>>> logging is as follows:
>>>
>>> ---
>>> Image not available. URI:
>>> file:/u/vbs/stylesheets/images/compas_vbfooter.bmp. Reason:
>>> org.apache.xmlgraphics.image.loader.ImageException: The file format
>>> is not supported. No ImagePreloader found for
>>> file:/u/vbs/stylesheets/images/compas_vbfooter.bmp (No context info
>>> available)
>>> ---
>>>
>>> I also had to upgrade Apache XML Graphics Commons from 1.3.1 to 1.4.
>>> When reverting back to FOP 0.95 (and to XML Graphics Commons 1.3.1)
>>> images are working again. The combination FOP 0.95 with XML Graphics
>>> Commons 1.4 also results in working images.
>>>
>>> As well as BMP files as JPEG files are failing to render. With both
>>> file types the same message is reported.
>>>
>>> I enabled finest logging for org.apache.fop and
>>> org.apache.xmlgraphics but I didn't find no corresponding messages
>>> about an ImagePreloader.
>>>
>>> I also installed JAI Image I/O Tools and the corresponding JAI
>>> (according to
>>> http://xmlgraphics.apache.org/fop/1.0/graphics.html#imageio ) but to
>>> no success regarding to this problem.
>>>
>>> Can anyone give me a pointer in the right direction?
>>>
>>> Regards,
>>> Dennis
>>> --
>>> View this message in context:
>>> http://old.nabble.com/FOP-1.0%3A-images-fail-to-render-tp29725748p297
>>> 25748.html Sent from the FOP - Users mailing list archive at
>>> Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
>>> For additional commands, e-mail:
>>> fop-users-help@xmlgraphics.apache.org
>>>
>>>
>>
>>
>
> --
> View this message in context:
> http://old.nabble.com/FOP-1.0%3A-images-fail-to-render-tp29725748p297262
> 49.html
> Sent from the FOP - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
RE: FOP 1.0: images fail to render
Posted by Eric Douglas <ed...@blockhouse.com>.
Dependancies have surely changed between FOP 0.95 and 1.0. Read the
manifest and make sure you have all the referenced jars.
The manifest classpath was causing problems for me so I downloaded the
source and compiled without it.
Hopefully the classpath will be removed from the manifests in the next
available binary with some documentation listing jar dependancies for
the classpath.
I searched the manifests of all the jars I had for FOP and found that
xalan had a classpath in it's manifest as well so I have my own compile
of that one also from the source download to exclude it.
-----Original Message-----
From: Dennis van Zoerlandt [mailto:dvzoerlandt@vanboxtel.nl]
Sent: Thursday, September 16, 2010 5:00 AM
To: fop-users@xmlgraphics.apache.org
Subject: Re: FOP 1.0: images fail to render
I am running the application under root (uid 0). I tested it a minute
ago with a newly created non-root user in its own newly created group,
but it got the same result. The log files also reported no different
messages.
Your hint about batik-all-1.7.jar I tried also. I formerly used
batik-1.7 already, but then with all included Batik libraries one by one
in my IDE (Eclipse). Now I use the all-in-one library, but with no
changes in result.
I tried this before and after the change of the user id under which the
application is running.
I already used xmlgraphics-commons-1.4.jar, so that's already right.
Regards,
Dennis
Glenn Adams-2 wrote:
>
> would you happen to be running as root user (uid 0), or non-root? i
> recently encountered a similar problem on 1.0 when running junit tests
> as root; the other thing to check is verify you are using
> xmlgraphics-commons-1.4.jar and batik-all-1.7.jar;
>
> On Thu, Sep 16, 2010 at 3:42 PM, dvzoerlandt
> <dv...@vanboxtel.nl>wrote:
>
>>
>> Hello,
>>
>> Since the migration from Apache FOP 0.95 to FOP 1.00 in our Java
>> application images fail to render. The interesting part of the
>> logging is as follows:
>>
>> ---
>> Image not available. URI:
>> file:/u/vbs/stylesheets/images/compas_vbfooter.bmp. Reason:
>> org.apache.xmlgraphics.image.loader.ImageException: The file format
>> is not supported. No ImagePreloader found for
>> file:/u/vbs/stylesheets/images/compas_vbfooter.bmp (No context info
>> available)
>> ---
>>
>> I also had to upgrade Apache XML Graphics Commons from 1.3.1 to 1.4.
>> When reverting back to FOP 0.95 (and to XML Graphics Commons 1.3.1)
>> images are working again. The combination FOP 0.95 with XML Graphics
>> Commons 1.4 also results in working images.
>>
>> As well as BMP files as JPEG files are failing to render. With both
>> file types the same message is reported.
>>
>> I enabled finest logging for org.apache.fop and
>> org.apache.xmlgraphics but I didn't find no corresponding messages
>> about an ImagePreloader.
>>
>> I also installed JAI Image I/O Tools and the corresponding JAI
>> (according to
>> http://xmlgraphics.apache.org/fop/1.0/graphics.html#imageio ) but to
>> no success regarding to this problem.
>>
>> Can anyone give me a pointer in the right direction?
>>
>> Regards,
>> Dennis
>> --
>> View this message in context:
>> http://old.nabble.com/FOP-1.0%3A-images-fail-to-render-tp29725748p297
>> 25748.html Sent from the FOP - Users mailing list archive at
>> Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
>> For additional commands, e-mail:
>> fop-users-help@xmlgraphics.apache.org
>>
>>
>
>
--
View this message in context:
http://old.nabble.com/FOP-1.0%3A-images-fail-to-render-tp29725748p297262
49.html
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: FOP 1.0: images fail to render
Posted by Dennis van Zoerlandt <dv...@vanboxtel.nl>.
Hi Pete,
I created a short effective example file set consisting of
- a XML file with only a header and a default set of application parameters
inside a comment block
- a XSL-FO file created with Metafocus DigiForms with only the most basic
lay-out and a graphic file.
- a BMP file created with Paint.
I uploaded these with this post.
For your information, I use the PDF renderer in FOP.
Regards,
Dennis
Peter Hancock-2 wrote:
>
> Hi Dennis,
>
> Could you provide a simple set of example files that demonstrate the
> problem, please.
>
> Pete
>
> On Thu, Sep 16, 2010 at 10:00 AM, Dennis van Zoerlandt
> <dv...@vanboxtel.nl> wrote:
>>
>> I am running the application under root (uid 0). I tested it a minute ago
>> with a newly created non-root user in its own newly created group, but it
>> got the same result. The log files also reported no different messages.
>>
>> Your hint about batik-all-1.7.jar I tried also. I formerly used batik-1.7
>> already, but then with all included Batik libraries one by one in my IDE
>> (Eclipse). Now I use the all-in-one library, but with no changes in
>> result.
>> I tried this before and after the change of the user id under which the
>> application is running.
>>
>> I already used xmlgraphics-commons-1.4.jar, so that's already right.
>>
>> Regards,
>> Dennis
>>
>>
>> Glenn Adams-2 wrote:
>>>
>>> would you happen to be running as root user (uid 0), or non-root? i
>>> recently
>>> encountered a similar problem on 1.0 when running junit tests as root;
>>> the
>>> other thing to check is verify you are using xmlgraphics-commons-1.4.jar
>>> and
>>> batik-all-1.7.jar;
>>>
>>> On Thu, Sep 16, 2010 at 3:42 PM, dvzoerlandt
>>> <dv...@vanboxtel.nl>wrote:
>>>
>>>>
>>>> Hello,
>>>>
>>>> Since the migration from Apache FOP 0.95 to FOP 1.00 in our Java
>>>> application
>>>> images fail to render. The interesting part of the logging is as
>>>> follows:
>>>>
>>>> ---
>>>> Image not available. URI:
>>>> file:/u/vbs/stylesheets/images/compas_vbfooter.bmp. Reason:
>>>> org.apache.xmlgraphics.image.loader.ImageException: The file format is
>>>> not
>>>> supported. No ImagePreloader found for
>>>> file:/u/vbs/stylesheets/images/compas_vbfooter.bmp (No context info
>>>> available)
>>>> ---
>>>>
>>>> I also had to upgrade Apache XML Graphics Commons from 1.3.1 to 1.4.
>>>> When
>>>> reverting back to FOP 0.95 (and to XML Graphics Commons 1.3.1) images
>>>> are
>>>> working again. The combination FOP 0.95 with XML Graphics Commons 1.4
>>>> also
>>>> results in working images.
>>>>
>>>> As well as BMP files as JPEG files are failing to render. With both
>>>> file
>>>> types the same message is reported.
>>>>
>>>> I enabled finest logging for org.apache.fop and org.apache.xmlgraphics
>>>> but
>>>> I
>>>> didn't find no corresponding messages about an ImagePreloader.
>>>>
>>>> I also installed JAI Image I/O Tools and the corresponding JAI
>>>> (according
>>>> to
>>>> http://xmlgraphics.apache.org/fop/1.0/graphics.html#imageio ) but to no
>>>> success regarding to this problem.
>>>>
>>>> Can anyone give me a pointer in the right direction?
>>>>
>>>> Regards,
>>>> Dennis
>>>> --
>>>> View this message in context:
>>>> http://old.nabble.com/FOP-1.0%3A-images-fail-to-render-tp29725748p29725748.html
>>>> Sent from the FOP - Users mailing list archive at Nabble.com.
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
>>>> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>>>>
>>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://old.nabble.com/FOP-1.0%3A-images-fail-to-render-tp29725748p29726249.html
>> Sent from the FOP - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
>> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
>
http://old.nabble.com/file/p29726729/fop-test.xml fop-test.xml
http://old.nabble.com/file/p29726729/fop-test.xfo fop-test.xfo
http://old.nabble.com/file/p29726729/fop-test.bmp fop-test.bmp
--
View this message in context: http://old.nabble.com/FOP-1.0%3A-images-fail-to-render-tp29725748p29726729.html
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: FOP 1.0: images fail to render
Posted by Peter Hancock <pe...@gmail.com>.
Hi Dennis,
Could you provide a simple set of example files that demonstrate the
problem, please.
Pete
On Thu, Sep 16, 2010 at 10:00 AM, Dennis van Zoerlandt
<dv...@vanboxtel.nl> wrote:
>
> I am running the application under root (uid 0). I tested it a minute ago
> with a newly created non-root user in its own newly created group, but it
> got the same result. The log files also reported no different messages.
>
> Your hint about batik-all-1.7.jar I tried also. I formerly used batik-1.7
> already, but then with all included Batik libraries one by one in my IDE
> (Eclipse). Now I use the all-in-one library, but with no changes in result.
> I tried this before and after the change of the user id under which the
> application is running.
>
> I already used xmlgraphics-commons-1.4.jar, so that's already right.
>
> Regards,
> Dennis
>
>
> Glenn Adams-2 wrote:
>>
>> would you happen to be running as root user (uid 0), or non-root? i
>> recently
>> encountered a similar problem on 1.0 when running junit tests as root; the
>> other thing to check is verify you are using xmlgraphics-commons-1.4.jar
>> and
>> batik-all-1.7.jar;
>>
>> On Thu, Sep 16, 2010 at 3:42 PM, dvzoerlandt
>> <dv...@vanboxtel.nl>wrote:
>>
>>>
>>> Hello,
>>>
>>> Since the migration from Apache FOP 0.95 to FOP 1.00 in our Java
>>> application
>>> images fail to render. The interesting part of the logging is as follows:
>>>
>>> ---
>>> Image not available. URI:
>>> file:/u/vbs/stylesheets/images/compas_vbfooter.bmp. Reason:
>>> org.apache.xmlgraphics.image.loader.ImageException: The file format is
>>> not
>>> supported. No ImagePreloader found for
>>> file:/u/vbs/stylesheets/images/compas_vbfooter.bmp (No context info
>>> available)
>>> ---
>>>
>>> I also had to upgrade Apache XML Graphics Commons from 1.3.1 to 1.4. When
>>> reverting back to FOP 0.95 (and to XML Graphics Commons 1.3.1) images are
>>> working again. The combination FOP 0.95 with XML Graphics Commons 1.4
>>> also
>>> results in working images.
>>>
>>> As well as BMP files as JPEG files are failing to render. With both file
>>> types the same message is reported.
>>>
>>> I enabled finest logging for org.apache.fop and org.apache.xmlgraphics
>>> but
>>> I
>>> didn't find no corresponding messages about an ImagePreloader.
>>>
>>> I also installed JAI Image I/O Tools and the corresponding JAI (according
>>> to
>>> http://xmlgraphics.apache.org/fop/1.0/graphics.html#imageio ) but to no
>>> success regarding to this problem.
>>>
>>> Can anyone give me a pointer in the right direction?
>>>
>>> Regards,
>>> Dennis
>>> --
>>> View this message in context:
>>> http://old.nabble.com/FOP-1.0%3A-images-fail-to-render-tp29725748p29725748.html
>>> Sent from the FOP - Users mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
>>> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>>>
>>>
>>
>>
>
> --
> View this message in context: http://old.nabble.com/FOP-1.0%3A-images-fail-to-render-tp29725748p29726249.html
> Sent from the FOP - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: FOP 1.0: images fail to render
Posted by Dennis van Zoerlandt <dv...@vanboxtel.nl>.
I am running the application under root (uid 0). I tested it a minute ago
with a newly created non-root user in its own newly created group, but it
got the same result. The log files also reported no different messages.
Your hint about batik-all-1.7.jar I tried also. I formerly used batik-1.7
already, but then with all included Batik libraries one by one in my IDE
(Eclipse). Now I use the all-in-one library, but with no changes in result.
I tried this before and after the change of the user id under which the
application is running.
I already used xmlgraphics-commons-1.4.jar, so that's already right.
Regards,
Dennis
Glenn Adams-2 wrote:
>
> would you happen to be running as root user (uid 0), or non-root? i
> recently
> encountered a similar problem on 1.0 when running junit tests as root; the
> other thing to check is verify you are using xmlgraphics-commons-1.4.jar
> and
> batik-all-1.7.jar;
>
> On Thu, Sep 16, 2010 at 3:42 PM, dvzoerlandt
> <dv...@vanboxtel.nl>wrote:
>
>>
>> Hello,
>>
>> Since the migration from Apache FOP 0.95 to FOP 1.00 in our Java
>> application
>> images fail to render. The interesting part of the logging is as follows:
>>
>> ---
>> Image not available. URI:
>> file:/u/vbs/stylesheets/images/compas_vbfooter.bmp. Reason:
>> org.apache.xmlgraphics.image.loader.ImageException: The file format is
>> not
>> supported. No ImagePreloader found for
>> file:/u/vbs/stylesheets/images/compas_vbfooter.bmp (No context info
>> available)
>> ---
>>
>> I also had to upgrade Apache XML Graphics Commons from 1.3.1 to 1.4. When
>> reverting back to FOP 0.95 (and to XML Graphics Commons 1.3.1) images are
>> working again. The combination FOP 0.95 with XML Graphics Commons 1.4
>> also
>> results in working images.
>>
>> As well as BMP files as JPEG files are failing to render. With both file
>> types the same message is reported.
>>
>> I enabled finest logging for org.apache.fop and org.apache.xmlgraphics
>> but
>> I
>> didn't find no corresponding messages about an ImagePreloader.
>>
>> I also installed JAI Image I/O Tools and the corresponding JAI (according
>> to
>> http://xmlgraphics.apache.org/fop/1.0/graphics.html#imageio ) but to no
>> success regarding to this problem.
>>
>> Can anyone give me a pointer in the right direction?
>>
>> Regards,
>> Dennis
>> --
>> View this message in context:
>> http://old.nabble.com/FOP-1.0%3A-images-fail-to-render-tp29725748p29725748.html
>> Sent from the FOP - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
>> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>>
>>
>
>
--
View this message in context: http://old.nabble.com/FOP-1.0%3A-images-fail-to-render-tp29725748p29726249.html
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: FOP 1.0: images fail to render
Posted by Glenn Adams <gl...@skynav.com>.
would you happen to be running as root user (uid 0), or non-root? i recently
encountered a similar problem on 1.0 when running junit tests as root; the
other thing to check is verify you are using xmlgraphics-commons-1.4.jar and
batik-all-1.7.jar;
On Thu, Sep 16, 2010 at 3:42 PM, dvzoerlandt <dv...@vanboxtel.nl>wrote:
>
> Hello,
>
> Since the migration from Apache FOP 0.95 to FOP 1.00 in our Java
> application
> images fail to render. The interesting part of the logging is as follows:
>
> ---
> Image not available. URI:
> file:/u/vbs/stylesheets/images/compas_vbfooter.bmp. Reason:
> org.apache.xmlgraphics.image.loader.ImageException: The file format is not
> supported. No ImagePreloader found for
> file:/u/vbs/stylesheets/images/compas_vbfooter.bmp (No context info
> available)
> ---
>
> I also had to upgrade Apache XML Graphics Commons from 1.3.1 to 1.4. When
> reverting back to FOP 0.95 (and to XML Graphics Commons 1.3.1) images are
> working again. The combination FOP 0.95 with XML Graphics Commons 1.4 also
> results in working images.
>
> As well as BMP files as JPEG files are failing to render. With both file
> types the same message is reported.
>
> I enabled finest logging for org.apache.fop and org.apache.xmlgraphics but
> I
> didn't find no corresponding messages about an ImagePreloader.
>
> I also installed JAI Image I/O Tools and the corresponding JAI (according
> to
> http://xmlgraphics.apache.org/fop/1.0/graphics.html#imageio ) but to no
> success regarding to this problem.
>
> Can anyone give me a pointer in the right direction?
>
> Regards,
> Dennis
> --
> View this message in context:
> http://old.nabble.com/FOP-1.0%3A-images-fail-to-render-tp29725748p29725748.html
> Sent from the FOP - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>