Android Webdriver> (NS_ERROR_MALFORMED_URI) [nsIIOService.newURI]

classic Classic list List threaded Threaded
8 messages Options
Ed
Reply | Threaded
Open this post in threaded view
|

Android Webdriver> (NS_ERROR_MALFORMED_URI) [nsIIOService.newURI]

Ed
I have selenium hub running  and Android webdriver running on the hub. When I try to run test i have error [NS_ERROR_MALFORMED_URI) [nsIIOService.newURI]
what happened is when test run it will launch empty Firefox on the host and then time out with error above.

Any Ideas or help will appreciated,

Regards,

Ed
Reply | Threaded
Open this post in threaded view
|

Re: Android Webdriver> (NS_ERROR_MALFORMED_URI) [nsIIOService.newURI]

softwaretestingforum
Administrator
Can you try to run it locally and confirm if you encounter same error?
~ seleniumtests.com
Ed
Reply | Threaded
Open this post in threaded view
|

Re: Android Webdriver> (NS_ERROR_MALFORMED_URI) [nsIIOService.newURI]

Ed
I have run it locally without any problem.... running the same script on grid give me an error . Full stack trace below.
org.openqa.selenium.WebDriverException: Component returned failure code: 0x804b000a (NS_ERROR_MALFORMED_URI) [nsIIOService.newURI]
Build info: version: '2.17.0', revision: '15540', time: '2012-01-16 16:51:46'
System info: os.name: 'Windows XP', os.arch: 'x86', os.version: '5.1', java.version: '1.6.0_30'
Driver info: driver.version: unknown
Command duration or timeout: 860 milliseconds
Build info: version: '2.17.0', revision: '15546', time: '2012-01-16 17:11:34'
System info: os.name: 'Windows XP', os.arch: 'x86', os.version: '5.1', java.version: '1.6.0_29'
Driver info: driver.version: RemoteWebDriver
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:147)
        at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:113)
        at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:439)
        at org.openqa.selenium.remote.RemoteWebDriver.get(RemoteWebDriver.java:200)
        at com.globalrelay.apps.selenium.functional.AndroidWD.<init>(AndroidWD.java:14)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at org.junit.runners.BlockJUnit4ClassRunner.createTest(BlockJUnit4ClassRunner.java:209)
        at org.junit.runners.BlockJUnit4ClassRunner$1.runReflectiveCall(BlockJUnit4ClassRunner.java:258)
        at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
        at org.junit.runners.BlockJUnit4ClassRunner.methodBlock(BlockJUnit4ClassRunner.java:255)
        at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
        at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
        at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
        at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: org.openqa.selenium.remote.ScreenshotException: Screen shot has been taken
Build info: version: '2.17.0', revision: '15546', time: '2012-01-16 17:11:34'
System info: os.name: 'Windows XP', os.arch: 'x86', os.version: '5.1', java.version: '1.6.0_29'
Driver info: driver.version: RemoteWebDriver
        at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:101)
        ... 26 more
Caused by: org.openqa.selenium.remote.ErrorHandler$UnknownServerException: Component returned failure code: 0x804b000a (NS_ERROR_MALFORMED_URI) [nsIIOService.newURI]
Build info: version: '2.17.0', revision: '15540', time: '2012-01-16 16:51:46'
System info: os.name: 'Windows XP', os.arch: 'x86', os.version: '5.1', java.version: '1.6.0_30'
Driver info: driver.version: unknown
Build info: version: '2.17.0', revision: '15546', time: '2012-01-16 17:11:34'
System info: os.name: 'Windows XP', os.arch: 'x86', os.version: '5.1', java.version: '1.6.0_29'
Driver info: driver.version: unknown

Reply | Threaded
Open this post in threaded view
|

Re: Android Webdriver> (NS_ERROR_MALFORMED_URI) [nsIIOService.newURI]

softwaretestingforum
Administrator
Seeing couple of other resources it looks like an issue with application URL.
Can you print application URL before get and find what you get, like -

System.out.println(url);
driver.get(url);

Now on your console, find what value of variable url is printed.
~ seleniumtests.com
Ed
Reply | Threaded
Open this post in threaded view
|

Re: Android Webdriver> (NS_ERROR_MALFORMED_URI) [nsIIOService.newURI]

Ed
here is the script that am running
public class AndroidWD {
    public AndroidWD() throws Exception {
        DesiredCapabilities cap = new DesiredCapabilities();
        cap.setBrowserName("android");

        String host="http://10.5.5.15:4444/wd/hub";
        AndroidDriver driver = new AndroidDriver(new URL(host), cap);
        System.out.println(host);
        String url= "www.google.com";
        System.out.println(url);
        driver.get(url);
        driver.quit();
   
  }
    @Test
    public void test() throws Exception {
        new AndroidWD ();
    }


I am debugging right now to find out where exactly i am stuck
Ed
Reply | Threaded
Open this post in threaded view
|

Re: Android Webdriver> (NS_ERROR_MALFORMED_URI) [nsIIOService.newURI]

Ed
Find out that error cause by incorrect url to goggle. should be https://google.com instead of www.Google.com

Still having trouble as it call FF browser when I call android
Reply | Threaded
Open this post in threaded view
|

Re: Android Webdriver> (NS_ERROR_MALFORMED_URI) [nsIIOService.newURI]

softwaretestingforum
Administrator
Do you mean to say that it launches FF instead of Android Driver on emulator or device (which ever you are using)?
Are you sure you not instantiating FF driver any where else?
Can you cut down your tests to just one (if there are many) and try
~ seleniumtests.com
Ed
Reply | Threaded
Open this post in threaded view
|

Re: Android Webdriver> (NS_ERROR_MALFORMED_URI) [nsIIOService.newURI]

Ed
You can see script that I am running above there is only one test that I am running. when I starting node I am running Android only....you can see it in follow command:
java -jar selenium-standalone.jar -role node -hub http://10.5.5.15:4444/grid/register -browser browserName=android,platform=ANDROID -port 5559

still have the same problem.

Any thoughts or suggestion?