This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 102978 - CustomerCMP sample throws NPE
Summary: CustomerCMP sample throws NPE
Status: RESOLVED INVALID
Alias: None
Product: usersguide
Classification: Unclassified
Component: JavaEE (show other bugs)
Version: 6.x
Hardware: All Solaris
: P3 blocker (vote)
Assignee: issues@javaee
URL:
Keywords:
Depends on: 106980
Blocks:
  Show dependency tree
 
Reported: 2007-04-30 13:45 UTC by Mikhail Vaysman
Modified: 2007-08-16 13:22 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Log of Run command (6.28 KB, text/plain)
2007-04-30 13:50 UTC, Mikhail Vaysman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mikhail Vaysman 2007-04-30 13:45:15 UTC
Step to reproduce:
- Create New Project. Choose "Samples\Enterprise" Category. Select "Customer
CMP"    Project
- Deploy created enterprise aplication
- Run CustomerCMP-app-client
Comment 1 Mikhail Vaysman 2007-04-30 13:50:01 UTC
Created attachment 41960 [details]
Log of Run command
Comment 2 Mikhail Vaysman 2007-05-03 16:26:37 UTC
AnnotationOverrideInterceptor sample throws NPE as well.
Comment 3 Tomasz Slota 2007-06-18 12:30:17 UTC
Can somebody from the server plugins group evaluate this? I cannot reproduce it. I've also contacted Srinivas, the author of GF samples, the problem is 
unknown. It was probably some issue with a particular build / configuration of GF.

vaysman: can you please. provide info on the versions of app server and NB used? Can you still reproduce it?
Comment 4 Lukas Jungmann 2007-06-18 14:52:43 UTC
Problem is that run is being invoked on the appclient project node.

In this case appclient is part of ear therefore Run on ear must be invoked instead (see also ear project properties -> run)
Comment 5 Mikhail Vaysman 2007-06-28 15:28:02 UTC
tslota, the other issue blocks this issue
Comment 6 Vince Kraemer 2007-07-10 00:20:00 UTC
jungi already evaluated the issue....  The user is running the "wrong" project.  They need to run the ear project (with
the app client as the selected Client Module) not run the app client project directly.  The plugin cannot disable the
run action on the app client project to prevent this kind of confusing situation.
Comment 7 Petr Jiricka 2007-08-16 13:22:27 UTC
Ok, resolving as invalid.