Could you have all send me demo project based on ontology and jade.
It is very important for my students to whom I teach.
Post by Rana HassaanI meant by ?It didn?t work? that same exception appeared.
But I finally was able to write the right permission
grant {
permission jade.security.MessagePermission
"agent-name=Sniffer*,agent-owner=host", "send-to";
};
I am not perfect at permissions and I don?t know the difference between
Smile]
Thanks
*From:* Caire Giovanni <giovanni.caire at telecomitalia.it>
*Sent:* Friday, May 09, 2014 11:51 AM
*To:* Rana Hassaan <rana_hassaan at live.com> ; jade-develop at avalon.tilab.com
*Subject:* R: R: [jade-develop] Sniffer permissions
Hi,
This depends on the fact that your sniffer is not alive. In order to
correctly interact with the rest of the platform any agent (including the
sniffer) must be properly created and started.
What do you mean by ?it didn?t work?? Can you provide more details, error
messages, full stack trace if any...
Bye,
Giovanni
*Da:* Rana Hassaan [mailto:rana_hassaan at live.com]
*Inviato:* marted? 6 maggio 2014 10:46
*A:* Caire Giovanni; jade-develop at avalon.tilab.com
*Oggetto:* Re: R: [jade-develop] Sniffer permissions
Thanks for your reply but it didn?t work [image: Sad smile]
Yes I am using Jade-S
I was trying a work-around to launch sniffer and listen to messages.
SLCodec codec = new SLCodec();
SecureBookTradingSimulation.mySniffer.getContentManager().registerLanguage(codec,
"fipa-sl0");
SecureBookTradingSimulation.mySniffer.getContentManager().registerOntology(JADEManagementOntology.getInstance());
jade.util.leap.List sniffedAgents =new
jade.util.leap.ArrayList();
jade.tools.sniffer.Agent sniffedAgent = new
jade.tools.sniffer.Agent(getAID());
sniffedAgents.add(sniffedAgent);
SecureBookTradingSimulation.mySniffer.sniffMsg(sniffedAgents, true);
But exception related to ontology registration appeared
jade.content.onto.OntologyException: Missing value for mandatory slot
actor. Schema is jade.content.schema.AgentActionSchema-action
at
jade.content.schema.ObjectSchemaImpl.validate(ObjectSchemaImpl.java:450)
at
jade.content.schema.ObjectSchemaImpl.validateSlots(ObjectSchemaImpl.java:415)
at
jade.content.schema.AgentActionSchema.validate(AgentActionSchema.java:114)
*From:* Caire Giovanni <giovanni.caire at telecomitalia.it>
*Sent:* Friday, May 02, 2014 10:20 AM
*To:* Rana Hassaan <rana_hassaan at live.com> ; jade-develop at avalon.tilab.com
*Subject:* R: [jade-develop] Sniffer permissions
Hi,
1) From what you say I assume you are using the Jade-S add-on. Is that correct?
2) The problem seems to be related to the fact that the
Sniffer-on-Container-1 agent (an auxiliary agent that is responsible to
notify the real Sniffer about messages exchanged by sniffed agents in
Container-1) does not have the permission to send messages to the Sniffer
agent.
I?m not an expert in granting permissions, but from what I know principals
represents authenticated users ? you could try
grant principal jade.security.Name "<the owner of container-1>" {
permission jade.security.MessagePermission "agent-name=
Sniffer-on-Container-1", "send-to";
};
That means ?give to user xxx the rights so that agent
Sniffer-on-Container-1 can send messages?
Bye,
Giovanni
avalon.tilab.com] *Per conto di *Rana Hassaan
*Inviato:* marted? 29 aprile 2014 21:57
*A:* jade-develop at avalon.tilab.com
*Oggetto:* [jade-develop] Sniffer permissions
Hi
I am trying to use Sniffer to watch all messages going in/out of certain
agents where their names match certain criteria.
But the problem is the sniffer is unable to send the message to the AMS
that?s probably concerned with listening to messages.
And that?s because the user doesn?t have the permission
The exception showed that,
*AccCtrl ac-jade, req from:Sniffer-on-Container-1 at Trader, -Not Authorized-
(jade.security.MessagePermission
"agent-name=Sniffer at Trader,agent-owner=rhassaan-HP", "send-to")*
I tried to grant permission like this
grant principal jade.security.Name "Sniffer-on-Container-1" {
permission jade.security.MessagePermission
"agent-name=Sniffer,agent-owner=rhassaan-HP", "send-to";
};
but it?s probably wrong coz the exception keeps showing. I realy don?t
know is the jade.security.Name is correct or not. Or may be the grant
should be put in a specific file that I don?t know!
Thanks,
Rana
Questo messaggio e i suoi allegati sono indirizzati esclusivamente alle
persone indicate. La diffusione, copia o qualsiasi altra azione derivante
dalla conoscenza di queste informazioni sono rigorosamente vietate. Qualora
abbiate ricevuto questo documento per errore siete cortesemente pregati di
darne immediata comunicazione al mittente e di provvedere alla sua
distruzione, Grazie.
*This e-mail and any attachments** is **confidential and may contain
privileged information intended for the addressee(s) only. Dissemination,
copying, printing or use by anybody else is unauthorised. If you are not
the intended recipient, please delete this message and any attachments and
advise the sender by return e-mail, Thanks.*
*[image: rispetta l'ambiente]Rispetta l'ambiente. Non stampare questa mail
se non ? necessario.*
_______________________________________________
jade-develop mailing list
jade-develop at avalon.tilab.com
https://avalon.cselt.it/mailman/listinfo/jade-develop
UNSUBSCRIBE INSTRUCTIONS AT
http://jade.tilab.com/community-mailinglist.htm
An HTML attachment was scrubbed...
URL: <http://avalon.cselt.it/pipermail/jade-develop/attachments/20140512/d6886e55/attachment-0001.html>
A non-text attachment was scrubbed...
A non-text attachment was scrubbed...
A non-text attachment was scrubbed...