[JBoss JIRA] (ARQ-1567) Explain validation errors in more depth
by Stefan Miklosovic (JIRA)
Stefan Miklosovic created ARQ-1567:
--------------------------------------
Summary: Explain validation errors in more depth
Key: ARQ-1567
URL: https://issues.jboss.org/browse/ARQ-1567
Project: Arquillian
Issue Type: Enhancement
Security Level: Public (Everyone can see)
Components: Extension - Droidium
Affects Versions: droidium_1.0.0.Alpha2
Reporter: Stefan Miklosovic
In many cases, it is not sufficient to provide a user just with stack trace when something goes wrong, for example, from this one:
{code}
java.lang.IllegalStateException: Directory to check against readability is null object or empty string.
at org.arquillian.droidium.container.configuration.Validate.notNullOrEmpty(Validate.java:98)
at org.arquillian.droidium.container.configuration.Validate.isReadableDirectory(Validate.java:147)
at org.arquillian.droidium.container.configuration.AndroidSDK.<init>(AndroidSDK.java:189)
at org.arquillian.droidium.container.AndroidDeployableContainer.setup(AndroidDeployableContainer.java:153)
{code}
It basically says that user does not have specified JAVA_HOME but he can not know that without looking into sources which is *totally* not desired.
Review all crucial configuration properties and its setters / getters and be sure that when it fails user knows whats going on.
--
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, 2 months
[JBoss JIRA] (ARQ-1050) Drone fails to instantiate drivers when operadriver isn't on classpath
by Karel Piwko (JIRA)
[ https://issues.jboss.org/browse/ARQ-1050?page=com.atlassian.jira.plugin.s... ]
Karel Piwko commented on ARQ-1050:
----------------------------------
[~bmajsak] maybe we should shade Selenium related dependencies?
> Drone fails to instantiate drivers when operadriver isn't on classpath
> ----------------------------------------------------------------------
>
> Key: ARQ-1050
> URL: https://issues.jboss.org/browse/ARQ-1050
> Project: Arquillian
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Extension - Drone
> Affects Versions: drone_1.1.0.CR2
> Reporter: Lukáš Fryč
> Assignee: Karel Piwko
> Priority: Critical
>
> When {{operadriver}} isn't included on classpath, Drone fails to instantiate {{HtmlUnitDriver}}.
> Likely other browser drivers are affected as well.
> {code}
> java.lang.NoClassDefFoundError: com/opera/core/systems/OperaDriver
> at java.lang.Class.getDeclaredMethods0(Native Method)
> at java.lang.Class.privateGetDeclaredMethods(Class.java:2442)
> at java.lang.Class.getDeclaredMethods(Class.java:1808)
> at org.jboss.arquillian.core.impl.Reflections.getObserverMethods(Reflections.java:52)
> at org.jboss.arquillian.core.impl.ExtensionImpl.of(ExtensionImpl.java:51)
> at org.jboss.arquillian.core.impl.ManagerImpl.inject(ManagerImpl.java:198)
> at org.jboss.arquillian.core.impl.InjectorImpl.inject(InjectorImpl.java:58)
> at org.jboss.arquillian.core.impl.loadable.ServiceRegistryLoader.createServiceInstance(ServiceRegistryLoader.java:108)
> at org.jboss.arquillian.core.impl.loadable.ServiceRegistryLoader.all(ServiceRegistryLoader.java:55)
> at org.jboss.arquillian.drone.impl.DroneRegistrar.registerConfigurators(DroneRegistrar.java:84)
> at org.jboss.arquillian.drone.impl.DroneRegistrar.register(DroneRegistrar.java:77)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:601)
> 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.createSuiteContext(TestContextHandler.java:60)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:601)
> 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.beforeSuite(EventTestRunnerAdaptor.java:68)
> at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:97)
> 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: java.lang.ClassNotFoundException: com.opera.core.systems.OperaDriver
> 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:423)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
> ... 35 more
> {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, 2 months
[JBoss JIRA] (ARQ-1050) Drone fails to instantiate drivers when operadriver isn't on classpath
by Bartosz Majsak (JIRA)
[ https://issues.jboss.org/browse/ARQ-1050?page=com.atlassian.jira.plugin.s... ]
Bartosz Majsak commented on ARQ-1050:
-------------------------------------
I believe this problem should be rethink. I will give you an example from yesterday's Hackergarten at Devoxx.
We were working on Drone-powered tests of [AngularJS application|https://github.com/vorburger/mifosx-ui-selenium-webdriver-tes...] and we wanted to run it using jetty embedded. And here's the classpath hell:
* phantomjs has it's own jetty
* htmlunit another one
But if I remove any of them I simply can use Drone at all. Is it really necessary to follow all-or-nothing strategy?
> Drone fails to instantiate drivers when operadriver isn't on classpath
> ----------------------------------------------------------------------
>
> Key: ARQ-1050
> URL: https://issues.jboss.org/browse/ARQ-1050
> Project: Arquillian
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Extension - Drone
> Affects Versions: drone_1.1.0.CR2
> Reporter: Lukáš Fryč
> Assignee: Karel Piwko
> Priority: Critical
>
> When {{operadriver}} isn't included on classpath, Drone fails to instantiate {{HtmlUnitDriver}}.
> Likely other browser drivers are affected as well.
> {code}
> java.lang.NoClassDefFoundError: com/opera/core/systems/OperaDriver
> at java.lang.Class.getDeclaredMethods0(Native Method)
> at java.lang.Class.privateGetDeclaredMethods(Class.java:2442)
> at java.lang.Class.getDeclaredMethods(Class.java:1808)
> at org.jboss.arquillian.core.impl.Reflections.getObserverMethods(Reflections.java:52)
> at org.jboss.arquillian.core.impl.ExtensionImpl.of(ExtensionImpl.java:51)
> at org.jboss.arquillian.core.impl.ManagerImpl.inject(ManagerImpl.java:198)
> at org.jboss.arquillian.core.impl.InjectorImpl.inject(InjectorImpl.java:58)
> at org.jboss.arquillian.core.impl.loadable.ServiceRegistryLoader.createServiceInstance(ServiceRegistryLoader.java:108)
> at org.jboss.arquillian.core.impl.loadable.ServiceRegistryLoader.all(ServiceRegistryLoader.java:55)
> at org.jboss.arquillian.drone.impl.DroneRegistrar.registerConfigurators(DroneRegistrar.java:84)
> at org.jboss.arquillian.drone.impl.DroneRegistrar.register(DroneRegistrar.java:77)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:601)
> 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.createSuiteContext(TestContextHandler.java:60)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:601)
> 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.beforeSuite(EventTestRunnerAdaptor.java:68)
> at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:97)
> 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: java.lang.ClassNotFoundException: com.opera.core.systems.OperaDriver
> 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:423)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
> ... 35 more
> {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, 2 months
[JBoss JIRA] (ARQ-1566) NPE in GlassFishClientService when connecting to a ssl only glassfish
by Daniel G (JIRA)
Daniel G created ARQ-1566:
-----------------------------
Summary: NPE in GlassFishClientService when connecting to a ssl only glassfish
Key: ARQ-1566
URL: https://issues.jboss.org/browse/ARQ-1566
Project: Arquillian
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: GlassFish Containers
Affects Versions: glassfish_1.0.0.CR4
Reporter: Daniel G
When connecting to a remote-glassfish that has no http port open
{noformat:title=related domain.xml excerpt}
<network-listeners>
<network-listener port="${HTTP_LISTENER_PORT}" enabled="false" protocol="http-listener-1" transport="tcp" name
="http-listener-1" thread-pool="http-thread-pool"></network-listener>
...
{noformat}
the test-startup crashes with a NullPointerException.
{noformat}
java.lang.NullPointerException: null
at java.util.regex.Matcher.getTextLength(Matcher.java:1234)
at java.util.regex.Matcher.reset(Matcher.java:308)
at java.util.regex.Matcher.<init>(Matcher.java:228)
at java.util.regex.Pattern.matcher(Pattern.java:1088)
at org.jboss.arquillian.container.glassfish.clientutils.GlassFishClientService.getPortValue(GlassFishClientService.java:673)
at org.jboss.arquillian.container.glassfish.clientutils.GlassFishClientService.access$500(GlassFishClientService.java:41)
at org.jboss.arquillian.container.glassfish.clientutils.GlassFishClientService$ClusterServer.getNodeAddressList(GlassFishClientService.java:880)
at org.jboss.arquillian.container.glassfish.clientutils.GlassFishClientService.startUp(GlassFishClientService.java:133)
at org.jboss.arquillian.container.glassfish.CommonGlassFishManager.start(CommonGlassFishManager.java:72)
at org.jboss.arquillian.container.glassfish.remote_3_1.GlassFishRestDeployableContainer.start(GlassFishRestDeployableContainer.java:59)
at org.jboss.arquillian.container.impl.ContainerImpl.start(ContainerImpl.java:199)
at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController$8.perform(ContainerLifecycleController.java:163)
at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController$8.perform(ContainerLifecycleController.java:157)
at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController.forContainer(ContainerLifecycleController.java:255)
at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController.startContainer(ContainerLifecycleController.java:156)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
...
{noformat}
so i forked the build (https://github.com/dgeissl/arquillian-container-glassfish.git) and fixed the corresponding codelines.
to finaly see that the basic https support is missing in Arquillian, cause now i get this exception:
{noformat}
java.lang.IllegalStateException: Error launching test MyTest public void MyTest.testMe()
at org.jboss.arquillian.protocol.servlet.ServletMethodExecutor.invoke(ServletMethodExecutor.java:103)
at org.jboss.arquillian.container.test.impl.execution.RemoteTestExecuter.execute(RemoteTestExecuter.java:120)
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.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.core.impl.ManagerImpl.fire(ManagerImpl.java:135)
at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:115)
...
Caused by: java.net.SocketException: Unexpected end of file from server
at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at java.net.HttpURLConnection.getResponseCode(Unknown Source)
at org.jboss.arquillian.protocol.servlet.ServletMethodExecutor.execute(ServletMethodExecutor.java:183)
at org.jboss.arquillian.protocol.servlet.ServletMethodExecutor.executeWithRetry(ServletMethodExecutor.java:121)
at org.jboss.arquillian.protocol.servlet.ServletMethodExecutor.invoke(ServletMethodExecutor.java:99)
... 75 more
{noformat}
So the basic NPE cause can be fixed but for the https support we need core changes right?
Like mentioned in ARQ-643
--
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, 2 months
[JBoss JIRA] (ARQGRA-309) nested list of page fragments in page fragment is wrongly initialized within TestNG's @BeforeMethod method
by Jiří Štefek (JIRA)
[ https://issues.jboss.org/browse/ARQGRA-309?page=com.atlassian.jira.plugin... ]
Jiří Štefek edited comment on ARQGRA-309 at 11/12/13 6:58 AM:
--------------------------------------------------------------
Updated the description.
Sorry for the late response.
[~lfryc] you mean accessing protected field _tree_ without a getter? I`ve tried replacing it with getter, but with the same result.
was (Author: jstefek):
Updated the description.
Sorry for the late response.
[~lfryc] you mean accessing protected field tree without a getter? I`ve tried this, but with the same result.
> nested list of page fragments in page fragment is wrongly initialized within TestNG's @BeforeMethod method
> ----------------------------------------------------------------------------------------------------------
>
> Key: ARQGRA-309
> URL: https://issues.jboss.org/browse/ARQGRA-309
> Project: Arquillian Graphene
> Issue Type: Bug
> Environment: graphene webdriver 2.0.0.Beta1-SNAPSHOT
> Reporter: Jiří Štefek
> Assignee: Juraj Húska
> Priority: Critical
> Fix For: 2.0-Tracking
>
>
> Stack trace:
> {code}
> org.jboss.arquillian.graphene.enricher.exception.PageFragmentInitializationException: java.lang.IllegalStateException: Drone Context must not be null
> at org.jboss.arquillian.graphene.enricher.PageFragmentEnricher.createPageFragment(PageFragmentEnricher.java:171)
> at org.jboss.arquillian.graphene.enricher.PageFragmentEnricher$1.getTarget(PageFragmentEnricher.java:123)
> at org.jboss.arquillian.graphene.proxy.GrapheneProxyHandler.getTarget(GrapheneProxyHandler.java:149)
> at org.jboss.arquillian.graphene.proxy.GrapheneContextualHandler$1.getTarget(GrapheneContextualHandler.java:186)
> at org.jboss.arquillian.graphene.proxy.GrapheneContextualHandler$1.invoke(GrapheneContextualHandler.java:159)
> at org.jboss.arquillian.graphene.proxy.GrapheneContextualHandler$2.call(GrapheneContextualHandler.java:209)
> at org.jboss.arquillian.graphene.context.BrowserActions.performAction(BrowserActions.java:62)
> at org.jboss.arquillian.graphene.proxy.GrapheneContextualHandler.invoke(GrapheneContextualHandler.java:205)
> at com.sun.proxy.$Proxy37.iterator(Unknown Source)
> at java.util.Collections$UnmodifiableCollection$1.<init>(Collections.java:1064)
> at java.util.Collections$UnmodifiableCollection.iterator(Collections.java:1063)
> at org.richfaces.tests.page.fragments.impl.tree.RichFacesTree$AdvancedTreeInteractionsImpl.getNodesCollapsed(RichFacesTree.java:131)
> at org.richfaces.tests.metamer.ftest.richTree.TestTreeToggling.checkInitialState(TestTreeToggling.java:57)
> Caused by: java.lang.IllegalStateException: Drone Context must not be null
> at org.jboss.arquillian.drone.impl.Validate.stateNotNull(Validate.java:29)
> at org.jboss.arquillian.drone.impl.DroneTestEnricher.getDroneInstance(DroneTestEnricher.java:103)
> at org.jboss.arquillian.drone.impl.DroneTestEnricher.enrich(DroneTestEnricher.java:72)
> at org.jboss.arquillian.graphene.enricher.AbstractSearchContextEnricher.enrichRecursively(AbstractSearchContextEnricher.java:70)
> at org.jboss.arquillian.graphene.enricher.PageFragmentEnricher.createPageFragment(PageFragmentEnricher.java:156)
> ... 48 more
> {code}
> Fails, when [this|https://github.com/richfaces/richfaces-qa/blob/master/metamer/ftest/...] method (_checkInitialState_) is annotated with @BeforeMethod.
--
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, 2 months
[JBoss JIRA] (ARQGRA-309) nested list of page fragments in page fragment is wrongly initialized within TestNG's @BeforeMethod method
by Jiří Štefek (JIRA)
[ https://issues.jboss.org/browse/ARQGRA-309?page=com.atlassian.jira.plugin... ]
Jiří Štefek commented on ARQGRA-309:
------------------------------------
Updated the description.
Sorry for the late response.
[~lfryc] you mean accessing protected field tree without a getter? I`ve tried this, but with the same result.
> nested list of page fragments in page fragment is wrongly initialized within TestNG's @BeforeMethod method
> ----------------------------------------------------------------------------------------------------------
>
> Key: ARQGRA-309
> URL: https://issues.jboss.org/browse/ARQGRA-309
> Project: Arquillian Graphene
> Issue Type: Bug
> Environment: graphene webdriver 2.0.0.Beta1-SNAPSHOT
> Reporter: Jiří Štefek
> Assignee: Juraj Húska
> Priority: Critical
> Fix For: 2.0-Tracking
>
>
> Stack trace:
> {code}
> org.jboss.arquillian.graphene.enricher.exception.PageFragmentInitializationException: java.lang.IllegalStateException: Drone Context must not be null
> at org.jboss.arquillian.graphene.enricher.PageFragmentEnricher.createPageFragment(PageFragmentEnricher.java:171)
> at org.jboss.arquillian.graphene.enricher.PageFragmentEnricher$1.getTarget(PageFragmentEnricher.java:123)
> at org.jboss.arquillian.graphene.proxy.GrapheneProxyHandler.getTarget(GrapheneProxyHandler.java:149)
> at org.jboss.arquillian.graphene.proxy.GrapheneContextualHandler$1.getTarget(GrapheneContextualHandler.java:186)
> at org.jboss.arquillian.graphene.proxy.GrapheneContextualHandler$1.invoke(GrapheneContextualHandler.java:159)
> at org.jboss.arquillian.graphene.proxy.GrapheneContextualHandler$2.call(GrapheneContextualHandler.java:209)
> at org.jboss.arquillian.graphene.context.BrowserActions.performAction(BrowserActions.java:62)
> at org.jboss.arquillian.graphene.proxy.GrapheneContextualHandler.invoke(GrapheneContextualHandler.java:205)
> at com.sun.proxy.$Proxy37.iterator(Unknown Source)
> at java.util.Collections$UnmodifiableCollection$1.<init>(Collections.java:1064)
> at java.util.Collections$UnmodifiableCollection.iterator(Collections.java:1063)
> at org.richfaces.tests.page.fragments.impl.tree.RichFacesTree$AdvancedTreeInteractionsImpl.getNodesCollapsed(RichFacesTree.java:131)
> at org.richfaces.tests.metamer.ftest.richTree.TestTreeToggling.checkInitialState(TestTreeToggling.java:57)
> Caused by: java.lang.IllegalStateException: Drone Context must not be null
> at org.jboss.arquillian.drone.impl.Validate.stateNotNull(Validate.java:29)
> at org.jboss.arquillian.drone.impl.DroneTestEnricher.getDroneInstance(DroneTestEnricher.java:103)
> at org.jboss.arquillian.drone.impl.DroneTestEnricher.enrich(DroneTestEnricher.java:72)
> at org.jboss.arquillian.graphene.enricher.AbstractSearchContextEnricher.enrichRecursively(AbstractSearchContextEnricher.java:70)
> at org.jboss.arquillian.graphene.enricher.PageFragmentEnricher.createPageFragment(PageFragmentEnricher.java:156)
> ... 48 more
> {code}
> Fails, when [this|https://github.com/richfaces/richfaces-qa/blob/master/metamer/ftest/...] method (_checkInitialState_) is annotated with @BeforeMethod.
--
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, 2 months
[JBoss JIRA] (ARQGRA-309) nested list of page fragments in page fragment is wrongly initialized within TestNG's @BeforeMethod method
by Jiří Štefek (JIRA)
[ https://issues.jboss.org/browse/ARQGRA-309?page=com.atlassian.jira.plugin... ]
Jiří Štefek updated ARQGRA-309:
-------------------------------
Description:
Stack trace:
{code}
org.jboss.arquillian.graphene.enricher.exception.PageFragmentInitializationException: java.lang.IllegalStateException: Drone Context must not be null
at org.jboss.arquillian.graphene.enricher.PageFragmentEnricher.createPageFragment(PageFragmentEnricher.java:171)
at org.jboss.arquillian.graphene.enricher.PageFragmentEnricher$1.getTarget(PageFragmentEnricher.java:123)
at org.jboss.arquillian.graphene.proxy.GrapheneProxyHandler.getTarget(GrapheneProxyHandler.java:149)
at org.jboss.arquillian.graphene.proxy.GrapheneContextualHandler$1.getTarget(GrapheneContextualHandler.java:186)
at org.jboss.arquillian.graphene.proxy.GrapheneContextualHandler$1.invoke(GrapheneContextualHandler.java:159)
at org.jboss.arquillian.graphene.proxy.GrapheneContextualHandler$2.call(GrapheneContextualHandler.java:209)
at org.jboss.arquillian.graphene.context.BrowserActions.performAction(BrowserActions.java:62)
at org.jboss.arquillian.graphene.proxy.GrapheneContextualHandler.invoke(GrapheneContextualHandler.java:205)
at com.sun.proxy.$Proxy37.iterator(Unknown Source)
at java.util.Collections$UnmodifiableCollection$1.<init>(Collections.java:1064)
at java.util.Collections$UnmodifiableCollection.iterator(Collections.java:1063)
at org.richfaces.tests.page.fragments.impl.tree.RichFacesTree$AdvancedTreeInteractionsImpl.getNodesCollapsed(RichFacesTree.java:131)
at org.richfaces.tests.metamer.ftest.richTree.TestTreeToggling.checkInitialState(TestTreeToggling.java:57)
Caused by: java.lang.IllegalStateException: Drone Context must not be null
at org.jboss.arquillian.drone.impl.Validate.stateNotNull(Validate.java:29)
at org.jboss.arquillian.drone.impl.DroneTestEnricher.getDroneInstance(DroneTestEnricher.java:103)
at org.jboss.arquillian.drone.impl.DroneTestEnricher.enrich(DroneTestEnricher.java:72)
at org.jboss.arquillian.graphene.enricher.AbstractSearchContextEnricher.enrichRecursively(AbstractSearchContextEnricher.java:70)
at org.jboss.arquillian.graphene.enricher.PageFragmentEnricher.createPageFragment(PageFragmentEnricher.java:156)
... 48 more
{code}
Fails, when [this|https://github.com/richfaces/richfaces-qa/blob/master/metamer/ftest/...] method (_checkInitialState_) is annotated with @BeforeMethod.
was:
Stack trace in:
https://jenkins.mw.lab.eng.bos.redhat.com/hudson/view/RichFaces/view/5.0/...
Fails on line:
https://github.com/richfaces/richfaces-qa/blob/master/metamer/ftest/src/t...
> nested list of page fragments in page fragment is wrongly initialized within TestNG's @BeforeMethod method
> ----------------------------------------------------------------------------------------------------------
>
> Key: ARQGRA-309
> URL: https://issues.jboss.org/browse/ARQGRA-309
> Project: Arquillian Graphene
> Issue Type: Bug
> Environment: graphene webdriver 2.0.0.Beta1-SNAPSHOT
> Reporter: Jiří Štefek
> Assignee: Juraj Húska
> Priority: Critical
> Fix For: 2.0-Tracking
>
>
> Stack trace:
> {code}
> org.jboss.arquillian.graphene.enricher.exception.PageFragmentInitializationException: java.lang.IllegalStateException: Drone Context must not be null
> at org.jboss.arquillian.graphene.enricher.PageFragmentEnricher.createPageFragment(PageFragmentEnricher.java:171)
> at org.jboss.arquillian.graphene.enricher.PageFragmentEnricher$1.getTarget(PageFragmentEnricher.java:123)
> at org.jboss.arquillian.graphene.proxy.GrapheneProxyHandler.getTarget(GrapheneProxyHandler.java:149)
> at org.jboss.arquillian.graphene.proxy.GrapheneContextualHandler$1.getTarget(GrapheneContextualHandler.java:186)
> at org.jboss.arquillian.graphene.proxy.GrapheneContextualHandler$1.invoke(GrapheneContextualHandler.java:159)
> at org.jboss.arquillian.graphene.proxy.GrapheneContextualHandler$2.call(GrapheneContextualHandler.java:209)
> at org.jboss.arquillian.graphene.context.BrowserActions.performAction(BrowserActions.java:62)
> at org.jboss.arquillian.graphene.proxy.GrapheneContextualHandler.invoke(GrapheneContextualHandler.java:205)
> at com.sun.proxy.$Proxy37.iterator(Unknown Source)
> at java.util.Collections$UnmodifiableCollection$1.<init>(Collections.java:1064)
> at java.util.Collections$UnmodifiableCollection.iterator(Collections.java:1063)
> at org.richfaces.tests.page.fragments.impl.tree.RichFacesTree$AdvancedTreeInteractionsImpl.getNodesCollapsed(RichFacesTree.java:131)
> at org.richfaces.tests.metamer.ftest.richTree.TestTreeToggling.checkInitialState(TestTreeToggling.java:57)
> Caused by: java.lang.IllegalStateException: Drone Context must not be null
> at org.jboss.arquillian.drone.impl.Validate.stateNotNull(Validate.java:29)
> at org.jboss.arquillian.drone.impl.DroneTestEnricher.getDroneInstance(DroneTestEnricher.java:103)
> at org.jboss.arquillian.drone.impl.DroneTestEnricher.enrich(DroneTestEnricher.java:72)
> at org.jboss.arquillian.graphene.enricher.AbstractSearchContextEnricher.enrichRecursively(AbstractSearchContextEnricher.java:70)
> at org.jboss.arquillian.graphene.enricher.PageFragmentEnricher.createPageFragment(PageFragmentEnricher.java:156)
> ... 48 more
> {code}
> Fails, when [this|https://github.com/richfaces/richfaces-qa/blob/master/metamer/ftest/...] method (_checkInitialState_) is annotated with @BeforeMethod.
--
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, 2 months
[JBoss JIRA] (ARQGRA-410) NPE when calling Graphene#createPageFragment inside TestNG @BeforeMethod or @AfterMethod
by Lukáš Fryč (JIRA)
[ https://issues.jboss.org/browse/ARQGRA-410?page=com.atlassian.jira.plugin... ]
Lukáš Fryč reassigned ARQGRA-410:
---------------------------------
Assignee: Juraj Húska
Juraj, could you please take a look?
> NPE when calling Graphene#createPageFragment inside TestNG @BeforeMethod or @AfterMethod
> ----------------------------------------------------------------------------------------
>
> Key: ARQGRA-410
> URL: https://issues.jboss.org/browse/ARQGRA-410
> Project: Arquillian Graphene
> Issue Type: Bug
> Affects Versions: 2.0.0.Final
> Reporter: Jiri Locker
> Assignee: Juraj Húska
> Fix For: 2.0.1.Final
>
>
> Stack trace:
> {noformat}
> org.jboss.arquillian.graphene.enricher.exception.PageFragmentInitializationException: java.lang.NullPointerException
> at org.jboss.arquillian.graphene.enricher.PageFragmentEnricher.createPageFragment(PageFragmentEnricher.java:171)
> at org.jboss.arquillian.graphene.DefaultGrapheneRuntime.createPageFragment(DefaultGrapheneRuntime.java:116)
> at org.jboss.arquillian.graphene.Graphene.createPageFragment(Graphene.java:263)
> at org.jboss.qa.brms.workbench.AbstractPerspective.<init>(AbstractPerspective.java:56)
> at org.jboss.qa.brms.workbench.HomePerspective.<init>(HomePerspective.java:12)
> at org.jboss.qa.brms.DesignerTestWrapper.login(DesignerTestWrapper.java:65)
> at org.jboss.qa.brms.dashboard.DashboardsMenuTest.init(DashboardsMenuTest.java:20)
> Caused by: java.lang.NullPointerException
> at org.jboss.arquillian.graphene.enricher.WebElementEnricher.enrich(WebElementEnricher.java:68)
> at org.jboss.arquillian.graphene.enricher.AbstractSearchContextEnricher.enrichRecursively(AbstractSearchContextEnricher.java:74)
> at org.jboss.arquillian.graphene.enricher.PageFragmentEnricher.createPageFragment(PageFragmentEnricher.java:156)
> ... 36 more
> ... Removed 30 stack frames
> {noformat}
--
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, 2 months
[JBoss JIRA] (ARQGRA-397) Add support for host (ActiveX) objects
by Lukáš Fryč (JIRA)
[ https://issues.jboss.org/browse/ARQGRA-397?page=com.atlassian.jira.plugin... ]
Lukáš Fryč updated ARQGRA-397:
------------------------------
Sprint: Graphene 2.0.1
> Add support for host (ActiveX) objects
> --------------------------------------
>
> Key: ARQGRA-397
> URL: https://issues.jboss.org/browse/ARQGRA-397
> Project: Arquillian Graphene
> Issue Type: Feature Request
> Components: core
> Affects Versions: 2.0.0.CR2
> Environment: WIn7 x64, msxml3.dll (8.110.7601.17988), msxml6.dll (6.30.7601.17988)
> IE9 (IE9 in compat mode->IE7)
> Richfaces 3.3.4 (Sarissa 0.9.9.3)
> Reporter: Petr Andreev
> Assignee: Lukáš Fryč
> Fix For: 2.0.1.Final
>
> Attachments: Graphene.Page.RequestGuard.js.patch, Graphene.xhrInterception.js.patch, IE10-ARQGRA-397.png, test_ActiveXObject.js, test_setTimeout.js
>
>
> Graphene JavaScript RequestGuard interceptors cause failure of all AJAX requests with Richfaces 3 on InternetExplorer with ActiveXObject version of XMLHttpRequest (overriden by Sarissa included in RF3). There are several issues:
> 1. While wrapping the underlying XMLHttpRequest (provided by Sarissa and being actually the ActiveXObject) the InterceptedXMLHttpRequest accesses the response fields of XHR, which is illegal for windows-host objects. I.e. responseText throws an error '#575: This method cannot be called until the send method has been called.' The solution would be to not to read the response properties in constructor of InterceptedXMLHttpRequest since at this phase it makes no sense.
> 2. The bracket- style calls (xhr['send']) on host objects lead to immediate invocation of affected functions without any parameters. Therefore it is impossible to make any reflection-like invocations or checks for existence on them (i.e. if(xhr['send']) or xhr['send'].apply(.....)). The proposed solution is to wrap the host and native objects before 'apply' calls and expand argument list, in that way avoiding failures and ugly browser detection. On the other hand, the invocation of interceptor chain could be refactored (but there could be still problems passing function pointers of host objects: needs to be checked).
> IE9 errors: "#450: Wrong number of arguments or invalid property assignment" or "#87: The parameter is incorrect."
> 3. The scoping of "this" while attaching "onreadystatchange" callback to original (host) XHR is unspecified in contrary to the case with native JS objects. That`s why the interceptors and RF components don`t get notified about completed AJAX request .The solution is simple - just use the wrappers member variable.
> 4. Overriding the "window.setTimeout" method in RequestGuard causes JS error in IE9 + IE compat mode since there are no 'apply' and 'call' functions defined on window`s host object. The solution is to borrow both functions from Function.prototype- works for native objects too.
> Test cases attached (can be ran in http://jsfiddle.net)
> Proposed patches attached.
--
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, 2 months