Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 12-21-2005
xdm's Avatar
xdm xdm is offline
ZeroC Staff
 
Name: José Gutíerrez de la Concha Martínez
Organization: ZeroC, Inc.
Project: Ice Developer
 
Join Date: Sep 2003
Location: La Coruña, Spain
Posts: 292
Problems migrating fron IcePack to IceGrid

I have same problems migrating from IcePack to IceGrid.

I have a icebox service previous working with IcePack with out problems whe i try to migrate this service to icegrid my service terminated unexpectly when I try to create a Freeze::Evictor

ServiceI code:
Code:
void
Oz::Files::FileServiceI::start(const std::string& name, const
   Ice::CommunicatorPtr& communicator, const Ice::StringSeq& args)
{
	std::cout<<"Try to start FileServiceI"<<std::endl;
	Oz::Files::FileServiceI::_adapter =communicator->createObjectAdapter(name);
	std::cout<<"adapter name: "<<name<<" created ok"<<std::endl;
	
	Oz::Files::FileServiceI::_evictor=Freeze::createEvictor(
	Oz::Files::FileServiceI::_adapter,
	"Files",
	"FilesDB");

	std::cout<<"Evictor created OK"<<std::endl;
        ...............................
icegridnode ouput:
Code:
[ icegridnode: Server: changed server `FileService' state to `Inactive' ]
[ icegridnode: Server: changed server `FileService' state to `Activating' ]
[ icegridnode: Activator: activating server `FileService'
  path = /opt/Ice-3.0.0/bin/icebox
  pwd =
  args = /opt/Ice-3.0.0/bin/icebox --Ice.Config=/opt/oz-tpv/DB/icegrid/saturno/servers/FileService/config/config --Ice.Default.Locator=IceGrid/Locator:tcp -h 192.168.0.3 -p 12000 --Ice.ServerId=FileService ]
[ icegridnode: Activator: activated server `FileService' (pid = 5204) ]
[ icegridnode: Server: changed server `FileService' state to `WaitForActivation' ]
Try to start FileServiceI
adapter name: Files created ok
[ icegridnode: Activator: detected termination of server `FileService' ]
[ icegridnode: Adapter: server `FileService' adapter `FileService.Files.Files' deactivated ]
[ icegridnode: Server: changed server `FileService' state to `Inactive' ]
Icegrid descripto:
Code:
<icegrid>
	<application name="oz-files">
	<node name="saturno">
		<icebox id="FileService"
			exe="/opt/Ice-3.0.0/bin/icebox"
			activation="on-demand">
			<service name="Files" entry="Files:create">
				<adapter name="${service}" endpoints="tcp"/>
				<dbenv name="Files" home="/opt/oz-tpv/DB/Files"/>
				
				<property name="Identity" value="FileServer/FileServer"/>
				<property name="Ice.MessageSizeMax" value="20480"/>
				<property name="Freeze.DbEnv.Files.OldLogsAutoDelete" value="0"/>
				<property name="Freeze.DbEnv.Files.DbPrivate" value="0"/>
			<property name="Freeze.DbEnv.Files.CheckpointPeriod" value="-1"/>
			</service>
		</icebox>
	</node>
	</application>
</icegrid>
any ideas of what is wrong?

Thanks
Reply With Quote
  #2 (permalink)  
Old 12-21-2005
bernard's Avatar
bernard bernard is online now
ZeroC Staff
 
Name: Bernard Normier
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Palm Beach Gardens, FL
Posts: 816
Hi Jose,

I'd recommend to add a try / catch block around your evictor creation. If this creation fails, you want more info about the problem.

Also, did you check that your database home directory, /opt/oz-tpv/DB/Files, exists and is writable by your application?

Best regards,
Bernard
__________________
Bernard Normier
ZeroC, Inc.
Reply With Quote
  #3 (permalink)  
Old 12-21-2005
xdm's Avatar
xdm xdm is offline
ZeroC Staff
 
Name: José Gutíerrez de la Concha Martínez
Organization: ZeroC, Inc.
Project: Ice Developer
 
Join Date: Sep 2003
Location: La Coruña, Spain
Posts: 292
Thanks bernard for your reply.

The problem was that FilesService was linked with a diferent db_cxx version of one that is used with Ice.

sorry for disturb you with this question
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
About IcePack and IceGrid ZeroX Help Center 2 09-07-2006 01:01 AM
Problems with 3.0.1 cross-platform IceGrid brian Help Center 0 02-17-2006 03:04 PM
Migrating objects between machines Nis Baggesen Help Center 6 02-17-2005 08:36 AM
Puzzled by IcePack/Locator and IcePack/Query rc_hz Help Center 2 11-13-2004 10:41 PM
icepack registry problems wolfram Help Center 4 09-01-2004 09:45 AM


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