Subject: RE: [jade-develop] Problem in starting with version 2.6 - no schema found
From: Caire Giovanni (Giovanni.Caire@TILAB.COM)
Date: Tue Jul 23 2002 - 10:16:19 MET DST
Hi Ignazio,
The error is not surprising as the relation between Java classes and
schemas is 1 to 1. Therefore, while there is a schema associated to the
ServiceDescription class there is no schema associated to the
ServiceAgentServiceDescription class.
What is VERY surprising is that the same code didn't generate any
exception in Jade2.5.
Bye
Giovanni
-----Original Message-----
From: Ignazio Pi [mailto:ignazio_io@hotmail.com]
Sent: luned́ 22 luglio 2002 17.54
To: jade-develop@sharon.cselt.it
Subject: [jade-develop] Problem in starting with version 2.6 - no schema
found
Hi JADErs,
I tried to use JADE version 2.6 to run the agents I was using on 2.5,
but
one of my agents does not start; the code that cause the exception is
this:
public class ServiceAgentServiceDescription extends ServiceDescription{
public ServiceAgentServiceDescription(String serviceName,String
action){
this.addLanguage(SL0Codec.NAME);
this.addOntologies(DMeArchitectureOntology.NAME);
Property myProp= new Property();
myProp.setName("Action");
myProp.setValue(action);
this.addProperties(myProp);
this.setName(serviceName);
this.setType("DMeArchitectureService");
}
public ServiceAgentServiceDescription(Service s){
this(s.getName(),s.getAction());
}
}
and the exception is this:
jade.domain.FIPAException: Error encoding REQUEST content.
jade.content.onto.Ont
ologyException: No schema found for class
dme.agents.ServiceAgentServiceDescript
ion
at jade.domain.DFService.register(DFService.java:138)
at jade.domain.DFService.register(DFService.java:156)
at dme.agents.ServiceAgent.setup(ServiceAgent.java:184)
at jade.core.Agent.run(Agent.java:1495)
at java.lang.Thread.run(Thread.java:536)
I think it's depending on the new features, but can't think how to
manage
this. Is there an explanation in the docs?
Thanks in advance,
Ignazio
_______________________________________________
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
====================================================================
CONFIDENTIALITY NOTICE
This message and its attachments are addressed solely to the persons
above and may contain confidential information. If you have received
the message in error, be informed that any use of the content hereof
is prohibited. Please return it immediately to the sender and delete
the message. Should you have any questions, please contact us by
replying to MailAdmin@tilab.com. Thank you
====================================================================
This archive was generated by hypermail 2a22 : Tue Jul 23 2002 - 10:27:14 MET DST