[allure-testng] Could not write Allure test result
See original GitHub issuefrom https://github.com/allure-framework/allure2/issues/738
I’m submitting a …
- bug report
- feature request
- support request => Please do not submit support request here, see note at the top of this template.
What is the current behavior?
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
In my testcase,if run failed,it will throw AllureResultsWriteException
What is the expected behavior?
What is the motivation / use case for changing the behavior?
Please tell us about your environment:
Allure version | 2.2.0 |
---|---|
Test framework | testng@6.12 |
Allure adaptor | allure-testng@2.0-BETA21 |
Generate report using | allure-maven@2.19 |
Other information
io.qameta.allure.AllureResultsWriteException: Could not write Allure test result
at io.qameta.allure.FileSystemResultsWriter.write(FileSystemResultsWriter.java:43)
at io.qameta.allure.AllureLifecycle.lambda$writeTestCase$12(AllureLifecycle.java:197)
at java.util.Optional.ifPresent(Optional.java:159)
at io.qameta.allure.AllureLifecycle.writeTestCase(AllureLifecycle.java:195)
at io.qameta.allure.testng.AllureTestNg.onTestFailure(AllureTestNg.java:260)
at org.testng.internal.Invoker.runTestListeners(Invoker.java:1738)
at org.testng.internal.Invoker.runTestListeners(Invoker.java:1722)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1258)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.nio.channels.ClosedByInterruptException
at java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:202)
at sun.nio.ch.FileChannelImpl.write(FileChannelImpl.java:216)
at java.nio.channels.Channels.writeFullyImpl(Channels.java:78)
at java.nio.channels.Channels.writeFully(Channels.java:101)
at java.nio.channels.Channels.access$000(Channels.java:61)
at java.nio.channels.Channels$1.write(Channels.java:174)
at com.fasterxml.jackson.core.json.UTF8JsonGenerator._flushBuffer(UTF8JsonGenerator.java:2085)
at com.fasterxml.jackson.core.json.UTF8JsonGenerator.close(UTF8JsonGenerator.java:1127)
at com.fasterxml.jackson.databind.ObjectMapper._configAndWriteValue(ObjectMapper.java:3898)
at com.fasterxml.jackson.databind.ObjectMapper.writeValue(ObjectMapper.java:3164)
at io.qameta.allure.FileSystemResultsWriter.write(FileSystemResultsWriter.java:41)
... 12 more
Issue Analytics
- State:
- Created 6 years ago
- Comments:18 (3 by maintainers)
Top GitHub Comments
Updating jackson-core, jackson-annotation and jackson-databind to version 2.9.4 fixed the issue
Looks like it’s fixed in 2.7.0 😃 Thanks @baev for your review