Bug 238059 - New ant files wizard not working
Summary: New ant files wizard not working
Status: CLOSED FIXED
Alias: None
Product: WTP Webservices
Classification: WebTools
Component: wst.ws (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0.1   Edit
Assignee: Andrew Mak CLA
QA Contact: Kathy Chan CLA
URL:
Whiteboard:
Keywords: contributed
: 241361 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-06-22 15:49 EDT by someone CLA
Modified: 2008-10-29 16:20 EDT (History)
5 users (show)

See Also:


Attachments
Screenshots of "Ant error" (70.70 KB, image/png)
2008-07-11 13:09 EDT, Brendan LeFebvre CLA
no flags Details
patch to handle no extenders (1.75 KB, patch)
2008-07-16 13:57 EDT, Andrew Mak CLA
bjorn.freeman-benson: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description someone CLA 2008-06-22 15:49:59 EDT
Build ID: I20080609-1311

Steps To Reproduce:
1. Select a location in the package explorer, and right click new -> other...
2. Select Other -> Ant Files, And press next.
3. The wizard dosent open and if you try and create a diffrent object from the same wizard a strange wizard page requesting a "web service runtime" and "web service type".

note: if you double click the Ant Files entry you get an error: java.lang.ArrayIndexOutOfBoundsException.

More information:
Tested using eclipse ganymede RC4 for java developers: eclipse-java-ganymede-RC4-win32.zip
with a clean workspace and no other plug-in then what comes with the package.

I didnt encounter this bug in eclipse 3.3.2
Comment 1 Remy Suen CLA 2008-06-22 16:40:43 EDT
I got the same AIOOB problem that has been reported. This looks like a problem with WST.

java.lang.ArrayIndexOutOfBoundsException: 0
	at org.eclipse.wst.command.internal.env.ui.dialog.AntFileImportWizardPage.setRuntimeLabels(AntFileImportWizardPage.java:177)
	at org.eclipse.wst.command.internal.env.ui.dialog.AntFileImportWizardPage.iniatialize(AntFileImportWizardPage.java:153)
	at org.eclipse.wst.command.internal.env.ui.dialog.AntFileImportWizardPage.createSourceGroup(AntFileImportWizardPage.java:119)
	at org.eclipse.ui.dialogs.WizardResourceImportPage.createControl(WizardResourceImportPage.java:160)
Comment 2 Darin Wright CLA 2008-06-23 09:44:48 EDT
Moving to WST
Comment 3 someone CLA 2008-06-26 05:33:00 EDT
Confirmed to happen on Ganymede final.

Also changed version to 3.0 as this is a bug with ganymede wst.
Comment 4 Kathy Chan CLA 2008-07-02 15:12:44 EDT
Hi,

Could you please clarify what do you mean by:

The wizard dosent open and if you try and create a diffrent object from the
same wizard a strange wizard page requesting a "web service runtime" and "web
service type" and if you double click the Ant Files entry you get an error:
java.lang.ArrayIndexOutOfBoundsException.

Are you choosing the Web services -> Ant files new wizard?  I just tried to let the Web Services Ant File wizard import the Ant files for me using the Ganymede GA version (eclipse-jee-ganymede-win32.zip) and the wizard completes successfully. 

You indicated you were using eclipse-java-ganymede-RC4-win32.zip.  Do you actually mean the Eclipse Java package or the Eclipse JEE package?

Andrew, please follow up this issue with the originator. Thanks!  
Comment 5 someone CLA 2008-07-02 15:37:15 EDT
Ok let me clarify the wizard i tried using is found under: Other -> ant files,
and not under: Web services -> Ant files.

I was using the java package not jee.

and i also tested it under the final release of eclipse ganymede.
Comment 6 Brendan LeFebvre CLA 2008-07-11 13:09:03 EDT
Created attachment 107220 [details]
Screenshots of "Ant error"

Confirming this is also an issue with Ganymede Final under Linux.

I have the same symptom of "double-click on Other --> Ant Files results in AIOOBE popup".

Furthermore, if I then try another object type from that same wizard window (say, "Java --> Annotation", I get what the original poster described. Screenshot attached.
Comment 7 Brendan LeFebvre CLA 2008-07-11 13:11:14 EDT
Sorry, forgot to add: I too am using the Java rollup, not JEE.

(In reply to comment #6)
> Confirming this is also an issue with Ganymede Final under Linux.
Comment 8 Andrew Mak CLA 2008-07-16 11:21:23 EDT
I've reproduced this problem in WTP that has only the wst bits and not the jst bits.  Probably the extension is not handling the "no extenders" case correctly.
Comment 9 Andrew Mak CLA 2008-07-16 13:57:03 EDT
Created attachment 107643 [details]
patch to handle no extenders

This patch will fix the AIOOB exception.  But please note, the ant wizard does not have any use without the extenders in the JST portion of WTP which are not installed with this configuration.

A question for Kathy, should the Ant files wizard be exposed at the WST level?
Comment 10 Kathy Chan CLA 2008-07-16 18:51:30 EDT
With the patch, the Ant file wizard would just show an empty list because the current extensions are all in JST.  Despite this fact, I think the wizard should still remain in WST in case there are plugins in WST that wants to extend this in the future.

Patch committed and released to WTP 3.0.1 as v200807162242.
Comment 11 Kathy Chan CLA 2008-07-21 16:11:54 EDT
*** Bug 241361 has been marked as a duplicate of this bug. ***
Comment 12 Kathy Chan CLA 2008-10-27 14:18:07 EDT
This defect has been in resolve state for a while.  Please verify this with the appropriate WTP driver which can be found in:

http://download.eclipse.org/webtools/downloads/

We would verify and close the defect on the originator's behalf if it has not been verified 2 weeks after it's been changed to Verified state.
Comment 13 Kathy Chan CLA 2008-10-29 16:20:04 EDT
Verified.