[arquillian-issues] [JBoss JIRA] (ARQ-1365) Warp: CommandEventBus doesn't support (port) redirects

Oliver Bock (JIRA) jira-events at lists.jboss.org
Thu Apr 4 16:30:42 EDT 2013


    [ https://issues.jboss.org/browse/ARQ-1365?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12765107#comment-12765107 ] 

Oliver Bock edited comment on ARQ-1365 at 4/4/13 4:28 PM:
----------------------------------------------------------

Hi guys, thanks for looking into this so quickly.

I tested snapshot {{1.0.0.Beta1-20130404.130631-118}} and it seems that the test now indeed survives the port redirect. However, I could only infer that result as the test now runs into a SSL-related exception. Please note: this exception is also thrown for client-side tests that previously worked with {{1.0.0.Alpha2}}, so this can still be considered a regression. I'll attach the Arquillian/VM debug log interleaved with the exception details (assuming they're time-correlated).
                
      was (Author: brevilo):
    Hi guys, thanks for looking into this so quickly.

I tested snapshot 1.0.0.Beta1-20130404.130631-118 and it seems that the test now indeed survives the port redirect. However, I could only infer that result as the test now runs into a SSL-related exception. Please note: this exception is also thrown for client-side tests that previously worked with 1.0.0.Alpha2, so this can still be considered a regression. I'll attach the Arquillian/VM debug log interleaved with the exception details (assuming they're time-correlated).
                  
> Warp: CommandEventBus doesn't support (port) redirects
> ------------------------------------------------------
>
>                 Key: ARQ-1365
>                 URL: https://issues.jboss.org/browse/ARQ-1365
>             Project: Arquillian
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Extension - Warp
>    Affects Versions: warp_1.0.0.Beta1
>            Reporter: Oliver Bock
>            Assignee: Aris Tzoumas
>              Labels: redirect, ssl, warp
>             Fix For: warp_1.0.0.Alpha3
>
>         Attachments: ARQ-1365_1.txt
>
>
> When JBosss AS 7 is configured to redirect HTTP (port 8888) to HTTPS (8889) in standalone.xml (web subsystem) using:
> {noformat}
>             <connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http" redirect-port="8889"/>
>             <connector name="https" protocol="HTTP/1.1" scheme="https" socket-binding="https" secure="true">
>                 <ssl password="[Your_password_here]" session-timeout="900"/>
>             </connector>
> {noformat}
> All Warp tests (client- and server-side) fail like this when using 1.0.0.Beta1-SNAPSHOT (client-side tests do work with 1.0.0.Alpha2):
> {noformat}
> java.lang.IllegalStateException: Error launching test at http://0.0.0.0:8888/test/CommandEventBus?className=TestClass&methodName=testStuff&operationMode=GET. Got 302 (Moved Temporarily)
>           at org.jboss.arquillian.warp.impl.client.eventbus.CommandEventBus.execute(CommandEventBus.java:266)
>           at org.jboss.arquillian.warp.impl.client.eventbus.CommandEventBus.access$100(CommandEventBus.java:67)
>           at org.jboss.arquillian.warp.impl.client.eventbus.CommandEventBus$2.run(CommandEventBus.java:147)
>           at java.util.TimerThread.mainLoop(Timer.java:555)
>           at java.util.TimerThread.run(Timer.java:505)
> or
> java.lang.IllegalStateException: Error launching test at http://0.0.0.0:8888/test/CommandEventBus?className=TestClass&methodName=testStuff&operationMode=PUT. Got 302 (Moved Temporarily)
>           at org.jboss.arquillian.warp.impl.client.eventbus.CommandEventBus.execute(CommandEventBus.java:266)
>           at org.jboss.arquillian.warp.impl.client.eventbus.CommandEventBus.executeCommandRemotely(CommandEventBus.java:194)
>           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.core.impl.ManagerImpl.fire(ManagerImpl.java:135)
>           at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:115)
>           at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)
>           at org.jboss.arquillian.warp.impl.client.eventbus.RemoteSuiteLifecyclePropagation.sendBefore(RemoteSuiteLifecyclePropagation.java:51)
>           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)
> {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


More information about the arquillian-issues mailing list