alberto
Posts: 5
Nickname: pichuerca
Registered: Jan, 2003
|
|
Re: Restarting rmid
|
Posted: Apr 9, 2003 3:38 AM
|
|
Hello:
If the error is "ActivationSystem is not running" you probably dont inicialize rmid in a good way. Try this:
rmid -J-Djava.security.policy={your policy file} -J-Dsun.rmi.activation.execPolicy=none
Note: in the Jini distribution there is a directory called policy where you can get policy files, if you are newer try with policy.all.
Try to check which application is using 1098 port. In linux try the next one when you have run rmid:
netstat -taup
you should have rmid in port 1098, if not there is a conflict with other apllication.
Best regards, Albert.
> Hi, > I am having problems trying to restart rmid > > The command I'm using is: > rmid -J-Dsun.rmi.activation.execPolicy=none > > I have tried to sop rmid at the port: > rmid -port 1098 -stop > > but I get a big error that tells me that the > ActivationSystem is not running > > I have tried adding -log C:\logdir to the end of this > command, but I still get the same error: > > Failed to load Main-Class manifest attribute from > /research/fiper/jfiper/jini/jini1_1/lib/tools.jar > Activation.main: an exception occurred: Port already in > use: 1098; nested exception is: > java.net.BindException: Address already in use > java.rmi.server.ExportException: Port already in use: > 1098; nested exception is: > java.net.BindException: Address already in use > java.net.BindException: Address already in use > at java.net.PlainSocketImpl.socketBind(Native Method) > at > java.net.PlainSocketImpl.bind(PlainSocketImpl.java:397) > at java.net.ServerSocket.<init>(ServerSocket.java:172) > at java.net.ServerSocket.<init>(ServerSocket.java:85) > at > sun.rmi.transport.proxy.RMIDirectSocketFactory.createServer > ocket(RMIDirectSock etFactory.java:34) > at > sun.rmi.transport.proxy.RMIMasterSocketFactory.createServer > ocket(RMIMasterSock etFactory.java:316) > at > sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(TCPEndpoi > t.java:550) > at > sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java > 186) > at > sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTranspor > .java:158) > at > sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint. > ava:323) > at > sun.rmi.transport.LiveRef.exportObject(LiveRef.java:123) > at > sun.rmi.server.UnicastServerRef.exportObject(UnicastServerR > f.java:118) > at > sun.rmi.registry.RegistryImpl.setup(RegistryImpl.java:99) > at > sun.rmi.registry.RegistryImpl.<init>(RegistryImpl.java:85) > at > java.rmi.registry.LocateRegistry.createRegistry(LocateRegis > ry.java:171) > at sun.rmi.server.Activation.main(Compiled Code) > > I am really stuck, so any help would be appreciated. > Thanks
|
|