Re: Image not included in pdf

2023-01-31 Thread Anil Pinto
I will play around with the temp folder configuration for Tomcat and see if that impacts the cache behavior I'm seeing. I can live with turning off the cache as Simon pointed out, for now, but would like to find out more about the true cause of this behavior I will post any relevant success I find in this matter. Thank you for the pointers Luca and Simon Get Outlook for Android

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: Image not included in pdf

2023-01-31 Thread Luca Bellonda
Maybe it is a permission problem or the default tmp folder for this kind of
applications is not configured (enviroment variables TMP or TEMP) or the
start batch points to the wrong location. You can use some utility to check
the information (for example Sysinternals). If you are able to understand
the cause maybe you can update the Tomcat start script.



Il giorno lun 30 gen 2023 alle ore 22:05  ha
scritto:

> Hi,
>
>
>
> Maybe the tmp directory doesn’t exist.
>
>
>
> Thanks
>
>
>
> *From:* Anil Pinto 
> *Sent:* 30 January 2023 20:22
> *To:* fop-users@xmlgraphics.apache.org
> *Subject:* Re: Image not included in pdf
>
>
>
> Hello Simon,
>
> So, adding that code statement resolved that error message and the image
> now shows.
>
> Can you think of anything that's changed lately that needed this specific
> step to be performed (outside the IDE env coz it works without this line
> there)?
>
> Windows 11, Java 19, Tomcat 10.0.16, FOP 2.8 is the stack
>
> Appreciate your prompt response with a solution!
>
> Thank you,
>
> Anil
>
>
>
> On 1/30/2023 12:38 AM, Anil Pinto wrote:
>
> I can most definitely try that. I will do it the first chance i get and
> let you know.
>
>
>
> So just once during or before FOP initialization would be a good place to
> add that code?
>
>
>
> Get Outlook for Android <https://aka.ms/AAb9ysg>
>
> - To
> unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For
> additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>
>


RE: Image not included in pdf

2023-01-30 Thread simonsteiner1984
Hi,

 

Maybe the tmp directory doesn’t exist.

 

Thanks

 

From: Anil Pinto  
Sent: 30 January 2023 20:22
To: fop-users@xmlgraphics.apache.org
Subject: Re: Image not included in pdf

 

Hello Simon,

So, adding that code statement resolved that error message and the image now 
shows. 

Can you think of anything that's changed lately that needed this specific step 
to be performed (outside the IDE env coz it works without this line there)?

Windows 11, Java 19, Tomcat 10.0.16, FOP 2.8 is the stack

Appreciate your prompt response with a solution!

Thank you,

Anil

 

On 1/30/2023 12:38 AM, Anil Pinto wrote:

I can most definitely try that. I will do it the first chance i get and let you 
know. 

 

So just once during or before FOP initialization would be a good place to add 
that code?

 

Get Outlook for Android <https://aka.ms/AAb9ysg> 

- To 
unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org 
<mailto:fop-users-unsubscr...@xmlgraphics.apache.org>  For additional commands, 
e-mail: fop-users-h...@xmlgraphics.apache.org 
<mailto:fop-users-h...@xmlgraphics.apache.org>  



Re: Image not included in pdf

2023-01-30 Thread Anil Pinto

Hello Simon,

So, adding that code statement resolved that error message and the image 
now shows.


Can you think of anything that's changed lately that needed this 
specific step to be performed (outside the IDE env coz it works without 
this line there)?


Windows 11, Java 19, Tomcat 10.0.16, FOP 2.8 is the stack

Appreciate your prompt response with a solution!

Thank you,

Anil


On 1/30/2023 12:38 AM, Anil Pinto wrote:
I can most definitely try that. I will do it the first chance i get 
and let you know.


So just once during or before FOP initialization would be a good place 
to add that code?


Get Outlook for Android 
- 
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org 
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org 

Re: Image not included in pdf

2023-01-30 Thread Anil Pinto
I can most definitely try that. I will do it the first chance i get and let you know. So just once during or before FOP initialization would be a good place to add that code?Get Outlook for Android

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



RE: Image not included in pdf

2023-01-30 Thread Simon Steiner
Hi,

 

What if you call before fop:

ImageIO.setUseCache(false);

 

Thanks

 

From: Anil Pinto  
Sent: 30 January 2023 08:09
To: fop-users@xmlgraphics.apache.org
Subject: Re: Image not included in pdf

 

No there's plenty of space and the strange part is if I run a similar setup 
through my IntelliJ IDE and SmartTomcat plugin it doesn't complain. I wish 
there was some more information reported in a trace. 

 

The only difference I could see is that the SmartTomcat folder is under the 
Windows 11  Users folder. The regular Tomcat setup is in a normal folder under 
the C drive. 

 

Thanks for responding! 

 

Get Outlook for Android <https://aka.ms/AAb9ysg> 

- To 
unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org 
<mailto:fop-users-unsubscr...@xmlgraphics.apache.org>  For additional commands, 
e-mail: fop-users-h...@xmlgraphics.apache.org 
<mailto:fop-users-h...@xmlgraphics.apache.org>  



Re: Image not included in pdf

2023-01-30 Thread Anil Pinto
No there's plenty of space and the strange part is if I run a similar setup through my IntelliJ IDE and SmartTomcat plugin it doesn't complain. I wish there was some more information reported in a trace. The only difference I could see is that the SmartTomcat folder is under the Windows 11  Users folder. The regular Tomcat setup is in a normal folder under the C drive. Thanks for responding! Get Outlook for Android

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



RE: Image not included in pdf

2023-01-30 Thread Simon Steiner
Hi,

 

Are you out of disk space?

 

Thanks

 

From: Anil Pinto  
Sent: 30 January 2023 03:23
To: FOP Mailing List 
Subject: Image not included in pdf

 

Hello,

When running FOP 2.8 within a web application in Tomcat the image referenced in 
the XSL doesn't end up showing in the created PDF document. The following error 
shows on the Tomcat console

SEVERE [pool-14-thread-1] 
org.apache.xmlgraphics.image.loader.impl.AbstractImageSessionContext.createImageSource
 Unable to create ImageInputStream for InputStream from system identifier 
'<<>>'  (Can't create cache 
file!)

SEVERE [pool-14-thread-1] org.apache.fop.apps.FOUserAgent.processEvent Image 
not found. URI: logo.gif. (No context info available)

Is this an access issue?

Any pointers to address this is greatly appreciated.

Thanks,

Anil Pinto