Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Mylyn Intent » Loader Constraint Violation on Save
icon4.gif  Loader Constraint Violation on Save [message #1265650] Thu, 06 March 2014 06:09 Go to next message
Nuno Flores is currently offline Nuno Flores
Messages: 7
Registered: January 2010
Junior Member
Hi there.

I've just installed Intent and when trying to save any document, chapter or section, it fails with the error:

Save Failed
loader constraint violation: when resolving method "com.google.common.base.Predicates.instanceOf(Ljava/lang/Class;)Lcom/google/common/base/Predicate;" the class loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) of the current class, org/eclipse/mylyn/docs/intent/compare/scope/IntentComparisonScope, and the class loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) for resolved class, com/google/common/base/Predicates, have different Class objects for the type com/google/common/base/Predicate; used in the signature

What might be the problem?

Cheers

Nuno
Re: Loader Constraint Violation on Save [message #1265782 is a reply to message #1265650] Thu, 06 March 2014 09:47 Go to previous messageGo to next message
Alex Lagarde is currently offline Alex Lagarde
Messages: 177
Registered: May 2010
Senior Member

Hi Nuno,

first of all, thanks for your interest in Intent !

I think this issue is due to the fact that Intent 0.9 M5 used Guava 11
contrary to other projects (like xtext or emfcompare). See
https://bugs.eclipse.org/bugs/show_bug.cgi?id=427862#c60 for further details

Could you please try with
https://hudson.eclipse.org/hudson/job/mylyn-docs-intent-master-nightly/lastSuccessfulBuild/artifact/features/org.eclipse.mylyn.docs.intent.update/target/org.eclipse.mylyn.docs.intent.update.zip
which uses Guava 12 ?

Best regards,
Alex


Le 06/03/2014 12:09, Nuno Flores a écrit :
> Hi there.
>
> I've just installed Intent and when trying to save any document, chapter
> or section, it fails with the error:
>
> Save Failed
> loader constraint violation: when resolving method
> "com.google.common.base.Predicates.instanceOf(Ljava/lang/Class;)Lcom/google/common/base/Predicate;"
> the class loader (instance of
> org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) of the current
> class,
> org/eclipse/mylyn/docs/intent/compare/scope/IntentComparisonScope, and
> the class loader (instance of
> org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) for resolved
> class, com/google/common/base/Predicates, have different Class objects
> for the type com/google/common/base/Predicate; used in the signature
>
> What might be the problem?
> Cheers
> Nuno
Re: Loader Constraint Violation on Save [message #1266595 is a reply to message #1265782] Fri, 07 March 2014 12:50 Go to previous messageGo to next message
Nuno Flores is currently offline Nuno Flores
Messages: 7
Registered: January 2010
Junior Member
Hi Alex,

Just tried the zip you provided, but the problem remains.

Save Failed
loader constraint violation: when resolving method "com.google.common.base.Predicates.instanceOf(Ljava/lang/Class;)Lcom/google/common/base/Predicate;" the class loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) of the current class, org/eclipse/mylyn/docs/intent/compare/scope/IntentComparisonScope, and the class loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) for resolved class, com/google/common/base/Predicates, have different Class objects for the type com/google/common/base/Predicate; used in the signature

Cheers.

Nuno
Re: Loader Constraint Violation on Save [message #1268234 is a reply to message #1266595] Mon, 10 March 2014 04:23 Go to previous messageGo to next message
Alex Lagarde is currently offline Alex Lagarde
Messages: 177
Registered: May 2010
Senior Member

Hi Nuno,

sorry to hear that :( Unfortunatelly I may not be able to fix this
during this week. I've raised the corresponding bugzilla
https://bugs.eclipse.org/bugs/show_bug.cgi?id=429972 and try to fix it ASAP.

I'll keep you in tuch

Regards,
Alex
Re: Loader Constraint Violation on Save [message #1268314 is a reply to message #1268234] Mon, 10 March 2014 06:43 Go to previous messageGo to next message
Nuno Flores is currently offline Nuno Flores
Messages: 7
Registered: January 2010
Junior Member
Ok, Alex, thanks Smile And good luck with Intent.

Cheers

Nuno
Re: Loader Constraint Violation on Save [message #1312119 is a reply to message #1265650] Thu, 24 April 2014 01:29 Go to previous messageGo to next message
Tomas Sandkvist is currently offline Tomas Sandkvist
Messages: 105
Registered: October 2013
Senior Member
Any news on this? Like a date when fixed?

Regards,
Tomas Sandkvist
Re: Loader Constraint Violation on Save [message #1371127 is a reply to message #1312119] Wed, 21 May 2014 04:22 Go to previous message
Alex Lagarde is currently offline Alex Lagarde
Messages: 177
Registered: May 2010
Senior Member

Yes this issue has been fixed by commit e4f106b

We now use exactly the same guava dependencies - [11.0,15.0) - as EMF
Compare, and the same version (11.0) in Intent luna TP.
Previous Topic:How to introduce Intent in development process
Goto Forum:
  


Current Time: Sat Aug 23 15:56:20 EDT 2014

Powered by FUDForum. Page generated in 0.03989 seconds