All errata for Distributed Programming with Java will be posted here. All the entries here will be corrected in the third printing and higher.
If you discover any errors in the book, you may post them in the Author Online Forum.
Guide to this book:
In the second paragraph, replace "discus" with "discuss."
Page 12, Section 1.7:
"Amechanism"
should be:
"A mechanism"
Chapter 2
Page 20, Section 2.5.1, the Second Paragraph
(thanks to Stuart Leviton)
Replace:
"...., and you can write information by constructing an
InputStream(which provides theread() method)."
with
"..., and you can read information by constructing an
InputStream(which provides theread() method)."
Page 25:
The first three lines of command-line and output should read:
% java SimpleClient
Please input a keyword: hello
Got from server: Sorry, you don't speak my protocol
Page 25:
The highlighted listing name, replace "simpleServer.java" with "SimpleServer.java".
Page 26:
The highlighted listing name, replace "simpleClient.java" with "SimpleClient.java".
Page 27:
First line of code should be:
BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in))
Chapter 3
Page 42, the output of example 3.4:
(thanks to David Kornbau)
The output should be:
ReadFromSocket:0
ReadFromKeyboard:0
ReadFromSocket:1
ReadFromKeyboard:1
ReadFromSocket:2
ReadFromKeyboard:2
Chapter 4
Page 53, redundancy in third and fourth paragraphs:
(thanks to David Kornbau)
The third and fourth paragraphs are saying almost the same thing. Both paragraphs should be replaced with the following:
"JDBC is a Java API for database connectivity. It enables you to execute SQL statements on relational databases throughout a network without regard for the vendor of the database. Therefore, it is not necessary to develop separate programs to access databases from different vendors. In this chapter you'll learn about JDBC and proxy servers."
Page 55, the Connect class:
(thanks to David Kornbau)
The statement "this.start();" should be outside the bracket.
Page 56, the shipDocument method:
(thanks to David Kornbau)
replace "DataoutputStream" with "DataOutputStream".
Page 56, the shipDocument method:
(thanks to David Kornbau)
replace "Content-Type: text\html\r\n\r\n" with "Content-Type: text\\html\r\n\r\n".
Chapter 6
Page 86, Section 6.2.1:
Replace "Communications of the ACM, April 1996" with "IEEE Computer, April 1996".
Bibliography
Page 291, the 8th reference:
Replace "Communications of the ACM, April 1996" with "IEEE Computer, April 1996".