-
Bug
-
Resolution: Done
-
Major
-
EAP 5.0.1.CR1
-
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)
}
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);
- is incorporated by
-
JBPAPP-7578 Upgrade jboss-ejb3-bom-eap5 to 1.0.4
- Closed