[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [pde-build-dev] Can't build product using 'Eclipse Product export wizard'


You should raise a bug on the JDT, I'm sure a ClassCastException is not something they want happening.

-Andrew


"Qixing Du" <du.qixing@xxxxxxxxx>
Sent by: pde-build-dev-bounces@xxxxxxxxxxx

10/22/2008 12:20 PM

Please respond to
"Eclipse PDE Build developers list." <pde-build-dev@xxxxxxxxxxx>

To
pde-build-dev@xxxxxxxxxxx
cc
Subject
[pde-build-dev] Can't build product using 'Eclipse Product export        wizard'





Dear All,

I encountered a weird error with 'Eclipse Product export wizard'. The Plug-in Project was previously build on a Mac. Now I tried to debug and build it on Windows XP. I can launch and debug the plug-in without any problem. However, error messages show up each time I try to build the product. Any hint on how to tackle this issue? It has bothered me for days. Any help or comment will be highly appreciated!

Thanks so much!


Short Error Message:

org.eclipse.jdt.internal.compiler.lookup.ArrayBinding cannot be cast to org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding

Complete Error Message:

939. ERROR in C:\Documents and Settings\fdu\My Documents\eclipse 3.3\DataRequestPlugin\src\main\java\com\frankdu\direct\plugins\datarequest\validation\DataRequestValidator.java (at line 0)
   /*******************************************************************************
   ^
Internal compiler error
java.lang.ClassCastException: org.eclipse.jdt.internal.compiler.lookup.ArrayBinding cannot be cast to org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding
   at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.convertMemberValue(BinaryTypeBinding.java:58)
   at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.convertMemberValue(BinaryTypeBinding.java:74)
   at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.createAnnotation(BinaryTypeBinding.java:86)
   at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.createAnnotations(BinaryTypeBinding.java:96)
   at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.createMethod(BinaryTypeBinding.java:508)
   at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.createMethods(BinaryTypeBinding.java:559)
   at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.cachePartsFrom(BinaryTypeBinding.java:328)
   at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.createBinaryTypeFrom(LookupEnvironment.java:609)
   at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.createBinaryTypeFrom(LookupEnvironment.java:588)
   at org.eclipse.jdt.internal.compiler.Compiler.accept(Compiler.java:276)
   at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.askForType(LookupEnvironment.java:102)
   at org.eclipse.jdt.internal.compiler.lookup.UnresolvedReferenceBinding.resolve(UnresolvedReferenceBinding.java:49)
   at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.resolveType(BinaryTypeBinding.java:135)
   at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.resolveTypesFor(BinaryTypeBinding.java:905)
   at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.getExactMethod(BinaryTypeBinding.java:709)
   at org.eclipse.jdt.internal.compiler.lookup.Scope.findExactMethod(Scope.java:766)
   at org.eclipse.jdt.internal.compiler.lookup.Scope.getMethod(Scope.java:2060)
   at org.eclipse.jdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:428)
   at org.eclipse.jdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:345)
   at org.eclipse.jdt.internal.compiler.ast.EqualExpression.resolveType(EqualExpression.java:763)
   at org.eclipse.jdt.internal.compiler.ast._expression_.resolveTypeExpecting(_expression_.java:939)
   at org.eclipse.jdt.internal.compiler.ast.IfStatement.resolve(IfStatement.java:230)
   at org.eclipse.jdt.internal.compiler.ast.Block.resolve(Block.java:101)
   at org.eclipse.jdt.internal.compiler.ast.ForStatement.resolve(ForStatement.java:377)
   at org.eclipse.jdt.internal.compiler.ast.Block.resolve(Block.java:101)
   at org.eclipse.jdt.internal.compiler.ast.ForStatement.resolve(ForStatement.java:377)
   at org.eclipse.jdt.internal.compiler.ast.Block.resolve(Block.java:101)
   at org.eclipse.jdt.internal.compiler.ast.IfStatement.resolve(IfStatement.java:233)
   at org.eclipse.jdt.internal.compiler.ast.Block.resolve(Block.java:101)
   at org.eclipse.jdt.internal.compiler.ast.IfStatement.resolve(IfStatement.java:233)
   at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:429)
   at org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:196)
   at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:400)
   at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve(TypeDeclaration.java:1085)
   at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve(TypeDeclaration.java:1164)
   at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.resolve(CompilationUnitDeclaration.java:366)
   at org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:623)
   at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:392)
   at org.eclipse.jdt.internal.compiler.batch.Main.performCompilation(Main.java:3410)
   at org.eclipse.jdt.internal.compiler.batch.Main.compile(Main.java:1607)
   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.jdt.core.JDTCompilerAdapter.execute(JDTCompilerAdapter.java:79)
   at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:997)
   at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:820)
   at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
   at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
   at org.apache.tools.ant.Task.perform(Task.java:348)
   at org.apache.tools.ant.Target.execute(Target.java:357)
   at org.apache.tools.ant.Target.performTasks(Target.java:385)
   at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
   at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
   at org.eclipse.ant.internal.core.ant.EclipseSingleCheckExecutor.executeTargets(EclipseSingleCheckExecutor.java:30)
   at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
   at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
   at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
   at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
   at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
   at org.apache.tools.ant.Task.perform(Task.java:348)
   at org.apache.tools.ant.Target.execute(Target.java:357)
   at org.apache.tools.ant.Target.performTasks(Target.java:385)
   at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
   at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
   at org.eclipse.ant.internal.core.ant.EclipseSingleCheckExecutor.executeTargets(EclipseSingleCheckExecutor.java:30)
   at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
   at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
   at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
   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.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
   at org.apache.tools.ant.Task.perform(Task.java:348)
   at org.apache.tools.ant.Target.execute(Target.java:357)
   at org.apache.tools.ant.Target.performTasks(Target.java:385)
   at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
   at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
   at org.eclipse.ant.internal.core.ant.EclipseSingleCheckExecutor.executeTargets(EclipseSingleCheckExecutor.java:30)
   at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
   at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
   at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
   at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
   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.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
   at org.apache.tools.ant.Task.perform(Task.java:348)
   at org.apache.tools.ant.Target.execute(Target.java:357)
   at org.apache.tools.ant.Target.performTasks(Target.java:385)
   at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
   at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
   at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
   at org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
   at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
   at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:623)
   at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:456)
   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.ant.core.AntRunner.run(AntRunner.java:377)
   at org.eclipse.pde.internal.core.exports.FeatureExportOperation.runScript(FeatureExportOperation.java:327)
   at org.eclipse.pde.internal.core.exports.FeatureExportOperation.doExport(FeatureExportOperation.java:217)
   at org.eclipse.pde.internal.core.exports.ProductExportOperation.run(ProductExportOperation.java:99)
   at org.eclipse.pde.internal.ui.build.FeatureExportJob.run(FeatureExportJob.java:59)
   at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

--
Best Regards,
Frank Du
_______________________________________________
pde-build-dev mailing list
pde-build-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/pde-build-dev