When I run mvn install my Integration Tests fail with the following
stacktrace. I don't know what else to do in order to get rid of this
problem. Can you give me directions on how to solve it?

My environment:

    - OS
       - Ubuntu 12.04 LTS
    - Maven
       - Apache Maven 3.0.4
       - Maven home: /usr/share/maven
       - MAVEN_OPTS=-Xmx768m -Xms64m -XX:MaxPermSize=256M
       -agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n
    - Java
       - Version: 1.6.0_43, vendor: Sun Microsystems Inc.
       - Java home: /space/Development/jdk6/jdk1.6.0_43/jre
       - Default locale: en_GB, platform encoding: UTF-8
       - OS name: "linux", version: "3.2.0-56-generic", arch: "amd64",
       family: "unix"
    - Xvfb
       - /usr/bin/Xvfb

Stacktrace:
The error message is: Access to
'file:///space/Development/Projects/myapp/src/test/unit/account_test.html'
from script denied
at
com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError(HttpCommandProcessor.java:97)
at
com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:91)
at
com.thoughtworks.selenium.DefaultSelenium.open(DefaultSelenium.java:335)
at
com.fabio.games.myapp.unittests.JSUnitTestBase.runUnitTest(JSUnitTestBase.java:36)
at
com.fabio.games.myapp.unittests.AccountTestIT.testAccount(AccountTestIT.java:10)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at
com.thoughtworks.selenium.SeleneseTestCase.runBare(SeleneseTestCase.java:212)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:243)
at junit.framework.TestSuite.run(TestSuite.java:238)
at
org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
at
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
at
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
at
org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
at
org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
at
org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:172)
at
org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:104)
at
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:70)

The references to selenium from my pom.xml is
[...]
<dependency>
     <groupId>org.seleniumhq.selenium.client-drivers</groupId>
     <artifactId>selenium-java-client-driver</artifactId>
     <version>1.0.2</version>
     <scope>test</scope>
</dependency>
</dependencies>
<build>
     <plugins>
         <plugin>
             <groupId>org.mortbay.jetty</groupId>
     <artifactId>maven-jetty-plugin</artifactId>
     <configuration>
         <stopPort>9944</stopPort>
  <stopKey>foo</stopKey>
  <contextPath>/gcm</contextPath>
  <connectors>
     <connector
implementation="org.mortbay.jetty.nio.SelectChannelConnector">
         <port>8181</port>
  <maxIdleTime>60000</maxIdleTime>
     </connector>
  </connectors>
     </configuration>
     <executions>
         <execution>
     <id>start-jetty</id>
     <phase>pre-integration-test</phase>
     <goals>
         <goal>run-war</goal>
     </goals>
     <configuration>
         <daemon>true</daemon>
     </configuration>
  </execution>
     </executions>
  </plugin>
  <plugin>
     <groupId>org.codehaus.mojo</groupId>
     <artifactId>selenium-maven-plugin</artifactId>
     <version>2.3</version>
     <executions>
         <execution>
     <id>xvfb</id>
     <phase>pre-integration-test</phase>
     <goals>
         <goal>xvfb</goal>
     </goals>
     <configuration>
         <options>
     <option>-ac</option>
  </options>
     </configuration>
  </execution>
  <execution>
     <id>start</id>
     <phase>pre-integration-test</phase>
     <goals>
         <goal>start-server</goal>
     </goals>
     <configuration>
         <background>true</background>
  <logOutput>true</logOutput>
  <multiWindow>true</multiWindow>
  <port>4444</port>
  <ensureCleanSession>true</ensureCleanSession>
     </configuration>
  </execution>
  <execution>
     <id>stop</id>
     <phase>post-integration-test</phase>
     <goals>
         <goal>stop-server</goal>
     </goals>
  </execution>
     </executions>
  </plugin>
[...]

