[Aglets-developer] Ticket scheme case sensitive
Status: Beta
Brought to you by:
cat4hire
From: Marc M. <ma...@co...> - 2001-02-26 19:54:06
|
While playing with using HTTP messages to cause aglet dispatch, I found that creating a ticket is case sensitive to the protocol name. The error is really in java.net.URL. See below. Perhaps in Ticket.java, the function setDestination(...) should have: _protocol = destination.getProtocol().toLower(); Marc ----- Sample 1 ** Request farpoint.tear.com% lynx -dump http://farpoint.tear.com\:4434/aglets/default/ddc/msg_Dispatch\?aglet=edu.ucsc.cse.http.mmosko.Sample\&dest=ATP%3A%2F%2Froaster.tear.com%3A4434 ** Tahiti console snips Mon Feb 26 11:39:33 PST 2001 (BaseUtil): Message <[Message : kind = msg_Dispatch: arg = {%querystring%=aglet=edu.ucsc.cse.http.mmosko.Sample&dest=ATP%3A%2F%2Froaster.tear.com%3A4434, dest=ATP://roaster.tear.com:4434, cgi-response=, aglet=edu.ucsc.cse.http.mmosko.Sample}: priority = 5]> java.net.MalformedURLException: unknown protocol: ATP at java.net.URL.<init>(URL.java:290) at java.net.URL.<init>(URL.java:210) at java.net.URL.<init>(URL.java:229) at com.ibm.aglet.Ticket.getDestination(Ticket.java:179) at com.ibm.aglets.LocalAgletRef.dispatch(LocalAgletRef.java:881) at com.ibm.aglets.SystemMessage.handle(SystemMessage.java:200) at com.ibm.aglets.AgletThread.run(AgletThread.java:106) ------ Sample 2 farpoint.tear.com% lynx -dump http://farpoint.tear.com\:4434/aglets/default/ddc/msg_Dispatch\?aglet=edu.ucsc.cse.http.mmosko.Sample\&dest=atp%3A%2F%2Froaster.tear.com%3A4434 (works fine) |