Archived

This forum has been archived. Please start a new discussion on GitHub.

NoEndpoint Exception

hi i have stated my ICEBOX with following configration (i use spring to get my configration)

***************************************
Ice.Default.Locator=IcePack/Locator:tcp -p 12000


IceBox.ServiceManager.Endpoints=tcp -p 10000
IceBox.ServiceManager.AdapterId=ServiceManager

Ice.Default.Package=com.myWorks

IceBox.Service.GoogleSearchService=org.bootstrap.IceServices GoogleServiceContext.xml googleSearch masterSearch
GoogleSearchService.Endpoints=default
GoogleSearchService.AdapterId=theGoogleSearchService
GoogleSearchService.Proxy=myWork@theGoogleSearchService


*******************************************************
My client Invocation is as follows
***********************************************
Communicator ic=Util.initialize(args);
Ice.ObjectPrx base= ic.stringToProxy("mywork@theGoogleSearchService");
if(base!=null)
{
GoogleservicesPrx prx=GoogleservicesPrxHelper.uncheckedCast(base);
MyGoogleRequest req= new MyGoogleRequest();
req.query="war";
req.postion=0;
prx.doAction(req);


I am getting the following error
Exception in thread "main" Ice.NoEndpointException
proxy = "mywork -t @ theGoogleSearchService"
at IceInternal.IndirectReference.getConnection(IndirectReference.java:180)
at Ice._ObjectDelM.setup(_ObjectDelM.java:199)
at Ice.ObjectPrxHelperBase.__getDelegate(ObjectPrxHelperBase.java:648)
at com.myworks.google.services.GoogleservicesPrxHelper.doAction(GoogleservicesPrxHelper.java:30)
at com.myworks.google.services.GoogleservicesPrxHelper.doAction(GoogleservicesPrxHelper.java:19)
at org.bootstrap.TestService.main(TestService.java:21)


I cannot figure out the problem please help me in solving this :mad:

Comments

  • mes
    mes California
    Hi,

    Welcome to the forum. Please update your signature as described in this post.

    The most likely reason for a NoEndpointException when using indirect proxies is a failure while IcePack is attempting to start your server. Try enabling IcePack tracing to confirm this. For example, you must ensure that the CLASSPATH environment variable defined in the IcePack node's environment enables it to start a JVM and locate the Ice classes as well as the classes for your service.

    Take care,
    - Mark
  • server started perfect

    hi mark
    my server has started perfect. my client cannot read my server.
    Thanks
    Vinu
  • server Trace

    here is the server trace

    [ GoogleSearchService: Network: attempting to bind to tcp socket 192.168.19.144:0 ]
    [ GoogleSearchService: Network: accepting tcp connections at 192.168.19.144:2348 ]
    [ GoogleSearchService: Network: trying to establish tcp connection to 192.168.19.144:12000 ]
    [ GoogleSearchService: Network: tcp connection established
    local address = 192.168.19.144:2349
    remote address = 192.168.19.144:12000 ]
    [ GoogleSearchService: Network: received 14 of 14 bytes via tcp
    local address = 192.168.19.144:2349
    remote address = 192.168.19.144:12000 ]
    [ GoogleSearchService: Protocol: received validate connection
    message type = 3 (validate connection)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 14 ]
    [ GoogleSearchService: Protocol: sending request
    message type = 0 (request)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 55
    request id = 1
    identity = IcePack/Locator
    facet =
    operation = getRegistry
    mode = 1 (nonmutating)
    context = ]
    [ GoogleSearchService: Network: sent 55 of 55 bytes via tcp
    local address = 192.168.19.144:2349
    remote address = 192.168.19.144:12000 ]
    [ GoogleSearchService: Network: received 14 of 14 bytes via tcp
    local address = 192.168.19.144:2349
    remote address = 192.168.19.144:12000 ]
    [ GoogleSearchService: Network: received 92 of 92 bytes via tcp
    local address = 192.168.19.144:2349
    remote address = 192.168.19.144:12000 ]
    [ GoogleSearchService: Protocol: received reply
    message type = 2 (reply)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 106
    request id = 1
    reply status = 0 (ok) ]
    [ GoogleSearchService: Network: trying to establish tcp connection to 192.168.19.144:1947 ]
    [ GoogleSearchService: Network: tcp connection established
    local address = 192.168.19.144:2360
    remote address = 192.168.19.144:1947 ]
    [ GoogleSearchService: Network: received 14 of 14 bytes via tcp
    local address = 192.168.19.144:2360
    remote address = 192.168.19.144:1947 ]
    [ GoogleSearchService: Protocol: received validate connection
    message type = 3 (validate connection)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 14 ]
    [ GoogleSearchService: Protocol: sending request
    message type = 0 (request)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 160
    request id = 1
    identity = IcePack/b1b9863d-f1b6-4938-914d-f21b3eab8f53
    facet =
    operation = setAdapterDirectProxy
    mode = 2 (idempotent)
    context = ]
    [ GoogleSearchService: Network: sent 160 of 160 bytes via tcp
    local address = 192.168.19.144:2360
    remote address = 192.168.19.144:1947 ]
    [ GoogleSearchService: Network: received 14 of 14 bytes via tcp
    local address = 192.168.19.144:2360
    remote address = 192.168.19.144:1947 ]
    [ GoogleSearchService: Network: received 11 of 11 bytes via tcp
    local address = 192.168.19.144:2360
    remote address = 192.168.19.144:1947 ]
    [ GoogleSearchService: Protocol: received reply
    message type = 2 (reply)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 25
    request id = 1
    reply status = 0 (ok) ]
    [ Network: trying to establish tcp connection to 192.168.19.144:12000 ]
    [ Network: tcp connection established
    local address = 192.168.19.144:2364
    remote address = 192.168.19.144:12000 ]
    [ Network: received 14 of 14 bytes via tcp
    local address = 192.168.19.144:2364
    remote address = 192.168.19.144:12000 ]
    [ Protocol: received validate connection
    message type = 3 (validate connection)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 14 ]
    [ Protocol: sending request
    message type = 0 (request)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 55
    request id = 1
    identity = IcePack/Locator
    facet =
    operation = getRegistry
    mode = 1 (nonmutating)
    context = ]
    [ Network: sent 55 of 55 bytes via tcp
    local address = 192.168.19.144:2364
    remote address = 192.168.19.144:12000 ]
    [ Network: received 14 of 14 bytes via tcp
    local address = 192.168.19.144:2364
    remote address = 192.168.19.144:12000 ]
    [ Network: received 92 of 92 bytes via tcp
    local address = 192.168.19.144:2364
    remote address = 192.168.19.144:12000 ]
    [ Protocol: received reply
    message type = 2 (reply)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 106
    request id = 1
    reply status = 0 (ok) ]
    [ Network: trying to establish tcp connection to 192.168.19.144:1947 ]
    [ Network: tcp connection established
    local address = 192.168.19.144:2375
    remote address = 192.168.19.144:1947 ]
    [ Network: received 14 of 14 bytes via tcp
    local address = 192.168.19.144:2375
    remote address = 192.168.19.144:1947 ]
    [ Protocol: received validate connection
    message type = 3 (validate connection)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 14 ]
    [ Protocol: sending request
    message type = 0 (request)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 152
    request id = 1
    identity = IcePack/b1b9863d-f1b6-4938-914d-f21b3eab8f53
    facet =
    operation = setAdapterDirectProxy
    mode = 2 (idempotent)
    context = ]
    [ Network: sent 152 of 152 bytes via tcp
    local address = 192.168.19.144:2375
    remote address = 192.168.19.144:1947 ]
    [ Network: received 14 of 14 bytes via tcp
    local address = 192.168.19.144:2375
    remote address = 192.168.19.144:1947 ]
    [ Network: received 11 of 11 bytes via tcp
    local address = 192.168.19.144:2375
    remote address = 192.168.19.144:1947 ]
    [ Protocol: received reply
    message type = 2 (reply)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 25
    request id = 1
    reply status = 0 (ok) ]
    [ Protocol: sending close connection
    message type = 4 (close connection)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 14 ]
    [ Network: sent 14 of 14 bytes via tcp
    local address = 192.168.19.144:2364
    remote address = 192.168.19.144:12000 ]
    [ Protocol: sending close connection
    message type = 4 (close connection)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 14 ]
    [ Network: sent 14 of 14 bytes via tcp
    local address = 192.168.19.144:2375
    remote address = 192.168.19.144:1947 ]
    [ Network: shutting down tcp connection for writing
    local address = 192.168.19.144:2364
    remote address = 192.168.19.144:12000 ]
    [ Network: closing tcp connection
    local address = 192.168.19.144:2364
    remote address = 192.168.19.144:12000 ]
    [ Network: shutting down tcp connection for writing
    local address = 192.168.19.144:2375
    remote address = 192.168.19.144:1947 ]
    [ Network: closing tcp connection
    local address = 192.168.19.144:2375
    remote address = 192.168.19.144:1947 ]
    [ GoogleSearchService: Protocol: sending close connection
    message type = 4 (close connection)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 14 ]
    [ GoogleSearchService: Network: sent 14 of 14 bytes via tcp
    local address = 192.168.19.144:2360
    remote address = 192.168.19.144:1947 ]
    [ GoogleSearchService: Protocol: sending close connection
    message type = 4 (close connection)
    compression status = 0 (not compressed; do not compress response, if any)
    message size = 14 ]
    [ GoogleSearchService: Network: sent 14 of 14 bytes via tcp
    local address = 192.168.19.144:2349
    remote address = 192.168.19.144:12000 ]
    [ GoogleSearchService: Network: shutting down tcp connection for writing
    local address = 192.168.19.144:2360
    remote address = 192.168.19.144:1947 ]
    [ GoogleSearchService: Network: closing tcp connection
    local address = 192.168.19.144:2360
    remote address = 192.168.19.144:1947 ]
    [ GoogleSearchService: Network: shutting down tcp connection for writing
    local address = 192.168.19.144:2349
    remote address = 192.168.19.144:12000 ]
    [ GoogleSearchService: Network: closing tcp connection
    local address = 192.168.19.144:2349
    remote address = 192.168.19.144:12000 ]



    This shows my server started succesful
  • mes
    mes California
    Your signature still does not contain the information we requested in this announcement.

    I suggest running your client with the following properties enabled:

    Ice.Trace.Network=2
    Ice.Trace.Protocol=1
    Ice.Trace.Location=1

    If that still doesn't provide any clues, we will need an archive containing everything necessary to reproduce the problem (source code, configuration files, IcePack XML files, etc.).

    - Mark