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 126645 - CASA: WS-Policy Attachment dialog: NPE when selecting Security Service
Summary: CASA: WS-Policy Attachment dialog: NPE when selecting Security Service
Status: VERIFIED DUPLICATE of bug 126949
Alias: None
Product: soa
Classification: Unclassified
Component: Composite Application (show other bugs)
Version: 6.x
Hardware: PC Solaris
: P2 blocker (vote)
Assignee: Tientien Li
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-04 19:49 UTC by jlautz
Modified: 2008-04-09 17:27 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 jlautz 2008-02-04 19:49:48 UTC
Seen with 

Product Version: NetBeans IDE Dev (Build 200801311204)
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/.netbeans/dev

1. On a SOAP port, rt-click and choose Edit Web Service Attributes-> Server Configuration.

2. Click the Security Service checkbox.

=> NPE with the following stacktrace:


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)
	at org.netbeans.modules.websvc.wsitconf.ui.service.ServicePanel.sync(ServicePanel.java:224)
	at org.netbeans.modules.websvc.wsitconf.ui.service.ServicePanel.access$100(ServicePanel.java:89)
	at org.netbeans.modules.websvc.wsitconf.ui.service.ServicePanel$1.valueChanged(ServicePanel.java:172)
	at org.netbeans.modules.xml.xam.ComponentEvent$EventType$1.fireEvent(ComponentEvent.java:73)
	at org.netbeans.modules.xml.xam.AbstractModel$Transaction.fireCompleteEventSet(AbstractModel.java:516)
	at org.netbeans.modules.xml.xam.AbstractModel$Transaction.fireEvents(AbstractModel.java:474)
	at org.netbeans.modules.xml.xam.AbstractModel.endTransaction(AbstractModel.java:321)
	at org.netbeans.modules.xml.xam.AbstractModel.endTransaction(AbstractModel.java:313)
	at
org.netbeans.modules.websvc.wsitconf.wsdlmodelext.ProprietarySecurityPolicyModelHelper.setKeyStoreAlias(ProprietarySecurityPolicyModelHelper.java:714)
	at
org.netbeans.modules.websvc.wsitconf.ui.service.profiles.UsernameAuthenticationProfile.setServiceDefaults(UsernameAuthenticationProfile.java:160)
	at org.netbeans.modules.websvc.wsitconf.wsdlmodelext.ProfilesModelHelper.setServiceDefaults(ProfilesModelHelper.java:439)
	at org.netbeans.modules.websvc.wsitconf.ui.service.ServicePanel.setValue(ServicePanel.java:356)
	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:1242)
	at javax.swing.JComboBox.setSelectedItem(JComboBox.java:569)
	at org.netbeans.modules.websvc.wsitconf.ui.service.ServicePanel.setValue(ServicePanel.java:311)
	at org.netbeans.modules.xml.multiview.ui.SectionInnerPanel$CheckBoxActionListener.doSetValue(SectionInnerPanel.java:621)
	at org.netbeans.modules.xml.multiview.ui.SectionInnerPanel$FlushActionListener.actionPerformed(SectionInnerPanel.java:579)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
	at javax.swing.JToggleButton$ToggleButtonModel.setPressed(JToggleButton.java:291)
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
	at java.awt.Component.processMouseEvent(Component.java:6038)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
	at java.awt.Component.processEvent(Component.java:5803)
	at java.awt.Container.processEvent(Container.java:2058)
	at java.awt.Component.dispatchEventImpl(Component.java:4410)
	at java.awt.Container.dispatchEventImpl(Container.java:2116)
	at java.awt.Component.dispatchEvent(Component.java:4240)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
	at java.awt.Container.dispatchEventImpl(Container.java:2102)
	at java.awt.Window.dispatchEventImpl(Window.java:2429)
	at java.awt.Component.dispatchEvent(Component.java:4240)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:177)
	at java.awt.Dialog$1.run(Dialog.java:1039)
	at java.awt.Dialog$3.run(Dialog.java:1091)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.awt.Dialog.show(Dialog.java:1089)
	at org.netbeans.core.windows.services.NbPresenter.superShow(NbPresenter.java:834)
	at org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:868)
	at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:856)
	at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:104)
	at org.openide.util.Mutex.doEventAccess(Mutex.java:1355)
	at org.openide.util.Mutex.readAccess(Mutex.java:268)
	at org.netbeans.core.windows.services.NbPresenter.show(NbPresenter.java:841)
	at java.awt.Component.show(Component.java:1419)
	at java.awt.Component.setVisible(Component.java:1372)
	at java.awt.Window.setVisible(Window.java:801)
	at java.awt.Dialog.setVisible(Dialog.java:979)
	at org.netbeans.modules.compapp.casaeditor.nodes.actions.WsitServerConfigAction$1.run(WsitServerConfigAction.java:154)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Comment 1 jlautz 2008-02-04 19:52:32 UTC
After the exception dialog is dismissed, the Security Service checkbox is checked, but the configuration widgets under
Security Service (Security Mechanism, etc) remain disabled.
Comment 2 Jun Qian 2008-02-04 20:36:20 UTC
Tien, it looks like the JbiProject needs to provide a J2eeModuleProvider in its lookup.
Comment 3 Tientien Li 2008-02-04 20:59:30 UTC
Jun, SOAP BC is not a JavaEE module. So, we work with WSIT to work around places where J2eeModule information is 
required. Looks like there are more places where around code are needed. I will work with Martin to fix this..  Thanks.
Comment 4 Tientien Li 2008-02-19 21:37:42 UTC

*** This issue has been marked as a duplicate of 126949 ***
Comment 5 jlautz 2008-04-09 17:27:55 UTC
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