[
https://issues.jboss.org/browse/JBIDE-19808?page=com.atlassian.jira.plugi...
]
Paul Richardson commented on JBIDE-19808:
-----------------------------------------
When the newly mirrored update site is added to the integration-stack target, mvn fails to
validate it due to:
{code}
Caused by: org.eclipse.equinox.p2.core.ProvisionException: The p2 repository at
http://download.jboss.org/jbosstools/updates/requirements/apache-director... contains
partial IUs (see above) from an old style update site which cannot be used for dependency
resolution
{code}
[~mickael_istria]
I have updated the
[
build.xml|https://github.com/phantomjinx/jbosstools-download.jboss.org/co...]
to replicate the republishing task that is used by pmd. However, something still seems to
be awry as the repubished repository remains with PARTIAL IUs and the build script
produces the following error:
{code}
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
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:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
Caused by:
/home/phantomjinx/programming/java/tdesigner/mirroring/apache-directory/build.xml:34:
java.lang.NullPointerException
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:703)
at
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:566)
... 19 more
Caused by: java.lang.NullPointerException
at
org.eclipse.equinox.p2.internal.repository.tools.RecreateRepositoryApplication.recreateRepository(RecreateRepositoryApplication.java:114)
at
org.eclipse.equinox.p2.internal.repository.tools.RecreateRepositoryApplication.run(RecreateRepositoryApplication.java:42)
at
org.eclipse.equinox.p2.internal.repository.tools.tasks.ProcessRepoTask.recreateRepository(ProcessRepoTask.java:103)
at
org.eclipse.equinox.p2.internal.repository.tools.tasks.ProcessRepoTask.execute(ProcessRepoTask.java:90)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
... 29 more
Root exception:
/home/phantomjinx/programming/java/tdesigner/mirroring/apache-directory/build.xml:34:
java.lang.NullPointerException
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:703)
at
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:566)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
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:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
Caused by: java.lang.NullPointerException
at
org.eclipse.equinox.p2.internal.repository.tools.RecreateRepositoryApplication.recreateRepository(RecreateRepositoryApplication.java:114)
at
org.eclipse.equinox.p2.internal.repository.tools.RecreateRepositoryApplication.run(RecreateRepositoryApplication.java:42)
at
org.eclipse.equinox.p2.internal.repository.tools.tasks.ProcessRepoTask.recreateRepository(ProcessRepoTask.java:103)
at
org.eclipse.equinox.p2.internal.repository.tools.tasks.ProcessRepoTask.execute(ProcessRepoTask.java:90)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
{code}
Line 34 is <p2.process.artifacts repositoryPath="file:${workDir}" /> task.
Even cutting the number of IUs to mirror down to a single plugin, this exception still
occurs.
I have tried gazing at the equinox.p2 source but that has helped little, although I have
noticed:
* The generated artifacts.xml file has {code}<artifacts size='0'/>{code} at
the bottom which seems kind of wrong to me;
* The generated contents.xml has {code}<property
name='org.eclipse.equinox.p2.partial.iu' value='true'/>{code} set for
each plugin. Although I can only find one place in the p2 code where that property is set
(RemoteFeaturesAction) and that does not appear relevant.
If you or [~nickboldt] could shed any light on this, I would love to know what to try
next.
Thanks
Teiid Designer would like to depend on org.apache.directory.studio
plugins
--------------------------------------------------------------------------
Key: JBIDE-19808
URL:
https://issues.jboss.org/browse/JBIDE-19808
Project: Tools (JBoss Tools)
Issue Type: Feature Request
Components: target-platform, teiid
Affects Versions: 4.2.3.Final
Reporter: Paul Richardson
Assignee: Barry LaFond
Attachments: p2.diff
*Reason:*
Teiid Designer currently employs a UI for interrogating and importing metadata from an
LDAP server. This UI (2 wizards) is limited and prone to issues, eg.
[
TEIIDDES-2478|https://issues.jboss.org/browse/TEIIDDES-2478].
The project [
directory.apache.org|https://directory.apache.org] provides a more
sophisticated LDAP browser View UI but has componentized into smaller reusable widgets.
The BrowserWidget provides the main tree view and querying ability. Teiid would like to
reuse this widget in its UI. Originally, an attempt was made to copy the widget yet
porting in this fashion required the porting of 100+ classes hence a dependency makes far
more sense.
The current working implementation of Teiid with this widget can be found here:
https://github.com/phantomjinx/teiid-designer/tree/ldap-studio
The current release of the apache.directory project is 2 years old. However, speaking to
one of the developers on #apache-directory, the project is being actively maintained and a
release is being considered with the next couple of months. In addition, the [svn
repository|https://svn.apache.org/repos/asf/directory/studio/trunk] is receiving commits.
*Project page/sources:*
* [
directory.apache.org|https://directory.apache.org]
* [svn
repository|https://svn.apache.org/repos/asf/directory/studio/trunk]
* [udpate site |
http://directory.apache.org/studio/update/2.x/]
*Version:* 2.0.0
*License and owner:* Apache licence and Foundation
*Original p2 repo:*
http://directory.apache.org/studio/update/2.x/
*JBoss mirror:*
http://download.jboss.org/jbosstools/updates/requirements/apache-director...
*Include Sources:* Not available from existing update site but may well be in the next
release.
*Affected projects:* Teiid Designer
*Include in JBDS:* Yes
*Type of dependency:* distribution
*List of bundles added/removed:*
* org.apache.directory.api.ldap.model
* org.apache.directory.studio.common.core
* org.apache.directory.studio.common.ui
* org.apache.directory.studio.connection.core
* org.apache.directory.studio.connection.ui
* org.apache.directory.studio.ldapbrowser.common
* org.apache.directory.studio.ldapbrowser.core
* -org.apache.directory.studio.ldapbrowser.ui- Eliminated the dependency
{code}
<!-- Needed by Teiid Designer for support with ldap browsing UI -->
<location includeAllPlatforms="false" includeMode="slicer"
includeSource="true" type="InstallableUnit">
<repository
location="http://directory.apache.org/studio/update/2.x/"/>
<unit
id="org.apache.directory.studio.ldapbrowser.feature.feature.group"
version="2.0.0.v20130628"/>
</location>
{code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)