Re: reggie started?

Rikard Elofsson <[email protected]>
Newsgroups gmane.comp.java.sun.jini
Message-ID <[email protected]>
Mark Brouwer skrev:
> You probably feel it coming ... ... can you post the complete stacktrace?

Pasted below

> But when it is the connection refused exception means there is no
> process listing on the host/port combination you are trying to connect
> to due to unicast discovery I don't understand why you want to get rid
> of it in the first place. Can you also indicate what is doing the
> unicast lookup, is it the SDM or you from a Jini Service Browser.

code like this:




Class[] classes = new Class[] { type };
ServiceTemplate template = new ServiceTemplate(null, classes, null);

DiscoveryManagement discover;

LookupLocator[] locators = new LookupLocator[] { new
LookupLocator("jini://localhost") };

discover = new LookupLocatorDiscovery(locators);

ServiceDiscoveryManager clientMgr = new
ServiceDiscoveryManager(discover, new LeaseRenewalManager());

clientMgr.createLookupCache(template, null, this);





-----------------------------------------------------------------------
stack trace below...
-----------------------------------------------------------------------

INFO net.jini.discovery.LookupLocatorDiscovery$LocatorReg exception
occured during unicast discovery
  to {0}:{1,number,#} with constraints {2}

Connection refused: connect     at
java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
         at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
         at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
         at java.net.Socket.connect(Socket.java:519)
         at java.net.Socket.connect(Socket.java:469)
         at
com.sun.jini.discovery.internal.MultiIPDiscovery.getSingleResponse(MultiIPDiscovery.java:
134)
         at
com.sun.jini.discovery.internal.MultiIPDiscovery.getResponse(MultiIPDiscovery.java:83)
         at
net.jini.discovery.LookupLocatorDiscovery$LocatorReg.doUnicastDiscovery(LookupLocatorDisc
overy.java:505)
         at
net.jini.discovery.LookupLocatorDiscovery$LocatorReg.tryGetProxy(LookupLocatorDiscovery.j
ava:474)
         at
net.jini.discovery.LookupLocatorDiscovery.regTryGetProxy(LookupLocatorDiscovery.java:1271
)
         at
net.jini.discovery.LookupLocatorDiscovery.access$800(LookupLocatorDiscovery.java:308)
         at
net.jini.discovery.LookupLocatorDiscovery$DiscoveryTask.tryOnce(LookupLocatorDiscovery.ja
va:703)
         at com.sun.jini.thread.RetryTask.run(RetryTask.java:131)
         at
com.sun.jini.thread.TaskManager$TaskThread.run(TaskManager.java:331)
INFO com.sun.jini.reggie.RegistrarImpl started Reggie: {0}, {1}, {2}

--------------------------------------------------------------------------
Getting Started:     http://www.jini.org/wiki/Category:Getting_Started
Community Web Site:  http://jini.org
jini-users Archive:  http://archives.java.sun.com/archives/jini-users.html
Unsubscribing:       email "signoff JINI-USERS"  to [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.