Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] exception resolving target

Hi,

The culprit was the file:/... URL's in the .target. Once converted to HTTP://.. the problem just dissapeared. I think the weird Exception deserves some attention. I can log a bugzilla, what do you say?

Cheers Christophe




On Fri, Sep 13, 2013 at 10:45 AM, Mikhail Kalkov <mikhail.kalkov@xxxxxxxxxxxxxx> wrote:
In case Jan's suggestions would not help, here is one more idea. Add the following VM argument and a debug.options file to see exactly which repository causes this problem.

-Dosgi.debug=/path/to/debug.options

debug.options contents:
org.eclipse.equinox.p2.core/debug=true
org.eclipse.equinox.p2.core/metadata/parsing=true

/Mikhail

----- Ursprungligt meddelande -----
Från: "Jan Sievers" <jan.sievers@xxxxxxx>
Till: "Tycho user list" <tycho-user@xxxxxxxxxxx>
Skickat: fredag, 13 sep 2013 10:33:05
Ämne: Re: [tycho-user] exception resolving target

we used to see these ClassCastExceptions when you inadvertently configured two different tycho versions in one reactor [1].
this should be detected with a clear error message since tycho 0.16.0 though.

Regards
Jan

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=386490

From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Christophe Bouhier
Sent: Donnerstag, 12. September 2013 15:39
To: Tycho user list
Subject: [tycho-user] exception resolving target

Hi,
When I run my pom.xml on my local machine the dependency resolving an build works nicely.
When I run it with Jenkins, I get an exception. The Mvn version is the same on both machines.

Could this error be related to the content of the target itself or is this somethingelse
? (I list part of the .target below).

!ENTRY org.eclipse.equinox.p2.metadata.repository 4 0 2013-09-11 15:54:49.315
!MESSAGE Unexpected error loading extension: org.eclipse.equinox.p2.updatesite.metadataRepository
!STACK 0
java.lang.ClassCastException: org.eclipse.tycho.p2.remote.RemoteMetadataRepositoryManager cannot be cast to org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager
        at org.eclipse.equinox.internal.p2.metadata.repository.LocalMetadataRepository.setProperty(LocalMetadataRepository.java:326)
        at org.eclipse.equinox.p2.repository.spi.AbstractRepository.setProperty(AbstractRepository.java:189)
        at org.eclipse.equinox.internal.p2.updatesite.metadata.UpdateSiteMetadataRepositoryFactory.resetCache(UpdateSiteMetadataRepositoryFactory.java:82)
        at org.eclipse.equinox.internal.p2.updatesite.metadata.UpdateSiteMetadataRepositoryFactory.load(UpdateSiteMetadataRepositoryFactory.java:61)
        at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.factoryLoad(MetadataRepositoryManager.java:57)
        at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadRepository(AbstractRepositoryManager.java:768)
        at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadRepository(AbstractRepositoryManager.java:668)
        at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:96)
        at org.eclipse.tycho.p2.remote.RemoteMetadataRepositoryManager.loadRepository(RemoteMetadataRepositoryManager.java:55)
        at org.eclipse.tycho.p2.remote.RemoteMetadataRepositoryManager.loadRepository(RemoteMetadataRepositoryManager.java:48)
        at org.eclipse.tycho.p2.target.TargetDefinitionResolver.loadRepository(TargetDefinitionResolver.java:188)
        at org.eclipse.tycho.p2.target.TargetDefinitionResolver.resolveContent(TargetDefinitionResolver.java:109)
        at org.eclipse.tycho.p2.target.TargetDefinitionResolverService.resolveFromArguments(TargetDefinitionResolverService.java:65)
        at org.eclipse.tycho.p2.target.TargetDefinitionResol

Thank You,
Christophe



<?xml version="1.0" encoding="UTF-8" standalone="no"?>

<?pde version="3.8"?><target name="netxstudio_kepler" sequenceNumber="70">
<locations>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="slicer" includeSource="true" type="InstallableUnit">

<unit id="org.peaberry.artifacts.feature.feature.group" version="1.0.0.201308301546"/>
<repository location="file:/Users/Christophe/Documents/Projects/NetXStudio/Target.tycho/peaberry.p2/"/>

</location>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="slicer" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.nebula.widgets.pagination.feature.feature.group" version="1.0.0.201307092148"/>

<unit id="org.eclipse.nebula.widgets.datechooser.feature.feature.group" version="1.0.0.201307092148"/>
<unit id="org.eclipse.nebula.widgets.collapsiblebuttons.feature.feature.group" version="1.0.0.201307092148"/>

<unit id="org.eclipse.nebula.widgets.formattedtext.feature.feature.group" version="1.0.0.201307092148"/>
<unit id="org.eclipse.nebula.widgets.radiogroup.feature.feature.group" version="0.1.0.201307092148"/>

<unit id="org.eclipse.nebula.widgets.picture.feature.feature.group" version="1.0.0.201307092148"/>
<unit id="org.eclipse.nebula.widgets.geomap.feature.feature.group" version="0.1.0.201307092148"/>

<unit id="org.eclipse.nebula.widgets.treemapper.feature.feature.group" version="0.1.0.201307092148"/>
<repository location="http://download.eclipse.org/technology/nebula/incubation/snapshot"/>

</location>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="slicer" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.nebula.widgets.pgroup.feature.feature.group" version="1.0.0.201307092147"/>

<unit id="org.eclipse.nebula.widgets.tablecombo.feature.feature.group" version="1.0.0.201307092147"/>
<unit id="org.eclipse.nebula.effects.stw.feature.feature.group" version="1.0.0.201307092147"/>

<unit id="org.e
etc....




_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user


Back to the top