[Bug 64441] WorkbookFactory.create(InputStream inp) nullpointer error in multithreding

2020-05-17 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=64441

PJ Fanning  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org



[Bug 64441] WorkbookFactory.create(InputStream inp) nullpointer error in multithreding

2020-05-15 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=64441

--- Comment #7 from PJ Fanning  ---
If no bugs found in it, it will be in the next release but there is no date yet
for that release.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org



[Bug 64441] WorkbookFactory.create(InputStream inp) nullpointer error in multithreding

2020-05-15 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=64441

--- Comment #6 from Eugene  ---
Thanks for the quick answers and fix! Do you think this fix can be included in
4.1.3 release?

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org



[Bug 64441] WorkbookFactory.create(InputStream inp) nullpointer error in multithreding

2020-05-15 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=64441

--- Comment #5 from PJ Fanning  ---
I added some synchronization in
https://svn.apache.org/viewvc?view=revision=186

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org



[Bug 64441] WorkbookFactory.create(InputStream inp) nullpointer error in multithreding

2020-05-14 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=64441

--- Comment #4 from Dominik Stadler  ---
The test is very unlikely to trigger it as it only can happen for the first two
executions of the future, after that the variable is initialized, 

Maybe we can somehow "uninitialize" it again, otherwise it will fail very very
rarely.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org



[Bug 64441] WorkbookFactory.create(InputStream inp) nullpointer error in multithreding

2020-05-14 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=64441

--- Comment #3 from PJ Fanning  ---
I added this test
https://github.com/apache/poi/commit/24345edd5e7a98089abac93417522cced20025f0
but it passes.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org



[Bug 64441] WorkbookFactory.create(InputStream inp) nullpointer error in multithreding

2020-05-14 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=64441

--- Comment #2 from PJ Fanning  ---
as a workaround, you should be able to use write a wrapper that has
synchronization

you could also try using `new HSSFWorkbook(stream)`

ideally, the code should support concurrent use but any fix we do could take
months to appear in a release

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org



[Bug 64441] WorkbookFactory.create(InputStream inp) nullpointer error in multithreding

2020-05-14 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=64441

Eugene  changed:

   What|Removed |Added

 CC||be...@bk.ru

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org



[Bug 64441] WorkbookFactory.create(InputStream inp) nullpointer error in multithreding

2020-05-14 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=64441

--- Comment #1 from Eugene  ---
*And sometimes the second thread does not go into this condition and thinks
that createHssfByNode is already initialized, which is why this error comes in.

Sorry, for some reason I can’t edit the description.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org



[Bug 64441] WorkbookFactory.create(InputStream inp) nullpointer error in multithreding

2020-05-14 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=64441

Eugene  changed:

   What|Removed |Added

 OS||All

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org