Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Mylyn Intent » Loader Constraint Violation on Save
icon4.gif  Loader Constraint Violation on Save [message #1265650] Thu, 06 March 2014 11:09 Go to next message
Nuno Flores is currently offline Nuno FloresFriend
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 14:47 Go to previous messageGo to next message
Alex Lagarde is currently offline Alex LagardeFriend
Messages: 193
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 17:50 Go to previous messageGo to next message
Nuno Flores is currently offline Nuno FloresFriend
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 08:23 Go to previous messageGo to next message
Alex Lagarde is currently offline Alex LagardeFriend
Messages: 193
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 10:43 Go to previous messageGo to next message
Nuno Flores is currently offline Nuno FloresFriend
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 05:29 Go to previous messageGo to next message
Tomas Sandkvist is currently offline Tomas SandkvistFriend
Messages: 149
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 08:22 Go to previous message
Alex Lagarde is currently offline Alex LagardeFriend
Messages: 193
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:More flexible document structure
Next Topic:Asciidoc support?
Goto Forum:
  


Current Time: Thu Mar 28 11:47:36 GMT 2024

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

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

Back to the top