Issue Details (XML | Word | Printable)

Key: BEGINNINGEE6-2
Type: Bug Bug
Status: Open Open
Priority: Critical Critical
Assignee: Unassigned
Reporter: rarchibald
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
beginningee6

Hands On Lab - CDI Solution for creating books doesn't work

Created: 06/Jul/11 06:42 PM   Updated: 06/Jul/11 06:49 PM
Component/s: None
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments: 1. Text File stacktrace.txt (8 kB) 06/Jul/11 06:42 PM - rarchibald

Image Attachments:

1. debug_error.jpg
(483 kB)

2. screenshot.jpg
(280 kB)
Environment:

Glassfish 3.1
Netbeans 7.0
Java 1.6
Maven 2.2.1


Tags:


 Description  « Hide

I wanted to start with the solution to verify it was running before learning these technologies that are new to me. I've been able to build the project in Maven. However, when I try to create a book, I get a NullPointerException from line 84 "book.setTags(transformToList(tags));" where the tags value is null. As a side-note, I was able to create a new CD with newCD.xhtml. I've attached the following screenshots:
screenshot.jpg - Shows the newBook.xhtml form filled out
debug-error.jpg - Shows NetBeans IDE in debug mode after the "Create a book" button was clicked
stacktrace.txt - Shows the stack trace



rarchibald added a comment - 06/Jul/11 06:49 PM

FYI - I made two edits to ItemBean and ItemEJB per the Hands On Lab PDF (I replaced one occurrence of @Resource in ItemEJB and one occurrence of @EJB in ItemBean with @Inject).