Ana M B
2018-11-19 14:31:21 UTC
Hi guys!
I have a problem when I try to run my Selenium tests with Eclipse. It
started to happen a couple months ago, at the beginning everything worked
well.
Eclipse shows the following error: java.lang.OutOfMemoryError: Java heap
space
1542634612642 geckodriver INFO Listening on 127.0.0.1:17494
FAILED: main
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Unknown Source)
at java.io.ByteArrayOutputStream.grow(Unknown Source)
at java.io.ByteArrayOutputStream.ensureCapacity(Unknown Source)
at java.io.ByteArrayOutputStream.write(Unknown Source)
at com.google.common.io.ByteStreams.copy(ByteStreams.java:110)
at
org.openqa.selenium.remote.http.HttpMessage.getContent(HttpMessage.java:108)
at
org.openqa.selenium.remote.http.HttpRequest.getContent(HttpRequest.java:20)
at
org.openqa.selenium.remote.internal.ApacheHttpClient.execute(ApacheHttpClient.java:84)
at
org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:343)
at
org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:159)
at
org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:142)
at
org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:82)
at
org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:637)
at
org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:250)
at
org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:236)
at
org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:137)
at
org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:191)
at
org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:108)
at
org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:137)
at paquete.WashingtonPost_Test.main(WashingtonPost_Test.java:41)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:108)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:661)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:869)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1193)
at
org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:126)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
at org.testng.TestRunner.privateRun(TestRunner.java:744)
at org.testng.TestRunner.run(TestRunner.java:602)
===============================================
Default test
Tests run: 1, Failures: 1, Skips: 0
This is a Maven Project. If you need some extra information, tell me please.
Could you give me a solution, please?
Thanks so much!!
I have a problem when I try to run my Selenium tests with Eclipse. It
started to happen a couple months ago, at the beginning everything worked
well.
Eclipse shows the following error: java.lang.OutOfMemoryError: Java heap
space
1542634612642 geckodriver INFO Listening on 127.0.0.1:17494
FAILED: main
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Unknown Source)
at java.io.ByteArrayOutputStream.grow(Unknown Source)
at java.io.ByteArrayOutputStream.ensureCapacity(Unknown Source)
at java.io.ByteArrayOutputStream.write(Unknown Source)
at com.google.common.io.ByteStreams.copy(ByteStreams.java:110)
at
org.openqa.selenium.remote.http.HttpMessage.getContent(HttpMessage.java:108)
at
org.openqa.selenium.remote.http.HttpRequest.getContent(HttpRequest.java:20)
at
org.openqa.selenium.remote.internal.ApacheHttpClient.execute(ApacheHttpClient.java:84)
at
org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:343)
at
org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:159)
at
org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:142)
at
org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:82)
at
org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:637)
at
org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:250)
at
org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:236)
at
org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:137)
at
org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:191)
at
org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:108)
at
org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:137)
at paquete.WashingtonPost_Test.main(WashingtonPost_Test.java:41)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:108)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:661)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:869)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1193)
at
org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:126)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
at org.testng.TestRunner.privateRun(TestRunner.java:744)
at org.testng.TestRunner.run(TestRunner.java:602)
===============================================
Default test
Tests run: 1, Failures: 1, Skips: 0
This is a Maven Project. If you need some extra information, tell me please.
Could you give me a solution, please?
Thanks so much!!
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+***@googlegroups.com.
To post to this group, send email to selenium-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/058a18c4-0c40-433c-928a-693ca6e46026%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+***@googlegroups.com.
To post to this group, send email to selenium-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/058a18c4-0c40-433c-928a-693ca6e46026%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.