[JBoss JIRA] (WELD-1037) IllegalStateException when redirecting from system event in JSF managed bean

IllegalStateException when redirecting from system event in JSF managed bean
----------------------------------------------------------------------------

                 Key: WELD-1037
                 URL: https://issues.jboss.org/browse/WELD-1037
             Project: Weld
          Issue Type: Bug
          Components: Web Tier integration (JSF, JSP, EL and Servlet) 
    Affects Versions: 1.1.2.Final
         Environment: JBoss AS7
            Reporter: Kristof Vanbecelaere

I have a view with a system event like so

<f:metadata>
   <f:event type="preRenderView" listener="#{fileUploadBean.checkAccessToken}" />
</f:metadata>

the listener is just a faces managed bean and performs a redirect using FacesContext.getCurrentInstance().getExternalContext().redirect(...);
This leads to an exception. When I disable Weld by removing the empty beans.xml file the redirect works fine.

java.lang.IllegalStateException
	org.apache.catalina.connector.ResponseFacade.sendRedirect(ResponseFacade.java:436)
	javax.servlet.http.HttpServletResponseWrapper.sendRedirect(HttpServletResponseWrapper.java:170)
	org.jboss.weld.servlet.ConversationPropagationFilter$1.sendRedirect(ConversationPropagationFilter.java:90)
	com.sun.faces.context.ExternalContextImpl.redirect(ExternalContextImpl.java:576)
	org.dirtybxl.upload.FileUploadBean.redirectToAuthenticationEntrypoint(FileUploadBean.java:105)
	org.dirtybxl.upload.FileUploadBean.checkAccessToken(FileUploadBean.java:87)
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
(Continue reading)

[JBoss JIRA] (CDITCK-259) Implement tests for CDI-52

Implement tests for CDI-52
--------------------------

                 Key: CDITCK-259
                 URL: https://issues.jboss.org/browse/CDITCK-259
             Project: CDI TCK
          Issue Type: Feature Request
      Security Level: Public (Everyone can see)
            Reporter: Martin Kouba
            Assignee: Martin Kouba

--
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

[JBoss JIRA] (CDITCK-259) Implement tests for CDI-52


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

Martin Kouba commented on CDITCK-259:
-------------------------------------

1.1.EDR1 part done.

> Implement tests for CDI-52
> --------------------------
>
>                 Key: CDITCK-259
>                 URL: https://issues.jboss.org/browse/CDITCK-259
>             Project: CDI TCK
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>            Reporter: Martin Kouba
>            Assignee: Martin Kouba
>

--
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

[JBoss JIRA] (CDITCK-248) Implement tests for CDI-132


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

Martin Kouba commented on CDITCK-248:
-------------------------------------

1.1.EDR1 part done.

> Implement tests for CDI-132
> ---------------------------
>
>                 Key: CDITCK-248
>                 URL: https://issues.jboss.org/browse/CDITCK-248
>             Project: CDI TCK
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>            Reporter: Martin Kouba
>            Assignee: Martin Kouba
>             Fix For: 1.1.0.CR1
>
>
> See CDI-132 for more details.

--
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
(Continue reading)

[JBoss JIRA] (CDITCK-257) <at> MessageDriven bean Interceptor tests


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

Martin Kouba edited comment on CDITCK-257 at 1/2/12 10:01 AM:
--------------------------------------------------------------

TCK test: *org.jboss.jsr299.tck.tests.interceptors.definition.enterprise.jms.MessageDrivenBeanInterceptorInvocationTest*

https://github.com/jboss/cdi-tck/commit/a70ca618740ced2999e144afc4a07b883465acfe

      was (Author: mkouba):
    TCK test: *org.jboss.jsr299.tck.tests.interceptors.definition.enterprise.jms.MessageDrivenBeanInterceptorInvocationTest*

https://github.com/mkouba/cdi-tck/commit/a70ca618740ced2999e144afc4a07b883465acfe

>  <at> MessageDriven bean Interceptor tests
> -------------------------------------
>
>                 Key: CDITCK-257
>                 URL: https://issues.jboss.org/browse/CDITCK-257
>             Project: CDI TCK
>          Issue Type: Sub-task
>      Security Level: Public(Everyone can see) 
>          Components: Tests
>            Reporter: David Blevins
>            Assignee: Martin Kouba
>             Fix For: 1.1.0.CR1
>
(Continue reading)

