Results 1 to 5 of 5

Thread: problem with char ':' in identity.name

  1. #1
    xdm's Avatar
    xdm
    xdm is offline ZeroC Staff
    Name: Jose Gutierrez de la Concha
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Sep 2003
    Location
    La Coruņa, Spain
    Posts
    588

    problem with char ':' in identity.name

    Hi zeroc

    Is correct include the char ':' in the indentity.name?

    i observe the next problem

    I try to register a object in IceGrid with id "192.168.0.20:8080/WebManager"

    here is the descriptor that i use and the template works well with other ids

    Code:
    <!--WebService-->
    <server-instance
    	template="WebService"
    	icebox-id="DogaWebService"
    	exe="/opt/Ice-3.0.1/bin/icebox"
    	dll-entry-point="DogaWeb:create"
    	server-name="DogaWebService"
    	identity="192.168.0.20:8080/WebManager"
    	router="Glacier2/router:tcp -h 192.168.0.20 -p 10005"
    	domainName="alcompleto.com"
    	xslTemplateDir="/home/pepone/hydra/WebFramework/xsl"/>
    and here the IceGrid exception when parse the descriptor

    Code:
    [ icegridregistry: Object: added object `SessionService-permission-verifier' ]
    icegridregistry: warning: dispatch exception: ReferenceFactory.cpp:448: Ice::EndpointParseException:
    error while parsing endpoint `8080/WebManager@titanio-DogaWebService.DogaWebService.DogaWebService'
    identity: IceGrid/Admin
    facet:
    operation: addApplication
    Last edited by xdm; 06-19-2006 at 08:40 PM.

  2. #2
    xdm's Avatar
    xdm
    xdm is offline ZeroC Staff
    Name: Jose Gutierrez de la Concha
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Sep 2003
    Location
    La Coruņa, Spain
    Posts
    588
    After add this descriptor the application is not complete added and i can remove the servers tha are created from Icegridadmin

    here is the icegridadmin ouput
    Code:
    pepone@localhost ~/hydra/etc/linux $ icegridadmin --Ice.Config=config.titanio
    Ice 3.0.1  Copyright 2003-2005 ZeroC, Inc.
    This copy of Ice is free software. You are welcome to change it and/or
    distribute copies under certain conditions. Type "show copying" to see
    these conditions.
    There is absolutely no warranty for Ice. Type "show warranty" for details.
    
    >>> server list
    >>> application add hydra-server.xml
    error: couldn't reach the IceGrid registry:
    Outgoing.cpp:415: Ice::UnknownLocalException:
    unknown local exception:
    ReferenceFactory.cpp:448: Ice::EndpointParseException:
    error while parsing endpoint `8080/WebManager@titanio-DogaWebService.DogaWebService.DogaWebService'
    >>> server list
    DomainService
    DomainServiceManager
    FileService
    FileServiceManager
    LuceneService
    MetaService
    MetaServiceManager
    SessionService
    titanio-DogaWebService
    >>> object list
    DomainManagerServer/Alcompleto
    DomainServer/Alcompleto
    FileManagerServer/Alcompleto
    FileServer/Alcompleto
    LuceneServer/Alcompleto
    MetaManagerServer/Alcompleto
    MetaServer/Alcompleto
    SessionServer/Alcompleto
    SessionService-SessionManager
    SessionService-permission-verifier
    error: ../../include/IceUtil/Handle.h:39: IceUtil::NullHandleException
    >>> application list
    >>> server list
    DomainService
    DomainServiceManager
    FileService
    FileServiceManager
    LuceneService
    MetaService
    MetaServiceManager
    SessionService
    titanio-DogaWebService
    >>> server remove titanio-DogaWebService
    error: couldn't find application `hydra'
    >>> server list
    DomainService
    DomainServiceManager
    FileService
    FileServiceManager
    LuceneService
    MetaService
    MetaServiceManager
    SessionService
    titanio-DogaWebService
    >>> server remove titanio-DogaWebService

  3. #3
    bernard's Avatar
    bernard is offline ZeroC Staff
    Name: Bernard Normier
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Palm Beach Gardens, FL
    Posts
    1,294
    Hi Jose,

    Could you also post your template descriptor 'WebService'?

    ':' are allowed in identities, but must be escaped in proxies.

    Cheers,
    Bernard
    Bernard Normier
    ZeroC, Inc.

  4. #4
    xdm's Avatar
    xdm
    xdm is offline ZeroC Staff
    Name: Jose Gutierrez de la Concha
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Sep 2003
    Location
    La Coruņa, Spain
    Posts
    588
    Here is the WebService descriptor
    Code:
    <server-template id="WebService">
    	<parameter name="icebox-id"/>
    	<parameter name="exe"/>
    	<parameter name="dll-entry-point"/>
    	<parameter name="server-name"/>
    	<parameter name="identity"/>
    	<parameter name="router"/>
    	<parameter name="domainName"/>
    	<parameter name="xslTemplateDir"/>
    	<icebox id="${node}-${icebox-id}"
    		exe="${exe}"
    		activation="on-demand">	
    	<service name="${server-name}" entry="${dll-entry-point}">
    		<adapter 
    			 name="${service}" 
    			 endpoints="tcp"
    			 register-process="true">
    			<property name="Identity" value="$identity"/>
    			<object 
    				identity="${identity}" 
    				type="::Oz::Web::ApplicationManager"/>
    		</adapter>
    		<property name="router" value="${router}"/>
    		<property name="serviceId" value="${identity}"/>
    		<property name="domainName" value="${domainName}"/>
    		<property name="xslTemplateDir" value="${xslTemplateDir}"/>
    		<property name="Ice.MessageSizeMax" value="2048"/>
    	</service>
    </icebox>
    </server-template>

  5. #5
    benoit's Avatar
    benoit is offline ZeroC Staff
    Name: Benoit Foucher
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Rennes, France
    Posts
    2,196
    Hi Jose,

    I'm afraid that's a bug in IceGrid wrt identities. This bug will be fixed in the upcoming Ice 3.1!

    Cheers,
    Benoit.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Is this a bug? (Wide char)
    By while(1){} in forum Help Center
    Replies: 4
    Last Post: 01-05-2006, 07:27 AM
  2. I need char pointers (char *)
    By catalin in forum Help Center
    Replies: 5
    Last Post: 08-16-2004, 04:33 PM
  3. Replies: 4
    Last Post: 05-28-2004, 05:52 PM
  4. Using Char* with SLICE
    By amrufon in forum Help Center
    Replies: 2
    Last Post: 08-01-2003, 09:58 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •