Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 09-04-2005
Yunqiao Yin's Avatar
Yunqiao Yin Yunqiao Yin is offline
Registered User
 
Name: Yin Yunqiao
Organization: Baosteel
Project: real time process control system
 
Join Date: Jan 2004
Location: China
Posts: 56
Red face Confused with IcePack demos

Ice Version:2.1.2

first I add hello demo
Code:
icepackadmin --Ice.Config=config -e "application add 'application.xml'"
then I add simple demo according the READMEs.
The hello demo runs OK,but when I run simple demo's client,it report
Code:
./client: invalid proxy
or
Code:
LocatorInfo.cpp:330: Ice::NotRegisteredException:
 no object adapter with id `IceBox1.Service1.Hello' is registered
when I add some codes in Client.cpp
Code:
   Ice::PropertiesPtr properties = communicator->getProperties();

    IcePack::QueryPrx query = IcePack::QueryPrx::checkedCast(communicator->stringToProxy("IcePack/Query"));

    Ice::ObjectPrx base = query->findObjectByType("::Demo::Hello");
    cout << base->ice_id() << endl;  //added code
...
I got ": : Demo::HelloFactory"
I think maybe the hello demo's slice defination : : Demo::Hello class is incompatible with the simple demo's : : Demo::Hello interface. So I remove the
hello demo's application with icepackadmin's "application remove" instruction.But when I back to the simple demo's client,I just got the same output. I even use dumpdb to see the db/registry/objectregistry and found nothing about HelloFactory. So why?
__________________
Yunqiao Yin
Baosteel
real-time process control
ICE中文论坛http://lingdoo.just.as 欢迎大家捧场

Last edited by Yunqiao Yin : 09-04-2005 at 11:39 AM.
Reply With Quote
  #2 (permalink)  
Old 09-04-2005
matthew's Avatar
matthew matthew is online now
ZeroC Staff
 
Name: Matthew Newhook
Organization: ZeroC, Inc.
Project: Internet Communications Engine
 
Join Date: Feb 2003
Location: NL, Canada
Posts: 1,060
Are you trying to run the simple client against the hello server? If so, you cannot do that. The simple client runs against the simple server, and the hello client against the hello server.
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
confused with IceXML Yunqiao Yin Help Center 2 08-29-2006 12:21 AM
:confused: How to use Ice with other platform on windows, such as Dev-C++, C++Builder rocshaw Help Center 3 11-24-2005 03:48 AM
Confused with IcePack amrufon Help Center 7 06-10-2005 12:35 AM
Demos on ICE shantanu_k06 Comments 4 05-04-2004 02:06 PM
IcePack tutorials/ demos stephan Help Center 5 10-13-2003 09:36 PM


All times are GMT -4. The time now is 10:07 PM.


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.