# I got an error in appium while running the script through Eclipse

**URL:** <https://discuss.appium.io/t/i-got-an-error-in-appium-while-running-the-script-through-eclipse/17593>\
**Category:** Issues/Bugs\
**Created:** [July 7, 2017, 6:49am UTC](https://discuss.appium.io/t/i-got-an-error-in-appium-while-running-the-script-through-eclipse/17593 "2017-07-07T06:49:56Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![chittiboina.premkuma](https://discuss.appium.io/letter_avatar_proxy/v4/letter/c/c6cbf5/32.png) [@chittiboina.premkuma](https://discuss.appium.io/u/chittiboina.premkuma)\
**Post date:** [July 7, 2017, 6:49am UTC](https://discuss.appium.io/t/i-got-an-error-in-appium-while-running-the-script-through-eclipse/17593/1 "2017-07-07T06:49:56Z")

</div>

FAILED CONFIGURATION: @BeforeTest setUp  
org.openqa.selenium.SessionNotCreatedException: A new session could not be created. (Original error: Activity used to start app doesn’t exist or cannot be launched! Make sure it exists and is a launchable activity) (WARNING: The server did not provide any stacktrace information)  
Command duration or timeout: 6.30 seconds and my code is below

package ServiceSathi;  
import java.net.MalformedURLException;  
import java.net.URL;  
import java.util.concurrent.TimeUnit;  
import org.openqa.selenium.By;  
import org.openqa.selenium.WebDriver;  
import org.openqa.selenium.remote.CapabilityType;  
import org.openqa.selenium.remote.DesiredCapabilities;  
import org.openqa.selenium.remote.RemoteWebDriver;  
import org.testng.annotations.AfterTest;  
import org.testng.annotations.BeforeTest;  
import org.testng.annotations.Test;

public class Sample {  
WebDriver driver;

```
@BeforeTest
public void setUp() throws MalformedURLException {
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability("deviceName", "850cceea9904");
capabilities.setCapability(CapabilityType.BROWSER_NAME, "Android");
capabilities.setCapability(CapabilityType.VERSION, "6.0.1");
capabilities.setCapability("platformName", "Android");
capabilities.setCapability("appPackage", "Calculator");
capabilities.setCapability("appPackage", ".CalculatorActivity");
capabilities.setCapability("appActivity", "com.miui.calculator.cal");
driver = new RemoteWebDriver(new URL("http://127.0.0.1:4723/wd/hub"), capabilities); 
driver.manage().timeouts().implicitlyWait(15, TimeUnit.SECONDS);
}

@Test
public void Sum() {
driver.findElements(By.xpath("//android.widget.Button")).get(0).click();
driver.findElement(By.name("2")).click();
driver.findElement(By.name("=")).click();
String result = driver.findElement(By.className("android.widget.EditText")).getText();
System.out.println("Number sum result is : " + result);
}
@AfterTest 
public void End() { 
	driver.close();
}

```

}  
I used AppiumForWindows\_1\_4\_16\_1, Please help me to resolve the Issue

---

<div class="post-metadata">

**Author:** ![narendarsingam](https://discuss.appium.io/letter_avatar_proxy/v4/letter/n/a698b9/32.png) [@narendarsingam](https://discuss.appium.io/u/narendarsingam)\
**Post date:** [July 7, 2017, 8:47am UTC](https://discuss.appium.io/t/i-got-an-error-in-appium-while-running-the-script-through-eclipse/17593/2 "2017-07-07T08:47:43Z")

</div>

Hi Prem,

Log is saying that activity is doesn’t exist.  
from where you get these packages and activity.

capabilities.setCapability(“appPackage”, “Calculator”);  
capabilities.setCapability(“appPackage”, “.CalculatorActivity”);  
capabilities.setCapability(“appActivity”, “com.miui.calculator.cal”);

only one package will be there, you have written two app packages.

To find out the app package and activity use the following setps.

1. download the app and keep it in your local folder.
2. Launch the appium and click on android symbol.
3. select the application check box and click on choose button.
4. select the app from your local folder.
5. again click on android symbol.
6. there you will find the package and launch activity.
7. use that package and launch activity in your script for appPackage and appActivity it will work.

---

<div class="post-metadata">

**Author:** ![s10v10s](https://discuss.appium.io/user_avatar/discuss.appium.io/s10v10s/32/3633_2.png) [@s10v10s](https://discuss.appium.io/u/s10v10s)\
**Post date:** [July 7, 2017, 8:57am UTC](https://discuss.appium.io/t/i-got-an-error-in-appium-while-running-the-script-through-eclipse/17593/3 "2017-07-07T08:57:31Z")

</div>

**capabilities.setCapability(“appPackage”, “Calculator”);**  
**capabilities.setCapability(“appPackage”, “.CalculatorActivity”);**  
capabilities.setCapability(“appActivity”, “com.miui.calculator.cal”);

U r using **two** app packages which not correct  
remove incorrect app package pathAppium is refering to 2nd app package path which may be wrong.  
Pls verify

**Get App Package and App Activity from below steps**

1. cmd window

2. adb shell  
copy below cmd

3. **dumpsys window windows | grep -E 'mCurrentFocus|mFocusedApp’**

---

<div class="post-metadata">

**Author:** ![chittiboina.premkuma](https://discuss.appium.io/letter_avatar_proxy/v4/letter/c/c6cbf5/32.png) [@chittiboina.premkuma](https://discuss.appium.io/u/chittiboina.premkuma)\
**Post date:** [July 7, 2017, 9:08am UTC](https://discuss.appium.io/t/i-got-an-error-in-appium-while-running-the-script-through-eclipse/17593/4 "2017-07-07T09:08:13Z")

</div>

Hi Narendra,  
Thanks for your solution, but I am trying to automate the native app in mobile like Calculator, so how I have to know the Application package and activity of the native app

---

<div class="post-metadata">

**Author:** ![chittiboina.premkuma](https://discuss.appium.io/letter_avatar_proxy/v4/letter/c/c6cbf5/32.png) [@chittiboina.premkuma](https://discuss.appium.io/u/chittiboina.premkuma)\
**Post date:** [July 7, 2017, 9:24am UTC](https://discuss.appium.io/t/i-got-an-error-in-appium-while-running-the-script-through-eclipse/17593/5 "2017-07-07T09:24:30Z")

</div>

Hi,  
Thanks for your solution, I did what you told but I didn’t get any package and app activity in cmd, Please provide detailed information

---

<div class="post-metadata">

**Author:** ![s10v10s](https://discuss.appium.io/user_avatar/discuss.appium.io/s10v10s/32/3633_2.png) [@s10v10s](https://discuss.appium.io/u/s10v10s)\
**Post date:** [July 7, 2017, 9:35am UTC](https://discuss.appium.io/t/i-got-an-error-in-appium-while-running-the-script-through-eclipse/17593/7 "2017-07-07T09:35:35Z")

</div>

Where are u getting the issue?

---

<div class="post-metadata">

**Author:** ![chittiboina.premkuma](https://discuss.appium.io/letter_avatar_proxy/v4/letter/c/c6cbf5/32.png) [@chittiboina.premkuma](https://discuss.appium.io/u/chittiboina.premkuma)\
**Post date:** [July 7, 2017, 9:37am UTC](https://discuss.appium.io/t/i-got-an-error-in-appium-while-running-the-script-through-eclipse/17593/8 "2017-07-07T09:37:24Z")

</div>

after run the script through the Eclipse I got the below error  
FAILED CONFIGURATION: @BeforeTest setUp  
org.openqa.selenium.SessionNotCreatedException: A new session could not be created. (Original error: Activity used to start app doesn’t exist or cannot be launched! Make sure it exists and is a launchable activity) (WARNING: The server did not provide any stacktrace information)  
Command duration or timeout: 6.30 seconds

---

<div class="post-metadata">

**Author:** ![s10v10s](https://discuss.appium.io/user_avatar/discuss.appium.io/s10v10s/32/3633_2.png) [@s10v10s](https://discuss.appium.io/u/s10v10s)\
**Post date:** [July 7, 2017, 9:38am UTC](https://discuss.appium.io/t/i-got-an-error-in-appium-while-running-the-script-through-eclipse/17593/9 "2017-07-07T09:38:09Z")

</div>

where is the issue in running cmds in terminal

---

<div class="post-metadata">

**Author:** ![s10v10s](https://discuss.appium.io/user_avatar/discuss.appium.io/s10v10s/32/3633_2.png) [@s10v10s](https://discuss.appium.io/u/s10v10s)\
**Post date:** [July 7, 2017, 9:39am UTC](https://discuss.appium.io/t/i-got-an-error-in-appium-while-running-the-script-through-eclipse/17593/10 "2017-07-07T09:39:26Z")

</div>

Can u run the cmds that I added and share screenshot what is the problem with the cmd

---

<div class="post-metadata">

**Author:** ![chittiboina.premkuma](https://discuss.appium.io/letter_avatar_proxy/v4/letter/c/c6cbf5/32.png) [@chittiboina.premkuma](https://discuss.appium.io/u/chittiboina.premkuma)\
**Post date:** [July 7, 2017, 9:42am UTC](https://discuss.appium.io/t/i-got-an-error-in-appium-while-running-the-script-through-eclipse/17593/11 "2017-07-07T09:42:33Z")

</div>

![](https://discuss.appium.io/uploads/default/original/2X/f/f88259abd8d345bf1f5c0a8289efdbec4b183ddb.jpg)

That files only I got in cmd

---

<div class="post-metadata">

**Author:** ![s10v10s](https://discuss.appium.io/user_avatar/discuss.appium.io/s10v10s/32/3633_2.png) [@s10v10s](https://discuss.appium.io/u/s10v10s)\
**Post date:** [July 7, 2017, 10:01am UTC](https://discuss.appium.io/t/i-got-an-error-in-appium-while-running-the-script-through-eclipse/17593/13 "2017-07-07T10:01:10Z")

</div>

![](https://discuss.appium.io/uploads/default/original/2X/7/7315db167422cb6bef7363e7aee65678c396f39e.jpg)

Note: Need to make sure that the application is opened on the device  
Once you type command with the application opened on your computer, it will display the appPackage and appActivity.

first one is app package and second one highlighted in app activity

---

<div class="post-metadata">

**Author:** ![chittiboina.premkuma](https://discuss.appium.io/letter_avatar_proxy/v4/letter/c/c6cbf5/32.png) [@chittiboina.premkuma](https://discuss.appium.io/u/chittiboina.premkuma)\
**Post date:** [July 7, 2017, 10:33am UTC](https://discuss.appium.io/t/i-got-an-error-in-appium-while-running-the-script-through-eclipse/17593/14 "2017-07-07T10:33:35Z")

</div>

I tried that but again same error I got, what I have to do now?

---

<div class="post-metadata">

**Author:** ![s10v10s](https://discuss.appium.io/user_avatar/discuss.appium.io/s10v10s/32/3633_2.png) [@s10v10s](https://discuss.appium.io/u/s10v10s)\
**Post date:** [July 7, 2017, 10:44am UTC](https://discuss.appium.io/t/i-got-an-error-in-appium-while-running-the-script-through-eclipse/17593/15 "2017-07-07T10:44:52Z")

</div>

cn u share ur code after add the app package and app activity

---

<div class="post-metadata">

**Author:** ![chittiboina.premkuma](https://discuss.appium.io/letter_avatar_proxy/v4/letter/c/c6cbf5/32.png) [@chittiboina.premkuma](https://discuss.appium.io/u/chittiboina.premkuma)\
**Post date:** [July 7, 2017, 10:46am UTC](https://discuss.appium.io/t/i-got-an-error-in-appium-while-running-the-script-through-eclipse/17593/16 "2017-07-07T10:46:40Z")

</div>

package ServiceSathi;  
import java.net.MalformedURLException;  
import java.net.URL;  
import java.util.concurrent.TimeUnit;  
import org.openqa.selenium.By;  
import org.openqa.selenium.WebDriver;  
import org.openqa.selenium.remote.CapabilityType;  
import org.openqa.selenium.remote.DesiredCapabilities;  
import org.openqa.selenium.remote.RemoteWebDriver;  
import org.testng.annotations.AfterTest;  
import org.testng.annotations.BeforeTest;  
import org.testng.annotations.Test;

public class Sample {  
WebDriver driver;

```
@BeforeTest
public void setUp() throws MalformedURLException {
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability("deviceName", "850cceea9904");
capabilities.setCapability(CapabilityType.BROWSER_NAME, "Android");
capabilities.setCapability(CapabilityType.VERSION, "6.0.1");
capabilities.setCapability("platformName", "Android");
capabilities.setCapability("appPackage", "com.miui.calculator");
capabilities.setCapability("appActivity", "com.miui.calculator.cal.NormalCalculatorActivity");
driver = new RemoteWebDriver(new URL("http://127.0.0.1:4723/wd/hub"), capabilities); 
driver.manage().timeouts().implicitlyWait(15, TimeUnit.SECONDS);
}

@Test
public void Sum() {
driver.findElements(By.xpath("//android.widget.Button")).get(0).click();
driver.findElement(By.name("2")).click();
driver.findElement(By.name("=")).click();
String result = driver.findElement(By.className("android.widget.EditText")).getText();
System.out.println("Number sum result is : " + result);
}
@AfterTest 
public void End() { 
	driver.close();
}

```

}

---

<div class="post-metadata">

**Author:** ![s10v10s](https://discuss.appium.io/user_avatar/discuss.appium.io/s10v10s/32/3633_2.png) [@s10v10s](https://discuss.appium.io/u/s10v10s)\
**Post date:** [July 7, 2017, 10:50am UTC](https://discuss.appium.io/t/i-got-an-error-in-appium-while-running-the-script-through-eclipse/17593/18 "2017-07-07T10:50:19Z")

</div>

Comment this line  
// driver = new RemoteWebDriver(new URL(“[http://127.0.0.1:4723/wd/hub](http://127.0.0.1:4723/wd/hub)”), capabilities);   
Add this

driver = new AndroidDriver(new URL(“[http://127.0.0.1:4734/wd/hub](http://127.0.0.1:4734/wd/hub)”), capabilities);

---

<div class="post-metadata">

**Author:** ![chittiboina.premkuma](https://discuss.appium.io/letter_avatar_proxy/v4/letter/c/c6cbf5/32.png) [@chittiboina.premkuma](https://discuss.appium.io/u/chittiboina.premkuma)\
**Post date:** [July 7, 2017, 10:52am UTC](https://discuss.appium.io/t/i-got-an-error-in-appium-while-running-the-script-through-eclipse/17593/19 "2017-07-07T10:52:26Z")

</div>

I did but I got the below error  
log4j:WARN No appenders could be found for logger (org.apache.http.client.protocol.RequestAddCookies).  
log4j:WARN Please initialize the log4j system properly.  
log4j:WARN See [http://logging.apache.org/log4j/1.2/faq.html#noconfig](http://logging.apache.org/log4j/1.2/faq.html#noconfig) for more info.  
FAILED CONFIGURATION: @BeforeTest setUp  
java.lang.NoSuchMethodError: com.google.common.base.Throwables.throwIfUnchecked(Ljava/lang/Throwable;)V  
at io.appium.java\_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:176)  
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:644)  
at io.appium.java\_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)  
at io.appium.java\_client.AppiumDriver.execute(AppiumDriver.java:1)  
at io.appium.java\_client.android.AndroidDriver.execute(AndroidDriver.java:1)  
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:249)  
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:131)  
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:144)  
at io.appium.java\_client.DefaultGenericMobileDriver.(DefaultGenericMobileDriver.java:38)  
at io.appium.java\_client.AppiumDriver.(AppiumDriver.java:88)  
at io.appium.java\_client.AppiumDriver.(AppiumDriver.java:112)  
at io.appium.java\_client.android.AndroidDriver.(AndroidDriver.java:73)  
at ServiceSathi.Sample.setUp(Sample.java:30)  
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.invokeConfigurationMethod(Invoker.java:523)  
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:224)  
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:146)  
at org.testng.TestRunner.beforeRun(TestRunner.java:626)  
at org.testng.TestRunner.run(TestRunner.java:594)  
at org.testng.SuiteRunner.runTest(SuiteRunner.java:380)  
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:375)  
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:340)  
at org.testng.SuiteRunner.run(SuiteRunner.java:289)  
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)  
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)  
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1301)  
at org.testng.TestNG.runSuitesLocally(TestNG.java:1226)  
at org.testng.TestNG.runSuites(TestNG.java:1144)  
at org.testng.TestNG.run(TestNG.java:1115)  
at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:132)  
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:230)  
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:76)

SKIPPED CONFIGURATION: @AfterTest End  
SKIPPED: Sum  
java.lang.NoSuchMethodError: com.google.common.base.Throwables.throwIfUnchecked(Ljava/lang/Throwable;)V  
at io.appium.java\_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:176)  
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:644)  
at io.appium.java\_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)  
at io.appium.java\_client.AppiumDriver.execute(AppiumDriver.java:1)  
at io.appium.java\_client.android.AndroidDriver.execute(AndroidDriver.java:1)  
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:249)  
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:131)  
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:144)  
at io.appium.java\_client.DefaultGenericMobileDriver.(DefaultGenericMobileDriver.java:38)  
at io.appium.java\_client.AppiumDriver.(AppiumDriver.java:88)  
at io.appium.java\_client.AppiumDriver.(AppiumDriver.java:112)  
at io.appium.java\_client.android.AndroidDriver.(AndroidDriver.java:73)  
at ServiceSathi.Sample.setUp(Sample.java:30)  
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.invokeConfigurationMethod(Invoker.java:523)  
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:224)  
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:146)  
at org.testng.TestRunner.beforeRun(TestRunner.java:626)  
at org.testng.TestRunner.run(TestRunner.java:594)  
at org.testng.SuiteRunner.runTest(SuiteRunner.java:380)  
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:375)  
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:340)  
at org.testng.SuiteRunner.run(SuiteRunner.java:289)  
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)  
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)  
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1301)  
at org.testng.TestNG.runSuitesLocally(TestNG.java:1226)  
at org.testng.TestNG.runSuites(TestNG.java:1144)  
at org.testng.TestNG.run(TestNG.java:1115)  
at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:132)  
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:230)  
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:76)

# =============================================== Default test Tests run: 1, Failures: 0, Skips: 1 Configuration Failures: 1, Skips: 1

# =============================================== Default suite Total tests run: 1, Failures: 0, Skips: 1 Configuration Failures: 1, Skips: 1

---

<div class="post-metadata">

**Author:** ![s10v10s](https://discuss.appium.io/user_avatar/discuss.appium.io/s10v10s/32/3633_2.png) [@s10v10s](https://discuss.appium.io/u/s10v10s)\
**Post date:** [July 7, 2017, 10:59am UTC](https://discuss.appium.io/t/i-got-an-error-in-appium-while-running-the-script-through-eclipse/17593/20 "2017-07-07T10:59:10Z")

</div>

import java.net.MalformedURLException;  
import java.net.URL;  
import java.util.concurrent.TimeUnit;

import org.openqa.selenium.By;  
import org.openqa.selenium.WebElement;  
import org.openqa.selenium.remote.CapabilityType;  
import org.openqa.selenium.remote.DesiredCapabilities;  
import org.openqa.selenium.remote.RemoteWebDriver;  
import org.testng.annotations.AfterTest;  
import org.testng.annotations.BeforeTest;  
import org.testng.annotations.Test;

import io.appium.java\_client.android.AndroidDriver;

public class testcode {  
public AndroidDriver driver;  
@BeforeTest  
public void setUp() throws MalformedURLException {  
DesiredCapabilities capabilities = new DesiredCapabilities();  
capabilities.setCapability(“deviceName”, “850cceea9904”);  
capabilities.setCapability(CapabilityType.BROWSER\_NAME, “Android”);  
capabilities.setCapability(CapabilityType.VERSION, “6.0.1”);  
capabilities.setCapability(“platformName”, “Android”);  
capabilities.setCapability(“appPackage”, “com.miui.calculator”);  
capabilities.setCapability(“appActivity”, “com.miui.calculator.cal.NormalCalculatorActivity”);  
driver = new AndroidDriver(new URL(“[http://0.0.0.0:4723/wd/hub](http://0.0.0.0:4723/wd/hub)”), capabilities);  
driver.manage().timeouts().implicitlyWait(15, TimeUnit.SECONDS);  
}

```
@Test
public void Sum() {
((WebElement) driver.findElements(By.xpath("//android.widget.Button")).get(0)).click();
driver.findElement(By.name("2")).click();
driver.findElement(By.name("=")).click();
String result = driver.findElement(By.className("android.widget.EditText")).getText();
System.out.println("Number sum result is : " + result);
}
@AfterTest 
public void End() { 
	driver.close();
}

```

}

---

<div class="post-metadata">

**Author:** ![s10v10s](https://discuss.appium.io/user_avatar/discuss.appium.io/s10v10s/32/3633_2.png) [@s10v10s](https://discuss.appium.io/u/s10v10s)\
**Post date:** [July 7, 2017, 10:59am UTC](https://discuss.appium.io/t/i-got-an-error-in-appium-while-running-the-script-through-eclipse/17593/21 "2017-07-07T10:59:41Z")

</div>

Run my code as a testng Test  
Run appium server before running code with **changed address and port number** as mentioned my code

---

<div class="post-metadata">

**Author:** ![chittiboina.premkuma](https://discuss.appium.io/letter_avatar_proxy/v4/letter/c/c6cbf5/32.png) [@chittiboina.premkuma](https://discuss.appium.io/u/chittiboina.premkuma)\
**Post date:** [July 7, 2017, 11:09am UTC](https://discuss.appium.io/t/i-got-an-error-in-appium-while-running-the-script-through-eclipse/17593/22 "2017-07-07T11:09:40Z")

</div>

I got this error again  
log4j:WARN No appenders could be found for logger (org.apache.http.client.protocol.RequestAddCookies).  
log4j:WARN Please initialize the log4j system properly.  
log4j:WARN See [http://logging.apache.org/log4j/1.2/faq.html#noconfig](http://logging.apache.org/log4j/1.2/faq.html#noconfig) for more info.  
FAILED CONFIGURATION: @BeforeTest setUp  
java.lang.NoSuchMethodError: com.google.common.base.Throwables.throwIfUnchecked(Ljava/lang/Throwable;)V  
at io.appium.java\_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:176)  
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:644)  
at io.appium.java\_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)  
at io.appium.java\_client.AppiumDriver.execute(AppiumDriver.java:1)  
at io.appium.java\_client.android.AndroidDriver.execute(AndroidDriver.java:1)  
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:249)  
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:131)  
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:144)  
at io.appium.java\_client.DefaultGenericMobileDriver.(DefaultGenericMobileDriver.java:38)  
at io.appium.java\_client.AppiumDriver.(AppiumDriver.java:88)  
at io.appium.java\_client.AppiumDriver.(AppiumDriver.java:112)  
at io.appium.java\_client.android.AndroidDriver.(AndroidDriver.java:73)  
at ServiceSathi.testcode.setUp(testcode.java:29)  
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.invokeConfigurationMethod(Invoker.java:523)  
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:224)  
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:146)  
at org.testng.TestRunner.beforeRun(TestRunner.java:626)  
at org.testng.TestRunner.run(TestRunner.java:594)  
at org.testng.SuiteRunner.runTest(SuiteRunner.java:380)  
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:375)  
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:340)  
at org.testng.SuiteRunner.run(SuiteRunner.java:289)  
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)  
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)  
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1301)  
at org.testng.TestNG.runSuitesLocally(TestNG.java:1226)  
at org.testng.TestNG.runSuites(TestNG.java:1144)  
at org.testng.TestNG.run(TestNG.java:1115)  
at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:132)  
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:230)  
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:76)

