Problem running IceStorm subscriber

in Help Center
Hi,
I try to use IceStorm with IceE and when I run my subscriber I have an error in this line (object adapter creation) :
Is someone have an idea ?
Thanks
I try to use IceStorm with IceE and when I run my subscriber I have an error in this line (object adapter creation) :
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("Hello.Subscriber");
Is someone have an idea ?
Thanks
0
Comments
"Myappli.exe ceased functioning" and it exit.
thanks
Have you correctly configured adapter enpoints? Attempts to create a named object adapter for which no endpoint or router configuration can be found raise InitializationException. see http://www.zeroc.com/doc/Ice-3.3.1/reference/Ice/Communicator.html#createObjectAdapter
In your example, you should use Hello.Subscriber.Endpoints property to configure adapter endpoints. Alternatively you can use createObjectAdapterWithEndpoints that receives the enpoinds as is second argument see http://www.zeroc.com/doc/Ice-3.3.1/reference/Ice/Communicator.html#createObjectAdapterWithEndpoints
Your code should also deal with InitializationException that can be throw from createObjectAdapter.
Bests,
José
I use the configuration file in IceStorm clock demo with a little modification. I already try use createObjectAdapterWithEndpoints but nothing change. My code is below :
thanks
the problem is resolved.
Thanks