Robert Paris
Posts: 3
Nickname: jiniboy
Registered: Sep, 2002
|
|
Re: Why can't LookupDiscoveryService (i.e. Fiddler) be found?
|
Posted: Sep 6, 2002 6:49 AM
|
|
I am setting the codebase, and I can see it requests the jar file from there so I know I set it correctly. I did a work-around to solve the second problem, but I know I shouldn't have to do that (as explained below) so that problem really still exists. But now that I at least got that to "work" here is what happens next: When I turn on debugging (using the following):
-Djava.security.debug=access,failure -Dcom.sun.jini.sdm.debug=true -Dcom.sun.jini.reggie.proxy.debug=true -Dnet.jini.discovery.debug=true
I get the following error three times:
java.io.IOException: port number out of range 86507520 at net.jini.discovery.IncomingMulticastAnnouncement.<init> (IncomingMulticastAnnouncement.java:83) at net.jini.discovery.LookupDiscovery$AnnouncementListener.run(LookupDiscovery.jav a:315)
However, my app. is able to find the LookupDiscoveryService anyways and call methods successfully on it. I then create an EventMailbox registration (using mercury) and use its listener to be the listener passed to the method "register" on Fiddler. However, when I later check the mailbox for any events, nothing is raised.
So continuing from the earlier problem in this email thread, I know have four problems:
1. I have to "sleep" for a bit or the services cannot be found
2. Norm is unable to find the LandLord Lease class, which is the class returned as the Listener on the MailboxRegistration.getlease()
I can make it work by adding sun-util.jar to my application's codebase, but I shouldn't have to! I should only have to deal with the interface "Lease", otherwise I can't program to the Jini API but have to program to every implementation.
3. I get the error (only when debugging is on) of port number out of range, but it still finds the service. Does this matter?
4. Event though the Mailbox Listener was successfully passed to "regsiter" (got back a non-null LookupDiscoveryRegistration), no events are ever sent to my mailbox.
If anyone can see what I'm doing wrong in any of these steps that would be a huge help!
Thanks!
Robert
|
|