RE: [jade-develop] Error in sniffer agent parsing the message exchanges


Subject: RE: [jade-develop] Error in sniffer agent parsing the message exchanges
From: Bellifemine Fabio (Fabio.Bellifemine@TILAB.COM)
Date: Thu Mar 13 2003 - 09:21:21 MET


I guess that the syntax of your message is not correct and therefore it is not parsable by the sniffer.
The sniffer, infact, parses all the messages that it has to paint while your application agent probably does not.
 
Send me the message, just capture the output of
System.out.println(theWrongMessage);
 
 
-----Original Message-----
From: David [mailto:amdawong@starhub.net.sg]
Sent: 13 March 2003 05:36
To: 'JADE'
Subject: [jade-develop] Error in sniffer agent parsing the message exchanges

Hi Jaders,
 
I had once posted this question to the list couple of months ago but received no replies. I am just trying my luck here again.
 
I get this error whenever I tried to get the sniffer to listen to the message exchanges between my agents.
My MAS developed has no problems sending or receiving the ACL messages thus far and programme execution is all well and fine. However when I tried
to get sniffer ot listen to the message exchanges I always get the following exceptions.
 
 
jade.lang.acl.TokenMgrError: Lexical error at line 2, column 44. Encountered: "M" (77), after : ""
            at jade.lang.acl.ACLParserTokenManager.getNextToken(Unknown Source)
            at jade.lang.acl.ACLParser.jj_ntk(Unknown Source)
            at jade.lang.acl.ACLParser.AgentIdentifier(Unknown Source)
            at jade.lang.acl.ACLParser.MessageParameter(Unknown Source)
            at jade.lang.acl.ACLParser.Message(Unknown Source)
            at jade.lang.acl.ACLParser.parse(Unknown Source)
            at jade.lang.acl.StringACLCodec.decode(Unknown Source)
            at jade.tools.sniffer.Sniffer$SniffListenerBehaviour.action(Unknown Source)
            at jade.core.behaviours.Behaviour.actionWrapper(Unknown Source)
            at jade.core.Agent.mainLoop(Unknown Source)
            at jade.core.Agent.run(Unknown Source)
            at java.lang.Thread.run(Thread.java:484)
jade.lang.acl.ACLCodec$CodecException: fipa.acl.rep.string.std ACLMessage decoding token exception
            at jade.lang.acl.StringACLCodec.decode(Unknown Source)
            at jade.tools.sniffer.Sniffer$SniffListenerBehaviour.action(Unknown Source)
            at jade.core.behaviours.Behaviour.actionWrapper(Unknown Source)
            at jade.core.Agent.mainLoop(Unknown Source)
            at jade.core.Agent.run(Unknown Source)
            at java.lang.Thread.run(Thread.java:484)
 
 
A dialog window also popped up to indicate there is an error in parsing the message. They also indicated the message is lost.
 
I hope someone can shed some light on this.
 
Thank you very much.
 
 
Warmest Regards
David

I guess that the syntax of your message is not correct and therefore it is not parsable by the sniffer.
The sniffer, infact, parses all the messages that it has to paint while your application agent probably does not.
 
Send me the message, just capture the output of
System.out.println(theWrongMessage);
 
 
-----Original Message-----
From: David [mailto:amdawong@starhub.net.sg]
Sent: 13 March 2003 05:36
To: 'JADE'
Subject: [jade-develop] Error in sniffer agent parsing the message exchanges

Hi Jaders,

 

I had once posted this question to the list couple of months ago but received no replies. I am just trying my luck here again.

 

I get this error whenever I tried to get the sniffer to listen to the message exchanges between my agents.

My MAS developed has no problems sending or receiving the ACL messages thus far and programme execution is all well and fine. However when I tried

to get sniffer ot listen to the message exchanges I always get the following exceptions.

 

 

jade.lang.acl.TokenMgrError: Lexical error at line 2, column 44.  Encountered: "M" (77), after : ""

            at jade.lang.acl.ACLParserTokenManager.getNextToken(Unknown Source)

            at jade.lang.acl.ACLParser.jj_ntk(Unknown Source)

            at jade.lang.acl.ACLParser.AgentIdentifier(Unknown Source)

            at jade.lang.acl.ACLParser.MessageParameter(Unknown Source)

            at jade.lang.acl.ACLParser.Message(Unknown Source)

            at jade.lang.acl.ACLParser.parse(Unknown Source)

            at jade.lang.acl.StringACLCodec.decode(Unknown Source)

            at jade.tools.sniffer.Sniffer$SniffListenerBehaviour.action(Unknown Source)

            at jade.core.behaviours.Behaviour.actionWrapper(Unknown Source)

            at jade.core.Agent.mainLoop(Unknown Source)

            at jade.core.Agent.run(Unknown Source)

            at java.lang.Thread.run(Thread.java:484)

jade.lang.acl.ACLCodec$CodecException: fipa.acl.rep.string.std ACLMessage decoding token exception

            at jade.lang.acl.StringACLCodec.decode(Unknown Source)

            at jade.tools.sniffer.Sniffer$SniffListenerBehaviour.action(Unknown Source)

            at jade.core.behaviours.Behaviour.actionWrapper(Unknown Source)

            at jade.core.Agent.mainLoop(Unknown Source)

            at jade.core.Agent.run(Unknown Source)

            at java.lang.Thread.run(Thread.java:484)

 

 

A dialog window also popped up to indicate there is an error in parsing the message. They also indicated the message is lost.

 

I hope someone can shed some light on this.

 

Thank you very much.

 

 

Warmest Regards

David

_______________________________________________
jade-develop mailing list
jade-develop@sharon.cselt.it
http://sharon.cselt.it/mailman/listinfo/jade-develop
UNSUBSCRIBE INSTRUCTIONS AT http://jade.cselt.it/mailing.htm#unsubscribe



This archive was generated by hypermail 2a22 : Thu Mar 13 2003 - 09:21:40 MET