RE: servlet FOP multi-thread

2002-05-30 Thread Pierre-Adrien Coustillas
I use tomcat 4.0
Fop is 0.20.3
java is 1.3.1
My OS is linux (2 intel 1ghz)

I execute this script :

i=2
while [ $i -ne 0 ]
do
  wget
"http://localhost:8080/fop/fop?xml=$HOME/elixirTOfop/test/rien.xml&xsl=$HOME
/elixirTOfop/test/rien.xsl" -O multi/servletfop$i.pdf &
   i=$(expr $i - 1)
done


//When i=2, the result is :
Connexion vers localhost:8080...Connecté!
200 OK
Longueur: 61,003 [application/pdf]

0K .. .. .. .. .. 83%   0:00
51.2M
   50K . 100%

16:32:58 (58.18 MB/s) - `multi/servletfop2.pdf' sauvegardé [61003/61003]

200 OK
Longueur: 61,003 [application/pdf]

0K .. .. .. .. .. 83%   0:00
51.2M
   50K . 100%

16:32:58 (58.18 MB/s) - `multi/servletfop1.pdf' sauvegardé [61003/61003]

The size of pdf is 61003. This size is good, and i cab open PDFs


//But i=3 the result is
200 OK
Longueur: 50,204 [application/pdf]

0K ...200 OK
Longueur: 50,204 [application/pdf]

0K .. .. .. .. . 100%   0:00
50.2M

16:34:45 (47.88 MB/s) - `multi/servletfop3.pdf' sauvegardé [50204/50204]

... .200 OK
Longueur: 50,204 [application/pdf]

0K  ..  ..  . ...
.100%   0:00 10.0M

. ...16:34:45 (9.58 MB/s) - `multi/servletfop1.pdf' sauvegardé
[50204/50204]

.. 100%   0:00 50.2M

