-
-
Notifications
You must be signed in to change notification settings - Fork 513
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RequirementsTagProvider - Failed to load requirements: null java.lang.StackOverflowError #2030
Comments
Have you tried with 2.2.1? |
I am going to try it with 2.2.1, was this known issue in 2.0.67 and fixed in 2.2.x ? |
I have never come across this issue but it very hard to trouble shoot older versions |
I have reproduced this issue in 2.2.1, After running 2244 test cases, when it tries to generate reports below error is coming. below is the stack trace, could you please guide the fix ? Thank you ! [main] ERROR org.apache.maven.plugin.failsafe.IntegrationTestMojo - Tests run: 2244, Failures: 4, Errors: 0, Skipped: 0 [main] WARNING net.thucydides.core.requirements.RequirementsTagProvider - Failed to load requirements: null |
WARNING: An illegal reflective access operation has occurred |
There isn't enough information to work with here - can you run with -e -X or even better provide a sample project? Alternatively, you can open a support ticket so that I can look directly at your project. |
Hi John, I am also facing this similar issue in my project, I have approx 2500+ test cases (test java classes as well) in multiple suites. Reproduced this issue in 2.2.x, I have observed that after running 2500+ test cases, when it tries to load the requirements (I dont know how it works, does it match 1 java class per requirement in serenity report?) below is the stack trace, ccan you please help debugging this issue? [main] ERROR org.apache.maven.plugin.failsafe.IntegrationTestMojo - Tests run: 2513, Failures: 6, Errors: 0, Skipped: 0 [main] WARNING net.thucydides.core.requirements.RequirementsTagProvider - Failed to load requirements: null Thanks!! |
Can you provide a sample project to reproduce the issue? The Collections class is a JVM class, so it could be a JVM-related issue. The fastest approach would be for you to request a commercial support package so that I can look directly at your code. |
Below is my machine configuration - My maven failsafe plugin configuration for memory Can you tell us if this failsafe config is fine to execute 2500+ test java classes using 4 JVM forked processes? As we know by default serenity runs 2 threads per CPU core. Thanks!! Your help is much appreciated. |
I would need to see the build run to know. |
Unfortunately, that is in restricted environment where i cannot take out actual build logs. |
I would need to see the environment and project directly - does your company have a commercial support contract for Serenity BDD? |
From your comments in another issue #1294 ...-model/src/main/java/net/thucydides/core/requirements/FileSystemRequirementsTagProvider.java |
Can you provide a sample project that reproduces the issue? I suspect it is JVM-related. |
unfortunately not able to provide also this issue mostly comes in Jenkins with high configuration machine. Any thought on when this error triggers ? I checked there is no duplicate feature/requirement/test package in project. also do you think it could because of -Xss (stacksize) param setting in failsafe plugin ? |
You will need to dig into the code to try to isolate the root of the stack loop then. There really isn’t very much to go on from here. |
Some more logging from RequirementsTagProvider stacktrace. 27758 [pool-2-thread-1] WARN net.thucydides.core.requirements.RequirementsTagProvider - Failed to load requirements: java.io.EOFException: End of input at line 1 column 2842625 path $[3].children[0].children[0].children |
Hi John, I am also experiencing the above issue. During this i have observed one thing that, when the tests are being executed, requirements are loaded in file \target\site\serenity\requirements\com.projectname.junit-package-requirements.json, Any idea why is this happening? Thanks!! |
Can you provide a sample project to reproduce the issue? |
Faced this error while having an empty feature file. |
I'm facing this issue too: |
Can you provide a sample project? Also, what version are you using? |
Thanks, @globalworming , as discussed today over calendly (Google Meet), I have upgraded the serenity version from 2.2.0 to 2.3.12 and also the cucumber5 to cucumber6, the above-reported issue is gone now, and the whole execution time is drastically reduced. |
I'm currently using Serenity 3.1.15 and have this problem too. |
Can you provide a sample project that reproduces the error? |
I would have to prepare something, I cannot share what I'm working on... |
Possibly fixed in 3.2.0 |
I had the same problem with the WARN and I updated to version 3.2.0 and it was solved, thanks |
Facing this issue in serenity core 2.0.67 with below error, as report generation fails for 2244 requirements and below errors comes in infinite loop
net.thucydides.core.requirements.RequirementsTagProvider - Failed to load requirements: null
java.lang.StackOverflowError
at java.util.Collections$UnmodifiableCollection.isEmpty (Collections.java:1033)
at java.util.Collections$UnmodifiableCollection.isEmpty (Collections.java:1033)
The text was updated successfully, but these errors were encountered: