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 143287 - java.lang.ArrayIndexOutOfBoundsException
Summary: java.lang.ArrayIndexOutOfBoundsException
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 6.x
Hardware: Sun Windows XP
: P3 blocker (vote)
Assignee: Vince Kraemer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-08 12:45 UTC by dpkumar
Modified: 2008-08-13 23:30 UTC (History)
1 user (show)

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 dpkumar 2008-08-08 12:45:49 UTC
NB Build:NetBeans IDE Build 200808080201
GF V3: b-18
JDK:jdk1.5.0_13

Steps to reproduce:
-Install NB6.5 and GF V3-b18
-Register GF V3 and Start.
-Expand GF V3 server and right click on resources(_CallFlowPoll,_TimerPool and DerbyPool) and select properties.

BUG:
On selecting properties of the above mentioned resource getting exception:

java.lang.ArrayIndexOutOfBoundsException: 0
	at org.netbeans.modules.glassfish.common.ui.BasePanel$MyTableModel.getColumnCount(BasePanel.java:222)
	at javax.swing.JTable.createDefaultColumnsFromModel(JTable.java:998)
	at javax.swing.JTable.tableChanged(JTable.java:3009)
	at javax.swing.JTable.setModel(JTable.java:2878)
[catch] at org.netbeans.modules.glassfish.common.ui.BasePanel$TableSetter.run(BasePanel.java:188)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
	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 Vince Kraemer 2008-08-08 17:11:49 UTC
I will take a look at this.
Comment 2 Vince Kraemer 2008-08-08 23:05:44 UTC
the return value of http://localhost:8080/__asadmin/get?pattern changed for properties.... JRB
Comment 3 Vince Kraemer 2008-08-11 19:06:29 UTC
I will fix the AIOBE... then fix the code that fills the table...
Comment 4 Vince Kraemer 2008-08-13 23:30:06 UTC
http://hg.netbeans.org/main/rev/19f2bdf7c85d