Problem with ContractNetInitiator


Subject: Problem with ContractNetInitiator
From: Heiko Holtschneider (holtschneider@idg.rwth-aachen.de)
Date: Tue Jul 30 2002 - 00:50:17 MET DST


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.java: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:104)
        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



This archive was generated by hypermail 2a22 : Tue Jul 30 2002 - 00:48:02 MET DST