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 81237 - NPE upon creating Sun Resource
Summary: NPE upon creating Sun Resource
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 9 (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Nitya Doraisamy
URL:
Keywords:
Depends on: 81372
Blocks:
  Show dependency tree
 
Reported: 2006-07-27 10:07 UTC by Dan Kolar
Modified: 2006-10-16 16:38 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages.log (20.10 KB, text/plain)
2006-07-27 10:08 UTC, Dan Kolar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Kolar 2006-07-27 10:07:48 UTC
build 200607270000  jdk1.5.07

Have web free-form project.
1) New -> Sun Resource -> Choose any
2) Next

NPE is thrown.
Comment 1 Dan Kolar 2006-07-27 10:08:37 UTC
Created attachment 32255 [details]
messages.log
Comment 2 Nitya Doraisamy 2006-07-27 20:27:24 UTC
Please attach the project that is causing this exception.
Comment 3 Nitya Doraisamy 2006-07-31 17:35:31 UTC
The plugin attempts to obtain the EnterpriseResourceDirectory from the project
via the J2eeProvider. It appears that the j2eeprovider object was/might be null
for web freeform. Need to investigate.
Comment 4 _ ludo 2006-08-01 21:19:34 UTC
no server resource on free form projects:
it is user responsibnilty to modify its build.xml to do whatever needed for sun
resources.
So we just need to avoid the npe and do nothing in this case.
Comment 5 Nitya Doraisamy 2006-08-01 21:49:17 UTC
Server Resources support is available for EJB freeform and Appclient freeform.
It is missing in web freeform.

I will fix the plugin code to handle NPE, but will leave issue open for tracking.
Comment 6 Nitya Doraisamy 2006-09-01 21:24:24 UTC
Prevented NPE and added message in wizard indicating that server resource
creation is not supported in the project
Comment 7 Dan Kolar 2006-10-16 16:38:55 UTC
v.