The SIF® Zone
creating, assimilating, and promoting excellence in SIF® agent development

Zone connect error

rated by 0 users
Answered (Not Verified) This post has 0 verified answers | 4 Replies | 3 Followers

Top 10 Contributor
44 Posts
Points 800
Miriam Fein-Cole posted on 03-01-2010 9:11

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

  • | Post Points: 45

All Replies

Top 10 Contributor
72 Posts
Points 1,495

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

 

 

  • | Post Points: 25
Top 10 Contributor
44 Posts
Points 800

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.

  • | Post Points: 5
Top 10 Contributor
215 Posts
Points 5,055

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 Elmhorst
Chief Architect
Edustructures 

  • | Post Points: 5
Top 10 Contributor
44 Posts
Points 800

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.

  • | Post Points: 5
Page 1 of 1 (5 items) | RSS
Copyright ©2006-2009 sifzone.com
Sponsored by Edustructures
We Connect the Systems that Power Education
 
SIF and Schools Interoperability Framework are trademarks of the Schools Interoperability Framework Association.