View Single Post
  #1 (permalink)  
Old 12-21-2005
xdm's Avatar
xdm xdm is online now
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: 299
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