Hi Giacomo,
i found an old thread which also could provide a hint:
http://itext-general.2136553.n4.nabble.com/IText-doesn-t-seem-to-be-thread-safe-td2144360.html
The problem was that the guy declared the document to be ''static'' (in a
jsp context)
<%!
Document document;
%>
Secondly the app server can be configured in two modes:
1. each request creates a new instance of the servlet
2 the same instance is used by all the requests.
Maybe your server is configured for the 2nd? Then the document instance is
shared by all users...
2013/4/12 TvT <tvtre...@nepatec.de>
> Hi Giacomo,
>
> don't let them scare you away ;-)
> Since Weblogic Server 8.1 runs with java 1.4 the latest version for you
> would be 2.1.7. And i can understand too well, that you can't
> replace/ugrade your version. The problem is, that you didn't specify any
> details. iText (in that version) didn't use system properties by default to
> change the alignment of text or other things. Maybe your application does
> that? Such server scenarios are difficult to track. Depending on how you
> implemented it - maybe you are sharing one PDFWriter Instance (=static) for
> all users and depending on how many users are generating documents you will
> get unpredictable results. In your case a thorough code analysis must be
> done since its seems more like a multithread/reentrant/sychronization
> problem. But as mentioned its difficult to tell since no source code was
> provided. If you can't provide it, then maybe use findbugs with
> findbugs-contrib since it can detect some problems in that area.
>
> Regards,
> Tobias
>
>
> 2013/4/12 Giacomo Giustozzi <psychow...@inwind.it>
>
>> Hi Alexis,
>> I know, but it's an old web app which I inherited just for support
>> tickets, and supposedly I'm not allowed to upgrade the jar because it is
>> shared with other applications. I was 'just' looking for some globals that
>> could be changing the behaviour of iText, but I understand that it is not
>> an easy question.
>>
>> Thanks for you support anyway, I'll post the question on stackoverflow
>> then.
>>
>> Cheers,
>> Giacomo
>>
>
>
>
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php