Skip to content

Tests don't end after OutOfMemoryError #144

Description

@MischenkoSV

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions