0 Replies Latest reply on Jun 20, 2012 1:51 PM by Michel Werren

    Seam-catch doesn't works together with Errai CDI

    Michel Werren Novice

      Hi together

       

      When i try to handle exceptions they are thrown during a by Errai invoked CDI Event (common client to cerver call and on the server an exception is thrown), the @HandlesExceptions @Handles annotated class / method will not be invoked.

       

      What is interesting in my opinion is the stacktrace. Because the request pass the org.jboss.solder.servlet.exception.CatchExceptionFilter.

       

      Any ideas why this doesn't works? I use Solder 3.1.0.Final

       

      Greez Michel

       

      19:45:40,690 ERROR [stderr] (http--127.0.0.1-8081-2) java.lang.RuntimeException: no marshaller available for: javax.enterprise.event.ObserverException

      19:45:40,691 ERROR [stderr] (http--127.0.0.1-8081-2)           at org.jboss.errai.marshalling.server.EncodingSession.getMarshallerInstance(EncodingSession.java:60)

      19:45:40,692 ERROR [stderr] (http--127.0.0.1-8081-2)           at org.jboss.errai.marshalling.client.marshallers.ErraiProtocolEnvelopeMarshaller.marshall(ErraiProtocolEnvelopeMarshaller.java:96)

      19:45:40,693 ERROR [stderr] (http--127.0.0.1-8081-2)           at org.jboss.errai.marshalling.client.protocols.ErraiProtocol.encodePayload(ErraiProtocol.java:40)

      19:45:40,694 ERROR [stderr] (http--127.0.0.1-8081-2)           at org.jboss.errai.marshalling.server.protocol.ErraiProtocolServer.encodePayloadToByteArrayInputStream(ErraiProtocolServer.java:31)

      19:45:40,695 ERROR [stderr] (http--127.0.0.1-8081-2)           at org.jboss.errai.bus.server.io.BufferHelper.encodeAndWrite(BufferHelper.java:72)

      19:45:40,696 ERROR [stderr] (http--127.0.0.1-8081-2)           at org.jboss.errai.bus.server.MessageQueueImpl.offer(MessageQueueImpl.java:187)

      19:45:40,697 ERROR [stderr] (http--127.0.0.1-8081-2)           at org.jboss.errai.bus.server.ServerMessageBusImpl.enqueueForDelivery(ServerMessageBusImpl.java:737)

      19:45:40,698 ERROR [stderr] (http--127.0.0.1-8081-2)           at org.jboss.errai.bus.server.ServerMessageBusImpl.send(ServerMessageBusImpl.java:726)

      19:45:40,699 ERROR [stderr] (http--127.0.0.1-8081-2)           at org.jboss.errai.bus.server.ServerMessageBusImpl.send(ServerMessageBusImpl.java:677)

      19:45:40,700 ERROR [stderr] (http--127.0.0.1-8081-2)           at org.jboss.errai.bus.client.api.base.ConversationMessageWrapper.sendNowWith(ConversationMessageWrapper.java:182)

      19:45:40,701 ERROR [stderr] (http--127.0.0.1-8081-2)           at org.jboss.errai.bus.client.api.base.DefaultMessageBuilder$1.sendNowWith(DefaultMessageBuilder.java:78)

      19:45:40,702 ERROR [stderr] (http--127.0.0.1-8081-2)           at org.jboss.errai.bus.client.util.ErrorHelper.sendClientError(ErrorHelper.java:107)

      19:45:40,703 ERROR [stderr] (http--127.0.0.1-8081-2)           at org.jboss.errai.bus.client.util.ErrorHelper.sendClientError(ErrorHelper.java:77)

      19:45:40,704 ERROR [stderr] (http--127.0.0.1-8081-2)           at org.jboss.errai.bus.client.util.ErrorHelper.handleMessageDeliveryFailure(ErrorHelper.java:170)

      19:45:40,705 ERROR [stderr] (http--127.0.0.1-8081-2)           at org.jboss.errai.bus.server.SimpleDispatcher.dispatchGlobal(SimpleDispatcher.java:53)

      19:45:40,706 ERROR [stderr] (http--127.0.0.1-8081-2)           at org.jboss.errai.bus.server.service.ErraiServiceImpl.store(ErraiServiceImpl.java:94)

      19:45:40,707 ERROR [stderr] (http--127.0.0.1-8081-2)           at org.jboss.errai.bus.server.service.ErraiServiceImpl.store(ErraiServiceImpl.java:108)

      19:45:40,708 ERROR [stderr] (http--127.0.0.1-8081-2)           at org.jboss.errai.bus.server.servlet.DefaultBlockingServlet.doPost(DefaultBlockingServlet.java:117)

      19:45:40,709 ERROR [stderr] (http--127.0.0.1-8081-2)           at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)

      19:45:40,710 ERROR [stderr] (http--127.0.0.1-8081-2)           at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

      19:45:40,711 ERROR [stderr] (http--127.0.0.1-8081-2)           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)

      19:45:40,712 ERROR [stderr] (http--127.0.0.1-8081-2)           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

      19:45:40,713 ERROR [stderr] (http--127.0.0.1-8081-2)           at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:62)

      19:45:40,714 ERROR [stderr] (http--127.0.0.1-8081-2)           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)

      19:45:40,715 ERROR [stderr] (http--127.0.0.1-8081-2)           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

      19:45:40,715 ERROR [stderr] (http--127.0.0.1-8081-2)           at org.jboss.solder.servlet.exception.CatchExceptionFilter.doFilter(CatchExceptionFilter.java:65)

      19:45:40,716 ERROR [stderr] (http--127.0.0.1-8081-2)           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)

      19:45:40,718 ERROR [stderr] (http--127.0.0.1-8081-2)           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

      19:45:40,721 ERROR [stderr] (http--127.0.0.1-8081-2)           at org.jboss.solder.servlet.event.ServletEventBridgeFilter.doFilter(ServletEventBridgeFilter.java:74)

      19:45:40,722 ERROR [stderr] (http--127.0.0.1-8081-2)           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)

      19:45:40,723 ERROR [stderr] (http--127.0.0.1-8081-2)           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

      19:45:40,724 ERROR [stderr] (http--127.0.0.1-8081-2)           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)

      19:45:40,727 ERROR [stderr] (http--127.0.0.1-8081-2)           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)

      19:45:40,728 ERROR [stderr] (http--127.0.0.1-8081-2)           at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50)

      19:45:40,729 ERROR [stderr] (http--127.0.0.1-8081-2)           at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)

      19:45:40,730 ERROR [stderr] (http--127.0.0.1-8081-2)           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)

      19:45:40,733 ERROR [stderr] (http--127.0.0.1-8081-2)           at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

      19:45:40,734 ERROR [stderr] (http--127.0.0.1-8081-2)           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

      19:45:40,734 ERROR [stderr] (http--127.0.0.1-8081-2)           at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)

      19:45:40,735 ERROR [stderr] (http--127.0.0.1-8081-2)           at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)

      19:45:40,736 ERROR [stderr] (http--127.0.0.1-8081-2)           at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)

      19:45:40,737 ERROR [stderr] (http--127.0.0.1-8081-2)           at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)

      19:45:40,738 ERROR [stderr] (http--127.0.0.1-8081-2)           at java.lang.Thread.run(Thread.java:662)