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 85509 - NPE throws while edit ws attributes.
Summary: NPE throws while edit ws attributes.
Status: RESOLVED WONTFIX
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Identity (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: Peter Liu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-22 01:12 UTC by _ hlu
Modified: 2006-09-23 00:27 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
zip file (59.22 KB, application/octet-stream)
2006-09-22 01:13 UTC, _ hlu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ hlu 2006-09-22 01:12:38 UTC
It happens with projects created in an old coke build.
To reproduce:
Unzip the attached zip file.
Open the three projects in ide.
edit ws attributes inside the ejb project. Check enable message level security.
NPE  throws:
java.lang.NullPointerException
	at
org.netbeans.modules.identity.profile.ui.WSPSecurityPanel.enableSecurityCBActionPerformed(WSPSecurityPanel.java:262)
	at
org.netbeans.modules.identity.profile.ui.WSPSecurityPanel.access$000(WSPSecurityPanel.java:41)
	at
org.netbeans.modules.identity.profile.ui.WSPSecurityPanel$1.actionPerformed(WSPSecurityPanel.java:160)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
	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:5488)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
	at java.awt.Component.processEvent(Component.java:5253)
	at java.awt.Container.processEvent(Container.java:1966)
	at java.awt.Component.dispatchEventImpl(Component.java:3955)
	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)
	at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153)
	at java.awt.Dialog$1.run(Dialog.java:517)
	at java.awt.Dialog$2.run(Dialog.java:545)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.awt.Dialog.show(Dialog.java:543)
	at org.netbeans.core.windows.services.NbPresenter.superShow(NbPresenter.java:816)
	at org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:859)
	at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:847)
	at org.openide.util.Mutex.doEventAccess(Mutex.java:1178)
	at org.openide.util.Mutex.readAccess(Mutex.java:215)
	at org.netbeans.core.windows.services.NbPresenter.show(NbPresenter.java:832)
	at java.awt.Component.show(Component.java:1300)
	at java.awt.Component.setVisible(Component.java:1253)
	at
org.netbeans.modules.websvc.core.wseditor.support.EditWSAttributesCookieImpl$1.run(EditWSAttributesCookieImpl.java:87)
	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-22 01:13:20 UTC
Created attachment 34354 [details]
zip file
Comment 2 Peter Liu 2006-09-22 06:19:05 UTC
Hong, please delete all existing amconfig.xml files under the Configuration
Files node.  We recently made incompatible changes to the schema.

We decided not provide support for upgrading this file between beta and fcs.
Comment 3 _ hlu 2006-09-22 23:18:27 UTC
Peter,
Will the change affect projects created in beta release?
I deleted the amconfig.xml and after that, I was able to edit ws attributes, but
deployment was failed with these message in output window.
am-init:
am-deploy:
C:\Documents and
Settings\HONG\EnterpriseApplicationS\nbproject\build-impl.xml:178: The following
error occurred while executing this line:
C:\Documents and
Settings\HONG\EnterpriseApplicationS\EnterpriseApplicationS-ejb\nbproject\am-deploy.xml:34:
taskdef class org.netbeans.modules.identity.ant.AMDeploy cannot be found
BUILD FAILED (total time: 6 seconds)
I reopen the issue because if the defect will not be fixed, a workaround should
be available.
Comment 4 _ hlu 2006-09-23 00:17:10 UTC
also see 85613
Comment 5 Peter Liu 2006-09-23 00:27:21 UTC
Hong,  the two issues are unrelated. Deleting the amconfig.xml is the workaround
for this problem.