[JBoss JIRA] (ARQ-1428) Screen Recorder with TestNG standalone causes java.lang.NoClassDefFoundError
by Petr Mensik (JIRA)
[ 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;.
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;.
> 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;.
> 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
11 years, 5 months
[JBoss JIRA] (ARQ-1428) Screen Recorder with TestNG standalone causes java.lang.NoClassDefFoundError
by Petr Mensik (JIRA)
Petr Mensik created ARQ-1428:
--------------------------------
Summary: 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;.
--
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
11 years, 5 months
[JBoss JIRA] (ARQ-1427) Arquillian Spock test fails with NPE when a subclass of spock.lang.Specification is used
by Luca Graf (JIRA)
Luca Graf created ARQ-1427:
------------------------------
Summary: Arquillian Spock test fails with NPE when a subclass of spock.lang.Specification is used
Key: ARQ-1427
URL: https://issues.jboss.org/browse/ARQ-1427
Project: Arquillian
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Spock TestRunner
Affects Versions: spock_1.0.0.Beta1
Reporter: Luca Graf
Assignee: Bartosz Majsak
If an arquillian spock test is extended from a subclass of spock.lang.Specification the test can't be executed and fails with a NPE.
{code:title=MySpecification.groovy}
abstract class MySpecification extends spock.lang.Specification{
}
{code}
{code:title=SpockSpecSubclassIt.groovy}
@ArquillianSpecification
class SpockSpecSubclassIt extends MySpecification {
@Deployment
static WebArchive deployment() {
ShrinkWrap.create( WebArchive.class )
}
void 'test'() {
expect:
'foo' != 'bar'
}
}
{code}
{code:title=Exception}
java.lang.NullPointerException
at org.jboss.arquillian.container.test.impl.client.ContainerEventController.lookup(ContainerEventController.java:164)
at org.jboss.arquillian.container.test.impl.client.ContainerEventController.createContext(ContainerEventController.java:146)
at org.jboss.arquillian.container.test.impl.client.ContainerEventController.createBeforeContext(ContainerEventController.java:124)
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.createTestContext(TestContextHandler.java:89)
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.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.before(EventTestRunnerAdaptor.java:95)
at org.jboss.arquillian.spock.ArquillianInterceptor.interceptSetupMethod(ArquillianInterceptor.java:77)
at org.spockframework.runtime.extension.AbstractMethodInterceptor.intercept(AbstractMethodInterceptor.java:28)
at org.spockframework.runtime.extension.MethodInvocation.proceed(MethodInvocation.java:84)
at org.spockframework.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:138)
at org.spockframework.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:138)
at org.spockframework.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:138)
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)
java.lang.NullPointerException
at org.jboss.arquillian.container.test.impl.client.ContainerEventController.lookup(ContainerEventController.java:164)
at org.jboss.arquillian.container.test.impl.client.ContainerEventController.createContext(ContainerEventController.java:146)
at org.jboss.arquillian.container.test.impl.client.ContainerEventController.createAfterContext(ContainerEventController.java:134)
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.createTestContext(TestContextHandler.java:89)
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.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.after(EventTestRunnerAdaptor.java:103)
at org.jboss.arquillian.spock.ArquillianInterceptor.interceptCleanupMethod(ArquillianInterceptor.java:89)
at org.spockframework.runtime.extension.AbstractMethodInterceptor.intercept(AbstractMethodInterceptor.java:31)
at org.spockframework.runtime.extension.MethodInvocation.proceed(MethodInvocation.java:84)
at org.spockframework.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:138)
at org.spockframework.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:138)
at org.spockframework.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:138)
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)
{code}
--
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
11 years, 5 months
[JBoss JIRA] (ARQ-1426) https support for Servlet Protocol
by Luca Graf (JIRA)
Luca Graf created ARQ-1426:
------------------------------
Summary: https support for Servlet Protocol
Key: ARQ-1426
URL: https://issues.jboss.org/browse/ARQ-1426
Project: Arquillian
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Components: Test Protocol SPIs and Implementation
Affects Versions: 1.1.0.Final
Reporter: Luca Graf
Priority: Minor
This time there is no way to configure the servlet-protocol to use https to communicate with the server. Because the ArquillianServletRunner is deployed in the context of the current 'application under test' the communication will fail when the application is configured to only allow https request to the current context. In my case (using glassfish), the request will return an 302 for an http request that is not handled by the ServletMethodExecutor (throwing IllegalStateException).
It would be nice when the protocol can be configured to use https for the communication. Another (not so nice) solution can be to follow the address from the Location Header after an 302 response (at least one time).
Workaround:
Disable forcing SSL communication for the test deployment, by using an adjusted web.xml.
--
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
11 years, 5 months
[JBoss JIRA] (ARQ-1425) Drone: unnecessary warning about unserializable capability 'droneAugmented'
by Karel Piwko (JIRA)
[ https://issues.jboss.org/browse/ARQ-1425?page=com.atlassian.jira.plugin.s... ]
Karel Piwko reassigned ARQ-1425:
--------------------------------
Assignee: (was: Karel Piwko)
> Drone: unnecessary warning about unserializable capability 'droneAugmented'
> ---------------------------------------------------------------------------
>
> Key: ARQ-1425
> URL: https://issues.jboss.org/browse/ARQ-1425
> Project: Arquillian
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: Extension - Drone
> Affects Versions: drone_1.2.0.Alpha2
> Reporter: Lukáš Fryč
>
> This capability is known to be unserializable and we don't need to serialize it since it will be constructed again.
> {code}
> WARNING: The capability 'droneAugmented' has unserializable value of type 'org.jboss.arquillian.drone.webdriver.factory.remote.reusable.ReusableRemoteWebDriver' and value 'ReusableRemoteWebDriver: phantomjs on LINUX (89f4b7d0-bd61-11e2-a0ae-732f3e2bcb83)
> {code}
--
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
11 years, 5 months
[JBoss JIRA] (ARQ-1425) Drone: unnecessary warning about unserializable capability 'droneAugmented'
by Lukáš Fryč (JIRA)
Lukáš Fryč created ARQ-1425:
-------------------------------
Summary: Drone: unnecessary warning about unserializable capability 'droneAugmented'
Key: ARQ-1425
URL: https://issues.jboss.org/browse/ARQ-1425
Project: Arquillian
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Components: Extension - Drone
Affects Versions: drone_1.2.0.Alpha2
Reporter: Lukáš Fryč
Assignee: Karel Piwko
This capability is known to be unserializable and we don't need to serialize it since it will be constructed again.
{code}
WARNING: The capability 'droneAugmented' has unserializable value of type 'org.jboss.arquillian.drone.webdriver.factory.remote.reusable.ReusableRemoteWebDriver' and value 'ReusableRemoteWebDriver: phantomjs on LINUX (89f4b7d0-bd61-11e2-a0ae-732f3e2bcb83)
{code}
--
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
11 years, 5 months