[JBoss JIRA] (CDITCK-257) <at> MessageDriven bean Interceptor tests


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

Martin Kouba resolved CDITCK-257.
---------------------------------

         Assignee: Martin Kouba
    Fix Version/s: 1.1.0.CR1
       Resolution: Done

TCK test: *org.jboss.jsr299.tck.tests.interceptors.definition.enterprise.jms.MessageDrivenBeanInterceptorInvocationTest*

https://github.com/mkouba/cdi-tck/commit/a70ca618740ced2999e144afc4a07b883465acfe

>  <at> MessageDriven bean Interceptor tests
> -------------------------------------
>
>                 Key: CDITCK-257
>                 URL: https://issues.jboss.org/browse/CDITCK-257
>             Project: CDI TCK
>          Issue Type: Sub-task
>      Security Level: Public(Everyone can see) 
>          Components: Tests
>            Reporter: David Blevins
>            Assignee: Martin Kouba
>             Fix For: 1.1.0.CR1
>
>
> v1.0 s7.2 Container invocations and interception
(Continue reading)

[JBoss JIRA] (CDITCK-253) Coverage for MessageDriven Beans


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

Martin Kouba resolved CDITCK-253.
---------------------------------

    Fix Version/s: 1.1.0.CR1
       Resolution: Done

    
> Coverage for MessageDriven Beans
> --------------------------------
>
>                 Key: CDITCK-253
>                 URL: https://issues.jboss.org/browse/CDITCK-253
>             Project: CDI TCK
>          Issue Type: Task
>      Security Level: Public(Everyone can see) 
>          Components: Tests
>            Reporter: David Blevins
>            Assignee: Martin Kouba
>            Priority: Critical
>             Fix For: 1.1.0.CR1
>
>
> There should be some tests for MessageDriven

--
This message is automatically generated by JIRA.
(Continue reading)

[JBoss JIRA] (WELD-1038) Invocations of message listener methods of message-driven beans are not intercepted

Invocations of message listener methods of message-driven beans are not intercepted
-----------------------------------------------------------------------------------

                 Key: WELD-1038
                 URL: https://issues.jboss.org/browse/WELD-1038
             Project: Weld
          Issue Type: Bug
            Reporter: Martin Kouba

See chapters "7.2. Container invocations and interception" and "9. Interceptor bindings".

TCK 1.1 test: *org.jboss.jsr299.tck.tests.interceptors.definition.enterprise.jms.MessageDrivenBeanInterceptorInvocationTest.testMessageDrivenBeanMethodIntercepted()*

--
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

[JBoss JIRA] (CDITCK-248) Implement tests for CDI-132


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

Martin Kouba commented on CDITCK-248:
-------------------------------------

https://github.com/jboss/cdi-tck/commit/25879d40a97ad659a7553201903a0d91247b0f59

> Implement tests for CDI-132
> ---------------------------
>
>                 Key: CDITCK-248
>                 URL: https://issues.jboss.org/browse/CDITCK-248
>             Project: CDI TCK
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>            Reporter: Martin Kouba
>            Assignee: Martin Kouba
>             Fix For: 1.1.0.CR1
>
>
> See CDI-132 for more details.

--
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
(Continue reading)

[JBoss JIRA] (WELD-1039) Annotated that represents a type should also return annotations on it's supertype regardless of whether the annotation is marked <at> Inherited

Annotated that represents a type should also return annotations on it's supertype regardless of whether
the annotation is marked  <at> Inherited
-------------------------------------------------------------------------------------------------------------------------------------------

                 Key: WELD-1039
                 URL: https://issues.jboss.org/browse/WELD-1039
             Project: Weld
          Issue Type: Bug
    Affects Versions: 2.0.0.Alpha1
            Reporter: Martin Kouba

CDI 1.1 (chapter 11.4. Alternative metadata sources) states: "If the Annotated represents a type, then
the annotations returned should include all annotations on the type and it's supertypes regardless of
whether the annotation is marked  <at> Inherited."

See TCK test: *org.jboss.jsr299.tck.tests.extensions.annotated.AlternativeMetaDataTest.testGetAnnotations()*

--
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

Gmane