The Artima Developer Community
Sponsored Link

Jini Forum
that old Reggie problem on MacOSX

3 replies on 1 page. Most recent reply: Jun 7, 2002 4:28 PM by Praveen cheruvu

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 3 replies on 1 page
latompa

Posts: 1
Nickname: latompa
Registered: Apr, 2002

that old Reggie problem on MacOSX Posted: Apr 28, 2002 1:09 AM
Reply to this message Reply
Advertisement
I have the same problem as a couple of other posters on this list.

I've tried starting rmid with
rmid -J-Dsun.rmi.activation.execPolicy=none
and
rmid -J-Djava.security.policy=jini1_2_1/policy/policy.all
that works fine,

but starting reggie reveals (after 10 secs)

Unable to invoke by reflection, the method: com.sun.jini.reggie.CreateLookup.create.
An exception was thrown by the invoked method.
java.rmi.activation.ActivationException: exception in object constructor; nested exception is:
java.net.SocketException: error setting options
java.net.SocketException: error setting options
...

I've tried to point out the policy.all file for reggie, checking the correct IP (I know some Java implementations doesn't like localhost) and checked my kernel for multicast.

But still the same error

setup: Mac OSX 10.1.4, jdk1.3.1

Any tips here?


selena

Posts: 1
Nickname: selena
Registered: May, 2002

Re: that old Reggie problem on MacOSX Posted: May 10, 2002 7:22 PM
Reply to this message Reply
hi,
I faced the same problem but on win2000
The cause is that you started rmid like this:
rmid -J-Dsun.rmi.activation.execPolicy=none

this means that all the previous reggie instances will wake up because reggie is activatable and probably it wasn't set up properly last time you started it.
(hint: reggie is started propely when the prompter appears after running reggie start command)

If you want that service killed...
1 .you must stop rmid (rmid -stop)
2 .delete it's log file (the 'log' directory for rmid... it appears in the current directory from where you ran the rmid command or in the specified log dir for rmid - but i don't think you specified it- so look after 'log' directory and delete it - but after you stopped the rmid, otherwise you will get a sharing violation)
3. also delete the reggie log file (you must have specified it when you first ran reggie) - otherwise you will receive the same error when you will try to start a new reggie


curious about activation/activatable etc?
try this:
http://www.javaworld.com/javaworld/jw-09-2000/jw-0915-jinirmi.html

http://archives.java.sun.com/cgi-bin/wa?A2=ind9903&L=jini-users&P=R14099
or this:
http://developer.java.sun.com/developer/technicalArticles/jini/patterns/


hopping that i was explicit enough i give you my inspiration source(http://www.artima.com/legacy/jini/lookup/messages/35.html)

bye bye

No Name

Posts: 3
Nickname: sonofseven
Registered: May, 2002

Re: that old Reggie problem on MacOSX Posted: May 21, 2002 3:15 PM
Reply to this message Reply
I had somehow very simmilar problem on Win2K. The problem was that I was not connected to the network so RMID and other services could not create sockets.

Therefore my question is are you connected to the network?

Praveen cheruvu

Posts: 1
Nickname: praveen
Registered: Jun, 2002

Re: that old Reggie problem on Sun Solaris Posted: Jun 7, 2002 4:28 PM
Reply to this message Reply
Hi ,

I have a similar problem,on Sun-solaris. I was able to run on windows without any problem .
Can anyone point me what i am doing wrong.

%rmid -J-Djava.security.policy=/local/users/pcheruv/JINI/jini1_2/example/lookup/polic y.all
%java -jar /local/users/pcheruv/JINI/jini1_2/lib/tools.jar -port 8085 -dir /local/users/pcheruv/JINI/jini1_2/lib -verbose
reggie-dl.jar requested from chick.cesr.ncsu.edu:40052
reggie-dl.jar requested from chick.cesr.ncsu.edu:40061
reggie-dl.jar requested from chick.cesr.ncsu.edu:40075
reggie-dl.jar requested from chick.cesr.ncsu.edu:40125
%java -jar /local/users/pcheruv/JINI/jini1_2/lib/reggie.jar http://152.14.52.120:8085/reggie-dl.jar /local/users/pcheruv/JINI/jini1_2/example/lookup/policy.all /local/users/pcheruv/reggie public
Unable to invoke by reflection, the method: com.sun.jini.reggie.CreateLookup.create.
An exception was thrown by the invoked method.
java.rmi.activation.ActivationException: exception in object constructor; nested exception is:
java.net.SocketException: error setting options
java.net.SocketException: error setting options
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall .java:245)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
at sun.rmi.server.Activation$ActivatorImpl_Stub.activate(Unknown Source)
at java.rmi.activation.ActivationID.activate(ActivationID.java:89)
at com.sun.jini.start.ClassLoaderUtil$ActivateClass.activate(ClassLoaderUtil.java: 616)
at java.lang.reflect.Method.invoke(Native Method) at com.sun.jini.start.ServiceStarter.doCreate(ServiceStarter.java:1213)
at com.sun.jini.start.ServiceStarter.create(ServiceStarter.java:377)
at com.sun.jini.start.ServiceStarter.create(ServiceStarter.java:300)
at com.sun.jini.reggie.CreateLookup.main(CreateLookup.java:83)


Thanks for your time

Thanks
Praveen.

Flat View: This topic has 3 replies on 1 page
Topic: Problems With Java Please Help Previous Topic   Next Topic Topic: reg javaspaces code from the book

Sponsored Links



Google
  Web Artima.com   

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