Susan Harkins (344) [Avatar] Offline
#1
Please post errors in the published version of Netty in Action here. We'll compile and publish a comprehensive list for everyone's convenience. Thank you!

Susan Harkins
Errata Editor
Manning Publications
395405 (1) [Avatar] Offline
#2
In List 5.10,the System.out.println(sliced.toString(utfsmilie) should print "Netty in Actio",but the book tell is "Netty in Action rocks!",That is wrong!
396423 (1) [Avatar] Offline
#3
Listing 12.1 HttpRequestHandler

The channelRead0() method sets the response content type as text/plain when returning index.html. I think this should be content type "text/html".
298012 (1) [Avatar] Offline
#4
In Table 11.4, WriteTimeoutHandler's description is that of ReadTimeoutHandler
330302 (1) [Avatar] Offline
#5
CompatibleObjectDecoder, listed in table 11.8 on page 167 is deprecated since version 3.1 and no longer available in 4.x https://issues.jboss.org/browse/NETTY-136.
436474 (1) [Avatar] Offline
#6
Listing 2.3, in exceptionCaught(), there is a typo: cause.printStrackTrace();
Maxel Schultz (2) [Avatar] Offline
#7
Section 6.5 says the codec section is next, when chapter 7 is actually event loop and threading model.
Maxel Schultz (2) [Avatar] Offline
#8
Actually there are several references to the order of the chapters being different. It seems like codecs was chapter 7 in a draft, but was moved to 10. Any reference to upcoming/past chapters in chapters 7-9 is wrong.
347971 (1) [Avatar] Offline
#9
On page 37 there is a mention of ChannelDuplexHandlerAdapter, but this class does not exist, it's called ChannelDuplexHandler
362811 (1) [Avatar] Offline
#10
395405 wrote:In List 5.10,the System.out.println(sliced.toString(utfsmilie) should print "Netty in Actio",but the book tell is "Netty in Action rocks!",That is wrong!


Yes,if you change the 14 to 15smilie
Martin Harrigan (7) [Avatar] Offline
#11
Pg. 62, Sect. 5.3.5:
writeBytes(ByteBuf dest);
should be
writeBytes(ByteBuf src);
Martin Harrigan (7) [Avatar] Offline
#12
Pg. 57, Sect. 5.2.1:
The latter methods operate on a relative index that’s passed as an argument to the method.
should be
The latter methods operate on an absolute index that’s passed as an argument to the method.
Martin Harrigan (7) [Avatar] Offline
#13
Pg. 95, Sect. 6.5:
The next chapter will focus on Netty’s codec abstraction, which makes writing protocol encoders and decoders much easier than using the underlying ChannelHandler implementations directly.


This does not appear to be the case: the next chapter covers the EventLoop and threading model; Netty’s codec abstraction is explained in Chapters 10 and 11.
Martin Harrigan (7) [Avatar] Offline
#14
Pg. 107:
Having studied ChannelPipelines, ChannelHandlers, and codec classes in depth,...
Netty’s codec abstraction is not explained until Chapters 10 and 11.
Martin Harrigan (7) [Avatar] Offline
#15
Pg. 103, Sect 8.3.1:
Alternatively, you can specify the localAddress with bind() or connect().
The ServerBootstrap class does not have a connect() method.
Martin Harrigan (7) [Avatar] Offline
#16
Pg. 122:
You may find it useful to review the previous chapters on ChannelHandler and codecs, as these will provide the material for our examples.
Netty’s codec abstraction is not explained until Chapters 10 and 11.
Martin Harrigan (7) [Avatar] Offline
#17
Pg. 129, Listing 9.6:
Writes the remaining 2 bytes and asserts a valid frame
should be
Writes the remaining 3 bytes and asserts a valid frame