Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 04-24-2004
brian brian is offline
Registered User
 
Name: brian whitney
Organization: boulder research and development
Project: MarketBank
 
Join Date: Oct 2003
Posts: 119
NoEndpointException and dynamic loading using IcePack

We have been using IcePack successfully on Unix and Windows for a while now and we are really happy with it, indirect binding and on-demand activation are great features. We give icepackadmin an application file and then when we try to access the proxy of a service that has not yet been started, IcePack starts up the service automatically as you would expect.

However, we have recently noticed an issue with on-demand activation when we try to access the proxy for services contained in a large (~12 Meg) .so files or large jar files. We get a NoEndpointException when trying to do a checkedCast when trying to build the proxy for the first time:

Ice.NoEndpointException
proxy = "Demo_MarketBank -t @ Demo_MarketBank-Demo_MarketBank.Demo_MarketBank"
at IceInternal.Reference.getConnection(Reference.java :646)
at Ice._ObjectDelM.setup(_ObjectDelM.java:216)
at Ice.ObjectPrxHelper.__getDelegate(ObjectPrxHelper. java:657)
at Ice.ObjectPrxHelper.ice_isA(ObjectPrxHelper.java:4 6)
at Ice.ObjectPrxHelper.ice_isA(ObjectPrxHelper.java:3 4)
at icy.conductor.ConductorServantFacetPrxHelper.check edCast(ConductorServantFacetPrxHelper.java:213)
at icy.conductor.PlatformView.buildProxy(PlatformView .java:236)


After the client side receives this exception, THEN we see from a debug statement that our service gets started in our overriden IceBox::start method (perhaps because you thread out the starting of the service? )

If we then try to go through the same series of steps to build the proxy a second time, it works! We can access our servant and go to town.

Again, this does NOT happen when smaller files have to be dynamically loaded by IcePack. Not positive, of course, this loading thing is the issue, but only clue we could find.

Just in case, we took out any timeout specifications we had using "-t" and now use the Ice.Override.Timeout=-1 setting in our configuration file.

We can't send you our libraries so we were just wondering if this is something you could test on your end and see if, in fact, this is a bug.

Thoughts and/or suggestions welcome.

Thanks,

Brian
Reply With Quote
  #2 (permalink)  
Old 04-26-2004
benoit's Avatar
benoit benoit is online now
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,542
I'm happy to hear you're successfully using IcePack!

Your problem is most likely caused by the IcePack node not waiting enough for your server to start. If the object adapter (which caused the on-demand activation) isn't activated in the time specified by IcePack.Node.WaitTime (which defaults to 60s), your client will receive this Ice::NoEndpointException.

Try to increase the IcePack.Node.WaitTime value, this should fix your problem!

Benoit.
Reply With Quote
  #3 (permalink)  
Old 04-27-2004
brian brian is offline
Registered User
 
Name: brian whitney
Organization: boulder research and development
Project: MarketBank
 
Join Date: Oct 2003
Posts: 119
Thanks Benoit! I wish more problem were that easy to solve!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
NoEndpointException and IceGrid albertods Help Center 2 11-22-2006 07:53 AM
? about callback : NoEndpointException Jacky_Lee Help Center 10 08-28-2006 10:20 PM
Ice.NoEndpointException when any node not start illo Help Center 5 07-20-2006 10:45 PM
Loading properties file in MFC sample Kruppy Help Center 6 11-08-2005 04:01 PM
IcePack + Debian Linux + Mono + NoEndpointException kovacm Bug Reports 10 07-20-2005 07:29 AM


All times are GMT -4. The time now is 10:18 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.