Results 1 to 2 of 2

Thread: IceSL 0.3.2: oneway outgoing calls not supported?

  1. #1
    kwaclaw is offline Registered User
    Name: Karl Waclawek
    Organization: Personal
    Project: Whiteboard application
    Join Date
    Sep 2004
    Location
    Oshawa, Canada
    Posts
    159

    IceSL 0.3.2: oneway outgoing calls not supported?

    I am accessing IceStorm from a Silverlight app.

    The Slice definitions have no return values and no exceptions defined:
    Code:
      interface WhiteboardSession {
        ["ami"] void StartStroke(StylusPointSeq points);
        ["ami"] void AddPoints(StylusPointSeq points);
        ["ami"] void Clear();
        ["ami"] void Upload(StrokeDataSeq strokes);
      };
    The code to get the proxy is this:
    Code:
    switch (args.Task) {
      case TaskType.Connect:
        try {
          topic = topicMgr.retrieve(args.Topic);
        }
        catch (IceStorm.NoSuchTopic) {
          topic = topicMgr.create(args.Topic);
        }
        try {
          topic.subscribeAndGetPublisher(qos, localWhiteboard.Proxy);
          Ice.ObjectPrx pub = topic.getPublisher();
          remoteWhiteboard = Wbs.WhiteboardSessionPrxHelper.uncheckedCast(pub.ice_oneway());
          Dispatcher.BeginInvoke(() => { ConnectBtn.Content = "Disconnect"; });
        }
        catch (IceStorm.AlreadySubscribed) { }
        catch {
          Dispatcher.BeginInvoke(() => { WhiteBoardNameBox.IsReadOnly = false; });
          throw;
        }
        break;
    If I change the remoteWhiteboard proxy to a twoway proxy it works fine in Silverlight, but the oneway calls hang in Outgoing.invoke(), at Monitor.Wait(). The exact same code works OK with Ice for .NET.

    The Ice setup has 4 client threads:
    Code:
    Ice.InitializationData initData = new Ice.InitializationData();
    initData.properties = Ice.Util.createProperties();
    initData.properties.setProperty("Ice.Default.Router", "Glacier2/router:tcp -p 4502 -h " + args.Address);
    initData.properties.setProperty("Ice.ACM.Client", "0");
    initData.properties.setProperty("Ice.RetryIntervals", "0 10 100");
    initData.properties.setProperty("Ice.ThreadPool.Client.Size", "4");
    initData.properties.setProperty("Ice.ThreadPool.Client.SizeMax", "16");
    initData.properties.setProperty("Ice.MessageSizeMax", "1024");
    initData.properties.setProperty("Ice.FactoryAssemblies", "WhiteBoardSL,version=1.0.0.0");
    
    initData.properties.setProperty("TopicManager.Proxy", "Whiteboard/TopicManager:tcp -p 4505");
    comm = Ice.Util.initialize(initData);
    
    Ice.RouterPrx defaultRouter = comm.getDefaultRouter();
    if (defaultRouter == null)
      throw new Exception("no default router set");
    
    router = Glacier2.RouterPrxHelper.checkedCast(defaultRouter);
    if (router == null)
      throw new Exception("configured router is not a glacier2 router");
    
    session = router.createSession("", "");
    String category = router.getCategoryForClient();
    
    Ice.ObjectAdapter adapter = comm.createObjectAdapterWithRouter("WhiteboardAdapter", router);
    WhiteboardSessionI wbSession = new WhiteboardSessionI(args.Page.InkP, adapter, category);
    Karl
    Karl Waclawek

  2. #2
    xdm's Avatar
    xdm
    xdm is offline ZeroC Staff
    Name: Jose Gutierrez de la Concha
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Sep 2003
    Location
    La Coruña, Spain
    Posts
    588
    Hi Karl,

    This is a bug in IceSl-0.3.2 socket transport, we are going to fix this in next IceSl release that would be available soon.

    Thanks for the bug report.

    José

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. IceSL and Silverlight 4
    By kwaclaw in forum Comments
    Replies: 2
    Last Post: 05-12-2010, 10:38 PM
  2. IceSL 0.3.3: MemoryStream issue
    By kwaclaw in forum Bug Reports
    Replies: 4
    Last Post: 11-12-2008, 10:46 AM
  3. IceSL 0.3.2: ArgumentException in IceConnection.cs
    By kwaclaw in forum Bug Reports
    Replies: 0
    Last Post: 10-20-2008, 05:41 PM
  4. IceSL 0.3.2 - generateUUID()
    By kwaclaw in forum Bug Reports
    Replies: 1
    Last Post: 10-20-2008, 07:40 AM
  5. Delay of OneWay-Calls
    By wgwolf in forum Help Center
    Replies: 1
    Last Post: 11-10-2005, 08:24 PM

Posting Permissions

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