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 129207

Summary: Development Defaults keystore location path missing beginning "/"
Product: webservices Reporter: jchamberlain <jchamberlain>
Component: WSITAssignee: Martin Grebac <mgrebac>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: Netbeans 6.1M1 log file

Description jchamberlain 2008-03-05 02:20:58 UTC
I am using netbeans 6.0 with metro 1.1 against tomcat 6.0.16 with jdk1.6.0_04 on Linux. When I secure a web service with
Username Authentication and check the Use Development Defaults check box the full path to the keystore/truststore is
missing the beginning "/". Once corrected everything works fine.
Comment 1 Martin Grebac 2008-03-05 09:42:44 UTC
Interesting. The location we put there is taken from Java call file.getAbsolutePath(). It works fine for me in 6.1
builds. Would you please try with NB 6.1 builds? Thanks.
Comment 2 jchamberlain 2008-03-05 16:15:18 UTC
Created attachment 57819 [details]
Netbeans 6.1M1 log file
Comment 3 jchamberlain 2008-03-05 16:16:21 UTC
I downloaded netbeans 6.1M1 to try and test the below fix. I am at work and my environment is different here than at home:

Netbeans 6.1M1
Metro 1.1
MacOSX10.5
jdk1.5.0_13
Tomcat 6.0.16

When I create a new web service everything is generated just fine. Then I open the "Edit Web Service Attributes" dialog.
When I click on the "Secure Service" checkbox and I immediately get a NullPointer error message. The details of the
message are below:

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.setValue(ServicePanel.java:364)
	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 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:1882)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2202)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
	at javax.swing.JToggleButton$ToggleButtonModel.setPressed(JToggleButton.java:269)
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
	at java.awt.Component.processMouseEvent(Component.java:5602)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
	at java.awt.Component.processEvent(Component.java:5367)
	at java.awt.Container.processEvent(Container.java:2010)
	at java.awt.Component.dispatchEventImpl(Component.java:4068)
	at java.awt.Container.dispatchEventImpl(Container.java:2068)
	at java.awt.Component.dispatchEvent(Component.java:3903)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3936)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866)
	at java.awt.Container.dispatchEventImpl(Container.java:2054)
	at java.awt.Window.dispatchEventImpl(Window.java:1791)
	at java.awt.Component.dispatchEvent(Component.java:3903)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:180)
	at java.awt.Dialog$1.run(Dialog.java:535)
	at java.awt.Dialog$2.run(Dialog.java:563)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.awt.Dialog.show(Dialog.java:561)
	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:1302)
	at java.awt.Component.setVisible(Component.java:1255)
	at
org.netbeans.modules.websvc.core.wseditor.support.EditWSAttributesCookieImpl.openEditor(EditWSAttributesCookieImpl.java:120)
	at
org.netbeans.modules.websvc.core.wseditor.support.EditWSAttributesCookieImpl.access$000(EditWSAttributesCookieImpl.java:80)
	at org.netbeans.modules.websvc.core.wseditor.support.EditWSAttributesCookieImpl$1.run(EditWSAttributesCookieImpl.java:94)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

I will also attach the netbeans log file for review.


Thanks for the help with these issues.

James
Comment 4 Martin Grebac 2008-03-05 16:19:14 UTC
Please download latest daily tomorrow, it contains some other fixes, M1 might have been broken as well. Or get one of
continuous builds from here:
http://deadlock.netbeans.org/hudson/job/trunk/
Comment 5 jchamberlain 2008-03-05 16:38:41 UTC
I just tested with a build from the ci server and the problem with the path appears to be resolved. I also did not have
the other problem with the NullPointer. So it looks to be fixed in 6.1
Comment 6 Martin Grebac 2008-03-05 16:48:47 UTC
Perfect, thanks for info. I'll close this as fixed. Please reopen in case you encounter this again.