[JBoss JIRA] (AS7-3521) @ArquillianResource ManagementClient injection does not work in 'manual' container mode
by Ivo Studensky (JIRA)
Ivo Studensky created AS7-3521:
----------------------------------
Summary: @ArquillianResource ManagementClient injection does not work in 'manual' container mode
Key: AS7-3521
URL: https://issues.jboss.org/browse/AS7-3521
Project: Application Server 7
Issue Type: Bug
Components: Test Suite
Reporter: Ivo Studensky
Assignee: Andrew Rubinger
Priority: Critical
Fix For: 7.1.1.Final
ManagementClient cannot be injected by @ArquillianResource annotation if the test runs in the manual container mode, i.e. if the test itself controls start/stop actions on the container. In such case the injection fails with ' java.lang.RuntimeException: Could not lookup value for field private org.jboss.as.arquillian.container.ManagementClient'.
See the snippet of output log:
{noformat}
java.lang.RuntimeException: Could not lookup value for field private static org.jboss.as.arquillian.container.ManagementClient org.jboss.jbossts.txbridge.tests.inbound.junit.BasicTests.managementClient
at org.jboss.arquillian.test.impl.enricher.resource.ArquillianResourceTestEnricher.enrich(ArquillianResourceTestEnricher.java:61)
at org.jboss.arquillian.test.impl.TestInstanceEnricher.enrich(TestInstanceEnricher.java:52)
at org.jboss.arquillian.container.test.impl.ClientTestInstanceEnricher.enrich(ClientTestInstanceEnricher.java:51)
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.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90)
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.container.test.impl.client.ContainerEventController.createContext(ContainerEventController.java:142)
at org.jboss.arquillian.container.test.impl.client.ContainerEventController.createBeforeContext(ContainerEventController.java:124)
.
.
.
Caused by: java.lang.RuntimeException: Provider for type class org.jboss.as.arquillian.container.ManagementClient returned a null value: org.jboss.as.arquillian.container.ManagementClientProvider@3d47358f
at org.jboss.arquillian.test.impl.enricher.resource.ArquillianResourceTestEnricher.lookup(ArquillianResourceTestEnricher.java:115)
at org.jboss.arquillian.test.impl.enricher.resource.ArquillianResourceTestEnricher.enrich(ArquillianResourceTestEnricher.java:57)
... 71 more
{noformat}
I've isolated a test-case for this issue into my private branch on github, see:
https://github.com/istudens/jboss-as/compare/inject_mgmt_client
Steps to reproduce the issue:
1. git clone git@github.com:istudens/jboss-as.git
2. cd jboss-as
3. git checkout inject_mgmt_client
4. ./build.sh clean install -Dts.noSmoke -DskipTests
5. cd testsuite/integration/manual
6. mvn clean install
This issue is related to AS7-1415.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 2 months
[JBoss JIRA] (AS7-3783) -Dipv6 should modify localhost to localhost6 everywhere too
by Pavel Janousek (JIRA)
[ https://issues.jboss.org/browse/AS7-3783?page=com.atlassian.jira.plugin.s... ]
Pavel Janousek moved JBPAPP-8133 to AS7-3783:
---------------------------------------------
Project: Application Server 7 (was: JBoss Enterprise Application Platform)
Key: AS7-3783 (was: JBPAPP-8133)
Workflow: GIT Pull Request workflow (was: jira)
Affects Version/s: 7.1.0.Final
(was: EAP 6.0.0 DR 13)
Component/s: Test Suite
(was: Testsuite)
Security: (was: JBoss Internal)
Docs QE Status: (was: NEW)
> -Dipv6 should modify localhost to localhost6 everywhere too
> -----------------------------------------------------------
>
> Key: AS7-3783
> URL: https://issues.jboss.org/browse/AS7-3783
> Project: Application Server 7
> Issue Type: Bug
> Components: Test Suite
> Affects Versions: 7.1.0.Final
> Reporter: Pavel Janousek
> Assignee: Shelly McGowan
> Priority: Critical
>
> Common installed Linux box has associated host name alias *localhost* to *127.0.0.1* and *localhost6* to *::1*. When we specify -Dipv6 in maven invocation, we also might expect doing appropriate changes in configurations etc.
> But everywhere isn't user IP address as number (127.0.0.1) and even we specify -D$node0=<something elese than 127.0.0.1>, some pieces of configs are still associated with *localhost*.
> In this case almost everything is associated to $node0 value, but something is still associated to localhost. This is very bad especially in case of IPv6 testing, because $node0 contains some IPv6 IP address (number either alias name format) but some elements are bound to localhost (which is resolved as 127.0.0.1 usually).
> I prefer to incorporate this behavior inside testsuite in case when mven is invoked with -Dipv6 option.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 2 months
[JBoss JIRA] (AS7-3782) Incomplete IP addresses substitution in server configs via XSLT file changeIPAddresses.xsl
by Pavel Janousek (JIRA)
[ https://issues.jboss.org/browse/AS7-3782?page=com.atlassian.jira.plugin.s... ]
Pavel Janousek moved JBPAPP-8131 to AS7-3782:
---------------------------------------------
Project: Application Server 7 (was: JBoss Enterprise Application Platform)
Key: AS7-3782 (was: JBPAPP-8131)
Workflow: GIT Pull Request workflow (was: jira)
Affects Version/s: 7.1.0.Final
(was: EAP 6.0.0 DR 13)
Component/s: Test Suite
(was: Testsuite)
Security: (was: JBoss Internal)
Docs QE Status: (was: NEW)
> Incomplete IP addresses substitution in server configs via XSLT file changeIPAddresses.xsl
> ------------------------------------------------------------------------------------------
>
> Key: AS7-3782
> URL: https://issues.jboss.org/browse/AS7-3782
> Project: Application Server 7
> Issue Type: Bug
> Components: Test Suite
> Affects Versions: 7.1.0.Final
> Reporter: Pavel Janousek
> Assignee: Ondrej Zizka
> Priority: Blocker
>
> When you specify *$node0* variable, you might expect appropriate changes in standalone*.xml config files. But there are several unmodified places, where "hard-coded" value *127.0.0.1* is used yet.
> - This element exists in every config:
> {code:xml}
> <wsdl-host>${jboss.bind.address:127.0.0.1}</wsdl-host>
> {code}
> - This element exists in every *-full.xml config:
> {code:xml}
> <interface name="unsecure">
> <!-- Used for IIOP sockets in the standarad configuration.
> To secure JacORB you need to setup SSL -->
> <inet-address value="127.0.0.1"/>
> </interface>
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 2 months