The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

luke.bace (66) [Avatar] Offline
#1
Please post all errata here.
earcam (1) [Avatar] Offline
#2
Re: Errors and Corrections
Page 90, section 3.6.2 (in ebook pdf, not sure of revision)

Trivial typo:

javax.jmx.TextMessage should read javax.jms.TextMessage
dale77 (1) [Avatar] Offline
#3
Re: Errors and Corrections
Page 17 "Allow for clients of servers to be stubbed out"

Possibly this is supposed to be "Allow for clients *or* servers to be stubbed out"

Clients of servers is a bit of a tautology.
janstey (72) [Avatar] Offline
#4
Re: Errors and Corrections
Thanks for catching that! I'll add it to the errata so the next printing gets the fix.

Cheers,
Jon
Yaytay (1) [Avatar] Offline
#5
Re: Errors and Corrections
Pages 159 & 160 refer to SpringCamelTestSupport (it's the title of section 6.1.5), but the code listing 6.3 has it correctly as CamelSpringTestSupport.
davsclaus (413) [Avatar] Offline
#6
Re: Errors and Corrections
Thanks for spotting those. I will get them into the errata.
Ingmar (2) [Avatar] Offline
#7
Section 5.4.2 Understanding how onException works with redelivery
In this chapter it is mentioned that the plain onException(IOException.class); configuration will override the maximumRedeliveries set on the errorHandler and not do redelivery by default.
Testing it myself with camel version 2.7.2 I find that the redelivery setting of the errorHandler is applied to the exception policy.
Has this been changed in camel in the meantime?
Ingmar (2) [Avatar] Offline
#8
Section 5.5.1 Using onWhen
The example in the book for the use of the onWhen predicate filter is the following and does not compile in Eclipse using camel 2.7.2:
onException(HttpOperationFailedException.class)
.onWhen(bean(MyHttpUtil.class, "isIllegalData"))
.handled(true)
.to("file:/acme/files/illegal");

What does compile is the following:

onException(HttpOperationFailedException.class)
.onWhen(bean(MyHttpUtil.class, "isIllegalData").isEqualTo(true))
.handled(true)
.to("file:/acme/files/illegal");
davsclaus (413) [Avatar] Offline
#9
Re: Section 5.5.1 Using onWhen
Thanks for reporting. We will look into it when upgrading the source code to Camel 2.8.0, when its released.
motlin (13) [Avatar] Offline
#10
Re: Errors and Corrections
Page 82
Chapter 6 will covered testing
should be
Chapter 6 will cover testing
davsclaus (413) [Avatar] Offline
#11
Re: Errors and Corrections
Thanks for reporting this.
motlin (13) [Avatar] Offline
#12
Re: Errors and Corrections
On page 106 and 108 AmbigiousMethodCallException should be AmbiguousMethodCallException.
motlin (13) [Avatar] Offline
#13
Re: Errors and Corrections
page 137 is missing a word

There may be times when you want the Camel error handlers to handle faults as
well.
motlin (13) [Avatar] Offline
#14
Re: Errors and Corrections
The example HandleFaultTest is misleading. The xml in the soap message is irrelevant. Only the fault flag matters.
motlin (13) [Avatar] Offline
#15
Re: Errors and Corrections
Page 139

We’ll cover exception policies piece by piece, looking at how they catch exceptions,
how they works with redelivery
davsclaus (413) [Avatar] Offline
#16
Re: Errors and Corrections
Thanks for reporting those issues. I have updated the errata and sent to Manning.
rdifrango (15) [Avatar] Offline
#17
Re: Errors and Corrections
I'm not sure if anyone has reported this or not, but in the sample code on page 9/10, I noticed that there was a slight typo in

copyFIle

vs

copyFile
davsclaus (413) [Avatar] Offline
#18
Re: Errors and Corrections
Thanks for reporting. Yeah that s a typo, it should of course be copyFile, with a lower case i.

I will ask Manning to get that into the errata
Kyrremann (1) [Avatar] Offline
#19
Re: Errors and Corrections
I think there is a spelling error in Listing 6.4 page 162.
In block 3 you call "camelinaction/rider-came-test.xml", I'm guessing it should say "camel" instead of "came"? So it matches the above line.
davsclaus (413) [Avatar] Offline
#20
Re: Errors and Corrections
Thanks for reporting. The missing l in camel has been reported previously, and is in the errata
http://manning.com/ibsen/excerpt_errata.html
ezzadeen (1) [Avatar] Offline
#21
Re: Errors and Corrections
Chapter 3: 3.2. Transforming data using EIPs and Java:
In the section "Transforming Using a Processor", the statement: "which you can obtain Exchange using the getCamelContext method" should be updated. Other than the missing words to fix the statement, the method "getCamelContext" doesn't exist in Exchange. It might have been there in earlier releases. In 2.12.2, it is "getContext".
davsclaus (413) [Avatar] Offline
#22
Re: Errors and Corrections
Hi

Thanks for spotting this. The wording was already in the errata, but we missed the wrong method name.

I have reported this to Manning so they will update the errata.
8forty (4) [Avatar] Offline
#23
Re: Errors and Corrections
There should be a call to useExponentialBackoff() added to the example at the top of the page, otherwise the backoffMultiplier(2) is ignored.