[
https://issues.jboss.org/browse/ARQ-1428?page=com.atlassian.jira.plugin.s...
]
Petr Mensik updated ARQ-1428:
-----------------------------
Description:
Running functional test with Drone, Graphene, Screen Recorder in TestNG standalone mode
with cause java.lang.NoClassDefFoundError after start of the embedded Jetty server.
Problem is caused by the injection of page object to the test case, so for instance @Page
SimplePage page;.
{noformat java.lang.NoClassDefFoundError:
Lorg/arquillian/screenRecorder/bug/page/SimplePage;
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.java:2387)
at java.lang.Class.getDeclaredFields(Class.java:1796)
at org.jboss.arquillian.drone.impl.SecurityActions$2.run(SecurityActions.java:163)
at org.jboss.arquillian.drone.impl.SecurityActions$2.run(SecurityActions.java:158)
at java.security.AccessController.doPrivileged(Native Method)
at
org.jboss.arquillian.drone.impl.SecurityActions.getFieldsWithAnnotation(SecurityActions.java:158)
at
org.jboss.arquillian.drone.impl.DroneConfigurator.configureDrone(DroneConfigurator.java:102)
at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
at
org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
at
org.jboss.arquillian.test.impl.TestContextHandler.createClassContext(TestContextHandler.java:75)
at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
at
org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:60)
at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135)
at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:115)
at
org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.beforeClass(EventTestRunnerAdaptor.java:80)
at org.jboss.arquillian.testng.Arquillian.arquillianBeforeClass(Arquillian.java:103)
Caused by: java.lang.ClassNotFoundException:
org.arquillian.screenRecorder.bug.page.SimplePage
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
was:
Running functional test with Drone, Graphene, Screen Recorder in TestNG standalone mode
with cause java.lang.NoClassDefFoundError after start of the embedded Jetty server.
Problem is caused by the injection of page object to the test case, so for instance @Page
SimplePage page;.
{noformat java.lang.NoClassDefFoundError:
Lorg/arquillian/screenRecorder/bug/page/SimplePage; }
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.java:2387)
at java.lang.Class.getDeclaredFields(Class.java:1796)
at org.jboss.arquillian.drone.impl.SecurityActions$2.run(SecurityActions.java:163)
at org.jboss.arquillian.drone.impl.SecurityActions$2.run(SecurityActions.java:158)
at java.security.AccessController.doPrivileged(Native Method)
at
org.jboss.arquillian.drone.impl.SecurityActions.getFieldsWithAnnotation(SecurityActions.java:158)
at
org.jboss.arquillian.drone.impl.DroneConfigurator.configureDrone(DroneConfigurator.java:102)
at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
at
org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
at
org.jboss.arquillian.test.impl.TestContextHandler.createClassContext(TestContextHandler.java:75)
at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
at
org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:60)
at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135)
at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:115)
at
org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.beforeClass(EventTestRunnerAdaptor.java:80)
at org.jboss.arquillian.testng.Arquillian.arquillianBeforeClass(Arquillian.java:103)
Caused by: java.lang.ClassNotFoundException:
org.arquillian.screenRecorder.bug.page.SimplePage
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
Screen Recorder with TestNG standalone causes
java.lang.NoClassDefFoundError
----------------------------------------------------------------------------
Key: ARQ-1428
URL:
https://issues.jboss.org/browse/ARQ-1428
Project: Arquillian
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 1.0.0.Alpha2
Environment: Fedora 18, Firefox 22
Reporter: Petr Mensik
Attachments: project.tar
Running functional test with Drone, Graphene, Screen Recorder in TestNG standalone mode
with cause java.lang.NoClassDefFoundError after start of the embedded Jetty server.
Problem is caused by the injection of page object to the test case, so for instance @Page
SimplePage page;.
{noformat java.lang.NoClassDefFoundError:
Lorg/arquillian/screenRecorder/bug/page/SimplePage;
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.java:2387)
at java.lang.Class.getDeclaredFields(Class.java:1796)
at org.jboss.arquillian.drone.impl.SecurityActions$2.run(SecurityActions.java:163)
at org.jboss.arquillian.drone.impl.SecurityActions$2.run(SecurityActions.java:158)
at java.security.AccessController.doPrivileged(Native Method)
at
org.jboss.arquillian.drone.impl.SecurityActions.getFieldsWithAnnotation(SecurityActions.java:158)
at
org.jboss.arquillian.drone.impl.DroneConfigurator.configureDrone(DroneConfigurator.java:102)
at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
at
org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
at
org.jboss.arquillian.test.impl.TestContextHandler.createClassContext(TestContextHandler.java:75)
at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
at
org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:60)
at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135)
at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:115)
at
org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.beforeClass(EventTestRunnerAdaptor.java:80)
at org.jboss.arquillian.testng.Arquillian.arquillianBeforeClass(Arquillian.java:103)
Caused by: java.lang.ClassNotFoundException:
org.arquillian.screenRecorder.bug.page.SimplePage
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira