Go Back   ZeroC Forums > Bug Reports

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 06-04-2007
dormantdemon's Avatar
dormantdemon dormantdemon is offline
Registered User
 
Name: James Moffet
Organization: EWA
Project: FPS Serious Game
 
Join Date: May 2007
Posts: 3
Problem with IceBox 3.2.0?

I have been trying to set up an IceBox service based on the examples provided in Ice 3.2.0 democs (C#).

I replaced all the "Hello" demo code with my own code and have made sure that I am following the example provided in democs/IceBox/hello.

When I start the icebox service with:

iceboxnet --Ice.Config=config.icebox

I get the following error:

C:\dev\GGE\GGE\AutomatonFactoryService>iceboxnet --Ice.Config=config.icebox
iceboxnet.exe: error: IceBox.FailureException: FailureException
reason = "ServiceManager: unable to load service 'AutomatonFactoryService.dll:AutomatonFactoryServi ceI': InvalidCastException to Ice.PluginFactory"
at ServiceManagerI.startService(String service, String entryPoint, String[] args) in c:\src\vc80\stage\IceCS-3.1.0\src\IceBox\ServiceManagerI.cs:line 303
at ServiceManagerI.load(String name, String value) in c:\src\vc80\stage\IceCS-3.1.0\src\IceBox\ServiceManagerI.cs:line 218
at ServiceManagerI.run() in c:\src\vc80\stage\IceCS-3.1.0\src\IceBox\ServiceManagerI.cs:line 105
Caused by: System.InvalidCastException: Unable to cast object of type 'AutomatonFactoryServiceI' to type 'IceBox.Service'.
at ServiceManagerI.startService(String service, String entryPoint, String[] args) in c:\src\vc80\stage\IceCS-3.1.0\src\IceBox\ServiceManagerI.cs:line 297


Where my config file looks like:

IceBox.InstanceName=ServiceIceBox
IceBox.ServiceManager.Endpoints=tcp -p 9998

IceBox.Service.AutomatonFactory=AutomatonFactorySe rvice.dll:AutomatonFactoryServiceI --Ice.Config=config.service

Ice.Warn.Connections=1


After going through the example and my code many many times, I decided to see if the example produced the same results. I cut all the SSL stuff out of the config files for the "hello" demo and voila! Same problem.

C:\dev\Ice-3.2.0\democs\IceBox\hello>iceboxnet --Ice.Config=config.icebox
iceboxnet.exe: error: IceBox.FailureException: FailureException
reason = "ServiceManager: unable to load service 'helloservice.dll:HelloServiceI': InvalidCastException to Ice.PluginFactory"
at ServiceManagerI.startService(String service, String entryPoint, String[] args) in c:\src\vc80\stage\IceCS-3.1.0\src\IceBox\ServiceManagerI.cs:line 303
at ServiceManagerI.load(String name, String value) in c:\src\vc80\stage\IceCS-3.1.0\src\IceBox\ServiceManagerI.cs:line 218
at ServiceManagerI.run() in c:\src\vc80\stage\IceCS-3.1.0\src\IceBox\ServiceManagerI.cs:line 105
Caused by: System.InvalidCastException: Unable to cast object of type 'HelloServiceI' to type 'IceBox.Service'.
at ServiceManagerI.startService(String service, String entryPoint, String[] args) in c:\src\vc80\stage\IceCS-3.1.0\src\IceBox\ServiceManagerI.cs:line 297


Note how the 3.2.0 code is returning an error referencing 3.1.0 (related?)

I have reluctantly decided to post here knowing full well that the problem is probably on my end... but I am stuck and need a sanity check
Reply With Quote
  #2 (permalink)  
Old 06-04-2007
dormantdemon's Avatar
dormantdemon dormantdemon is offline
Registered User
 
Name: James Moffet
Organization: EWA
Project: FPS Serious Game
 
Join Date: May 2007
Posts: 3
More Info

The problem listed above occured on/under:

Windows XP service Pack 2
HP 2.0 Ghz Pentium M with 1 GB RAM
Visual Studio 2005 Professional
Reply With Quote
  #3 (permalink)  
Old 06-04-2007
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: 971
Hi,

My guess is that the iceboxnet executable in your PATH is actually from Ice 3.1.0. Have you checked that?

Take care,
- Mark
Reply With Quote
  #4 (permalink)  
Old 06-04-2007
dormantdemon's Avatar
dormantdemon dormantdemon is offline
Registered User
 
Name: James Moffet
Organization: EWA
Project: FPS Serious Game
 
Join Date: May 2007
Posts: 3
Multiple Ice Versions

Well... yes... I had two versions of Ice installed and while my ICE_HOME and ICE_PATH environment variables were set to 3.2.0, my PATH contained 3.1.0.

PEBCAK (Problem Exists Between Chair And Keyboard)

By Fixing that, rebooting, and rebuilding everything my program now works.

Thanks!
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


All times are GMT -4. The time now is 08:56 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.