Hello Ian,
The error was definitely due to my netbeans: Results of running the order application:
tools:
bpp-run-app-client: [echo] running application client container. [exec] Cost of Bill of Material for PN SDFG-ERTY-BN Rev: 7: $2 [exec] Cost of Order 1111: $664.68 [exec] Cost of Order 4312: $2,011.44
[exec] Adding 5% discount [exec] Cost of Order 1111: $627.75 [exec] Cost of Order 4312: $1,910.87
[exec] Removing 7% discount [exec] Cost of Order 1111: $679.45 [exec] Cost of Order 4312: $2,011.44
[exec] Average price of all parts: $117.55
[exec] Total price of parts for Vendor 100: $501.06
[exec] Ordered list of vendors for order 1111 [exec] 200 Gadget, Inc. Mrs. Smith [exec] 100 WidgetCorp Mr. Jones
[exec] Counting all line items [exec] Found 6 line items
[exec] Removing Order 4312 [exec] Counting all line items [exec] Found 3 line items
[exec] Found 1 out of 2 vendors with 'I' in the name: [exec] Gadget, Inc.
BUILD SUCCESSFULTotal time: 30 secondsC:\javaeetutorial5\examples\ejb\order>I'm over-joy.
Thanks
eve
From: gorgeous65_at_msn.comTo: persistence_at_glassfish.dev.java.net; ejb_at_glassfish.dev.java.netDate: Fri, 28 Mar 2008 13:31:48 +0000Subject: RE: question on entity relation. - unidirectional
Hello Ian, everyone, I was able to run the Cart example of the jee 5 tutorial outsidenetbeans. So now I assume there is a bug in my netbeans. I will carry out further test and the let you know. Ian thank you so much for all your help. And everybody thanks. eve
> Date: Wed, 19 Mar 2008 14:55:14 -0700> From: Ian.Evans_at_Sun.COM> To: ejb_at_glassfish.dev.java.net> CC: persistence_at_glassfish.dev.java.net> Subject: Re: question on entity relation. - unidirectional> > Eve Pokua wrote:> > Thank you for your reply. The error is complaining about this:> > > > private static void createData() {> > try {> > *request.createPart(*> > "1234-5678-01",> > 1,> > "ABC PART",> > new java.util.Date(),> > "PARTQWERTYUIOPASXDCFVGBHNJMKL",> > null);> > > > It is complaining that's a nullPointer.> > I get the same error with my application. I am able to retrieve data> > from the DB and display it. Why can't I insert. And why is it saying> > the ejb interface to insert data is a nullPointer. I believe, I have been> > able to insert data into the data DB in the past.> > Email me a copy of your server.log file. Don't send it to the lists.> > It looks like the RequestBean isn't being injected.> > -ian> -- > Ian Evans> ian dot evans at sun dot com> Java EE technical documentation
Get fish-slapping on Messenger Play now!
_________________________________________________________________
Win 100’s of Virgin Experience days with BigSnapSearch.com
http://www.bigsnapsearch.com