Re: Multithreading problems

2001-06-13 Thread Jeremias Maerki

Kelly and Arved, thank you your comments. 

> At 01:56 PM 6/12/01 -0600, Kelly Campbell wrote:
> >I seem to remember fixing some of the possible problems in a more recent
> >release. And I know Keiron or Arved also fixed a problem with a static page
> >numbering variable that would cause problems like that.
> 
> To be exact, the fact that page-number was static was changed, precisely 
> because it _was_ a problem in multi-threading. This broke page-numbering 
> state across page-sequences, and still remains to be handled (obvious way is 
> to pull logic up into Root).

That was probably runningePagNumberCounter. I'll see if this is enough.

> Try 0.18.1 and see if it works better for your application.

Big adventure to try to recreate my changes there.

> One approach for tracking down strange problems when running multiple
> threads is to look for any non-final static class variables. These are
> likely candidates for problems like that.

So I found a few candidates:
- Configuration stuff (unlikely to cause problems, but inhibits using
  different configurations at the same time, right? Maybe it's time to
  have another look at Avalon.)
- MessageHandler stuff (similar to above)
- FopImageFactory m_urlMap (Maybe. I've had some error message with
  images but that could be my special URL type)
- ImageReader formats (no real candidate, but the variable should be
  filled in a static block, not in the constructor)


Jeremias Märki

mailto:[EMAIL PROTECTED]

OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Fon +41 (41) 317 2020 - Fax +41 (41) 317 2029
Internet http://www.outline.ch


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Multithreading problems

2001-06-12 Thread Arved Sandstrom

At 01:56 PM 6/12/01 -0600, Kelly Campbell wrote:
>I seem to remember fixing some of the possible problems in a more recent
>release. And I know Keiron or Arved also fixed a problem with a static page
>numbering variable that would cause problems like that.

To be exact, the fact that page-number was static was changed, precisely 
because it _was_ a problem in multi-threading. This broke page-numbering 
state across page-sequences, and still remains to be handled (obvious way is 
to pull logic up into Root).

Regards,
Arved

Fairly Senior Software Type
e-plicity (http://www.e-plicity.com)
Wireless * B2B * J2EE * XML --- Halifax, Nova Scotia


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Multithreading problems

2001-06-12 Thread Kelly Campbell

I seem to remember fixing some of the possible problems in a more recent
release. And I know Keiron or Arved also fixed a problem with a static page
numbering variable that would cause problems like that.

Try 0.18.1 and see if it works better for your application.

One approach for tracking down strange problems when running multiple
threads is to look for any non-final static class variables. These are
likely candidates for problems like that.

-Kelly

> -Original Message-
> From: Jeremias Maerki [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 12, 2001 6:03 AM
> To: [EMAIL PROTECTED]
> Subject: Multithreading problems
> 
> 
> Hi there
> 
> I'd like to know if there are people out there who use multiple FOP
> instances within the same VM at the same time (Multi-threading).
> 
> I'm currently trying to track down some strange behaviour in my
> application. Everything works fine when only one FOP instance 
> is active.
> When using multiple instances I get sporadic exceptions and PDFs that
> have more pages than expected and with incomplete content. I have to
> admit that I'm using an older (0.16) and slightly modified version of
> FOP so there is the possibility that I have done something wrong. But
> anyway, one of you committers may have an idea where I should look for
> possible multi-threading problems in FOP. Thanks!
> 
> Jeremias Märki
> 
> mailto:[EMAIL PROTECTED]
> 
> OUTLINE AG
> Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
> Fon +41 (41) 317 2020 - Fax +41 (41) 317 2029
> Internet http://www.outline.ch
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]