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 56128 - NPE after clicking button in sun-web.xml editor
Summary: NPE after clicking button in sun-web.xml editor
Status: CLOSED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 8 (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: Rajeshwar Patil
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-10 10:30 UTC by Jaroslav Pospisil
Modified: 2006-03-24 12:50 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 Jaroslav Pospisil 2005-03-10 10:30:27 UTC
Build 200503061900

1.Create web module on SJS App Server.
2.Open sun-web.xml editor by clickong on the file in Projects tab.
3.Click on Cache/Cache mappings.
4.Click on Add to add cache mapping.\
5.Click on Edit Policy.
6.ERROR

NPE appears,you can't edit it.

java.lang.NullPointerException
	at
org.netbeans.modules.j2ee.sun.share.configBean.customizers.common.GenericTableModel.getRowCount(GenericTableModel.java:188)
	at javax.swing.JTable.checkLeadAnchor(JTable.java:2949)
	at javax.swing.JTable.tableChanged(JTable.java:2993)
	at javax.swing.JTable.setModel(JTable.java:2827)
	at
org.netbeans.modules.j2ee.sun.share.configBean.customizers.common.BeanTablePanel.<init>(BeanTablePanel.java:76)
	at
org.netbeans.modules.j2ee.sun.share.configBean.customizers.common.BeanTablePanel.<init>(BeanTablePanel.java:47)
	at
org.netbeans.modules.j2ee.sun.share.configBean.customizers.common.GenericTablePanel.<init>(GenericTablePanel.java:97)
	at
org.netbeans.modules.j2ee.sun.share.configBean.customizers.common.GenericTablePanel.<init>(GenericTablePanel.java:91)
	at
org.netbeans.modules.j2ee.sun.share.configBean.customizers.webapp.CachePolicyPanel.initUserComponents(CachePolicyPanel.java:435)
	at
org.netbeans.modules.j2ee.sun.share.configBean.customizers.webapp.CachePolicyPanel.<init>(CachePolicyPanel.java:105)
	at
org.netbeans.modules.j2ee.sun.share.configBean.customizers.webapp.CachePolicyPanel.invokeAsPopup(CachePolicyPanel.java:643)
	at
org.netbeans.modules.j2ee.sun.share.configBean.customizers.webapp.SelectedCacheMappingPanel.jBtnEditPolicyActionPerformed(SelectedCacheMappingPanel.java:324)
	at
org.netbeans.modules.j2ee.sun.share.configBean.customizers.webapp.SelectedCacheMappingPanel.access$700(SelectedCacheMappingPanel.java:42)
	at
org.netbeans.modules.j2ee.sun.share.configBean.customizers.webapp.SelectedCacheMappingPanel$8.actionPerformed(SelectedCacheMappingPanel.java:240)
	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.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
	at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
	at java.awt.Component.processMouseEvent(Component.java:5488)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3093)
	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:1766)
	at java.awt.Component.dispatchEvent(Component.java:3803)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
	at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
	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 Sherold Dev 2005-03-10 10:36:28 UTC
This belongs to sunappserv module
Comment 2 _ pcw 2005-03-17 07:49:33 UTC
This was a regression I noticed when I upgraded the plugin to use the sun dd
api.  It was caused by a change in the environment under which the tables using
this model were being invoked, that was causing model.getRowCount() to be called
before the table was even displayed (or initialized.)  I do not know what the
environmental change was - could be IDE change, swing init change in JDK 1.5, or
sun dd api (I doubt this one), but regardless, the bug is a trivial fix and I
did not notice any other bad behavior.
Comment 3 Jaroslav Pospisil 2005-03-22 10:34:46 UTC
Verified in build 200503211900.