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 84032 - NPE is thrown when sun-web.xml is created
Summary: NPE is thrown when sun-web.xml is created
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 9 (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: _ pcw
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-01 14:28 UTC by Petr Blaha
Modified: 2006-09-02 02:10 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
stack trace (3.75 KB, text/plain)
2006-09-01 14:31 UTC, Petr Blaha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Blaha 2006-09-01 14:28:29 UTC
[build 20060829]
I have a J2EE aplication with JBoss target server then I decided to migrate this
application to Sun Application server. Therefore, I would like to create server
specific DD on the project. I go to file tab and expand node thet represents web
project and go to WEB-INF directory, right click and invoke New File -> XML
document. Specified sun-web as name and click OK. Exception is thrown:
NullPointerException
	at
org.netbeans.modules.j2ee.sun.share.config.ConfigDataObject.getStorage(ConfigDataObject.java:340)
	
Also, I'm not able to open this file in IDE since NPE is thrown every time.
Comment 1 Petr Blaha 2006-09-01 14:31:57 UTC
Created attachment 33502 [details]
stack trace
Comment 2 Petr Blaha 2006-09-01 14:34:46 UTC
I changed the server only for Enterprise application only. The web module has
defined still JBoss server. After changing server for web module, I was able to
open sun-web.xml.
Comment 3 _ pcw 2006-09-02 02:10:59 UTC
for uninitialized servers, configuration code is using wrong server id (JBoss)
to initialize our configuration.

Fixed.