Results 1 to 5 of 5

Thread: NoEndpoint Exception

  1. #1
    yesiamvinu is offline Registered User
    Join Date
    Oct 2005
    Location
    Troy
    Posts
    6

    Unhappy 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.I ceServices GoogleServiceContext.xml googleSearch masterSearch
    GoogleSearchService.Endpoints=default
    GoogleSearchService.AdapterId=theGoogleSearchServi ce
    GoogleSearchService.Proxy=myWork@theGoogleSearchSe rvice


    ************************************************** *****
    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(Indire ctReference.java:180)
    at Ice._ObjectDelM.setup(_ObjectDelM.java:199)
    at Ice.ObjectPrxHelperBase.__getDelegate(ObjectPrxHel perBase.java:648)
    at com.myworks.google.services.GoogleservicesPrxHelpe r.doAction(GoogleservicesPrxHelper.java:30)
    at com.myworks.google.services.GoogleservicesPrxHelpe r.doAction(GoogleservicesPrxHelper.java:19)
    at org.bootstrap.TestService.main(TestService.java:21 )


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

  2. #2
    mes's Avatar
    mes
    mes is offline ZeroC Staff
    Name: Mark Spruiell
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Feb 2003
    Location
    California
    Posts
    1,441
    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

  3. #3
    yesiamvinu is offline Registered User
    Join Date
    Oct 2005
    Location
    Troy
    Posts
    6

    server started perfect

    hi mark
    my server has started perfect. my client cannot read my server.
    Thanks
    Vinu
    ---------
    With Smiles
    vinu
    HTC Global Service.inc

  4. #4
    yesiamvinu is offline Registered User
    Join Date
    Oct 2005
    Location
    Troy
    Posts
    6

    Question 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
    With Smiles
    vinu
    HTC Global Service.inc

  5. #5
    mes's Avatar
    mes
    mes is offline ZeroC Staff
    Name: Mark Spruiell
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Feb 2003
    Location
    California
    Posts
    1,441
    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. user exception causes unmarshalling exception
    By Stuart Brodsky in forum Help Center
    Replies: 9
    Last Post: 04-29-2009, 02:21 PM
  2. Replies: 2
    Last Post: 12-13-2006, 10:52 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •