Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-3750

JBoss requesting interceptors for methods that do not exist causes WARN messages

XMLWordPrintable

    • JBoss will not log warning messages for methods which do not exist and should not exist. The messages will now be logged at the debug level.
    • Not Required

      When testing IIOP in JBoss EAP 5.0.1 CR1, the warnings below are logged when a client first calls an EJB via IIOP. These are all methods that do not really exist on the bean, so they don't have any AOP interceptors governing their calls. In essence it's a fault of the container request such interceptors.

      18:04:51,260 WARN [InterceptorRegistry] applicable interceptors is non-existent for public abstract javax.ejb.Handle javax.ejb.EJBObject.getHandle() throws java.rmi.RemoteException
      18:04:51,262 WARN [InterceptorRegistry] applicable interceptors is non-existent for public abstract javax.ejb.EJBHome javax.ejb.EJBObject.getEJBHome() throws java.rmi.RemoteException
      18:04:51,262 WARN [InterceptorRegistry] applicable interceptors is non-existent for public abstract java.lang.Object javax.ejb.EJBObject.getPrimaryKey() throws java.rmi.RemoteException
      18:04:51,262 WARN [InterceptorRegistry] applicable interceptors is non-existent for public abstract void javax.ejb.EJBObject.remove() throws java.rmi.RemoteException,javax.ejb.RemoveException
      18:04:51,262 WARN [InterceptorRegistry] applicable interceptors is non-existent for public abstract void javax.ejb.EJBHome.remove(javax.ejb.Handle) throws java.rmi.RemoteException,javax.ejb.RemoveException
      18:04:51,263 WARN [InterceptorRegistry] applicable interceptors is non-existent for public abstract void javax.ejb.EJBHome.remove(java.lang.Object) throws java.rmi.RemoteException,javax.ejb.RemoveException
      18:04:51,263 WARN [InterceptorRegistry] applicable interceptors is non-existent for public abstract boolean javax.ejb.EJBObject.isIdentical(javax.ejb.EJBObject) throws java.rmi.RemoteException
      18:04:51,263 WARN [InterceptorRegistry] applicable interceptors is non-existent for public abstract javax.ejb.HomeHandle javax.ejb.EJBHome.getHomeHandle() throws java.rmi.RemoteException
      18:04:51,263 WARN [InterceptorRegistry] applicable interceptors is non-existent for public abstract javax.ejb.EJBMetaData javax.ejb.EJBHome.getEJBMetaData() throws java.rmi.RemoteException
      18:04:51,263 WARN [InterceptorRegistry] applicable interceptors is non-existent for public abstract com.jboss.examples.ejb3.iiop.HelloRemote com.jboss.examples.ejb3.iiop.HelloRemoteHome.create() throws javax.ejb.CreateException,java.rmi.RemoteException
      18:04:51,263 WARN [InterceptorRegistry] applicable interceptors is non-existent for public abstract javax.ejb.Handle javax.ejb.EJBObject.getHandle() throws java.rmi.RemoteException
      18:04:51,263 WARN [InterceptorRegistry] applicable interceptors is non-existent for public abstract javax.ejb.EJBHome javax.ejb.EJBObject.getEJBHome() throws java.rmi.RemoteException
      18:04:51,264 WARN [InterceptorRegistry] applicable interceptors is non-existent for public abstract java.lang.Object javax.ejb.EJBObject.getPrimaryKey() throws java.rmi.RemoteException
      18:04:51,264 WARN [InterceptorRegistry] applicable interceptors is non-existent for public abstract void javax.ejb.EJBObject.remove() throws java.rmi.RemoteException,javax.ejb.RemoveException
      18:04:51,264 WARN [InterceptorRegistry] applicable interceptors is non-existent for public abstract void javax.ejb.EJBHome.remove(javax.ejb.Handle) throws java.rmi.RemoteException,javax.ejb.RemoveException
      18:04:51,264 WARN [InterceptorRegistry] applicable interceptors is non-existent for public abstract void javax.ejb.EJBHome.remove(java.lang.Object) throws java.rmi.RemoteException,javax.ejb.RemoveException
      18:04:51,264 WARN [InterceptorRegistry] applicable interceptors is non-existent for public abstract boolean javax.ejb.EJBObject.isIdentical(javax.ejb.EJBObject) throws java.rmi.RemoteException
      18:04:51,264 WARN [InterceptorRegistry] applicable interceptors is non-existent for public abstract javax.ejb.HomeHandle javax.ejb.EJBHome.getHomeHandle() throws java.rmi.RemoteException
      18:04:51,264 WARN [InterceptorRegistry] applicable interceptors is non-existent for public abstract javax.ejb.EJBMetaData javax.ejb.EJBHome.getEJBMetaData() throws java.rmi.RemoteException
      18:04:51,265 WARN [InterceptorRegistry] applicable interceptors is non-existent for public abstract com.jboss.examples.ejb3.iiop.HelloRemote com.jboss.examples.ejb3.iiop.HelloRemoteHome.create() throws javax.ejb.CreateException,java.rmi.RemoteException

      Remote Interface:
      public interface HelloRemote extends EJBObject
      {
      String hello(String name) throws RemoteException;
      }

      Remote Home Interface:
      public interface HelloRemoteHome extends javax.ejb.EJBHome
      {
      HelloRemote create() throws javax.ejb.CreateException, java.rmi.RemoteException
      }

      EJB:
      @Stateless
      @RemoteHome(HelloRemoteHome.class)
      @IIOP(interfaceRepositorySupported=false)
      public class HelloSessionBean
      {
      public String hello(String name)

      { return "Hello " + name; }

      }

      Client code:
      Hashtable<String,String> env = new Hashtable<String,String>();
      env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.cosnaming.CNCtxFactory");
      env.put(Context.PROVIDER_URL, "corbaloc::" + host + ":3528"/JBoss/Naming/root");
      Object o = new InitialContext(env).lookup("HelloSessionBean/remote");
      HelloRemote bean = (HelloRemote) PortableRemoteObject.narrow(obj, HelloRemote.class);

              rhn-support-bmaxwell Brad Maxwell
              rhn-support-bmaxwell Brad Maxwell
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: