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 117489 - NPE in WSIT GUI when update security policy
Summary: NPE in WSIT GUI when update security policy
Status: RESOLVED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: WSIT (show other bugs)
Version: 6.x
Hardware: PC All
: P2 blocker (vote)
Assignee: Martin Grebac
URL:
Keywords:
: 118172 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-10-02 16:24 UTC by Tientien Li
Modified: 2007-10-10 22:31 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 Tientien Li 2007-10-02 16:24:29 UTC
WIST GUI throw NPE when updating security policy. To reproduce this error:

- test environment, latest NB6.0 and GFv2B58g (or any version of GFv2)
- create an EJB project, EJBModule1, in NB
- add a web service, echoWS, with, e.g. a simple echo action
- right click on EJBModule1/Web Services/echoWS node and select "Edit Web Service Attributes"
- on the WSIT GUI, select "Secure Service"
- on the Secuity Mechanism combo box, select, e.g., SAML Authorization over SSL
- a dialog shown an NPE error

java.lang.NullPointerException
	at org.netbeans.modules.j2ee.dd.api.web.DDProvider.getDDRoot(DDProvider.java:85)
	at org.netbeans.modules.websvc.wsitconf.wsdlmodelext.ProfilesModelHelper.setSSLAttributes
(ProfilesModelHelper.java:606)
	at org.netbeans.modules.websvc.wsitconf.ui.service.ServicePanel.setValue(ServicePanel.java:327)
	at org.netbeans.modules.xml.multiview.ui.SectionInnerPanel$ComboBoxActionListener.doSetValue
(SectionInnerPanel.java:604)
	at org.netbeans.modules.xml.multiview.ui.SectionInnerPanel$FlushActionListener.actionPerformed
(SectionInnerPanel.java:579)
	at javax.swing.JComboBox.fireActionEvent(JComboBox.java:1197)
	at javax.swing.JComboBox.setSelectedItem(JComboBox.java:561)
	at javax.swing.JComboBox.setSelectedIndex(JComboBox.java:597)
	at javax.swing.plaf.basic.BasicComboPopup$Handler.mouseReleased(BasicComboPopup.java:808)
	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:232)
	at java.awt.Component.processMouseEvent(Component.java:5501)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
	at javax.swing.plaf.basic.BasicComboPopup$1.processMouseEvent(BasicComboPopup.java:476)
	at java.awt.Component.processEvent(Component.java:5266)
	at java.awt.Container.processEvent(Container.java:1966)
	at java.awt.Component.dispatchEventImpl(Component.java:3968)
	at java.awt.Container.dispatchEventImpl(Container.java:2024)
	at java.awt.Component.dispatchEvent(Component.java:3803)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
	at java.awt.Container.dispatchEventImpl(Container.java:2010)
	at java.awt.Window.dispatchEventImpl(Window.java:1778)
	at java.awt.Component.dispatchEvent(Component.java:3803)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
...
Comment 1 Martin Grebac 2007-10-10 22:26:12 UTC
Fixed in trunk:
Checking in ProfilesModelHelper.java;
/cvs/websvc/wsitconf/src/org/netbeans/modules/websvc/wsitconf/wsdlmodelext/ProfilesModelHelper.java,v  <-- 
ProfilesModelHelper.java
new revision: 1.18; previous revision: 1.17
done
Comment 2 Martin Grebac 2007-10-10 22:31:17 UTC
*** Issue 118172 has been marked as a duplicate of this issue. ***