Adding attributes from different Tango Domains in AttributeList (ATKCore)

Dear All,

I want to add attributes of a devices registered in Different Tango Domains in the attribute list (fr.esrf.tangoatk.core.AttributeList). I specify the FQDN (tango://host:port/device_name/) of the attribute, but I get the connection exception.

Severity: ERROR
Origin: TangoUrl.TangoUrl()
Description: Device name (://hostname:10000/j/v/1) wrong definition.
Reason: TangoApi_BAD_DEVICE_NAME

	at fr.esrf.TangoDs.Except.throw_wrong_syntax_exception(Except.java:816)
	at fr.esrf.TangoDs.Except.throw_wrong_syntax_exception(Except.java:753)
	at fr.esrf.TangoApi.TangoUrl.<init>(TangoUrl.java:189)
	at fr.esrf.TangoApi.ConnectionDAODefaultImpl.init(ConnectionDAODefaultImpl.java:158)
	at fr.esrf.TangoApi.Connection.<init>(Connection.java:198)
	at fr.esrf.TangoApi.DeviceProxy.<init>(DeviceProxy.java:147)
	at fr.esrf.tangoatk.core.Device.<init>(Device.java:105)
	at fr.esrf.tangoatk.core.DeviceFactory.getDevice(DeviceFactory.java:245)
	at fr.esrf.tangoatk.core.AEntityFactory.getDevice(AEntityFactory.java:203)
	at fr.esrf.tangoatk.core.AEntityFactory.getEntities(AEntityFactory.java:222)
	at fr.esrf.tangoatk.core.AEntityList.add(AEntityList.java:271)

I'm able to successfully create the DeviceProxy using the constructor :-> DeviceProxy(String devname, String host, String port) and read the attributes.

Please help in resolving the issue.

Regards,
Vatsal
Hi
That is true. Your device ://hostname:10000/j/v/1 has wrong definition.
Why does it start with ':' ?
It should be tango://hostname:10000/j/v/1 or //hostname:10000/j/v/1

Regards
Pascal
Edited 9 years ago
 
Register or login to create to post a reply.