Bug 548825 - "Export Product" has encountered a problem: InvocationTargetException
Summary: "Export Product" has encountered a problem: InvocationTargetException
Status: NEW
Alias: None
Product: PDE
Classification: Eclipse Project
Component: Build (show other bugs)
Version: 4.11   Edit
Hardware: PC Windows 10
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: pde-build-inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-01 06:04 EDT by Daniel Gómez-Sánchez CLA
Modified: 2023-06-22 07:55 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Gómez-Sánchez CLA 2019-07-01 06:04:25 EDT
When trying to export a product with Eclipse 2019-03 I get the following error message (see full stacktrace at the end of the comment):

C:\dev\eclipseworkspaces\product\.metadata\.plugins\org.eclipse.pde.core\temp\org.eclipse.pde.container.feature\compile.org.eclipse.pde.container.feature.xml:4: The following error occurred while executing this line:
C:\dev\repositories\git\sources\master\product\bundles\org.product.core\build.xml:179: The following error occurred while executing this line:
C:\dev\repositories\git\sources\master\product\bundles\org.product.core\build.xml:126: java.lang.reflect.InvocationTargetException

The environment is the following:

eclipse.buildId=4.11.0.I20190307-0500
java.version=11.0.3
java.vendor=AdoptOpenJDK
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en


--

The complete stacktrace is the following:

C:\dev\eclipseworkspaces\product\.metadata\.plugins\org.eclipse.pde.core\temp\org.eclipse.pde.container.feature\compile.org.eclipse.pde.container.feature.xml:4: The following error occurred while executing this line:
C:\dev\repositories\git\sources\master\product\bundles\org.product.core\build.xml:179: The following error occurred while executing this line:
C:\dev\repositories\git\sources\master\product\bundles\org.product.core\build.xml:126: java.lang.reflect.InvocationTargetException
	at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:571)
	at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:440)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
	at org.apache.tools.ant.Task.perform(Task.java:350)
	at org.apache.tools.ant.Target.execute(Target.java:449)
	at org.apache.tools.ant.Target.performTasks(Target.java:470)
	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1388)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1361)
	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
	at org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:39)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
	at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:715)
	at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:535)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.eclipse.ant.core.AntRunner.run(AntRunner.java:374)
	at org.eclipse.pde.internal.core.exports.FeatureExportOperation.runScript(FeatureExportOperation.java:470)
	at org.eclipse.pde.internal.core.exports.FeatureExportOperation.doExport(FeatureExportOperation.java:307)
	at org.eclipse.pde.internal.core.exports.ProductExportOperation.run(ProductExportOperation.java:134)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Caused by: C:\dev\repositories\git\sources\master\product\bundles\org.product.core\build.xml:179: The following error occurred while executing this line:
C:\dev\repositories\git\sources\master\product\bundles\org.product.core\build.xml:126: java.lang.reflect.InvocationTargetException
	at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:571)
	at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:440)
	at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
	at jdk.internal.reflect.GeneratedMethodAccessor101.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
	at org.apache.tools.ant.Task.perform(Task.java:350)
	at org.apache.tools.ant.Target.execute(Target.java:449)
	at org.apache.tools.ant.Target.performTasks(Target.java:470)
	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1388)
	at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:36)
	at org.eclipse.ant.internal.core.ant.EclipseSingleCheckExecutor.executeTargets(EclipseSingleCheckExecutor.java:37)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
	at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:437)
	... 25 more
Caused by: C:\dev\repositories\git\sources\master\product\bundles\org.product.core\build.xml:126: java.lang.reflect.InvocationTargetException
	at org.eclipse.jdt.core.JDTCompilerAdapter.execute(JDTCompilerAdapter.java:93)
	at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1404)
	at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:1133)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
	at jdk.internal.reflect.GeneratedMethodAccessor101.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
	at org.apache.tools.ant.Task.perform(Task.java:350)
	at org.apache.tools.ant.Target.execute(Target.java:449)
	at org.apache.tools.ant.Target.performTasks(Target.java:470)
	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1388)
	at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:36)
	at org.eclipse.ant.internal.core.ant.EclipseSingleCheckExecutor.executeTargets(EclipseSingleCheckExecutor.java:37)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
	at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:437)
	... 39 more
Caused by: java.lang.reflect.InvocationTargetException
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.eclipse.jdt.core.JDTCompilerAdapter.execute(JDTCompilerAdapter.java:84)
	... 54 more
