Errata

Java Enterprise in a Nutshell

Errata for Java Enterprise in a Nutshell

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 x
table of contents, also p462, after p722, throughout ch45

Entire chapter describing package javax.servlet.jsp.tagext is
missing. As well, references to that packages classes, methods
and fields are omitted from Chapter 45. This is a very serious
omission.

Anonymous   
Printed Page 36
3rd paragraph (listing)

The line
Clob clob = blobResultSet.getBlob ("CLOBFIELD");
shoukd read
Clob clob = clobResultSet.getClob ("CLOBFIELD");

Anonymous   
Printed Page 40
top of page, example code

The page number is from the first edition, but judging from the sample chapter it
exists in the new version as well.

stmt.addBatch("INSERT INFO CUSTOMERS VALUES (1, "J SMITH", "617 555-1323");

This should be:

stmt.addBatch("INSERT INFO CUSTOMERS VALUES (1, 'J SMITH', '617 555-1323')");

It applies for the other addBatch() lines as well.

Anonymous   
Printed Page 52
Example 3-2

The AccountImpl class example does not have a constructor.

Anonymous   
Printed Page 52
2nd paragraph

The error is within a sample piece of code:
The comment in the code begins

// Create a new account with the given name
}

However no implementation of the account creation is provided.

Anonymous   
Printed Page 64
last line

The line
Account jimsAccount = (Acount) ...
should read
Account jimsAccount = (Account) ...

Anonymous   
Printed Page 180
both xml samples (web.xml and .tld file)

samples not indented

Anonymous   
Printed Page 197
first paragraph

The reader is encouraged to download the sample code. (There is also reference to a
download location in the Preface (#Examples Online). There is not any code to
download.

*note* The samples code will be online soon.

Anonymous   
Printed Page 197
2nd paragraph (in code: main() function)

The line:
shell.readInput();
should read:
NamingShell.readInput();

NOTE FROM ANOTHER READER:
I note that the downloadable examples have the following main() method, which adds
the line creating a new NamingShell object & works correctly:

public static void main(String[] args) {
NamingShell shell = new NamingShell(args);
shell.readInput();
System.out.println("Exiting");
}

Anonymous   
Printed Page 213
Sample code at bottom of page

The statement

newAttr.add("telephonenumber", "520 765 4321");

will not compile, because the BasicAttribute class has no add method that takes two
Strings. The code should be

BasicAttribute newAttr = new BasicAttribute( "telephonenumber" );
newAttr.add( "520 765 4321" );

or, alternatively,

BasicAttribute newAttr = new BasicAttribute( "telephonenumber", "520 765 4321" );

Anonymous   
Printed Page 350
1st paragraph

"Any JMS header field name can be used as an identifier, except for JMSDestination
..., which can be used as identifiers in a message selector."
In order for this sentence to make sense, the last part must read:
"... which CAN'T be used as identifiers in a message selector."

Anonymous   
Printed Page 367
2nd paragraph

The last sentence of the paragraph starts as follows:
Once a message has been expunged, the message numbers within the folder (returned
by the getMessageNumber() method of Message).
Then, it simply stops, but we never learn what actually happens to the line numbers
...

Anonymous   
Printed Page 378
CREATE TABLE Syntax

In the CREATE statement, shouldn't the syntax for column_size be shown as [ (
column_size ) ] ? Doesn't the size need to be specified in parens?

Anonymous   
Printed Page 969
Line 13, first column

In the Index, under "transactions", there is a subsection titled "EBJ", which should
be "EJB".

Anonymous