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 55978 - [41cat] Tomcat error when upgrading project from 4.0
Summary: [41cat] Tomcat error when upgrading project from 4.0
Status: RESOLVED DUPLICATE of bug 55597
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: 4.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: issues@serverplugins
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-04 15:00 UTC by gholmer
Modified: 2005-03-04 15:43 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 gholmer 2005-03-04 15:00:38 UTC
[ BUILD # : 200503031900 ]
[ JDK VERSION : 1.4.2_xx ]

Copied a 4.0 web app project for testing, then opened with 4.1. Project upgrade dialog appeared, worked OK. Successfully fixed broken pointers to dependent projects. Then selected "resolve missing server problem" and got an exception:

java.lang.ArrayIndexOutOfBoundsException: 0
	at org.netbeans.modules.web.project.SourceRoots$5.run(SourceRoots.java:231)
	at org.openide.util.Mutex.writeAccess(Mutex.java:274)
	at org.netbeans.modules.web.project.SourceRoots.putRoots(SourceRoots.java:224)
	at org.netbeans.modules.web.project.ui.customizer.WebProjectProperties.storeRoots(WebProjectProperties.java:628)
	at org.netbeans.modules.web.project.ui.customizer.WebProjectProperties.storeProperties(WebProjectProperties.java:364)
	at org.netbeans.modules.web.project.ui.customizer.WebProjectProperties.access$100(WebProjectProperties.java:65)
	at org.netbeans.modules.web.project.ui.customizer.WebProjectProperties$2.run(WebProjectProperties.java:327)
	at org.openide.util.Mutex.writeAccess(Mutex.java:310)
	at org.netbeans.modules.web.project.ui.customizer.WebProjectProperties.save(WebProjectProperties.java:325)
	at org.netbeans.modules.web.project.ui.customizer.WebProjectProperties.store(WebProjectProperties.java:652)
	at org.netbeans.modules.web.project.ui.BrokenServerSupport.showCustomizer(BrokenServerSupport.java:69)
	at org.netbeans.modules.web.project.ui.WebPhysicalViewProvider$WebLogicalViewRootNode$BrokenServerAction.actionPerformed(WebPhysicalViewProvider.java:387)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
	at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
	at javax.swing.AbstractButton.doClick(AbstractButton.java:289)
	at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1113)
	at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943)
	at java.awt.Component.processMouseEvent(Component.java:5100)
	at java.awt.Component.processEvent(Component.java:4897)
	at java.awt.Container.processEvent(Container.java:1569)
	at java.awt.Component.dispatchEventImpl(Component.java:3615)
	at java.awt.Container.dispatchEventImpl(Container.java:1627)
	at java.awt.Component.dispatchEvent(Component.java:3477)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
	at java.awt.Container.dispatchEventImpl(Container.java:1613)
	at java.awt.Window.dispatchEventImpl(Window.java:1606)
	at java.awt.Component.dispatchEvent(Component.java:3477)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
Comment 1 zikmund 2005-03-04 15:43:45 UTC
Should be fixed in tomorrow's daily build. See issue 55597 for
workaround: "If you first resolve missing server problem
and after that missing reference problem everything works fine."

Thanks for report!

*** This issue has been marked as a duplicate of 55597 ***