I'm getting the following error when issuing the following statement in my agent to connect to a customer's zone:
zone.connect(ADKFlags.PROV_REGISTER);
Error:
Unknown zone '' specified in request URI. The SIFWorks zone URL format is 'protocol://host:port/zoneId'. The zoneId is case-sensitive
I know that the zone and the URL I'm connecting to are correct (I can connect to them directly from my test server). I also believe that my code in general is correct because I can connect to another zone (the SIF test zone).
Any ideas why I can't connect to this customer's zone? They have 10 other agents successfully connected to them so I don't think the problem is on their end.
Thanks,
Miriam
Miriam,
Are you using an agent.cfg file? If you are you should see something like:
<zone id="Zone1" template="Default" url="http://localhost:7080/Zone1a" />
In this example the connect fails with the
'The SIFWorks zone URL format is 'protocol://host:port/zoneId'. The zoneId is case-sensitive' error
because 'Zone1a' in the url is incorrect.
The ZoneID on the ZIS must be identical to what is used in the url. Are you changing ZoneIds when running against the test zone and the customer's zone?
Jonathan
Hi Jonathan,
I don't have <zone> tags in my agent.cfg, I'm getting zone id and url via a database table (so yes, they are different depending on the customer I'm connecting with). I can see in the debugger that the zone id and url are correct (and the customer has other agents connecting to them). The exception I get from the zone.connect call makes it sound like the zone id is empty, but that doesn't make any sense to me.
Have you asked the customer for the URL to their zone? Try connecting to that URL with your browser to see if you get an XML message back from the ZIS.
Andrew ElmhorstChief ArchitectEdustructures
My problem is resolved. It looks like there was some change made on the ZIS side, but I will confirm this with the customer and update this post in case anyone else gets this error and is stumped also.