gleber/exat — Issue #4: Error adding eXAT as remote platform to JADE
Author: robstewart57
Created: 2012-02-29 14:41:21+00:00
State: open

Using eXAT's MTP server, I am trying to add an eXAT platform as a remote platform to the JADE agent framework.

1) I start the eXAT with:
./exat.sh platform1 -http_port 7779 -start simple_pingagent

2) eXAT starts, including the print of:
['HTTP-MTP'] MTP Started at port 7779

3) I start JADE with:
java -cp lib/jade.jar jade.Boot -gui

4) In JADE, I click "Remote Platforms" -> "Add platform via URL", and type in:
http://localhost:7779/acc

5) The eXAT terminal throws an error. This seems to be due to the fact that JADE runs a HTTP GET request, which is not pattern matched by:
http_mtp_post ('POST', Url, Headers, Req) -> ...

Here's the error thrown:

---
=PROGRESS REPORT==== 29-Feb-2012::14:30:39 ===
application: exat
started_at: platform1@mylaptop

=ERROR REPORT==== 29-Feb-2012::14:31:11 ===
module: misultin_http
line: 301
worker crash: {function_clause,
[{mtp,http_mtp_post,
['GET',
["acc"],
[{'User-Agent',"Java/1.7.0_b147-icedtea"},
{'Host',"localhost:7779"},
{'Accept',
"text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"},
{'Connection',"keep-alive"}],
{misultin_req,
{req,#Port<0.1361>,http,
{127,0,0,1},
43712,undefined,keep_alive,undefined,
{1,1},
'GET',
{abs_path,"/acc"},
[],
[{'User-Agent',"Java/1.7.0_b147-icedtea"},
{'Host',"localhost:7779"},
{'Accept',
"text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"},
{'Connection',"keep-alive"}],
<<>>},
<0.87.0>}]},
{misultin_http,call_mfa,2},
{misultin_http,handle_get,2},
{misultin_http,body,2}]}