Hello Florent,
I tested the svn version as you sad and it was fixed.
Thanks a lot.
[]s
On 8/27/07, Alessandro Badin <javendogmail.com> wrote:
> I will see the SVN version.
>
> Just in case, I am using the m6 version.
>
> Thanks.
>
> On 8/27/07, Florent BENOIT <Florent.BENOITow2.org> wrote:
> > Hi Alessandro,
> >
> > What is the version of EasyBeans that you're using
?
> > I think that it's a problem that I have fixed some
time ago in the
> > current SVN repository.
> >
> > You may find nightly release here:
> > h
ttp://forge.objectweb.org/nightlybuilds/easybeans/
> >
> > Regards,
> >
> > Florent
> >
> >
> > Alessandro Badin wrote:
> > > Hello guys,
> > >
> > > I have an application that has two classes
(DemoBean and
> > > DemoInterface). I configured Eclipse to build
the classes in the
> > >
{$project_dir}/easybeans-deploy/helloworld.jar directory.
> > >
> > > When I build the classes and run the
> > > org.objectweb.easybeans.server.EasyBeans
class I am be able to run the
> > > client class.
> > >
> > > Client class:
> > > public class Client {
> > > public static void main(String[] args)
throws Exception {
> > >
System.setProperty(Context.INITIAL_CONTEXT_FACTORY,
> > >
"org.objectweb.carol.jndi.spi.MultiOrbInitialContextFac
tory");
> > > Context ictx = new
InitialContext();
> > > DemoInterface bean =
(DemoInterface) ictx.lookup("DemoBean");
> > > String res =
bean.hello("Petrobras");
> > > System.out.println(res);
> > > }
> > > }
> > >
> > > But when I change a method in the DemoBean
class and compile a problem occurs.
> > >
> > > It is the result of the EasyBean when I
change and compile the bean:
> > > 8/22/07 10:40:34 PM (I)
DirectoryDeployerMonitor.checkContainer :
> > > Container with archive
easybeans-deploy/helloworld.jar was modified.
> > > Reloading...
> > > 8/22/07 10:40:34 PM (I)
Embedded.removeContainer : Container
> > > 'easybeans-deploy/helloworld.jar' removed
> > > 8/22/07 10:40:34 PM (I) JContainer3.start :
Container started in : 39 ms
> > >
> > > And it is the error I receive:
> > > Exception in thread "main"
javax.ejb.EJBException: Error while sending a request
> > > at
org.objectweb.easybeans.rpc.ClientRPCInvocationHandler.invok
e(ClientRPCInvocationHandler.java:145)
> > > at $Proxy0.hello(Unknown Source)
> > > at Client.main(Client.java:11)
> > > Caused by: java.lang.RuntimeException: Error
while handling answer on
> > > the remote side
> > > at
org.objectweb.easybeans.rpc.rmi.client.RMIClientRPC.sendEJBR
equest(RMIClientRPC.java:104)
> > > at
org.objectweb.easybeans.rpc.ClientRPCInvocationHandler.invok
e(ClientRPCInvocationHandler.java:142)
> > > ... 2 more
> > > Caused by: java.rmi.ServerException:
RemoteException occurred in
> > > server thread; nested exception is:
> > > java.rmi.RemoteException: Cannot find
the container with id '9434319'.
> > > at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.ja
va:336)
> > > at
org.objectweb.carol.rmi.jrmp.server.JUnicastServerRef.dispat
ch(JUnicastServerRef.java:143)
> > > at
sun.rmi.transport.Transport$1.run(Transport.java:159)
> > > at
java.security.AccessController.doPrivileged(Native Method)
> > > at
sun.rmi.transport.Transport.serviceCall(Transport.java:155)
> > > at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTranspo
rt.java:535)
> > > at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TC
PTransport.java:790)
> > > at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCP
Transport.java:649)
> > > at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Threa
dPoolExecutor.java:885)
> > > at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo
lExecutor.java:907)
> > > at
java.lang.Thread.run(Thread.java:619)
> > > at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServ
er(StreamRemoteCall.java:255)
> > > at
org.objectweb.carol.rmi.jrmp.server.JRemoteCall.executeCall(
JRemoteCall.java:89)
> > > at
org.objectweb.carol.rmi.jrmp.server.JUnicastRef.performRemot
eCall(JUnicastRef.java:194)
> > > at
org.objectweb.carol.rmi.jrmp.server.JUnicastRef.invoke(JUnic
astRef.java:158)
> > > at
org.objectweb.easybeans.rpc.rmi.server.RMIServerRPCImpl_Stub
.getEJBResponse(Unknown
> > > Source)
> > > at
org.objectweb.easybeans.rpc.rmi.client.RMIClientRPC.sendEJBR
equest(RMIClientRPC.java:102)
> > > ... 3 more
> > > Caused by: java.rmi.RemoteException: Cannot
find the container with id
> > > '9434319'.
> > > at
org.objectweb.easybeans.rpc.rmi.server.RMIServerRPCImpl.getE
JBResponse(RMIServerRPCImpl.java:81)
> > > at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > >
> > > Thanks in advance.
> > >
> > > Alessandro.
> > >
> > >
> >
> >
> >
> >
> > --
> > You receive this message as a subscriber of the
easybeansobjectweb.org mailing list.
> > To unsubscribe: mailto:easybeans-unsubscribeobjectweb.org
> > For general help: mailto:sympaobjectweb.org?subject=help
> > ObjectWeb mailing lists service home page: http://www.objectweb.org
/wws
> >
> >
>
>
> --
> Alessandro Badin
>
--
Alessandro Badin