Errata
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 |
---|---|---|---|---|
Page xix middle of page, link to oreilly web page |
The page contains: |
Chris Joakim | Dec 23, 2009 | |
Printed | Page page 31-35 inside code |
From page 31-35, inside code, everywhere using 'throw new WebApplicationException(Response.Status.NOT_FOUND)' or 'throw new WebApplicationException (e, Response.Status.BAD_REQUEST)' causes error message 'cannot find symbol.. constructor WebApplicationException(javax.ws.rs.core.Response.Status)'. |
Anonymous | Aug 11, 2010 |
Printed | Page page 82 line 12 from the bottom |
Inside the block code of JSON, "," is missing after "married" : true |
Anonymous | Aug 12, 2010 |
Printed, | Page 1 Top |
There does not seem to be any link to download the sample code. |
Victor Grazi | Jun 01, 2011 |
2 Chapter 8 - Building and Invoking Requests |
The following code will give a compiler error because of the "accept()" method. The method "request()" is missing. It should precede "accept()". |
Hani Ezzadeen | Dec 02, 2013 | |
4 request example code |
- GET /resteasy/index.html HTTP/1.1 |
Grzegorz Szpetkowski | Jan 26, 2011 | |
Other Digital Version | 4 |
******** WHERE IS THE SOURCE CODE |
Guillermo Suchicital | Dec 12, 2011 |
Printed | Page 5 1st paragraph |
the web address "http://jboss.org/resteasy/index.html" does not work. |
David Levinson | Feb 11, 2013 |
Other Digital Version | 17 footnote |
The footnote includes an URL for more information about Atom. The URL is wrong. Instead of www3.org/2005/Atom it should read www.w3.org/2005/Atom . |
Anonymous | Feb 01, 2012 |
Page 18 3rd XML block |
|
Mark Fitzpatrick | Dec 12, 2009 | |
22 Second XML example. |
In the client response XML where a new order is created, the order element has the id attribute set to "233". But the link element below contains the URI to "http://example.com/orders/133". Shouldn't this URI refer to the same order number as above? |
HowardMc | Dec 06, 2009 | |
Printed | Page 22 second XML fragment on page |
The order id is 233, but the self-referencing URI says 133. |
Tony Childs | Feb 23, 2010 |
Printed | Page 22 & 23 line 19 |
On page 22, in 2nd block of messages, |
Anonymous | Aug 10, 2010 |
Printed | Page 22 Sample code, responce from POST |
Minor typo. |
Anonymous | Nov 14, 2011 |
Printed | Page 22 United States |
The link element in the HTTP response message provides a URI whose implied ID (133) conflicts with the id attribute of the order element (233) and the implied ID in the Location header (233). |
Dennis Mitchell | Nov 14, 2012 |
Printed | Page 23 xml listing at top of page |
The uri request indicates a put /orders/232 |
PWRDWNSYS | Feb 03, 2010 |
Printed | Page 25 2-4 paragraph |
I found the discussion of the "purge" operation interesting, yet I felt that there were other, less "forced" ways of doing the same thing. For instance, rather than creating a "purge" operation why not get all cancelled orders... |
Tony Childs | Feb 23, 2010 |
Printed | Page 33 1st paragraph - updateCustomer() method |
The update of user "current" properties is non-atomic. |
Anonymous | Jan 19, 2010 |
Printed | Page 33 last paragraph |
typo in the reference to method getcustomer() in the first sentence of the paragraph "Utility methods", should be getCustomer(). |
dominik.gruntz | Apr 05, 2010 |
Page 40 2nd paragraph |
The text says that "If your application server is JAX-RS-aware or, in other words, is tightly integrated with JAX-RS, we can declare our ShoppingApplication class as a servlet". I'm using Glasfish V3, which is a JAX-RS-aware application server, but the Application subclass was not recognized as a servlet. Instead, it produces the error below: |
Hildeberto Mendon | Mar 21, 2010 | |
Printed | Page 40 Second example |
The second example is supposed to apply to application servers that are not JAX-RS aware. In dropping this into a Tomcat6 server with jsr311-api-1.1.jar, the com.jaxrs.vendor.JaxrsVendorServlet is reported as not found. I can't find any mention of this class in the book or any reference to it on the web except in pages that reference this book. Some explanation of what this class is and how to obtain it would be immensely helpful. |
Todd Grigsby | Mar 02, 2011 |
Printed | Page 43 1st paragraph |
@DELETE was not explained until page 43. But in page 43 1st paragraph. It is mentioned that we have covered @DELETE has been covered before page 43. |
@DELETE not explained before page 43 | Jan 25, 2012 |
Printed | Page 43 3rd paragraph |
It says in Chapter 3 we saw "CustomerService" and "getAllCustomers". Really? Were you talking about a different book? |
Dave Levinson | Feb 24, 2013 |
Page 43 1st paragraph |
The third sentence states: "You also saw how we used the @Path annotation to bind a URI pattern to a Java method." |
Kurt Sanders | May 03, 2013 | |
Page 47 Middle of the page |
At the top of the Regular Expressions section, the regular expression for only decimals was given as: |
Anonymous | Dec 06, 2010 | |
Printed | Page 80 Source code at top of page |
In the JAXB code example at the top of the page, |
Chad Darby | Oct 14, 2010 |
Printed | Page 82 line 6-7 |
The sentence "If it is, it returns null; otherwise, it returns the JAXBContext..." should be written as "If it is, it returns the JAXBContext....; otherweise, it returns null". |
dominik.gruntz | Apr 05, 2010 |
Printed | Page 83 Rule #4 |
The JSON mapping for "name" appears to be incorrect, at least according to rule #1. |
Bill Mc | Jan 17, 2012 |
Printed | Page 92 2nd List |
- Return ctx.createUnmarshaller().unmarshal(outputStream); |
Anonymous | Apr 17, 2010 |
Printed | Page 100 1st paragraph and followd list |
ResponseBuilder.cookies() is not found on Response.ResponseBuilder class but cookie() method. |
Anonymous | Apr 22, 2010 |
Printed | Page 100 2nd List |
- NewCookie cookie = new NewCookie("key", "value); |
Anonymous | Apr 22, 2010 |
102 javax.ws.rs.core.GenericEntity code example |
- return Response.ok(entity); |
Farooq Karim | Jan 24, 2011 | |
Printed | Page 111 getSomething() method body, 1st line |
Declaration of "variants" local variable should read as follows: |
Jean-Fran?ois Morin | Mar 30, 2011 |
Printed, | Page 111 United States |
Starting on page 111, there are a series of examples that invoke a single-argument constructor for MediaType. |
Dave Blickstein | Jan 03, 2013 |
Printed | Page 112 several places |
Several places on pages 112 and 113 refer to a "VariantBuilder" class. |
Anonymous | Jan 28, 2010 |
Printed, | Page 112 United States |
An example that starts at the bottom of p 112 and continues onto p. 113 |
Dave Blickstein | Jan 03, 2013 |
Printed | Page 116 3rd paragraph |
The first sentence in third paragraph "... the schema allows for adding any arbitrary attribute to the id attribute." should be "... for adding arbitrary attribute to the customer element." |
Anonymous | Feb 15, 2011 |
Printed | Page 127 5th list |
- UriBuilder builder = UriBuilder.fromClass(CustomerService.class); |
Anonymous | May 02, 2010 |
Printed | Page 132 bottom of the page |
There are some errors. |
Anonymous | Apr 24, 2010 |
Printed | Page 136 middle of the page (overall line 19) |
When a service receives this GET request, it tries to match the current ETag hash of the resource with the one provided within the If-Modified-Since header. This should be the "If-None-Match header". |
dominik.gruntz | Apr 05, 2010 |
Printed | Page 137 3rd paragraph |
Since there is no definition of the header variable "If-Not-Modified", it should be "If-Modified-Since" or "If-Unmodified-Since". |
Anonymous | Apr 24, 2010 |
Printed | Page 152 14th line from bottom |
The CustomerResourceBean class declaration should read "public class CustomerResourceBean " instead of "public clas CustomerResourceBean ". |
Jean-Fran?ois Morin | Apr 13, 2011 |
Printed | Page 157 GET expample |
- uri="/customer/333" |
Anonymous | Apr 29, 2010 |
Printed | Page 158 the first and second list |
The response attribute is md5 of (md5 of credential) and nonce and cnonce and (md5 of uri). |
Anonymous | Apr 29, 2010 |
Printed | Page 166 1st list |
- connetion = (HttpURLConnection) getUrl.openConnection(); |
Anonymous | May 07, 2010 |
170 listing |
change |
Grzegorz Szpetkowski | Jun 22, 2010 | |
171 first paragraph |
"In Apache HttpClient 4.x, the org. apache.http.client.DefaultHttpClient class is responsible for managing HTTP connections." |
Grzegorz Szpetkowski | Jun 22, 2010 | |
Printed | Page 176 Not On the Book |
|
Anonymous | Nov 19, 2012 |
Printed | Page 178 line 12, second code sample |
In the sample code I see the statement "Response response = createCustomer(newCust)". I assume, that the createCustomer method has to be called on the generated proxy, i.e. "Response response = client.createCustomer(newCust)". |
dominik.gruntz | Apr 05, 2010 |
Printed | Page 190 first code sample |
the embedded server is not started. As printed, the code will throw a NullPointerException as server.getDeployment().getRegistry() is null. |
dominik.gruntz | Apr 05, 2010 |
Printed | Page 192 3rd paragraph |
In the paragraph about GZIP compression, the author refers to chapter 10. However in chapter 10 (Scaling JAX-RS Applications) there is nothing mentioned about compression. Is this piece missing from chapter 10, or is it just a mistake to refer to chapter 10? |
Wim Praet | Feb 17, 2011 |
Printed | Page 198 bottom 2 urls |
the 2 url's at the bottom of this page do not exist. And there is no indication of what should be referenced instead. |
Anonymous | Apr 15, 2012 |
Printed, | Page 201 6th paragraph |
Perform the build by typing maven install. Maven uses pom.xml to figure out what to compile, build, and run the example code |
Victor Grazi | Jun 01, 2011 |
216 ALL |
In the example source code for ex04_3 |
Ken Branco | Feb 02, 2013 | |
Printed | Page 224 2nd List |
The cookie created at #createCustomer is indexed by "/" path, but the cookie referrenced at #getCustomers is indexed by "/rest/customers", so the paragraph on P.226 "If you refresh this page, you will see ..." is wrong. |
Anonymous | May 15, 2010 |
Printed | Page 260 ~1/2 way down the page |
The @HeaderParam("If-None-Match") String sent, is missing from the declaration of getCustomer(). The source code is correct. |
Tim Barthel | Jan 26, 2012 |
Printed | Page 272 Last line before "The WAR Project" |
I think HTTP error 500 means "Internal Server Error," not "Internal Service Error." |
Jean-Fran?ois Morin | Apr 13, 2011 |