8 Replies Latest reply on Feb 20, 2009 11:17 PM by jaikiran

    Couldn't handle invocation directly within...StatelessRemote

    ebross

      Development Platform:
      Eclipse
      Linux
      JBoss 5
      JSF and Trinadad

      Problem Description:
      I have two classes:
      (a) Stateless bean: DocumentController, packaged in a ejb.jar
      (b) JSF Backing beans: AbstractDocumentPageBean, package: web.war

      1. The ejb.jar and web.war are ear modules and deployed succesfully in ear file.
      2. When a web page is called, a form appears,
      3. I fill the fields and click the "create" button
      4. Validation is ok --no error display
      5. JBoss displays the stack trace (see below), "Couldn't handle invocation directly within...StatelessRemoteProxyInvocationHandler"

      Could someone please help me understand what "Couldn't handle invocation directly within...StatelessRemoteProxyInvocationHandler" means

      Thank you in advance

      ----------------------------------------------------------------------------------------------------
       Stateless: DocumentController, Package: ejb.jar
      ----------------------------------------------------------------------------------------------------
      @javax.ejb.Stateless(mappedName="ejb/DocumentController")
      @javax.ejb.Remote({com.xxxxxxxx.xxxx.ejb.intf.DocumentRemote.class})
      @javax.ejb.Local({com.xxxxxxxx.xxxx.ejb.intf.DocumentLocal.class})
      @javax.ejb.TransactionManagement(value=javax.ejb.TransactionManagementType.CONTAINER)
      @javax.ejb.TransactionAttribute(javax.ejb.TransactionAttributeType.REQUIRES_NEW)
      @javax.interceptor.Interceptors ({com.xxxxxxxx.xxxx.ejb.interceptor.Tracer.class})
      
      // Security annotation
      @javax.annotation.security.DeclareRoles({"admin", "employee", "member", "subscriber"})
      @javax.annotation.security.RolesAllowed({"admin","employee", "member", "subscriber"})
      @org.jboss.ejb3.annotation.SecurityDomain(value = "xxxxRealm")
      
      public class DocumentController implements com.xxxxxxxx.xxxx.ejb.intf.DocumentRemote, com.xxxxxxxx.xxxx.ejb.intf.DocumentLocal,
      java.io.Serializable{
      
      /**
      * The logger object.
      */
      private static final org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(DocumentController.class);
      
      @javax.ejb.EJB
      private com.xxxxxxxx.xxxx.dao.intf.DocumentDAOLocal documentDAO;
      
      public DocumentController() {
      }
      
      /**
      */
      @javax.annotation.security.PermitAll
      
      public DocumentEntity createEntity(DocumentEntity bean) { <----- CALL IN BACKING BEAN
      
      log.debug("Entering createEntity");
      
      DocumentEntity retVal = null;
      if (bean== null) {
       log.error("Exiting createEntity - Could not do create Document: " + "Null Document");
       return null;
      }
      if(!bean.isNotNullFieldEmpty()){
       log.error("Exiting createEntity - Could not do create Document: " + "Document contains empty mandatory field");
       return null;
      }
      try{
      retVal = getDocumentDAOImpl().createEntity(bean);
      } catch(com.xxxxxxxx.xxxx.dao.exception.DAOException e) {
       e.printStackTrace();
       log.error("Exiting createEntity - Could not do create Document: " + e.getMessage(), e);
       return null;
      }
      log.debug("Exiting createEntity");
      return retVal;
      }
      }
      

      ----------------------------------------------------------------------------------------------------
      JSf Backing beans: AbstractDocumentPageBean, Package: web.war
      ----------------------------------------------------------------------------------------------------
      public class AbstractDocumentPageBean extends com.xxxxxxxx.xxxx.web.bean.AbstractFacesBean{
      
      /**
      * The logger object.
      */
      private static final org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(AbstractDocumentPageBean.class);
      /**
      * The DocumentForm object.
      */
      protected DocumentForm formBean = null;
      protected DocumentConverter converter = null;
      protected DocumentForm[] documentAsArray = null;
      
      protected UserInfoBean userInfo = null;
      
      private javax.faces.model.DataModel listModel;
      
      @javax.ejb.EJB
       private com.xxxxxxxx.xxxx.ejb.intf.DocumentRemote documentManager;
      
      /*
      * Non-arg Constructor
      */
      public AbstractDocumentPageBean(final DocumentForm formBean){
       this(formBean, new UserInfoBean());
      }
      
      /**
      * Getter method for formBean property.
      *
      * @return the value of formBean property
      */
      public DocumentForm getFormBean(){
       if (formBean == null) {
       formBean = (DocumentForm ) JSFUtils.getObjectFromRequestParameter("jsfcrud.Document", converter, null);
       }
       if (formBean == null) {
       formBean = new DocumentForm(new DocumentEntity(), userInfo);
       editAction = false;
       deleteAction = false;
       }
       return formBean;
      }
      
      /**
      * Getter method for FormBean.DocumentEntity property.
      *
      * Returns the value of the <code>FormBean.DocumentEntity</code> property.
      */
      public DocumentEntity getFormValue(){
       return getFormBean().getBackingData();
       }
      
      /**
      * Creates a new Document.
      *
      *@return the outcome of the processing
      */
      public String createButton_action(){
       log.debug("Entering createButton_action");
      
      UserInfoBean currentUser = getUserInfo();
      if (currentUser.getAuthenticate() == true && currentUser.getAuthenticated() == false) {
       log.error("Exiting createButton_action : " + "User is not authenticated", null);
       return null;
      }
      /*
      * At this point the formBean should not have an id
      * but if it does, then don't create it, but anyway check
      * whether the id already exist or not. If it does then
      * display as duplicate --already exist in the database
      */
      if(getFormValue().getPrimaryKey() != null){
      DocumentEntity retVal = getDocumentManager().findByPrimaryKey(getFormValue().getPrimaryKey());
      if(retVal != null){
       log.error("Exiting createButton_action : " + "Cannot create a duplicate.", null);
       addFacesErrorMessage("Document already exists");
       return null;
      }
      }
      DocumentEntity bean= new DocumentEntity();
      bean.setDomainType(getFormValue().getDomainType());
      bean.setDescription(getFormValue().getDescription());
      bean.setCreatedBy(getFormValue().getCreatedBy());
      bean.setDateCreated(getFormValue().getDateCreated());
      bean.setUpdatedBy(getFormValue().getUpdatedBy());
      bean.setDateLastUpdated(getFormValue().getDateLastUpdated());
      bean.setActivated(getFormValue().getActivated());
      bean.setNotes(getFormValue().getNotes());
      bean.setVersion(getFormValue().getVersion());
      bean.setHits(getFormValue().getHits());
      try {
      
      getDocumentManager().createEntity(bean); <---- PROBLEM LINE
      
      
      addSuccessMessage("Document was successfully created.");
      } catch (Exception e) {
       log.error("Exiting createButton_action : " + "Unexpected error when creating Document", null);
       addFacesErrorMessage("Unexpected error when creating Document");
       return null;
      }
      log.debug("Exiting createButton_action");
      return "success";
      }
      }
      
      

      ----------------------------------------------------------------------------------------------------
      Stack Trace : Couldn't handle invocation directly within...StatelessRemoteProxyInvocationHandler
      ----------------------------------------------------------------------------------------------------
      2009-02-12 17:05:23,290 DEBUG [org.jboss.ejb3.proxy.handler.ProxyInvocationHandlerBase] (http-localhost%2F127.0.0.1-8080-1) Couldn't handle invocation directly within org.jboss.ejb3.proxy.handler.session.stateless.StatelessRemoteProxyInvocationHandler@3ce5d: Current invocation "public abstract com.xxxxxxxx.xxxx.entity.model.DocumentEntity com.xxxxxxxx.xxxx.ejb.intf.DocumentService.createEntity(com.xxxxxxxx.xxxx.entity.model.DocumentEntity) throws com.xxxxxxxx.xxxx.dao.exception.DAOException" is not eligible for direct handling by org.jboss.ejb3.proxy.handler.session.stateless.StatelessRemoteProxyInvocationHandler@3ce5d
      2009-02-12 17:05:23,342 DEBUG [org.jboss.ejb3.proxy.invocation.InvokableContextStatefulRemoteProxyInvocationHack] (http-localhost%2F127.0.0.1-8080-1) Received invocation request to method com.xxxxxxxx.xxxx.ejb.intf.DocumentRemote: com.xxxxxxxx.xxxx.ejb.intf.DocumentService.createEntity(com.xxxxxxxx.xxxx.entity.model.DocumentEntity); using hash: 5676740933045534775
      2009-02-12 17:05:24,247 DEBUG [org.jboss.ejb3.stateless.StatelessContainer] (http-localhost%2F127.0.0.1-8080-1) Received dynamic invocation for method with hash: 5676740933045534775
      2009-02-12 17:05:25,134 ERROR [com.xxxxxxxx.xxxx.web.bean.AbstractDocumentPageBean] (http-localhost%2F127.0.0.1-8080-1) Exiting createButton_action : Unexpected error when creating Document
      


        • 1. Re: Couldn't handle invocation directly within...StatelessRe
          jaikiran

           

          2009-02-12 17:05:23,290 DEBUG [org.jboss.ejb3.proxy.handler.ProxyInvocationHandlerBase] (http-localh
          ost%2F127.0.0.1-8080-1) Couldn't handle invocation directly within org.jboss.ejb3.proxy.handler.sess
          ion.stateless.StatelessRemoteProxyInvocationHandler@3ce5d: Current invocation "public abstract com.xxxxxxxx.xxxx.entity.model.DocumentEntity com.xxxxxxxx.xxxx.ejb.intf.DocumentSer
          vice.createEntity(com.xxxxxxxx.xxxx.entity.model.DocumentEntity) throws com.xxxxxxxx.xxxx.dao.except
          ion.DAOException" is not eligible for direct handling by org.jboss.ejb3.proxy.handler.session.stateless.StatelessRemo


          That's just a DEBUG message. What errors or exception stacktrace do you see?

          • 2. Re: Couldn't handle invocation directly within...StatelessRe
            wolfgangknauf

            H ebross,

            first of all:

            what is the implementation of method "getDocumentManager()" in your backing bean?
            I see that you inject a DocumentManager in the backing bean:

            @javax.ejb.EJB
            private com.xxxxxxxx.xxxx.ejb.intf.DocumentRemote documentManager;

            But what does "getDocumentManager()" do ;-)? Hopefully it returns just the member variable?

            The error message is about "public abstract com.xxxxxxxx.xxxx.entity.model.DocumentEntity com.xxxxxxxx.xxxx.ejb.intf.DocumentService.createEntity(com.xxxxxxxx.xxxx.entity.model.DocumentEntity)"
            What is this class "DocumentService"?

            Best regards

            Wolfgang

            • 3. Re: Couldn't handle invocation directly within...StatelessRe
              ebross

              Wow! two replies
              @jaikiran

              jaikiran, thanks for your response.

              >>That's just a DEBUG message. What errors or exception stacktrace do you see?

              You are right that they are just debug messages. The only real error (Please ignore the trinidad error, further down) is in the following line:

              2009-02-13 15:19:25,750 ERROR [com.xxxxxxxx.xxxx.web.bean.AbstractDocumentPageBean] (http-localhost%2F127.0.0.1-8080-2) Exiting createButton_action : Unexpected error when creating Document.
              

              If I may refer you back to "JSf Backing beans: AbstractDocumentPageBean, Package: web.war" above, this error is generated in the [try] catch. The issue--as I see it but you might tell me otherwise--is that "getDocumentManager().createEntity(bean)" is not accessed. If it did, I would see in the jboss log the following:

              "Entering createEntity"


              And I thought this might be related to the "Couldn't handle invocation directly within...StatelessRemoteProxyInvocationHandler" messge--I don't know.

              Thanks jaikiranfor any further suggestions.

              2009-02-13 15:19:24,264 DEBUG [org.jboss.ejb3.proxy.handler.ProxyInvocationHandlerBase] (http-localhost%2F127.0.0.1-8080-2) Couldn't handle invocation directly within org.jboss.ejb3.proxy.handler.session.stateless.StatelessRemoteProxyInvocationHandler@142cbba: Current invocation "public abstract com.xxxxxxxx.xxxx.entity.model.DocumentEntity com.xxxxxxxx.xxxx.ejb.intf.DocumentService.createEntity(com.xxxxxxxx.xxxx.entity.model.DocumentEntity) throws com.xxxxxxxx.xxxx.dao.exception.DAOException" is not eligible for direct handling by org.jboss.ejb3.proxy.handler.session.stateless.StatelessRemoteProxyInvocationHandler@142cbba
              2009-02-13 15:19:24,317 DEBUG [org.jboss.ejb3.proxy.invocation.InvokableContextStatefulRemoteProxyInvocationHack] (http-localhost%2F127.0.0.1-8080-2) Received invocation request to method com.xxxxxxxx.xxxx.ejb.intf.DocumentRemote: com.xxxxxxxx.xxxx.ejb.intf.DocumentService.createEntity(com.xxxxxxxx.xxxx.entity.model.DocumentEntity); using hash: 5676740933045534775
              2009-02-13 15:19:25,140 DEBUG [org.jboss.ejb3.stateless.StatelessContainer] (http-localhost%2F127.0.0.1-8080-2) Received dynamic invocation for method with hash: 5676740933045534775
              2009-02-13 15:19:25,750 ERROR [com.xxxxxxxx.xxxx.web.bean.AbstractDocumentPageBean] (http-localhost%2F127.0.0.1-8080-2) Exiting createButton_action : Unexpected error when creating Document
               2009-02-13 15:19:25,897 DEBUG [javax.enterprise.resource.webcontainer.jsf.context] (http-localhost%2F127.0.0.1-8080-2) Adding Message[sourceId=<<NONE>>,summary=Unexpected error when creating Document)
              2009-02-13 15:19:25,899 DEBUG [javax.enterprise.resource.webcontainer.jsf.application] (http-localhost%2F127.0.0.1-8080-2) No navigation rule found for null outcome and viewId /pages/document/new.jspx Explicitly remain on the current view
              2009-02-13 15:19:25,899 DEBUG [javax.enterprise.resource.webcontainer.jsf.lifecycle] (http-localhost%2F127.0.0.1-8080-2) Exiting InvokeApplicationsPhase
              2009-02-13 15:19:25,900 DEBUG [javax.enterprise.resource.webcontainer.jsf.timing] (http-localhost%2F127.0.0.1-8080-2) [TIMING] - [1755ms] : Execution time for phase (including any PhaseListeners) -> INVOKE_APPLICATION 5
              2009-02-13 15:19:25,901 DEBUG [javax.enterprise.resource.webcontainer.jsf.lifecycle] (http-localhost%2F127.0.0.1-8080-2) render(org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$CacheRenderKit@3b474f)
              2009-02-13 15:19:25,901 DEBUG [javax.enterprise.resource.webcontainer.jsf.lifecycle] (http-localhost%2F127.0.0.1-8080-2) Entering RenderResponsePhase
              2009-02-13 15:19:25,902 DEBUG [javax.enterprise.resource.webcontainer.jsf.lifecycle] (http-localhost%2F127.0.0.1-8080-2) About to render view /pages/document/new.jspx
              2009-02-13 15:19:25,905 ERROR [STDERR] (http-localhost%2F127.0.0.1-8080-2) Feb 13, 2009 3:19:25 PM org.apache.myfaces.trinidadinternal.skin.SkinFactoryImpl getSkin
              WARNING: Can't find a skin that matches family xxxx-skin and renderkit org.apache.myfaces.trinidad.desktop, so we will use the simple skin
              

              --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
              @Wolfgang Knauf

              >>But what does "getDocumentManager()" do ;-)? Hopefully it returns just the member variable?

              Wolfgang Knauf, thanks for your reply. Yes "getDocumentManager() is the getter method for the 'documentManager." I did not include it in my post to save space.

              >>What is this class "DocumentService"?

              DocumentService is a super class of "DocumentRemote"

              I have something like the following:

              import com.xxxxxxxx.xxxx.entity.model.DocumentEntity;
              
              /**
              * The DocumentService interface.
              */
              interface DocumentService extends java.io.Serializable{
              public DocumentEntity createEntity(DocumentEntity bean)
              ...
              
              }
              
              public interface DocumentRemote extends DocumentService, java.io.Serializable{
              ...
              }
              
              public interface DocumentLocal extends DocumentService, java.io.Serializable{
              ...
              }
              
              

              Please note that DocumentService, DocumentRemote and DocumentLocal and packaged in an ejbclient.jar--seperate from their implementation class i.e.,DocumentController. Also the jpa e.g. DocumentEntity and persistence.xml is package called entity.jar as plain POJO

              I therefore have
              xxx.ear
              ----lib/ejbclient.jar [contains DocumentService, DocumentRemote and DocumentLocal]
              ----lib/entity.jar [contains DocumentEntity, persistence.xml]
              ----ejb.jar [contains DocumentController ]
              ----web.war [contains AbstractDocumentPageBean jsf pages etc]
              

              Thanks Wolfgang Knauf for any further suggestions.



              • 4. Re: Couldn't handle invocation directly within...StatelessRe
                wolfgangknauf

                Hi,

                could you improve error logging in the "AbstractDocumentPageBean"? You don't log the exception, and without an exception, it is hard to say what went wrong:

                catch (Exception e) {
                 log.error("Exiting createButton_action : " + "Unexpected error when creating Document", null);
                 addFacesErrorMessage("Unexpected error when creating Document");
                 return null;


                Best regards

                Wolfgang

                • 5. Re: Couldn't handle invocation directly within...StatelessRe
                  ebross

                  Wolfgang Knauf
                  >>could you improve error logging in the "AbstractDocumentPageBean"?

                  Thanks again. I have added "e.printStackTrace()" in the catch and the error says, "EJBAccessException: Invalid User." I used to have security annotations on my stateless bean DocumentController; I have removed them thinking they might be the causes but the error is still the same. I have also removed all security constrainst in my web.xml, but again, the output is still the same. Here is the relevant trace:

                  23:50:17,057 INFO [MyfacesConfig] Starting up Tomahawk on the RI-JSF-Implementation.
                  23:50:17,967 ERROR [STDERR] Feb 17, 2009 11:50:17 PM org.apache.myfaces.trinidad.webapp.ResourceServlet _initDebug
                  INFO: Trinidad ResourceServlet is running in debug mode. Do not use in a production environment. See the org.apache.myfaces.trinidad.resource.DEBUG parameter in /WEB-INF/web.xml
                  23:50:18,516 ERROR [STDERR] Feb 17, 2009 11:50:18 PM org.apache.myfaces.trinidadinternal.skin.SkinFactoryImpl getSkin
                  WARNING: Can't find a skin that matches family xxxx-skin and renderkit org.apache.myfaces.trinidad.desktop, so we will use the simple skin
                  23:51:09,930 ERROR [STDERR] javax.ejb.EJBAccessException: Invalid User
                  23:51:09,931 ERROR [STDERR] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptorv2.invoke(Ejb3AuthenticationInterceptorv2.java:137)
                  23:51:09,931 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
                  23:51:09,932 ERROR [STDERR] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:41)
                  23:51:09,932 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
                  23:51:09,932 ERROR [STDERR] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
                  23:51:09,932 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
                  23:51:09,932 ERROR [STDERR] at org.jboss.ejb3.BlockContainerShutdownInterceptor.invoke(BlockContainerShutdownInterceptor.java:65)
                  23:51:09,933 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
                  23:51:09,933 ERROR [STDERR] at org.jboss.aspects.currentinvocation.CurrentInvocationInterceptor.invoke(CurrentInvocationInterceptor.java:67)
                  23:51:09,933 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
                  23:51:09,933 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:486)
                  23:51:09,934 ERROR [STDERR] at org.jboss.ejb3.remoting.IsLocalInterceptor.invokeLocal(IsLocalInterceptor.java:97)
                  23:51:09,934 ERROR [STDERR] at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:74)
                  23:51:09,934 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
                  23:51:09,934 ERROR [STDERR] at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:62)
                  23:51:09,935 ERROR [STDERR] at $Proxy830.invoke(Unknown Source)
                  23:51:09,935 ERROR [STDERR] at org.jboss.ejb3.proxy.handler.ProxyInvocationHandlerBase.invoke(ProxyInvocationHandlerBase.java:261)
                  23:51:09,935 ERROR [STDERR] at org.jboss.ejb3.proxy.handler.session.SessionSpecProxyInvocationHandlerBase.invoke(SessionSpecProxyInvocationHandlerBase.java:101)
                  23:51:09,935 ERROR [STDERR] at $Proxy3357.createEntity(Unknown Source)
                  23:51:09,935 ERROR [STDERR] at com.xxxxxxxx.xxxx.web.bean.AbstractDocumentPageBean.createButton_action(AbstractDocumentPageBean.java:302)
                  23:51:09,936 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                  23:51:09,936 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                  23:51:09,936 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                  23:51:09,936 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
                  23:51:09,937 ERROR [STDERR] at org.apache.el.parser.AstValue.invoke(AstValue.java:170)
                  23:51:09,937 ERROR [STDERR] at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
                  23:51:09,937 ERROR [STDERR] at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
                  23:51:09,937 ERROR [STDERR] at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:46)
                  23:51:09,938 ERROR [STDERR] at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
                  23:51:09,938 ERROR [STDERR] at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
                  23:51:09,938 ERROR [STDERR] at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
                  23:51:09,938 ERROR [STDERR] at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
                  23:51:09,939 ERROR [STDERR] at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
                  23:51:09,939 ERROR [STDERR] at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
                  23:51:09,939 ERROR [STDERR] at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
                  23:51:09,939 ERROR [STDERR] at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
                  23:51:09,939 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                  23:51:09,940 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                  23:51:09,940 ERROR [STDERR] at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:301)
                  23:51:09,940 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                  23:51:09,940 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                  23:51:09,941 ERROR [STDERR] at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:238)
                  23:51:09,941 ERROR [STDERR] at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:195)
                  23:51:09,941 ERROR [STDERR] at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:138)
                  23:51:09,941 ERROR [STDERR] at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
                  23:51:09,942 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                  23:51:09,942 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                  23:51:09,942 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                  23:51:09,942 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                  23:51:09,943 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                  23:51:09,943 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
                  23:51:09,943 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
                  23:51:09,943 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
                  23:51:09,946 ERROR [STDERR] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
                  23:51:09,947 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
                  23:51:09,947 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
                  23:51:09,947 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
                  23:51:09,947 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                  23:51:09,948 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                  23:51:09,948 ERROR [STDERR] at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
                  23:51:09,948 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                  23:51:09,948 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
                  23:51:09,949 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
                  23:51:09,949 ERROR [STDERR] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:601)
                  23:51:09,950 ERROR [STDERR] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
                  23:51:09,950 ERROR [STDERR] at java.lang.Thread.run(Thread.java:619)
                  23:51:09,950 ERROR [AbstractDocumentPageBean] Exiting createButton_action : Unexpected error when creating Document


                  • 6. Re: Couldn't handle invocation directly within...StatelessRe
                    wolfgangknauf

                    Did you remove the security annotations (@SecurityDomain, @DeclareRoles, @RolesAllowed) in all your session beans and remote/local interfaces? Maybe one is left?

                    Best regards

                    Wolfgang

                    • 7. Re: Couldn't handle invocation directly within...StatelessRe
                      ebross

                      Wolfgang Knauf
                      >>Did you remove the security annotations

                      Yes I have and my project is now working, but without security. My next step is to add it back. So, I am going over to the jboss security forum to ask for some help.

                      Thanks.

                      • 8. Re: Couldn't handle invocation directly within...StatelessRe
                        jaikiran