The Artima Developer Community
Sponsored Link

Jini Forum
Restarting rmid

5 replies on 1 page. Most recent reply: Nov 16, 2008 1:23 AM by Jason Frank

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 5 replies on 1 page
Eleanor Murphy

Posts: 1
Nickname: el
Registered: Nov, 2002

Restarting rmid Posted: Nov 19, 2002 6:25 AM
Reply to this message Reply
Advertisement
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.createServerSocket(RMIDirectSock etFactory.java:34)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createServerSocket(RMIMasterSock etFactory.java:316)
at sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(TCPEndpoint.java:550)
at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:186)
at sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:158)
at sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:323)
at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:123)
at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.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(LocateRegistry.java:171)
at sun.rmi.server.Activation.main(Compiled Code)

I am really stuck, so any help would be appreciated.
Thanks


Mahesh

Posts: 1
Nickname: mahesh2003
Registered: Mar, 2003

Re: Restarting rmid Posted: Mar 28, 2003 2:59 PM
Reply to this message Reply
hi
I am also facing the same problem when i am using jini
can u please tell me if u got this problem solved.

Thanks
mahesh

alberto

Posts: 5
Nickname: pichuerca
Registered: Jan, 2003

Re: Restarting rmid Posted: Apr 9, 2003 3:38 AM
Reply to this message Reply
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

Abel Perez

Posts: 3
Nickname: abel
Registered: May, 2003

Re: Restarting rmid Posted: May 16, 2003 12:54 AM
Reply to this message Reply
Hi,

If you are having problems starting rmid, try deleting the log files that it creates. The following command should work upon deleting the logs:

rmid -J-Djava.security.policy=c:\policy.all

swetha bandaru

Posts: 2
Nickname: swetha369
Registered: Feb, 2008

Re: Restarting rmid Posted: Feb 22, 2008 1:12 AM
Reply to this message Reply
Sir,
We have the same problem with rmid saying that port already in use, could u help us please......

Jason Frank

Posts: 1
Nickname: jasonfrank
Registered: Nov, 2008

Re: Restarting rmid Posted: Nov 16, 2008 1:23 AM
Reply to this message Reply
yes restarting rmid - was a huge problem

Flat View: This topic has 5 replies on 1 page
Topic: Unable to restrict multicast on 1 interface Previous Topic   Next Topic Topic: Help: UnmarshalException running Jini

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use