Thank you for any ideas.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/98df755c-3762-406b-bc45-31e698c8f372%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

  • Fabio Serragnoli at Dec 6, 2013 at 11:41 am
    Any ideas please?
    On Friday, 22 November 2013 20:39:15 UTC, Fabio Serragnoli wrote:

    When I run mvn install my Integration Tests fail with the following
    stacktrace. I don't know what else to do in order to get rid of this
    problem. Can you give me directions on how to solve it?

    My environment:

    - OS
    - Ubuntu 12.04 LTS
    - Maven
    - Apache Maven 3.0.4
    - Maven home: /usr/share/maven
    - MAVEN_OPTS=-Xmx768m -Xms64m -XX:MaxPermSize=256M
    -agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n
    - Java
    - Version: 1.6.0_43, vendor: Sun Microsystems Inc.
    - Java home: /space/Development/jdk6/jdk1.6.0_43/jre
    - Default locale: en_GB, platform encoding: UTF-8
    - OS name: "linux", version: "3.2.0-56-generic", arch: "amd64",
    family: "unix"
    - Xvfb
    - /usr/bin/Xvfb

    Stacktrace:
    The error message is: Access to
    'file:///space/Development/Projects/myapp/src/test/unit/account_test.html'
    from script denied
    at
    com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError(HttpCommandProcessor.java:97)
    at
    com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:91)
    at
    com.thoughtworks.selenium.DefaultSelenium.open(DefaultSelenium.java:335)
    at
    com.fabio.games.myapp.unittests.JSUnitTestBase.runUnitTest(JSUnitTestBase.java:36)
    at
    com.fabio.games.myapp.unittests.AccountTestIT.testAccount(AccountTestIT.java:10)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at junit.framework.TestCase.runTest(TestCase.java:168)
    at junit.framework.TestCase.runBare(TestCase.java:134)
    at
    com.thoughtworks.selenium.SeleneseTestCase.runBare(SeleneseTestCase.java:212)
    at junit.framework.TestResult$1.protect(TestResult.java:110)
    at junit.framework.TestResult.runProtected(TestResult.java:128)
    at junit.framework.TestResult.run(TestResult.java:113)
    at junit.framework.TestCase.run(TestCase.java:124)
    at junit.framework.TestSuite.runTest(TestSuite.java:243)
    at junit.framework.TestSuite.run(TestSuite.java:238)
    at
    org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
    at
    org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
    at
    org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
    at
    org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at
    org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
    at
    org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
    at
    org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:172)
    at
    org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:104)
    at
    org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:70)

    The references to selenium from my pom.xml is
    [...]
    <dependency>
    <groupId>org.seleniumhq.selenium.client-drivers</groupId>
    <artifactId>selenium-java-client-driver</artifactId>
    <version>1.0.2</version>
    <scope>test</scope>
    </dependency>
    </dependencies>
    <build>
    <plugins>
    <plugin>
    <groupId>org.mortbay.jetty</groupId>
    <artifactId>maven-jetty-plugin</artifactId>
    <configuration>
    <stopPort>9944</stopPort>
    <stopKey>foo</stopKey>
    <contextPath>/gcm</contextPath>
    <connectors>
    <connector
    implementation="org.mortbay.jetty.nio.SelectChannelConnector">
    <port>8181</port>
    <maxIdleTime>60000</maxIdleTime>
    </connector>
    </connectors>
    </configuration>
    <executions>
    <execution>
    <id>start-jetty</id>
    <phase>pre-integration-test</phase>
    <goals>
    <goal>run-war</goal>
    </goals>
    <configuration>
    <daemon>true</daemon>
    </configuration>
    </execution>
    </executions>
    </plugin>
    <plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>selenium-maven-plugin</artifactId>
    <version>2.3</version>
    <executions>
    <execution>
    <id>xvfb</id>
    <phase>pre-integration-test</phase>
    <goals>
    <goal>xvfb</goal>
    </goals>
    <configuration>
    <options>
    <option>-ac</option>
    </options>
    </configuration>
    </execution>
    <execution>
    <id>start</id>
    <phase>pre-integration-test</phase>
    <goals>
    <goal>start-server</goal>
    </goals>
    <configuration>
    <background>true</background>
    <logOutput>true</logOutput>
    <multiWindow>true</multiWindow>
    <port>4444</port>
    <ensureCleanSession>true</ensureCleanSession>
    </configuration>
    </execution>
    <execution>
    <id>stop</id>
    <phase>post-integration-test</phase>
    <goals>
    <goal>stop-server</goal>
    </goals>
    </execution>
    </executions>
    </plugin>
    [...]

    Thank you for any ideas.
    --
    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+unsubscribe@googlegroups.com.
    To post to this group, send email to selenium-users@googlegroups.com.
    To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/b07ad861-ba17-475f-bb5d-53ed3f9fa5c7%40googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Krishnan Mahadevan at Dec 12, 2013 at 1:16 pm
    at com.thoughtworks.selenium.HttpCommandProcessor.doCommand(Htt
    pCommandProcessor.java:91)
             at com.thoughtworks.selenium.DefaultSelenium.open(DefaultSeleni
    um.java:335)


    What exactly is the URL you are trying to open ?

    Please show us your code



    Thanks & Regards
    Krishnan Mahadevan

    "All the desirable things in life are either illegal, expensive, fattening
    or in love with someone else!"
    My Scribblings @ http://wakened-cognition.blogspot.com/

    On Fri, Dec 6, 2013 at 5:11 PM, Fabio Serragnoli wrote:

    Any ideas please?
    On Friday, 22 November 2013 20:39:15 UTC, Fabio Serragnoli wrote:

    When I run mvn install my Integration Tests fail with the following
    stacktrace. I don't know what else to do in order to get rid of this
    problem. Can you give me directions on how to solve it?

    My environment:

    - OS
    - Ubuntu 12.04 LTS
    - Maven
    - Apache Maven 3.0.4
    - Maven home: /usr/share/maven
    - MAVEN_OPTS=-Xmx768m -Xms64m -XX:MaxPermSize=256M
    -agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n
    - Java
    - Version: 1.6.0_43, vendor: Sun Microsystems Inc.
    - Java home: /space/Development/jdk6/jdk1.6.0_43/jre
    - Default locale: en_GB, platform encoding: UTF-8
    - OS name: "linux", version: "3.2.0-56-generic", arch: "amd64",
    family: "unix"
    - Xvfb
    - /usr/bin/Xvfb

    Stacktrace:
    The error message is: Access to 'file:///space/Development/
    Projects/myapp/src/test/unit/account_test.html' from script denied
    at com.thoughtworks.selenium.HttpCommandProcessor.
    throwAssertionFailureExceptionOrError(HttpCommandProcessor.java:97)
    at com.thoughtworks.selenium.HttpCommandProcessor.doCommand(
    HttpCommandProcessor.java:91)
    at com.thoughtworks.selenium.DefaultSelenium.open(
    DefaultSelenium.java:335)
    at com.fabio.games.myapp.unittests.JSUnitTestBase.
    runUnitTest(JSUnitTestBase.java:36)
    at com.fabio.games.myapp.unittests.AccountTestIT.
    testAccount(AccountTestIT.java:10)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(
    NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(
    DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at junit.framework.TestCase.runTest(TestCase.java:168)
    at junit.framework.TestCase.runBare(TestCase.java:134)
    at com.thoughtworks.selenium.SeleneseTestCase.runBare(
    SeleneseTestCase.java:212)
    at junit.framework.TestResult$1.protect(TestResult.java:110)
    at junit.framework.TestResult.runProtected(TestResult.java:128)
    at junit.framework.TestResult.run(TestResult.java:113)
    at junit.framework.TestCase.run(TestCase.java:124)
    at junit.framework.TestSuite.runTest(TestSuite.java:243)
    at junit.framework.TestSuite.run(TestSuite.java:238)
    at org.junit.internal.runners.JUnit38ClassRunner.run(
    JUnit38ClassRunner.java:83)
    at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(
    JUnit4TestSet.java:53)
    at org.apache.maven.surefire.junit4.JUnit4Provider.
    executeTestSet(JUnit4Provider.java:123)
    at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(
    JUnit4Provider.java:104)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(
    NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(
    DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.maven.surefire.util.ReflectionUtils.
    invokeMethodWithArray(ReflectionUtils.java:164)
    at org.apache.maven.surefire.booter.ProviderFactory$
    ProviderProxy.invoke(ProviderFactory.java:110)
    at org.apache.maven.surefire.booter.SurefireStarter.
    invokeProvider(SurefireStarter.java:172)
    at org.apache.maven.surefire.booter.SurefireStarter.
    runSuitesInProcessWhenForked(SurefireStarter.java:104)
    at org.apache.maven.surefire.booter.ForkedBooter.main(
    ForkedBooter.java:70)

    The references to selenium from my pom.xml is
    [...]
    <dependency>
    <groupId>org.seleniumhq.selenium.client-drivers</groupId>
    <artifactId>selenium-java-client-driver</artifactId>
    <version>1.0.2</version>
    <scope>test</scope>
    </dependency>
    </dependencies>
    <build>
    <plugins>
    <plugin>
    <groupId>org.mortbay.jetty</groupId>
    <artifactId>maven-jetty-plugin</artifactId>
    <configuration>
    <stopPort>9944</stopPort>
    <stopKey>foo</stopKey>
    <contextPath>/gcm</contextPath>
    <connectors>
    <connector implementation="org.mortbay.jetty.nio.
    SelectChannelConnector">
    <port>8181</port>
    <maxIdleTime>60000</maxIdleTime>
    </connector>
    </connectors>
    </configuration>
    <executions>
    <execution>
    <id>start-jetty</id>
    <phase>pre-integration-test</phase>
    <goals>
    <goal>run-war</goal>
    </goals>
    <configuration>
    <daemon>true</daemon>
    </configuration>
    </execution>
    </executions>
    </plugin>
    <plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>selenium-maven-plugin</artifactId>
    <version>2.3</version>
    <executions>
    <execution>
    <id>xvfb</id>
    <phase>pre-integration-test</phase>
    <goals>
    <goal>xvfb</goal>
    </goals>
    <configuration>
    <options>
    <option>-ac</option>
    </options>
    </configuration>
    </execution>
    <execution>
    <id>start</id>
    <phase>pre-integration-test</phase>
    <goals>
    <goal>start-server</goal>
    </goals>
    <configuration>
    <background>true</background>
    <logOutput>true</logOutput>
    <multiWindow>true</multiWindow>
    <port>4444</port>
    <ensureCleanSession>true</ensureCleanSession>
    </configuration>
    </execution>
    <execution>
    <id>stop</id>
    <phase>post-integration-test</phase>
    <goals>
    <goal>stop-server</goal>
    </goals>
    </execution>
    </executions>
    </plugin>
    [...]

    Thank you for any ideas.
    --
    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+unsubscribe@googlegroups.com.
    To post to this group, send email to selenium-users@googlegroups.com.
    To view this discussion on the web visit
    https://groups.google.com/d/msgid/selenium-users/b07ad861-ba17-475f-bb5d-53ed3f9fa5c7%40googlegroups.com
    .
    For more options, visit https://groups.google.com/groups/opt_out.
    --
    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+unsubscribe@googlegroups.com.
    To post to this group, send email to selenium-users@googlegroups.com.
    To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CANikZLn%2B%2BnP2YaKyTx79wy6udvJVeN0Yybt_Xo9xq5iAMfSAgg%40mail.gmail.com.
    For more options, visit https://groups.google.com/groups/opt_out.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupselenium-users @
categoriesselenium
postedNov 25, '13 at 6:52a
activeDec 12, '13 at 1:16p
posts3
users2
websiteseleniumhq.org

People

Translate

site design / logo © 2022 Grokbase