Constructing Intelligent Agents Using Java, 2nd edition (John Wiley & Sons, 2001)

One problem we have found seems to be an Introspection bug in the Sun JDK 1.4.1 getTargetEventInfo() method. The CIAgent void addAgent(CIAgent agent) method is erroneously being processed as a possible addXXXEventListener method.
A workaround is to change the return type from void to something else. A simple fix is to return the child CIAgent, thus working around the bug in the JDK logic.
The directory structure of the hosting site has changed due to
circumstances beyond our control. This causes the AirfareAgent to fail
because it cannot find the perl script that generates the airfare
information. To correct the problem, change the following line in the
process() method in AirfareAgent.java from:
url = new URL("http://www.bigusbooks.com/cgi-local/airfare.pl");
to:
url = new URL("http://www.bigusbooks.com/cgi-bin/airfare.pl");
There are places in the book in which an external resource like a Web site or newreader is accessed by an agent. Over time, these resources may have changed and can no longer be accessed. In these cases, change the agent code to access a similar, external resource that is currently available.