Caused by: java.lang.AbstractMethodError: Receiver class org.eclipse.jdt.internal.compiler.apt.util.JrtFileSystem$1 does not define or inherit an implementation of the resolved method abstract visitModule(Ljava/lang/Object;Ljava/lang/String;)Ljava/nio/file/FileVisitResult; of interface org.eclipse.jdt.internal.compiler.util.JRTUtil$JrtFileVisitor.
	at org.eclipse.jdt.internal.compiler.util.JrtFileSystem$2.preVisitDirectory(JRTUtil.java:553)
	at org.eclipse.jdt.internal.compiler.util.JrtFileSystem$2.preVisitDirectory(JRTUtil.java:1)
	at java.base/java.nio.file.Files.walkFileTree(Files.java:2731)
	at java.base/java.nio.file.Files.walkFileTree(Files.java:2796)
	at org.eclipse.jdt.internal.compiler.util.JrtFileSystem.walkModuleImage(JRTUtil.java:540)
	at org.eclipse.jdt.internal.compiler.util.JRTUtil.walkModuleImage(JRTUtil.java:158)
	at org.eclipse.jdt.internal.compiler.apt.util.JrtFileSystem.initialize(JrtFileSystem.java:79)
	at org.eclipse.jdt.internal.compiler.apt.util.JrtFileSystem.<init>(JrtFileSystem.java:60)
	at org.eclipse.jdt.internal.compiler.apt.util.EclipseFileManager.initialize(EclipseFileManager.java:116)
	at org.eclipse.jdt.internal.compiler.apt.util.EclipseFileManager.<init>(EclipseFileManager.java:103)
	at org.eclipse.jdt.internal.compiler.apt.dispatch.BatchProcessingEnvImpl.<init>(BatchProcessingEnvImpl.java:85)
	at org.eclipse.jdt.internal.compiler.apt.dispatch.BatchAnnotationProcessorManager.configure(BatchAnnotationProcessorManager.java:78)
	at org.eclipse.jdt.internal.compiler.batch.Main.initializeAnnotationProcessorManager(Main.java:4584)
	at org.eclipse.jdt.internal.compiler.batch.Main.performCompilation(Main.java:4700)
	at org.eclipse.jdt.internal.compiler.batch.Main.compile(Main.java:1768)
	... 59 more
Comment 1 Andrey Loskutov CLA 2019-07-01 15:37:10 EDT
Looks like a version mismatch between jdt core and jdt apt.
Is this an updated installation? 

Could you please try with fresh 4.12?


Caused by: java.lang.AbstractMethodError: Receiver class
org.eclipse.jdt.internal.compiler.apt.util.JrtFileSystem$1 does not define or
inherit an implementation of the resolved method abstract
visitModule(Ljava/lang/Object;Ljava/lang/String;)Ljava/nio/file/FileVisitResult;
of interface org.eclipse.jdt.internal.compiler.util.JRTUtil$JrtFileVisitor.
        at
org.eclipse.jdt.internal.compiler.util.JrtFileSystem$2.preVisitDirectory(JRTUtil.java:553)
        at
org.eclipse.jdt.internal.compiler.util.JrtFileSystem$2.preVisitDirectory(JRTUtil.java:1)
        at java.base/java.nio.file.Files.walkFileTree(Files.java:2731)
        at java.base/java.nio.file.Files.walkFileTree(Files.java:2796)
        at
org.eclipse.jdt.internal.compiler.util.JrtFileSystem.walkModuleImage(JRTUtil.java:540)
        at
org.eclipse.jdt.internal.compiler.util.JRTUtil.walkModuleImage(JRTUtil.java:158)
        at
org.eclipse.jdt.internal.compiler.apt.util.JrtFileSystem.initialize(JrtFileSystem.java:79)
        at
org.eclipse.jdt.internal.compiler.apt.util.JrtFileSystem.<init>(JrtFileSystem.java:60)
        at
org.eclipse.jdt.internal.compiler.apt.util.EclipseFileManager.initialize(EclipseFileManager.java:116)
        at
org.eclipse.jdt.internal.compiler.apt.util.EclipseFileManager.<init>(EclipseFileManager.java:103)
        at
org.eclipse.jdt.internal.compiler.apt.dispatch.BatchProcessingEnvImpl.<init>(BatchProcessingEnvImpl.java:85)
        at
org.eclipse.jdt.internal.compiler.apt.dispatch.BatchAnnotationProcessorManager.configure(BatchAnnotationProcessorManager.java:78)
        at
org.eclipse.jdt.internal.compiler.batch.Main.initializeAnnotationProcessorManager(Main.java:4584)
        at
org.eclipse.jdt.internal.compiler.batch.Main.performCompilation(Main.java:4700)
        at org.eclipse.jdt.internal.compiler.batch.Main.compile(Main.java:1768)
        ... 59 more
Comment 2 Daniel Gómez-Sánchez CLA 2019-07-11 03:05:13 EDT
Looks like the error was because I installed the jdt patch for Java 12 support (org.eclipse.jdt.java12patch.feature.group) in my Eclipse. After removing the feature, it works.
Comment 3 Eclipse Genie CLA 2021-07-01 04:21:15 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 4 Eclipse Genie CLA 2023-06-22 07:55:20 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.