>I 
> wanted to contact
> POI developers,

You have come to the right place :)

Are you sure you are using 2.0RC1? There was a concurrency but that was
fixed in 2.0pre3. Maybe you should check your classpath?  After that
fix, it should be safe to have multiple HSSFWorkbook objects in multiple
threads. However, a single workbook object should not be manipulated
from different threads. 

Also, are you sure that each of the InputStreams you pass in are
different?

If you still have the problem, it would help if you could come up with a
small testcase that demonstrates the problem. As part of the bug fix I
mentioned above, we've tested it extensively by creating multiple
threads, and creating HSSFWorkbook objects in each. So i would be
surprised if such a bug remains in RC1

Regards
-
Avik


On Wed, 2003-12-10 at 21:30, Adam Czysciak wrote:
> Hello,
> 
>    I wanted to check the archive, but it looks to be unavailable. I 
> wanted to contact
> POI developers, but at the project web page there is a link to this 
> mailing list. Therefore
> I'd like to say Hello, and ask you a question. Perhaps it can be a 
> bugreport:)
> 
> Did anyone had any problem with multithreaded HSSFWorkbook(InputStream 
> in) constructor?
> I use it to upload file to the app, click 'submit' simultanously, and 
> this constructor
> crashes. It seems not to be thread-safe. When I've added a static lock 
> object to synchronize
> on, everything seems to be ok. It happens both on version 1.5-final and 
> 2.0RC1.
> 
> Sorry if it is one of the most common problems here...


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

Reply via email to