Skip to content
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

Tests don't end after OutOfMemoryError #144

Open
MischenkoSV opened this issue Feb 9, 2018 · 0 comments
Open

Tests don't end after OutOfMemoryError #144

MischenkoSV opened this issue Feb 9, 2018 · 0 comments
Assignees
Labels

Comments

@MischenkoSV
Copy link

org.testng.SkipException: Test skipped because preconditions method was failed. Precondition method failed unable to create new native thread
at com.wiley.autotest.listeners.SkipTestsListener.beforeInvocation(SkipTestsListener.java:65)
at org.testng.internal.invokers.InvokedMethodListenerInvoker$InvokeBeforeInvocationWithoutContextStrategy.callMethod(InvokedMethodListenerInvoker.java:84)
at org.testng.internal.invokers.InvokedMethodListenerInvoker.invokeListener(InvokedMethodListenerInvoker.java:62)
at org.testng.internal.Invoker.runInvokedMethodListeners(Invoker.java:556)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:621)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:820)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1128)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:129)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:112)
at org.testng.TestRunner.privateRun(TestRunner.java:782)
at org.testng.TestRunner.run(TestRunner.java:632)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:366)
at org.testng.SuiteRunner.access$000(SuiteRunner.java:39)
at org.testng.SuiteRunner$SuiteWorker.run(SuiteRunner.java:400)
at org.testng.internal.thread.ThreadUtil$2.call(ThreadUtil.java:64)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
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: com.wiley.autotest.services.StopTestExecutionException: Precondition method failed unable to create new native thread
at com.wiley.autotest.services.SeleniumMethodsInvoker.invokeMethod(SeleniumMethodsInvoker.java:95)
at com.wiley.autotest.services.MethodsInvoker.invokeMethodsByAnnotation(MethodsInvoker.java:77)
at com.wiley.autotest.services.SeleniumMethodsInvoker.invokeMethodsByAnnotation(SeleniumMethodsInvoker.java:54)
at com.wiley.autotest.selenium.AbstractSeleniumTest.doAfterMethods(AbstractSeleniumTest.java:132)
at sun.reflect.GeneratedMethodAccessor496.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:86)
at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:514)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:215)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:707)
... 14 more
Caused by: java.lang.OutOfMemoryError: unable to create new native thread
at java.lang.Thread.start0(Native Method)
at java.lang.Thread.start(Thread.java:717)
at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:957)
at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1367)
at java.util.concurrent.AbstractExecutorService.invokeAll(AbstractExecutorService.java:238)
at com.wiley.wat.util.TestDataUtils.removeSubmissionWithDependencies(TestDataUtils.java:343)
at java.lang.Iterable.forEach(Iterable.java:75)
at com.wiley.wat.precondition.Precondition.deleteCreatedObjects(Precondition.java:45)
at com.wiley.wat.base.NewBaseTest2.deleteCreatedObjectsAfterMethod(NewBaseTest2.java:94)
at sun.reflect.GeneratedMethodAccessor499.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.wiley.autotest.services.SeleniumMethodsInvoker.invokeMethod(SeleniumMethodsInvoker.java:76)
... 24 more

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants