Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » org/eclipse/osgi/internal/resolver missing in Luna
org/eclipse/osgi/internal/resolver missing in Luna [message #1407296] Tue, 12 August 2014 09:24 Go to next message
Matthias F is currently offline Matthias FFriend
Messages: 20
Registered: June 2011
Junior Member
On our build server we use an old ant4eclipse build for our bundles. I tried to updated the OSGi environment from 3.7 to 4.4 but stumbled upon a problem.
The build cannot execute because of the following error:

Quote:

org.eclipse.osgi.internal.resolver.StateObjectFactoryImpl
[exec] at org.ant4eclipse.lib.pde.model.pluginproject.PluginProjectRoleIdentifier.createRole(PluginProjectRoleIdentifier.java:49)
[exec] at org.ant4eclipse.lib.platform.internal.model.resource.role.ProjectRoleIdentifierRegistry.applyRoles(ProjectRoleIdentifierRegistry.java:59)
[exec] at org.ant4eclipse.lib.platform.internal.model.resource.workspaceregistry.ProjectFactory.readProjectFromWorkspace(ProjectFactory.java:62)
[exec] at org.ant4eclipse.lib.platform.internal.model.resource.workspaceregistry.WorkspaceRegistryImpl.registerWorkspace(WorkspaceRegistryImpl.java:112)
[exec] at org.ant4eclipse.ant.platform.core.delegate.WorkspaceDelegate.getWorkspace(WorkspaceDelegate.java:104)
[exec] at org.ant4eclipse.ant.platform.core.delegate.EclipseProjectDelegate.getEclipseProject(EclipseProjectDelegate.java:91)
[exec] at org.ant4eclipse.ant.platform.core.task.AbstractProjectBasedTask.getEclipseProject(AbstractProjectBasedTask.java:60)
[exec] at org.ant4eclipse.ant.pde.ExecutePluginProjectTask$1.provideMacroExecutionValues(ExecutePluginProjectTask.java:130)
[exec] at org.ant4eclipse.ant.platform.core.delegate.MacroExecutionDelegate.executeMacroInstance(MacroExecutionDelegate.java:129)
[exec] at org.ant4eclipse.ant.platform.core.task.AbstractExecuteProjectTask.executeMacroInstance(AbstractExecuteProjectTask.java:80)
[exec] at org.ant4eclipse.ant.pde.ExecutePluginProjectTask.executeProjectScopedMacroDef(ExecutePluginProjectTask.java:125)
[exec] at org.ant4eclipse.ant.pde.ExecutePluginProjectTask.doExecute(ExecutePluginProjectTask.java:105)
[exec] at org.ant4eclipse.ant.core.AbstractAnt4EclipseTask.execute(AbstractAnt4EclipseTask.java:65)
[exec] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
[exec] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[exec] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[exec] at java.lang.reflect.Method.invoke(Method.java:606)
[exec] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[exec] at org.apache.tools.ant.Task.perform(Task.java:348)
[exec] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
[exec] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
[exec] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[exec] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[exec] at java.lang.reflect.Method.invoke(Method.java:606)
[exec] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[exec] at org.apache.tools.ant.Task.perform(Task.java:348)
[exec] at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:396)
[exec] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
[exec] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[exec] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[exec] at java.lang.reflect.Method.invoke(Method.java:606)
[exec] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[exec] at org.apache.tools.ant.Task.perform(Task.java:348)
[exec] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
[exec] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
[exec] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[exec] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[exec] at java.lang.reflect.Method.invoke(Method.java:606)
[exec] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[exec] at org.apache.tools.ant.Task.perform(Task.java:348)
[exec] at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:396)
[exec] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
[exec] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[exec] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[exec] at java.lang.reflect.Method.invoke(Method.java:606)
[exec] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[exec] at org.apache.tools.ant.Task.perform(Task.java:348)
[exec] at org.apache.tools.ant.Target.execute(Target.java:435)
[exec] at org.apache.tools.ant.Target.performTasks(Target.java:456)
[exec] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
[exec] at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
[exec] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[exec] at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
[exec] at org.apache.tools.ant.Main.runBuild(Main.java:851)
[exec] at org.apache.tools.ant.Main.startAnt(Main.java:235)
[exec] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
[exec] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
[exec] Caused by: java.lang.UnsupportedOperationException: Not able to create StateObjectFactory implementation: org.eclipse.osgi.internal.resolver.StateObjectFactoryImpl
[exec] at org.eclipse.osgi.service.resolver.StateObjectFactory$StateObjectFactoryProxy.getImplementation(StateObjectFactory.java:506)
[exec] at org.eclipse.osgi.service.resolver.StateObjectFactory$StateObjectFactoryProxy.createBundleDescription(StateObjectFactory.java:558)
[exec] at org.ant4eclipse.lib.pde.internal.model.pluginproject.BundleDescriptionLoader.createBundleDescription(BundleDescriptionLoader.java:71)
[exec] at org.ant4eclipse.lib.pde.internal.model.pluginproject.BundleDescriptionLoader.loadFromPluginProject(BundleDescriptionLoader.java:60)
[exec] at org.ant4eclipse.lib.pde.model.pluginproject.PluginProjectRoleIdentifier.createRole(PluginProjectRoleIdentifier.java:47)
[exec] ... 56 more
[exec] Caused by: java.lang.ClassNotFoundException: org.eclipse.osgi.internal.resolver.StateObjectFactoryImpl
[exec] at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
[exec] at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
[exec] at java.security.AccessController.doPrivileged(Native Method)
[exec] at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
[exec] at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
[exec] at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
[exec] at java.lang.Class.forName0(Native Method)
[exec] at java.lang.Class.forName(Class.java:190)
[exec] at org.eclipse.osgi.service.resolver.StateObjectFactory$StateObjectFactoryProxy.getImplementation(StateObjectFactory.java:496)
[exec] ... 60 more


While inspecting the error I discovered that the whole org/eclipse/osgi/internal/resolver package is missing the the org.eclipse.osgi bundle from 4.4. In 4.3.2 the package is still there and I couldn't find anything about this in the changelog.
So now I am wondering if the package was removed on purpose and our build system is just to old for 4.4 or if there is an error with the bundle.

Any help is appreciated.
Matthias
Re: org/eclipse/osgi/internal/resolver missing in Luna [message #1407358 is a reply to message #1407296] Tue, 12 August 2014 12:28 Go to previous messageGo to next message
Thomas Watson is currently offline Thomas WatsonFriend
Messages: 486
Registered: July 2009
Senior Member
You will now need the org.eclipse.osgi.compatibility.state bundle in your target. What download did you use for Luna? Each SDK download should include this fragment of org.eclipse.osgi.
Re: org/eclipse/osgi/internal/resolver missing in Luna [message #1407388 is a reply to message #1407358] Tue, 12 August 2014 13:45 Go to previous messageGo to next message
Matthias F is currently offline Matthias FFriend
Messages: 20
Registered: June 2011
Junior Member
Thanks for you answer. After adding the bundle I got a little bit closer, but now it is missing org.eclipse.core.runtime.internal.adaptor.EclipseEnvironmentInfo.
I want to keep the target as small as possible, so I only exchanged the bundles that we used with 3.7. Is there a list what is needed for the headless build?
Our deployed product does not have a UI, we only use a small set of equinox/eclipse bundles as a runtime platform. Do I also have to deploy the bundles that are needed for the build? In a first test our product seems to run fine with the small set of bundles.
Re: org/eclipse/osgi/internal/resolver missing in Luna [message #1407403 is a reply to message #1407388] Tue, 12 August 2014 14:02 Go to previous messageGo to next message
Thomas Watson is currently offline Thomas WatsonFriend
Messages: 486
Registered: July 2009
Senior Member
Can you supply the stacktrace for when org.eclipse.core.runtime.internal.adaptor.EclipseEnvironmentInfo is loaded? That is an internal class that should only have been loaded by the framework implementation itself. That class was refactored in the luna release. I'm not aware of anything outside of org.eclipse.osgi that would have accessed that class directly.
Re: org/eclipse/osgi/internal/resolver missing in Luna [message #1407407 is a reply to message #1407403] Tue, 12 August 2014 14:12 Go to previous messageGo to next message
Matthias F is currently offline Matthias FFriend
Messages: 20
Registered: June 2011
Junior Member
Here is the stacktrace:
Quote:

[exec] a4e-pde-macros.xml:144: java.lang.NoClassDefFoundError: org/eclipse/core/runtime/internal/adaptor/EclipseEnvironmentInfo
[exec] at org.ant4eclipse.lib.pde.tools.PlatformConfiguration.<init>(PlatformConfiguration.java:51)
[exec] at org.ant4eclipse.lib.pde.tools.RequiredPluginsResolver.getTargetPlatform(RequiredPluginsResolver.java:170)
[exec] at org.ant4eclipse.lib.pde.tools.RequiredPluginsResolver.resolveContainer(RequiredPluginsResolver.java:66)
[exec] at org.ant4eclipse.lib.jdt.internal.tools.classpathentry.ContainerClasspathEntryResolver.resolve(ContainerClasspathEntryResolver.java:108)
[exec] at org.ant4eclipse.lib.jdt.internal.tools.ClasspathEntryResolverExecutor.resolveClasspathEntry(ClasspathEntryResolverExecutor.java:278)
[exec] at org.ant4eclipse.lib.jdt.internal.tools.ClasspathEntryResolverExecutor.resolveClasspathEntries(ClasspathEntryResolverExecutor.java:252)
[exec] at org.ant4eclipse.lib.jdt.internal.tools.ClasspathEntryResolverExecutor.resolveReferencedProject(ClasspathEntryResolverExecutor.java:233)
[exec] at org.ant4eclipse.lib.jdt.internal.tools.ClasspathEntryResolverExecutor.resolve(ClasspathEntryResolverExecutor.java:168)
[exec] at org.ant4eclipse.lib.jdt.tools.JdtResolver.resolveProjectClasspath(JdtResolver.java:75)
[exec] at org.ant4eclipse.ant.jdt.JdtExecutorValuesProvider.provideExecutorValues(JdtExecutorValuesProvider.java:75)
[exec] at org.ant4eclipse.ant.jdt.ExecuteJdtProjectTask$2.provideMacroExecutionValues(ExecuteJdtProjectTask.java:247)
[exec] at org.ant4eclipse.ant.platform.core.delegate.MacroExecutionDelegate.executeMacroInstance(MacroExecutionDelegate.java:129)
[exec] at org.ant4eclipse.ant.platform.core.task.AbstractExecuteProjectTask.executeMacroInstance(AbstractExecuteProjectTask.java:80)
[exec] at org.ant4eclipse.ant.jdt.ExecuteJdtProjectTask.executeOutputDirectoryScopedMacroDef(ExecuteJdtProjectTask.java:242)
[exec] at org.ant4eclipse.ant.jdt.ExecuteJdtProjectTask.doExecute(ExecuteJdtProjectTask.java:163)
[exec] at org.ant4eclipse.ant.core.AbstractAnt4EclipseTask.execute(AbstractAnt4EclipseTask.java:65)
[exec] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
[exec] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[exec] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[exec] at java.lang.reflect.Method.invoke(Method.java:606)
[exec] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[exec] at org.apache.tools.ant.Task.perform(Task.java:348)
[exec] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
[exec] at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:197)
[exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[exec] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[exec] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[exec] at java.lang.reflect.Method.invoke(Method.java:606)
[exec] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[exec] at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)
[exec] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
[exec] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[exec] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[exec] at java.lang.reflect.Method.invoke(Method.java:606)
[exec] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[exec] at org.apache.tools.ant.Task.perform(Task.java:348)
[exec] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
[exec] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
[exec] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[exec] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[exec] at java.lang.reflect.Method.invoke(Method.java:606)
[exec] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[exec] at org.apache.tools.ant.Task.perform(Task.java:348)
[exec] at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:396)
[exec] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
[exec] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[exec] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[exec] at java.lang.reflect.Method.invoke(Method.java:606)
[exec] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[exec] at org.apache.tools.ant.Task.perform(Task.java:348)
[exec] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
[exec] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
[exec] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[exec] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[exec] at java.lang.reflect.Method.invoke(Method.java:606)
[exec] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[exec] at org.apache.tools.ant.Task.perform(Task.java:348)
[exec] at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:396)
[exec] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
[exec] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[exec] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[exec] at java.lang.reflect.Method.invoke(Method.java:606)
[exec] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[exec] at org.apache.tools.ant.Task.perform(Task.java:348)
[exec] at org.apache.tools.ant.Target.execute(Target.java:435)
[exec] at org.apache.tools.ant.Target.performTasks(Target.java:456)
[exec] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
[exec] at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
[exec] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[exec] at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
[exec] at org.apache.tools.ant.Main.runBuild(Main.java:851)
[exec] at org.apache.tools.ant.Main.startAnt(Main.java:235)
[exec] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
[exec] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
[exec] Caused by: java.lang.ClassNotFoundException: org.eclipse.core.runtime.internal.adaptor.EclipseEnvironmentInfo
[exec] at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
[exec] at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
[exec] at java.security.AccessController.doPrivileged(Native Method)
[exec] at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
[exec] at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
[exec] at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
[exec] ... 74 more



The call in the ant xml looks like this:
Quote:
<ant4eclipse:executeJdtProject workspaceDirectory="@{workspaceDirectory}" projectName="@{projectName}" prefix="buildPlugin">


As I said in the first post, the build system /scripts itself are probably outdated (they are longer in the company than I am Wink). I don't know if the ant4eclipse will work at all with 4.4, as the latest release was in 2010.
Re: org/eclipse/osgi/internal/resolver missing in Luna [message #1407442 is a reply to message #1407407] Tue, 12 August 2014 16:02 Go to previous message
Thomas Watson is currently offline Thomas WatsonFriend
Messages: 486
Registered: July 2009
Senior Member
Unfortunately org.ant4eclipse.lib.pde.tools.PlatformConfiguration is using internals that simply no longer exist in Luna. That means ant4eclipse will no longer work on the latest.
Previous Topic:P2 query to get list of plugins contained in a feature
Next Topic:No repository found containing ... while creating a new eclipse product
Goto Forum:
  


Current Time: Wed Sep 19 07:33:59 GMT 2018

Powered by FUDForum. Page generated in 0.01914 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top