16:34:45 (23.94 MB/s) - `multi/servletfop2.pdf' sauvegardé [50204/50204]

//The size is different and I can't open PDFs (the bad size is not always
50204)

Where is the problem ?

The size of xml is 50.0Ko (may be is too big)
The size of xsl is 14.4Ko

thanks

Pierre.



-Message d'origine-
De : John Austin [mailto:[EMAIL PROTECTED]
Envoyé : lundi 27 mai 2002 02:59
À : [EMAIL PROTECTED]
Objet : Re: servlet FOP multi-thread


On Wednesday 22 May 2002 12:36, you wrote:
> >And how do you know the document size? Do you save it locally?
>
> Yes I save it locally (I use wget -O)
>
> >Well, you can try to save pdfs on the server to make sure they are
>
> generated
>
> >ok. What's your servlet engine?
>
> servlet engine : I use tomcat

Pierre, please try and give him a little more information in your
messages. Tell him which versions of FOP, Tomcat, Java, which OS and
the like. Try to isolate the smallest possible example that produces
the problem and post that.

Thansk and good luck



Re: servlet FOP multi-thread

2002-05-27 Thread John Austin
On Wednesday 22 May 2002 12:36, you wrote:
> >And how do you know the document size? Do you save it locally?
>
> Yes I save it locally (I use wget -O)
>
> >Well, you can try to save pdfs on the server to make sure they are
>
> generated
>
> >ok. What's your servlet engine?
>
> servlet engine : I use tomcat

Pierre, please try and give him a little more information in your 
messages. Tell him which versions of FOP, Tomcat, Java, which OS and 
the like. Try to isolate the smallest possible example that produces 
the problem and post that.

Thansk and good luck


RE: servlet FOP multi-thread

2002-05-22 Thread Pierre-Adrien Coustillas
>And how do you know the document size? Do you save it locally?
Yes I save it locally (I use wget -O)

>Well, you can try to save pdfs on the server to make sure they are
generated
>ok. What's your servlet engine?

servlet engine : I use tomcat


-Message d'origine-
De : Oleg Tkachenko [mailto:[EMAIL PROTECTED]
Envoye : mercredi 22 mai 2002 18:09
A : [EMAIL PROTECTED]
Objet : Re: servlet FOP multi-thread


Pierre-Adrien Coustillas wrote:
>   I use docs\examples\embedding\FopServlet.java  in directory of FOP.
And how do you know the document size? Do you save it locally?
Well, you can try to save pdfs on the server to make sure they are generated
ok. What's your servlet engine?

--
Oleg Tkachenko
Multiconn International, Israel



Re: servlet FOP multi-thread

2002-05-22 Thread Oleg Tkachenko
Pierre-Adrien Coustillas wrote:
  I use docs\examples\embedding\FopServlet.java  in directory of FOP.
And how do you know the document size? Do you save it locally?
Well, you can try to save pdfs on the server to make sure they are generated 
ok. What's your servlet engine?

--
Oleg Tkachenko
Multiconn International, Israel


RE: servlet FOP multi-thread

2002-05-22 Thread Pierre-Adrien Coustillas
  I use docs\examples\embedding\FopServlet.java  in directory of FOP.

Pierre

-Message d'origine-
De : Oleg Tkachenko [mailto:[EMAIL PROTECTED]
Envoye : mercredi 22 mai 2002 13:06
A : [EMAIL PROTECTED]
Objet : Re: servlet FOP multi-thread


Pierre-Adrien Coustillas wrote:
When the document is ok size = 63 ko, when the document is not ok size <
> 63 ko (always different) and it's impossible open pdf.

Do you flush/close output stream explicitly? Could you show us output
related
snipped of your code?

--
Oleg Tkachenko
Multiconn International, Israel



Re: servlet FOP multi-thread

2002-05-22 Thread Oleg Tkachenko
Pierre-Adrien Coustillas wrote:
   When the document is ok size = 63 ko, when the document is not ok size <
63 ko (always different) and it's impossible open pdf.
Do you flush/close output stream explicitly? Could you show us output related 
snipped of your code?

--
Oleg Tkachenko
Multiconn International, Israel


RE: servlet FOP multi-thread

2002-05-22 Thread Chris . Brown
Title: RE: servlet FOP multi-thread



*
This email and any files transmitted with it are intended solely
 for the use of the individual or entity to whom they are addressed.
*



Sounds to me like the PDF file that is being written has not been closed properly by the stream responsible for writing to it. ..

-Original Message-
From: Pierre-Adrien Coustillas [mailto:[EMAIL PROTECTED]]
Sent: 22 May 2002 11:11
To: [EMAIL PROTECTED]
Subject: RE: servlet FOP multi-thread



  When the document is ok size = 63 ko, when the document is not ok size <
63 ko (always different) and it's impossible open pdf.


-Message d'origine-
De : Oleg Tkachenko [mailto:[EMAIL PROTECTED]]
Envoye : mercredi 22 mai 2002 12:40
A : [EMAIL PROTECTED]
Objet : Re: servlet FOP multi-thread



Pierre-Adrien Coustillas wrote:


>   I use servlet FOP whit TOMCAT (linux) and I have a problem when execute
a
> lot of creating PDF (more 3). The PDF create are not good.
What does it mean exactly "not good"?


--
Oleg Tkachenko
Multiconn International, Israel




The original of this email has been scanned for viruses by the Government Secure Intranet (GSI) virus scanning service supplied exclusively by Cable & Wireless in partnership with MessageLabs.

GSI users - for further details, please contact the GSI Nerve Centre, or browse GNC 003/2002 at http://www.gsi.gov.uk/main/new2002notices.htm

In case of problems, please call your organisations IT helpdesk.



***
This email has been received from an external party and 
has been swept for the presence of computer viruses.
***





RE: servlet FOP multi-thread

2002-05-22 Thread Pierre-Adrien Coustillas
  When the document is ok size = 63 ko, when the document is not ok size <
63 ko (always different) and it's impossible open pdf.

-Message d'origine-
De : Oleg Tkachenko [mailto:[EMAIL PROTECTED]
Envoye : mercredi 22 mai 2002 12:40
A : [EMAIL PROTECTED]
Objet : Re: servlet FOP multi-thread


Pierre-Adrien Coustillas wrote:

>   I use servlet FOP whit TOMCAT (linux) and I have a problem when execute
a
> lot of creating PDF (more 3). The PDF create are not good.
What does it mean exactly "not good"?

--
Oleg Tkachenko
Multiconn International, Israel



Re: servlet FOP multi-thread

2002-05-22 Thread Oleg Tkachenko
Pierre-Adrien Coustillas wrote:
  I use servlet FOP whit TOMCAT (linux) and I have a problem when execute a
lot of creating PDF (more 3). The PDF create are not good.
What does it mean exactly "not good"?
--
Oleg Tkachenko
Multiconn International, Israel


servlet FOP multi-thread

2002-05-22 Thread Pierre-Adrien Coustillas
Hi, (I am french, and I bad speak english)
  I use servlet FOP whit TOMCAT (linux) and I have a problem when execute a
lot of creating PDF (more 3). The PDF create are not good.

  But when execute 1 or 2 PDF, there are not problem.

  If I use servlet in simple-thread it's ok, but it's less speed.

  what's problem in multi-thread ?

Pierre.