Errata


Print Print Icon

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. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Corrected".

The following errata were submitted by our customers and approved as valid errors by the author or editor.


Color Key: Serious Technical Mistake Minor Technical Mistake Language or formatting error Typo Question



Version Location Description Submitted By Corrected
Printed Page xvii
First Paragraph

"There's an awful lot of code that handles the
interactions between the client and the server" should
probably indicate whose code it is. "The JDK contains
a lot of classes to handle interactions between clients
and servers" probably works better.

Anonymous 
Printed Page xvii
The summaries of Chapters 19 and 20 don't contain

a "This chapter ...." sentence (unlike the
rest of the chapter summaries). It's a minor break
in the parallel structure.

Anonymous 
Printed Page xxii
The "how to contact us section" is still jarring

The rest of the preface
is written in first person singular. The how to
contact us section is not. I understand it's
boilerplate text that gets inserted as a matter of
course, but it's still very very awkward.

Anonymous 
Printed Page xxii
Discussion of the RMI mailing list. "All levels,

from beginner to advanced, are discussed here."

Yuck.

I wrote "All topics, from beginner to advanced,
are discussed here."

My sentence is awkward, the final sentence is
just plain wrong (ain't nobody discussing levels,
mon frer).

Anonymous 
Printed Page 46
2nd paragraph

"After this code executes, the instance of SSLServerSocket returned by
createServer( ) is ..."

Should say -
"After this code executes, the instance of SSLServerSocket returned by
createServerSocket( ) is ..."

Anonymous 
Printed Page 47
heading "Revisiting Our Web Browswer"

should say
"Revisiting Our Web Server"

Anonymous 
Printed Page 58
code example, 3rd line from the bottom

Line beginning with "BufferedReader reader ..." can be removed

Anonymous 
Printed Page 75
example 4-1 NullPrinter.java

Public NullPrinter(OutputStream log) hrows RemoteException
Should be:
Public NullPrinter(OutputStream log) throws RemoteException

Anonymous 
Printed Page 77

