RE: [jade-develop] Problem with ContractNetInitiator


Subject: RE: [jade-develop] Problem with ContractNetInitiator
From: Bellifemine Fabio (Fabio.Bellifemine@TILAB.COM)
Date: Wed Jul 31 2002 - 18:29:19 MET DST


Heiko, there is infact a mistake in the file jade.proto.Initiator.java
Please replace that file with the attached one and this problem should
be fixed.
Fabio.

-----Original Message-----
From: Heiko Holtschneider [mailto:holtschneider@idg.rwth-aachen.de]
Sent: 30 July 2002 00:50
To: jade-develop@sharon.cselt.it
Subject: [jade-develop] Problem with ContractNetInitiator

Dear Jaders,
I'm working with JADE-2.6.
I got a problem using the ContractNetInitiator behaviour:

An Auctioeer agent gets a REQUEST from some other agent. The Auctioneer
uses a Cyclic behaviour watching for REQUESTS. When receiving a REQUEST
the Cyclic behaviour is supposed to call a ContractNetInitiator
behaviour.
However when adding the ContractNetInitiator behaviour I get this
exception:

*** Uncaught Exception for agent auc ***
java.lang.NullPointerException
        at jade.proto.Initiator.createConvId(Initiator.java:458)
        at
jade.proto.ContractNetInitiator.sendInitiations(ContractNetInitiator.jav
a:256)
        at jade.proto.Initiator$2.action(Initiator.java:149)
        at
jade.core.behaviours.Behaviour.actionWrapper(Behaviour.java:258)
        at
jade.core.behaviours.CompositeBehaviour.action(CompositeBehaviour.java:1
04)
        at
jade.core.behaviours.Behaviour.actionWrapper(Behaviour.java:258)
        at jade.core.Agent.mainLoop(Agent.java:1690)
        at jade.core.Agent.run(Agent.java:1511)
        at java.lang.Thread.run(Thread.java:484)
ERROR: Agent auc died without being properly terminated !!!
State was 2

I don't get this exception using JADE-2.5. Does somebody know what I'm
doing wrong?

Thanks in advance,
Heiko

-- 
Heiko Holtschneider
mailto:heiko.holtschneider@post.rwth-aachen.de
_______________________________________________
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 : Wed Jul 31 2002 - 18:29:32 MET DST