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.
Summary: | WS Policy configuration NullPointerException when enabling Security | ||
---|---|---|---|
Product: | webservices | Reporter: | Noel Ang <nang> |
Component: | WSIT | Assignee: | Martin Grebac <mgrebac> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | ggenipudi, mgrebac, sweng, tli |
Priority: | P1 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | Comp App Project and JBI project test case |
Description
Noel Ang
2008-02-07 21:36:49 UTC
Created attachment 56287 [details]
Comp App Project and JBI project test case
Martin, Can you take a look at this ticket filed by Noel aginst CASA and see how it can be fixed? http://www.netbeans.org/issues/show_bug.cgi?id=126949 java.lang.NullPointerException at org.netbeans.modules.websvc.wsitconf.ui.service.profiles.UsernameAuthenticationProfile.isServiceDefaultSetupUsed (UsernameAuthenticationProfile.java:134) at org.netbeans.modules.websvc.wsitconf.wsdlmodelext.ProfilesModelHelper.isServiceDefaultSetupUsed (ProfilesModelHelper.java:416) .... The error was caused by the fact that a check for tomcat project was removed last month. The code at line 134 in UsernameAuthenticationProfile.java generates a NPE when running with CompApp projects: if ((Util.getDefaultPassword(p).equals(storePasswd)) && (Util.getStoreLocation(p, false, false).equals(storeLoc))) { return true; } The NPE is caused by the test Util.getStoreLocation(p, false, false) returning null. Please let us know if you think anything change or enhancement in the CASA code is needed to fix this issue. Thanks, Sorry, I missed your comments. Yes, I forgot about CASA usage when fixing different issue. I'll think about what would be best way to fix this. *** Issue 126645 has been marked as a duplicate of this issue. *** Adding myself to the CC list Should be fixed in trunk. Verified fixed with Product Version: NetBeans IDE Dev (Build 200804040802) - Java CAPS Enabled Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b05 System: SunOS version 5.10 running on x86; ISO646-US; en (nb) Userdir: /Users/lautz/sierrabuilds/JavaCAPS20080406/.netbeans/caps |