persistence@glassfish.java.net

Re: question on entity relation. - unidirectional

From: Ian Evans <Ian.Evans_at_Sun.COM>
Date: Tue, 18 Mar 2008 10:25:24 -0700

Eve Pokua wrote:
> It deploys fine only when I try to run the application
> client that it comes with the error.
>
> I am experiencing the same error with my applications
> and the tables exists. I am able to retrieve but can
> not insert data.

So, there is nothing in the logs during deployment or at runtime? You
only see the NPE on the client?

I'm unable to reproduce this error. I'm using NetBeans 6.0.1 and AS 9.1 UR1.

Undeploy all instances of order, and do the following in a terminal:
1. Make sure you've properly set up:
.../javaeetutorial5/examples/bp-project/build.properties
and:
.../javaeetutorial5/examples/common/admin-password.txt
2. Go to .../javaeetutorial5/examples/ejb/order.
3. Make sure GlassFish and JavaDB are running.
4. Run the following commands:
% ant create-tables
% ant all

This will drop and create the database tables, deploy order, and run the
app client. If this fails, send both the client error message and the
log file.

-ian
-- 
Ian Evans
ian dot evans at sun dot com
Java EE technical documentation