Discussion:
[jade-develop] Sniffer permissions
Rana Hassaan
2014-04-29 19:57:06 UTC
Permalink
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://avalon.cselt.it/pipermail/jade-develop/attachments/20140429/b6f0a5ce/attachment.html>
Caire Giovanni
2014-05-02 08:20:03 UTC
Permalink
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


Da: jade-develop-bounces at avalon.tilab.com [mailto:jade-develop-bounces at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://avalon.cselt.it/pipermail/jade-develop/attachments/20140502/38871d56/attachment.html>
Rana Hassaan
2014-05-06 08:45:37 UTC
Permalink
Thanks for your reply but it didn?t work
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
Sent: Friday, May 02, 2014 10:20 AM
To: Rana Hassaan ; 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





Da: jade-develop-bounces at avalon.tilab.com [mailto:jade-develop-bounces at 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.

Rispetta l'ambiente. Non stampare questa mail se non ? necessario.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://avalon.cselt.it/pipermail/jade-develop/attachments/20140506/77bfd2ff/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wlEmoticon-sadsmile[1].png
Type: image/png
Size: 1090 bytes
Desc: not available
URL: <Loading Image...>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: logo Ambiente_foglia2.jpg
Type: image/jpeg
Size: 677 bytes
Desc: not available
URL: <Loading Image...>
Caire Giovanni
2014-05-09 09:51:18 UTC
Permalink
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 [cid:image001.png at 01CF6B72.C438E320]
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<mailto:giovanni.caire at telecomitalia.it>
Sent: Friday, May 02, 2014 10:20 AM
To: Rana Hassaan<mailto:rana_hassaan at live.com> ; jade-develop at avalon.tilab.com<mailto: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


Da: jade-develop-bounces at avalon.tilab.com [mailto:jade-develop-bounces at 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.
[cid:image002.gif at 01CF6B72.C438E320]Rispetta l'ambiente. Non stampare questa mail se non ? necessario.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://avalon.cselt.it/pipermail/jade-develop/attachments/20140509/3f37af1b/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 1090 bytes
Desc: image001.png
URL: <Loading Image...>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.gif
Type: image/gif
Size: 677 bytes
Desc: image002.gif
URL: <Loading Image...>
Rana Hassaan
2014-05-11 11:15:51 UTC
Permalink
I 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 grant principle name and grant but what?s important that it worked

Thanks

From: Caire Giovanni
Sent: Friday, May 09, 2014 11:51 AM
To: Rana Hassaan ; 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
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

Sent: Friday, May 02, 2014 10:20 AM

To: Rana Hassaan ; 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





Da: jade-develop-bounces at avalon.tilab.com [mailto:jade-develop-bounces at 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.

Rispetta l'ambiente. Non stampare questa mail se non ? necessario.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://avalon.cselt.it/pipermail/jade-develop/attachments/20140511/ae4a8acb/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wlEmoticon-smile[1].png
Type: image/png
Size: 1046 bytes
Desc: not available
URL: <Loading Image...>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 1090 bytes
Desc: not available
URL: <Loading Image...>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.gif
Type: image/gif
Size: 677 bytes
Desc: not available
URL: <Loading Image...>
Anurag Tiwari
2014-05-12 19:00:14 UTC
Permalink
Could you have all send me demo project based on ontology and jade.
It is very important for my students to whom I teach.

Thanks
Post by Rana Hassaan
I 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://avalon.cselt.it/pipermail/jade-develop/attachments/20140512/d6886e55/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wlEmoticon-smile[1].png
Type: image/png
Size: 1046 bytes
Desc: not available
URL: <Loading Image...>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.gif
Type: image/gif
Size: 677 bytes
Desc: not available
URL: <Loading Image...>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 1090 bytes
Desc: not available
URL: <Loading Image...>
Caire Giovanni
2014-05-15 09:21:48 UTC
Permalink
Hi,

A good starting point in my opinion is the package examples.ontology.ontologyServer included in the jade examples distribution.
It shows a minimal ontology and 2 agents exchanging messages refering to that ontology. In particular it shows the usage of the OntologyServer class that is very useful to manage incoming messages.

Bye,

Giovanni

Da: Anurag Tiwari [mailto:anuragrktiwari at gmail.com]
Inviato: luned? 12 maggio 2014 21:00
A: Rana Hassaan
Cc: Caire Giovanni; jade-develop
Oggetto: Re: [jade-develop] R: R: Sniffer permissions


Could you have all send me demo project based on ontology and jade.
It is very important for my students to whom I teach.

Thanks
On 11 May 2014 16:46, "Rana Hassaan" <rana_hassaan at live.com<mailto:rana_hassaan at live.com>> wrote:
I 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 grant principle name and grant but what?s important that it worked [cid:image001.png at 01CF702E.F32A0EA0]

Thanks

From: Caire Giovanni<mailto:giovanni.caire at telecomitalia.it>
Sent: Friday, May 09, 2014 11:51 AM
To: Rana Hassaan<mailto:rana_hassaan at live.com> ; jade-develop at avalon.tilab.com<mailto: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<mailto:rana_hassaan at live.com>]
Inviato: marted? 6 maggio 2014 10:46
A: Caire Giovanni; jade-develop at avalon.tilab.com<mailto:jade-develop at avalon.tilab.com>
Oggetto: Re: R: [jade-develop] Sniffer permissions

Thanks for your reply but it didn?t work [cid:image002.png at 01CF702E.F32A0EA0]
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<mailto:giovanni.caire at telecomitalia.it>
Sent: Friday, May 02, 2014 10:20 AM
To: Rana Hassaan<mailto:rana_hassaan at live.com> ; jade-develop at avalon.tilab.com<mailto: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<http://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


Da: jade-develop-bounces at avalon.tilab.com<mailto:jade-develop-bounces at avalon.tilab.com> [mailto:jade-develop-bounces@<mailto:jade-develop-bounces@>avalon.tilab.com<http://avalon.tilab.com>] Per conto di Rana Hassaan
Inviato: marted? 29 aprile 2014 21:57
A: jade-develop at avalon.tilab.com<mailto: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<http://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<http://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.
[cid:image003.gif at 01CF702E.F32A0EA0]Rispetta l'ambiente. Non stampare questa mail se non ? necessario.



_______________________________________________
jade-develop mailing list
jade-develop at avalon.tilab.com<mailto:jade-develop at avalon.tilab.com>
https://avalon.cselt.it/mailman/listinfo/jade-develop
UNSUBSCRIBE INSTRUCTIONS AT
http://jade.tilab.com/community-mailinglist.htm
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://avalon.cselt.it/pipermail/jade-develop/attachments/20140515/0fc44058/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 1046 bytes
Desc: image001.png
URL: <Loading Image...>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 1090 bytes
Desc: image002.png
URL: <Loading Image...>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.gif
Type: image/gif
Size: 677 bytes
Desc: image003.gif
URL: <Loading Image...>
Loading...