Hi Ingvord, thanks
I had attached a tomcat’s log file on my first post, as for debug i provide some one information as follow:
C:\Users\ICS>curl -u "tango-cs:tango" http://localhost:8080/tango/rest
{"v10":"http://localhost:8080/tango/rest/v10","v11":"http://localhost:8080/tango/rest/v11"}
C:\Users\ICS>curl -u "tango-cs:tango" http://localhost:8080/tango/rest/v10/hosts/localhost;port=10000/devices/
[{"name":"dserver/DataBaseds/2","href":"http://localhost:8080/tango/rest/v10/hosts/localhost;port=10000/devices/dserver/DataBaseds/2"},{"name":"dserver/TangoAccessControl/1","href":"http://localhost:8080/tango/rest/v10/hosts/localhost;port=10000/devices/dserver/TangoAccessControl/1"},{"name":"dserver/TangoRestServer/rest","href":"http://localhost:8080/tango/rest/v10/hosts/localhost;port=10000/devices/dserver/TangoRestServer/rest"},{"name":"dserver/TangoTest/test","href":"http://localhost:8080/tango/rest/v10/hosts/localhost;port=10000/devices/dserver/TangoTest/test"},{"name":"sys/access_control/1","href":"http://localhost:8080/tango/rest/v10/hosts/localhost;port=10000/devices/sys/access_control/1"},{"name":"sys/database/2","href":"http://localhost:8080/tango/rest/v10/hosts/localhost;port=10000/devices/sys/database/2"},{"name":"sys/rest/0","href":"http://localhost:8080/tango/rest/v10/hosts/localhost;port=10000/devices/sys/rest/0"},{"name":"sys/tg_test/1","href":"http://localhost:8080/tango/rest/v10/hosts/localhost;port=10000/devices/sys/tg_test/1"}]
C:\Users\ICS>curl -u "tango-cs:tango" http://localhost:8080/tango/rest/v11/hosts/localhost/devices/sys/tg_test/1/
{"id":"localhost:10000/sys/tg_test/1","name":"sys/tg_test/1","host":"localhost:10000","info":{"name":"sys/tg_test/1","ior":"IOR:010000001700000049444c3a54616e676f2f4465766963655f353a312e300000010000000000000060000000010102000a0000003132372e302e302e3100e3e10e000000fe5db81b61000022b0000000000000000200000000000000080000000100000000545441010000001c00000001000000010001000100000001000105090101000100000009010100","version":"5","exported":true,"pid":8880,"server":"TangoTest/test","hostname":"desktop-rheknrh","classname":"unknown","is_taco":false,"last_exported":"17th August 2021 at 21:23:41","last_unexported":"17th August 2021 at 09:04:02"},"attributes":"http://localhost:8080/tango/rest/v11/hosts/localhost/devices/sys/tg_test/1//attributes","commands":"http://localhost:8080/tango/rest/v11/hosts/localhost/devices/sys/tg_test/1//commands","pipes":"http://localhost:8080/tango/rest/v11/hosts/localhost/devices/sys/tg_test/1//pipes","properties":"http://localhost:8080/tango/rest/v11/hosts/localhost/devices/sys/tg_test/1//properties","state":"http://localhost:8080/tango/rest/v11/hosts/localhost/devices/sys/tg_test/1//state"}
C:\Users\ICS>curl -u "tango-cs:tango" http://localhost:8080/tango/rest/v11/hosts/localhost/devices/sys/tg_test/1/attributes/double_scalar/
{"id":"localhost:10000/sys/tg_test/1/double_scalar","name":"double_scalar","device":"sys/tg_test/1","host":"localhost:10000","info":{"name":"double_scalar","writable":"READ_WRITE","data_format":"SCALAR","data_type":"DevDouble","max_dim_x":1,"max_dim_y":0,"description":"No description","label":"double_scalar","unit":"","standard_unit":"No standard unit","display_unit":"No display unit","format":"%6.2f","min_value":"Not specified","max_value":"Not specified","min_alarm":"Not specified","max_alarm":"Not specified","writable_attr_name":"double_scalar","level":"OPERATOR","extensions":[],"alarms":{"min_alarm":"Not specified","max_alarm":"Not specified","min_warning":"Not specified","max_warning":"Not specified","delta_t":"Not specified","delta_val":"Not specified","extensions":[],"tangoObj":{"min_alarm":"Not specified","max_alarm":"Not specified","min_warning":"Not specified","max_warning":"Not specified","delta_t":"Not specified","delta_val":"Not specified","extensions":[]}},"events":{"ch_event":{"rel_change":"Not specified","abs_change":"Not specified","extensions":[],"tangoObj":{"rel_change":"Not specified","abs_change":"Not specified","extensions":[]}},"per_event":{"period":"1000","extensions":[],"tangoObj":{"period":"1000","extensions":[]}},"arch_event":{"rel_change":"Not specified","abs_change":"Not specified","period":"Not specified","extensions":[],"tangoObj":{"rel_change":"Not specified","abs_change":"Not specified","period":"Not specified","extensions":[]}},"tangoObj":{"ch_event":{"rel_change":"Not specified","abs_change":"Not specified","extensions":[]},"per_event":{"period":"1000","extensions":[]},"arch_event":{"rel_change":"Not specified","abs_change":"Not specified","period":"Not specified","extensions":[]}}},"extensions":[],"sys_extensions":[],"isMemorized":false,"isSetAtInit":true,"memorized":"NOT_MEMORIZED","root_attr_name":"Not specified","enum_label":[]},"value":"http://localhost:8080/tango/rest/v11/hosts/localhost;port=10000/devices/sys/tg_test/1/attributes/double_scalar/value","properties":"http://localhost:8080/tango/rest/v11/hosts/localhost;port=10000/devices/sys/tg_test/1/attributes/double_scalar/properties","history":"http://localhost:8080/tango/rest/v11/hosts/localhost;port=10000/devices/sys/tg_test/1/attributes/double_scalar/history"}
C:\Users\ICS>curl -u "tango-cs:tango" http://localhost:8080/tango/rest/v11/hosts/localhost/devices/sys/tg_test/1/attributes/double_scalar/value
C:\Users\ICS>curl -u "tango-cs:tango" http://localhost:8080/tango/rest/v11/hosts/localhost/devices/sys/tg_test/1/attributes/double_scalar/value
C:\Users\ICS>
http://localhost:8080/tango/rest/v11/hosts/localhost/devices/sys/tg_test/1/attributes/double_scalar/value not return any data, at same time tomcat cosole output:
WARN [http-nio-8080-exec-1] org.jboss.resteasy.core.registry.SegmentNode.match RESTEASY002142: Multiple resource methods match request "GET /rest/v11/hosts/localhost/devices/sys/tg_test/1/attributes/double_scalar/value". Selecting one. Matching methods: [public org.tango.rest.v10.JaxRsDeviceAttribute$ImageAttributeValue org.tango.rest.v10.JaxRsDeviceAttribute.deviceAttributeGetValueImage() throws java.lang.Exception, public java.lang.Object org.tango.rest.v10.JaxRsDeviceAttribute.deviceAttributeGetValuePlain() throws java.lang.Exception, public org.tango.rest.v10.entities.AttributeValue org.tango.rest.v10.JaxRsDeviceAttribute.deviceAttributeValueGet() throws fr.esrf.Tango.DevFailed]
stop and restart tomcat, then:
C:\Users\ICS>curl -u "tango-cs:tango" http://localhost:8080/tango/rest/v11/hosts/localhost/devices/sys/tg_test/1/attributes/double_scalar/value
-100.02646367483833
C:\Users\ICS>curl -u "tango-cs:tango" http://localhost:8080/tango/rest/v11/hosts/localhost/devices/sys/tg_test/1/attributes/double_scalar/value
-104.12387729298892
C:\Users\ICS>curl -u "tango-cs:tango" http://localhost:8080/tango/rest/v11/hosts/localhost/devices/sys/tg_test/1/attributes/double_scalar/value
-108.18957382302479
C:\Users\ICS>curl -u "tango-cs:tango" http://localhost:8080/tango/rest/v11/hosts/localhost/devices/sys/tg_test/1/attributes/double_scalar/value
{"name":"double_scalar","host":"localhost:10000","device":"sys/tg_test/1","value":-204.45016137046377,"quality":"ATTR_VALID","timestamp":1629208730662}
C:\Users\ICS>curl -u "tango-cs:tango" http://localhost:8080/tango/rest/v11/hosts/localhost/devices/sys/tg_test/1/attributes/double_scalar/value
{"name":"double_scalar","host":"localhost:10000","device":"sys/tg_test/1","value":-228.09725384486381,"quality":"ATTR_VALID","timestamp":1629208750736}
C:\Users\ICS>curl -u "tango-cs:tango" http://localhost:8080/tango/rest/v11/hosts/localhost/devices/sys/tg_test/1/attributes/double_scalar/value
{"name":"double_scalar","host":"localhost:10000","device":"sys/tg_test/1","value":-232.01440271492828,"quality":"ATTR_VALID","timestamp":1629208754137}
The output is every strange, same repeated command’s return data element may different!!! tomcat cosole output the same WARN message as above!
I have another question: is tango.war or waltz.war must configure a TangoAccessControl device for it?
I’ll check my tomcat configuration to find the problem! thanks for your help.