Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 341869

Summary: Starting server in debug mode hits Unhandled Event Loop Exception
Product: [WebTools] WTP ServerTools Reporter: tvc3
Component: wst.serverAssignee: Elson Yuen <eyuen7>
Status: RESOLVED FIXED QA Contact: Elson Yuen <eyuen7>
Severity: major    
Priority: P3 CC: eyuen7, kentarou
Version: 3.2   
Target Milestone: 3.2.5   
Hardware: PC   
OS: Windows XP   
See Also: https://git.eclipse.org/r/109073
Whiteboard:
Attachments:
Description Flags
v1.0
none
v1.1
none
v3.3 none

Description tvc3 CLA 2011-04-05 03:55:28 EDT
What steps will reproduce the problem?
1. Starts weblogic server in debug mode.


-- Error Details --
Date: Tue Apr 05 15:43:45 SGT 2011
Message: Unhandled event loop exception
Severity: Error
Product: Eclipse 1.3.2.20110218-0812 (org.eclipse.epp.package.java.product)
Plugin: org.eclipse.ui
Exception Stack Trace:
java.lang.ArrayIndexOutOfBoundsException: 0
at org.eclipse.wst.server.core.internal.ServerPlugin.loadSaveEditorExtension(ServerPlugin.java:1328)
at org.eclipse.wst.server.core.internal.ServerPlugin.getSaveEditorHelper(ServerPlugin.java:1314)
at org.eclipse.wst.server.core.internal.Server.start(Server.java:1916)
at org.eclipse.wst.server.ui.internal.view.servers.StartAction.start(StartAction.java:167)
at org.eclipse.wst.server.ui.internal.view.servers.StartAction.perform(StartAction.java:152)
at org.eclipse.wst.server.ui.internal.view.servers.AbstractServerAction.run(AbstractServerAction.java:60)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
at org.eclipse.equinox.launcher.Main.run(Main.java:1408)
Comment 1 tvc3 CLA 2011-04-05 04:26:57 EDT
I am using Eclipse Helios SR2 build ID 20110301-1815. Somehow after a change in the location of a library JAR file from one of my WEB projects/lib folder to a core EAR libraries, the server deployer has since then ceased to work. 

Subsequently, whenever I tried to startup the weblogic server in debug mode, It won't run and always shows Unhandled event loop exception in the error log.
Comment 2 Elson Yuen CLA 2011-10-05 17:31:36 EDT
Created attachment 204642 [details]
v1.0

The only case that the method will cause ArrayIndexOutOfBoundException is when the extension point load size is 0.  Adding check to prevent the problem to occur.
Comment 3 Elson Yuen CLA 2011-10-05 17:33:01 EDT
Created attachment 204643 [details]
v1.1

Fixing the trace information on this new patch to make sure the end loading extension point trace will be produced.
Comment 4 Elson Yuen CLA 2011-10-05 17:44:56 EDT
Created attachment 204644 [details]
v3.3

The code on 33M and HEAD are different. v3.3 patch is for 33M and HEAD stream.
Comment 5 Elson Yuen CLA 2011-10-05 17:45:34 EDT
Changes released to 32M, 33M and HEAD
Comment 6 Eclipse Genie CLA 2017-10-11 16:37:18 EDT
New Gerrit change created: https://git.eclipse.org/r/109073