The zero argument constructor is not necessary for serialization
in PrinterException (it won't be called during deserialization).

Anonymous 
Printed Page 78
footnote

"This is a generic exception because it covers wide range of devices."
should be:
"This is a generic exception because it covers a wide range of devices.""

Anonymous 
Printed Page 86
IN PRINT: "The Basic Use Case" section, point 6

"...her identitification card."

SHOULD BE:
"...her identification card."

Anonymous 
Printed Page 108-109
"How Easy..." Section

No italicised "Advantage" line for this section

Anonymous 
Printed Page 130
line 2

"this(cents.intValue()"
Should be:
"this(cents.intValue())"

Anonymous 
Printed Page 130
line 6

public Money(int cents) {
super(dollars + " dollars " + cents + " cents. ");
_cents = cents;
}
variable dollars is not defined

Should be

public Money (int cents) {
super(cents + " cents.");
_cents = cents;
}

Anonymous 
Printed Page 130
line 31

public boolean equals(Object object) {
if(object instanceof Money) {
return (_cents == otherMoney.getCents());
}

variable otherMoney is not defined.

Should be:

public boolean equals(Object object) {
if(object instanceof Money) {
Money otherMoney = (Money)object;
return (_cents == otherMoney.getCents());
}

Anonymous 
Printed Page 146
middle of the page

Batch file should be -

start rmiregistry
start java com.ora.rmibook.chapter9.applications.ImplLauncher Bob 10000 Alex 1223

Anonymous 
Printed Page 147
3rd method, 4th line

Since the arguments are expected to be name/cents pairs, not name/dollars/cents triplets,
the loop in the getNameBalancePairs() method should be incremented by "i+=2" instead of "i+=3".

Anonymous 
Printed Page 151
code sample in second paragraph

The first line of code in the constructor for PositiveMoney, calling the superclass
constructor, is:

super(cents,)
it should be:
super(cents)

Anonymous 
Printed Page 164
3rd paragraph

At the end of the third paragraph,
"call the readObject() object"
should be
"call the readObject() method".

Anonymous 
Printed Page 166
Second paragraph

The author says, "In fact, reset(), close(), and flush() are standard stream
methods."

reset() is NOT a standard method for an output stream, which is what is being discussed.
reset() is a standard method, but only for input streams.

Anonymous 
Printed Page 168
2nd paragraph of "The stream manipulation methods"

The second paragraph of the "stream manipulation methods" section says:

"Of these, available() and skip() are methods first defined on InputStream."

It should say:
"Of these, available() and close() are methods first defined on InputStream."

Anonymous 
Printed Page 169
Second from last paragraph

java.io.File does in fact implement the java.io.Serializable interface, contrary to what the book says.

AUTHOR: Actually, I don't say that File isn't serializable.
I say that the serialization of File is not at all obvious.
Nonetheless, it could have been written more clearly.

Anonymous 
Printed Page 171
First paragraph

It says that arrays in Java are not serializable, but they are.

Anonymous 
Printed Page 188
2nd Bullet Point, Top of Page

it says "...except private, static, and private transient".
it should say: "...except private static and private transient".

Anonymous 
Printed Page 193
Middle of page

The sentence
"Serializable can frequently be implemented by doing two things ..."

should be replaced by

"Implementing the Serializable interface is often trivial-- simply declaring that a class
implements the Serializable interface is usually all that is required."

Anonymous 
Printed Page 208
Numbered list element "5."

in the Mary & Rachel account example says, "...and the account has either $200 or $400 left in it..."
The account has either ($1400-$1200) or ($1400-$900) left in it, so that should be "$200 or $500" instead.

Anonymous 
Printed Page 216

word "synchronized" misspelled in makeDeposit declaraion

Anonymous 
Printed Page 222

code for abstract class StoppableThread:

Public StopppableThread(String threadName, Object arg1 OObject arg2) {
should be
Public StoppableThread(String threadName, Object arg1 Object arg2) {

Anonymous 
Printed Page 225
Block of code in 3rd paragraph

Both of the synchronized methods declared in the third paragraph contain an extra
closing curly brace.

otherOjbect.method2();}
should be:
otherOjbect.method2();

and

otherOjbect.method1();}
should be:
otherOjbect.method1();

Anonymous 
Printed Page 226

word "synchronized" misspelled in transferMoney declaration

Anonymous 
Printed Page 233

word "synchronized" misspelled in getBalance declaration
word "synchronized" misspelled in makeWithdrawal declaration

Anonymous 
Printed Page 236
body of resetCounter() method

"_timeUntilLockIsReleased"
should be:
"_timeLeftUntilLockIsReleased"

Anonymous 
Printed Page 237
body of CountDownTimer.run() method

"_timeUntilLockIsReleased"
should be:
"_timeLeftUntilLockIsReleased"

Anonymous 
Printed Page 267
3rd paragraph

In the second sentence of the third prose paragraph, it says
"...then call ThreadedPoo11's..."
That should be
"ThreadedPool1's" (with a letter "l" and a digit "1", rather than two "1"'s.)

Anonymous 
Printed Page 269
2nd paragraph(excluding note)

The second sentence refers to "validateAndReturnObject()", when in fact the method is
"validateAndReturn()", with an Object as a parameter.

Anonymous 
Printed Page 276
last paragraph

The last complete sentence on the page reads
"...; the fact that don't talk about";
that should be
"...; the fact that we don't talk about".

Anonymous 
Printed Page 280
Figure 13-1

The title bar of the application in this figure says chapter 12. It should
say Chapter 13.

Anonymous 
Printed Page 329
4th list item

NameAttrributeSetPair
should be:
NameAttributeSetPair

Anonymous 
Printed Page 356
second code sample

The last line of code in the getBalance() function is "return rreturnValue";
it should be
"return returnValue"

Anonymous 
Printed Page 361

System.getProperties().put("java.rmi.serverr.logCalls", "true")
should be
System.getProperties().put("java.rmi.server.logCalls", "true")

Anonymous 
Printed Page 370
middle of page

When, on the other hand, un.rmi.server.exceptionTrace

should be

When, on the other hand, sun.rmi.server.exceptionTrace

>>(423) 2nd paragraph in box;
>>Ssuch a policy would block any RMI server listening on a randomly assigned sock
>>et.
>>
>>"Such a policy"

>Yes.

>>(427) last paragraph of box;
>>Bill Joy misspelled as Bill Loy

>Yes.

>>(436) 4th paragraph in sidebar;
>>The This is a high-quality mailing list.
>>
>>"This is a"

>Yes.

>>(499) 7th paragraph, first sentence;
>>It attempt to connect on port 80 of the...
>>
>>"It attempts to"
>

>Yes.

>>(509) first paragraph;
>>`stub' misspelled as `stun'.

>Yes.

Anonymous