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 85734 - NPE after editing ws security attributes
Summary: NPE after editing ws security attributes
Status: CLOSED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Identity (show other bugs)
Version: 5.x
Hardware: All Windows XP
: P1 blocker (vote)
Assignee: Srividhya Narayanan
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-26 02:25 UTC by _ hlu
Modified: 2006-09-26 20:26 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ hlu 2006-09-26 02:25:02 UTC
build20060925:
To reproduce:
1. create an enterprise1.5 application.
2. add a webservice to its ejb project.
3. add an operation to the webservice.
4. create another enterprise1.5 application.
5. add a webservice client using the previous created webservice.
6. edit the webservice client's attributes.
7. enable the ws security attributes.
8. ok to close the editor window.
observe the following exception thrown:
java.lang.NullPointerException
	at
org.netbeans.modules.identity.profile.ui.support.J2eeProjectHelper.getAMSecurityRole(J2eeProjectHelper.java:822)
	at
org.netbeans.modules.identity.profile.ui.support.J2eeProjectHelper.removeAMSecurityConstraint(J2eeProjectHelper.java:804)
	at
org.netbeans.modules.identity.profile.ui.support.J2eeProjectHelper.disableLiberty(J2eeProjectHelper.java:752)
	at
org.netbeans.modules.identity.profile.ui.support.J2eeProjectHelper.enableWSCSecurity(J2eeProjectHelper.java:670)
	at
org.netbeans.modules.identity.profile.ui.WSCSecurityPanel.save(WSCSecurityPanel.java:207)
	at
org.netbeans.modules.identity.profile.ui.WSCSectionNode.save(WSCSectionNode.java:53)
	at org.netbeans.modules.identity.profile.ui.SecurityView.save(SecurityView.java:74)
	at
org.netbeans.modules.identity.profile.ui.editor.SecurityWSEditor.save(SecurityWSEditor.java:100)
[catch] at
org.netbeans.modules.websvc.core.wseditor.support.EditWSAttributesCookieImpl$1.run(EditWSAttributesCookieImpl.java:90)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
	at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Comment 1 _ hlu 2006-09-26 02:25:38 UTC
same happened with webapp1.5.
Comment 2 Srividhya Narayanan 2006-09-26 05:15:13 UTC
Fixed in release 55:
Checking in J2eeProjectHelper.java;
/cvs/identity/profileui/src/org/netbeans/modules/identity/profile/ui/support/Attic/J2eeProjectHelper.java,v
 <--  J2eeProjectHelper.java
new revision: 1.1.2.28; previous revision: 1.1.2.27
done
Comment 3 _ hlu 2006-09-26 20:26:15 UTC
verified in build20060925_1.