Bug 328150 - ArrayIndexOutOfBoundsException error in scanning resources when trying to create new project in existing directory
Summary: ArrayIndexOutOfBoundsException error in scanning resources when trying to cre...
Status: VERIFIED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.6.1   Edit
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Target Milestone: 3.7 M4   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2010-10-19 11:53 EDT by Ron Smith CLA
Modified: 2010-12-07 07:04 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ron Smith CLA 2010-10-19 11:53:56 EDT
What steps will reproduce the problem?
1. Create a New Java Project
2. For the project directory, select an existing directory with no Eclipse files, but with a Groovy src folder
3. Click next through project creation dialog


-- Error Details --
Date: Tue Oct 19 10:39:11 CDT 2010
Message: An error occurred while traversing resources.
Severity: Error
Product: Eclipse 1.3.1.20100913-1228 (org.eclipse.epp.package.jee.product)
Plugin: org.eclipse.core.resources
Session Data:
eclipse.buildId=M20100909-0800
java.version=1.6.0_20
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.jee.product -product org.eclipse.epp.package.jee.product -keyring /Users/ron/.eclipse_keyring -showlocation
Command-line arguments:  -os macosx -ws cocoa -arch x86_64 -product org.eclipse.epp.package.jee.product -data /Users/ron/Workspaces/e36_tools -product org.eclipse.epp.package.jee.product -keyring /Users/ron/.eclipse_keyring -showlocation


Exception Stack Trace:
java.lang.ArrayIndexOutOfBoundsException
at java.lang.System.arraycopy(Native Method)
at org.eclipse.jdt.internal.compiler.parser.Scanner.getCurrentTokenSource(Scanner.java:459)
at org.eclipse.jdt.internal.compiler.parser.diagnose.LexStream.readTokenFromScanner(LexStream.java:90)
at org.eclipse.jdt.internal.compiler.parser.diagnose.LexStream.token(LexStream.java:144)
at org.eclipse.jdt.internal.compiler.parser.diagnose.LexStream.kind(LexStream.java:184)
at org.eclipse.jdt.internal.compiler.parser.diagnose.DiagnoseParser.parseCheck(DiagnoseParser.java:2050)
at org.eclipse.jdt.internal.compiler.parser.diagnose.DiagnoseParser.checkPrimaryDistance(DiagnoseParser.java:905)
at org.eclipse.jdt.internal.compiler.parser.diagnose.DiagnoseParser.primaryPhase(DiagnoseParser.java:602)
at org.eclipse.jdt.internal.compiler.parser.diagnose.DiagnoseParser.errorRecovery(DiagnoseParser.java:519)
at org.eclipse.jdt.internal.compiler.parser.diagnose.DiagnoseParser.diagnoseParse(DiagnoseParser.java:377)
at org.eclipse.jdt.internal.compiler.parser.Parser.reportSyntaxErrors(Parser.java:10434)
at org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser.java:9402)
at org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser.java:9707)
at org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.parseStatements(MethodDeclaration.java:119)
at org.eclipse.jdt.core.dom.CompilationUnitResolver.parse(CompilationUnitResolver.java:542)
at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1194)
at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:801)
at org.eclipse.jdt.internal.ui.wizards.ClassPathDetector.visitCompilationUnit(ClassPathDetector.java:291)
at org.eclipse.jdt.internal.ui.wizards.ClassPathDetector.visit(ClassPathDetector.java:347)
at org.eclipse.core.internal.resources.Resource$1.visitElement(Resource.java:64)
at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:82)
at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:86)
at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:86)
at org.eclipse.core.internal.watson.ElementTreeIterator.iterate(ElementTreeIterator.java:127)
at org.eclipse.core.internal.resources.Resource.accept(Resource.java:74)
at org.eclipse.jdt.internal.ui.wizards.ClassPathDetector.detectClasspath(ClassPathDetector.java:126)
at org.eclipse.jdt.internal.ui.wizards.ClassPathDetector.<init>(ClassPathDetector.java:101)
at org.eclipse.jdt.ui.wizards.NewJavaProjectWizardPageTwo.initializeBuildPath(NewJavaProjectWizardPageTwo.java:280)
at org.eclipse.jdt.ui.wizards.NewJavaProjectWizardPageTwo.updateProject(NewJavaProjectWizardPageTwo.java:250)
at org.eclipse.jdt.ui.wizards.NewJavaProjectWizardPageTwo.access$2(NewJavaProjectWizardPageTwo.java:198)
at org.eclipse.jdt.ui.wizards.NewJavaProjectWizardPageTwo$1$UpdateRunnable.run(NewJavaProjectWizardPageTwo.java:159)
at org.eclipse.ui.actions.WorkspaceModifyDelegatingOperation.execute(WorkspaceModifyDelegatingOperation.java:69)
at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:106)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1975)
at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:118)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Comment 1 Olivier Thomann CLA 2010-11-03 08:19:23 EDT
Please describe exactly what must be installed.
Comment 2 Olivier Thomann CLA 2010-11-08 09:17:06 EST
Could you please provide the contents of the project on disk (step 2) when you create it ?
Thanks.
Comment 3 Olivier Thomann CLA 2010-11-15 14:31:48 EST
If no further details are provided, this will be closed as WORKSFORME.
Comment 4 Olivier Thomann CLA 2010-11-17 11:43:41 EST
(In reply to comment #0)
> 2. For the project directory, select an existing directory with no Eclipse
> files, but with a Groovy src folder
What is inside this folder ? Would it be possible to get these files in order to investigate this ?
Comment 5 Olivier Thomann CLA 2010-11-26 12:29:41 EST
Closing as WORKSFORME.
No steps or any requested information has been provided.

Please reopen once you have the requested information.
Comment 6 Satyam Kandula CLA 2010-12-07 07:04:08 EST
Need more info..
Verified for 3.7M4