Please check if this is a problem against current cvs. david jencks
On 2002.05.07 09:15:05 -0400 Alex Loubyansky wrote: > I have stateless session bean PublicSessionBean with ejb-ref to > stateful > session bean PrivateSessionBean. Like in JAAS example. (JAAS works > fine and I removed all security related stuff) > They have the same remote and home interfaces Session and > SessionHome (I tried also to define PrivateSession and > PrivateSessionHome for PrivateSessionBean) > > Method PublicSessionBean.echo(String arg): > public String echo(String arg) { > cat.info("call to echo(), arg=" + arg); > try { > InitialContext ctx = new InitialContext(); > SessionHome home = (SessionHome)ctx.lookup("java:comp/env/ejb/PrivateSession"); > Session bean = home.create(); > cat.info("call to echo(), created PrivateSession"); > arg = bean.echo(arg); > } catch(Exception e) { > cat.info("Exc while creating/invoking PrivateSession: " + e, e); > } > return arg; > } > > When it's deployed first time it works fine. But when I undeploy the > jar and then deploy it again I get this exception: > 2002-05-07 15:55:16,355 INFO [org.jboss.docs.jaas.howto.PublicSessionBean] > ejbCreate() called > 2002-05-07 15:55:16,365 INFO [org.jboss.docs.jaas.howto.PublicSessionBean] > call to echo(), arg=Hello > 2002-05-07 15:55:16,386 INFO [org.jboss.docs.jaas.howto.PublicSessionBean] > Exc while creating/invoking PrivateSession: java.lang.ClassCastException: > $Proxy22 > java.lang.ClassCastException: $Proxy22 > at >org.jboss.docs.jaas.howto.PublicSessionBean.echo(PublicSessionBean.java:85) > 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 >org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:653) > at >org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:147) > at >org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:77) > at >org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:96) > at >org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:167) > at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:61) > 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:706) > at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:492) > at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:364) > 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) > > Environment: JBoss-3.1.0alpha checked about month ago, Win2000, JDK1.4 > > Is it a bug? Was it reported? > What is the right place to post such errors users' list, developers' > list, bug report? > > TIA, > Alex > > > > _______________________________________________________________ > > Have big pipes? SourceForge.net is looking for download mirrors. We > supply > the hardware. You get the recognition. Email Us: > [EMAIL PROTECTED] > _______________________________________________ > Jboss-development mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-development > > _______________________________________________________________ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development