EJB showstopper - javax.ejb.EJBException: Deprecated
philbigdog Aug 20, 2002 12:21 PMHi - usual story, new to this etc. - just trying to get a simple session bean example up and running. Works fine up to calling the remote bean method (which just returns a String).
The returned errors are extremely ambiguous - see below.
Cheers.
From the client:
Name = Demo
Got initial context
Got reference.
Got Bean's Home interface reference.
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.ServerException: Bean exception. Notify the application administrator; nested exception is:
javax.ejb.EJBException: Deprecated
From the console:
16:05:35,789 INFO [STDOUT] setSessionContext called
16:05:35,789 ERROR [LogInterceptor] EJBException:
javax.ejb.EJBException: Deprecated
at org.jboss.ejb.EnterpriseContext$EJBContextImpl.getEnvironment(EnterpriseContext.java:307)
at ejb.demo.DemoBean.setSessionContext(DemoBean.java:52)
at org.jboss.ejb.StatelessSessionEnterpriseContext.(StatelessSessionEnterpriseContext.
java:47)
at org.jboss.ejb.plugins.StatelessSessionInstancePool.create(StatelessSessionInstancePool.ja
va:61)
at org.jboss.ejb.plugins.AbstractInstancePool.get(AbstractInstancePool.java:208)
at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstance
Interceptor.java:63)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:129)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:166)
at org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:313)
at org.jboss.ejb.Container.invoke(Container.java:705)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:362)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
at sun.rmi.transport.Transport$1.run(Transport.java:148)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:536)