SKIPPED CONFIGURATION: @AfterTest End  
SKIPPED: Sum  
java.lang.NoSuchMethodError: com.google.common.base.Throwables.throwIfUnchecked(Ljava/lang/Throwable;)V  
at io.appium.java\_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:176)  
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:644)  
at io.appium.java\_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)  
at io.appium.java\_client.AppiumDriver.execute(AppiumDriver.java:1)  
at io.appium.java\_client.android.AndroidDriver.execute(AndroidDriver.java:1)  
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:249)  
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:131)  
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:144)  
at io.appium.java\_client.DefaultGenericMobileDriver.(DefaultGenericMobileDriver.java:38)  
at io.appium.java\_client.AppiumDriver.(AppiumDriver.java:88)  
at io.appium.java\_client.AppiumDriver.(AppiumDriver.java:112)  
at io.appium.java\_client.android.AndroidDriver.(AndroidDriver.java:73)  
at ServiceSathi.testcode.setUp(testcode.java:29)  
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.invokeConfigurationMethod(Invoker.java:523)  
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:224)  
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:146)  
at org.testng.TestRunner.beforeRun(TestRunner.java:626)  
at org.testng.TestRunner.run(TestRunner.java:594)  
at org.testng.SuiteRunner.runTest(SuiteRunner.java:380)  
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:375)  
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:340)  
at org.testng.SuiteRunner.run(SuiteRunner.java:289)  
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)  
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)  
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1301)  
at org.testng.TestNG.runSuitesLocally(TestNG.java:1226)  
at org.testng.TestNG.runSuites(TestNG.java:1144)  
at org.testng.TestNG.run(TestNG.java:1115)  
at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:132)  
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:230)  
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:76)

# =============================================== Default test Tests run: 1, Failures: 0, Skips: 1 Configuration Failures: 1, Skips: 1

# =============================================== Default suite Total tests run: 1, Failures: 0, Skips: 1 Configuration Failures: 1, Skips: 1

---

<div class="post-metadata">

**Author:** ![s10v10s](https://discuss.appium.io/user_avatar/discuss.appium.io/s10v10s/32/3633_2.png) [@s10v10s](https://discuss.appium.io/u/s10v10s)\
**Post date:** [July 7, 2017, 11:12am UTC](https://discuss.appium.io/t/i-got-an-error-in-appium-while-running-the-script-through-eclipse/17593/24 "2017-07-07T11:12:00Z")

</div>

Can u share appium logs for this code also

[Next page](https://discuss.appium.io/t/i-got-an-error-in-appium-while-running-the-script-through-eclipse/17593.md?page=2)
