[arquillian-issues] [JBoss JIRA] (ARQGRA-309) nested list of page fragments in page fragment is wrongly initialized within TestNG's @BeforeMethod method

Jiří Štefek (JIRA) jira-events at lists.jboss.org
Tue Nov 12 06:54:06 EST 2013


     [ https://issues.jboss.org/browse/ARQGRA-309?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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/src/test/java/org/richfaces/tests/metamer/ftest/richTree/TestTreeToggling.java#L55] method (_checkInitialState_) is annotated with @BeforeMethod.

  was:
Stack trace in:
https://jenkins.mw.lab.eng.bos.redhat.com/hudson/view/RichFaces/view/5.0/job/richfaces-5.0-metamer--server-compatibility-trees/CONTAINER=jbossas-managed-7-1,jdk=java17_default,label=RHEL6/12/testReport/junit/org.richfaces.tests.metamer.ftest.richTree/TestTreeToggling/verifyInitialState/

Fails on line:
https://github.com/richfaces/richfaces-qa/blob/master/metamer/ftest/src/test/java/org/richfaces/tests/metamer/ftest/richTree/TestTreeToggling.java#L62


    
> 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/src/test/java/org/richfaces/tests/metamer/ftest/richTree/TestTreeToggling.java#L55] 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



More information about the arquillian-issues mailing list