Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[pde-dev] Problem executing API tooling ant task

Hello,

I am currently trying to invoke the “apitooling.compare” ant task from maven via the tycho-eclipserun-plugin. While executing the task, I constantly get a ClassNotFoundException for “org.eclipse.osgi.internal.resolver.StateObjectFactoryImpl”. Does anyone of you have an idea how I can fix that?

 

Best regards,

Sebastian

 

 

--

BREDEX GmbH

Mauernstr. 33

38100 Braunschweig

 

Tel.: +49-531-24330-0

Fax:  +49-531-24330-99

http: www.bredex.de

 

Geschäftsführer: Andreas Vogel, Ulrich Obst, Achim Lörke

Amtsgericht Braunschweig HRB 2450

 

 

!SESSION 2015-10-06 13:13:02.465 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.8.0_60
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Framework arguments:  -application org.eclipse.ant.core.antRunner -buildfile compareBaseline.xml
Command-line arguments:  -application org.eclipse.ant.core.antRunner -buildfile compareBaseline.xml

!ENTRY org.eclipse.osgi 4 0 2015-10-06 13:13:07.230
!MESSAGE Application error
!STACK 1
java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at org.eclipse.ant.core.AntRunner.run(AntRunner.java:511)
	at org.eclipse.ant.core.AntRunner.start(AntRunner.java:608)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1515)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1488)
Caused by: /projects/jubula/Workspace/users/SebastianStruckmann/workspaces/repos/org.eclipse.jubula.core/org.eclipse.jubula.client.api/compareBaseline.xml:14: java.lang.UnsupportedOperationException: Not able to create StateObjectFactory implementation: org.eclipse.osgi.internal.resolver.StateObjectFactoryImpl
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:116)
	at org.apache.tools.ant.Task.perform(Task.java:348)
	at org.apache.tools.ant.Target.execute(Target.java:435)
	at org.apache.tools.ant.Target.performTasks(Target.java:456)
	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
	at org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:36)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
	at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:705)
	at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:568)
	... 19 more
Caused by: java.lang.UnsupportedOperationException: Not able to create StateObjectFactory implementation: org.eclipse.osgi.internal.resolver.StateObjectFactoryImpl
	at org.eclipse.osgi.service.resolver.StateObjectFactory$StateObjectFactoryProxy.getImplementation(StateObjectFactory.java:506)
	at org.eclipse.osgi.service.resolver.StateObjectFactory$StateObjectFactoryProxy.createState(StateObjectFactory.java:521)
	at org.eclipse.pde.api.tools.internal.model.ApiBaseline.getState(ApiBaseline.java:636)
	at org.eclipse.pde.api.tools.internal.model.ApiBaseline.addApiComponents(ApiBaseline.java:353)
	at org.eclipse.pde.api.tools.internal.model.ApiModelFactory.addComponents(ApiModelFactory.java:312)
	at org.eclipse.pde.api.tools.internal.tasks.CommonUtilsTask.createBaseline(CommonUtilsTask.java:81)
	at org.eclipse.pde.api.tools.internal.tasks.CompareTask.execute(CompareTask.java:87)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
	... 29 more
Caused by: java.lang.ClassNotFoundException: org.eclipse.osgi.internal.resolver.StateObjectFactoryImpl
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:264)
	at org.eclipse.osgi.service.resolver.StateObjectFactory$StateObjectFactoryProxy.getImplementation(StateObjectFactory.java:496)
	... 41 more
Root exception:
/projects/jubula/Workspace/users/SebastianStruckmann/workspaces/repos/org.eclipse.jubula.core/org.eclipse.jubula.client.api/compareBaseline.xml:14: java.lang.UnsupportedOperationException: Not able to create StateObjectFactory implementation: org.eclipse.osgi.internal.resolver.StateObjectFactoryImpl
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:116)
	at org.apache.tools.ant.Task.perform(Task.java:348)
	at org.apache.tools.ant.Target.execute(Target.java:435)
	at org.apache.tools.ant.Target.performTasks(Target.java:456)
	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
	at org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:36)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
	at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:705)
	at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:568)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at org.eclipse.ant.core.AntRunner.run(AntRunner.java:511)
	at org.eclipse.ant.core.AntRunner.start(AntRunner.java:608)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1515)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1488)
Caused by: java.lang.UnsupportedOperationException: Not able to create StateObjectFactory implementation: org.eclipse.osgi.internal.resolver.StateObjectFactoryImpl
	at org.eclipse.osgi.service.resolver.StateObjectFactory$StateObjectFactoryProxy.getImplementation(StateObjectFactory.java:506)
	at org.eclipse.osgi.service.resolver.StateObjectFactory$StateObjectFactoryProxy.createState(StateObjectFactory.java:521)
	at org.eclipse.pde.api.tools.internal.model.ApiBaseline.getState(ApiBaseline.java:636)
	at org.eclipse.pde.api.tools.internal.model.ApiBaseline.addApiComponents(ApiBaseline.java:353)
	at org.eclipse.pde.api.tools.internal.model.ApiModelFactory.addComponents(ApiModelFactory.java:312)
	at org.eclipse.pde.api.tools.internal.tasks.CommonUtilsTask.createBaseline(CommonUtilsTask.java:81)
	at org.eclipse.pde.api.tools.internal.tasks.CompareTask.execute(CompareTask.java:87)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
	... 29 more
Caused by: java.lang.ClassNotFoundException: org.eclipse.osgi.internal.resolver.StateObjectFactoryImpl
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:264)
	at org.eclipse.osgi.service.resolver.StateObjectFactory$StateObjectFactoryProxy.getImplementation(StateObjectFactory.java:496)
	... 41 more

Attachment: pom-excerpt.xml
Description: pom-excerpt.xml


Back to the top