Errata

Java Distributed Computing

Errata for Java Distributed Computing

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.

Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted by Date submitted
Printed Page 73
paragraph "Client Stubs and Server Skeletons"

Print: January 1998

The example is wrong: "myhost% rmic MyObject"
Correction: "myhost% rmic MyObjectImpl"
Explanation: Not the Interface but the Implementation has to be compiled
with rmic.

Anonymous   
Printed Page 232
public float getRateFor(int sidx) method

DataSample s = samples.elemetAt(sidx);

should read

DataSample s = (DataSample) samples.elemetAt(sidx);

DataSample prev = samples.elemetAt(sidx - 1);

should read

DataSample prev = (DataSample) samples.elemetAt(sidx - 1);

Anonymous   
Printed Page 245
2d Paragraph

I cannot seem to find the code for the StreamProducer class. Is it called something
else or just missing. I have also looked in the source code that I downloaded.

Anonymous   
Printed Page 311
Whiteboard Applet example using message passing

I have tried to run the example shown in Appendix A of the book without much
success. I am able to run the Mediator fine and even several Whiteboard
users (MsgWhiteboardUsers). However, the scribbles drawn on one whiteboard
do not show up in other whiteboards that are running simutaneously.

I am also getting the following error from the MessageHandler class in the
readMsg() method.

mm: Error reading message:
java.io.UTFDataFormatException
at java.io.DataInputStream.readUTF(Unknown Source)
at java.io.DataInputStream.readUTF(Unknown Source)
at MessageHandler.readMsg(MessageHandler.java:120)
at AgentHandler.run(MessageHandler.java:39)
at java.lang.Thread.run(Unknown Source)

THis error seems to be inconsistent and will occur randomly.

I also get a NullPointerException being thrown from the Message class in the
writeArgs() method.

Anonymous