It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

[Active Objects] NoSuchMethodError when I create EntityManager.

Hi all!

I'm trying to implement easy example with Active Objects.

https://developer.atlassian.com/server/framework/atlassian-sdk/the-active-objects-library/

 

I want to create Entity Manager. In Runtime it failed with

java.lang.NoSuchMethodError: com.google.common.collect.ImmutableSet.of(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;[Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet;
at net.java.ao.db.MySQLDatabaseProvider.<clinit>(MySQLDatabaseProvider.java:204) ~[activeobjects-plugin-3.0.0-m01.jar:na]
at net.java.ao.builder.SupportedDatabase$1.getDatabaseProvider(SupportedDatabase.java:27) ~[activeobjects-plugin-3.0.0-m01.jar:na]
at net.java.ao.builder.DatabaseProviderFactory.getDatabaseProvider(DatabaseProviderFactory.java:8) ~[activeobjects-plugin-3.0.0-m01.jar:na]
at net.java.ao.builder.EntityManagerBuilderWithDatabaseProperties.build(EntityManagerBuilderWithDatabaseProperties.java:40) ~[activeobjects-plugin-3.0.0-m01.jar:na]

 

I used activeobjects-plugin 2.0.0 and 3.0.0-m01 for test and guava 26.0.

As I see problem may be with dependencies, may be with google-collections.

Please help to resolve issue.

1 answer

1 accepted

1 vote
Answer accepted

 It was conflict between guava & google-collections, I just removed guava dependency.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

Expose your beautifully crafted Dashboard through the Jira Service Desk Customer Portal

  A picture is worth a thousand words, especially when you're trying to find relationships and understand your data. Here, Dashboards play a vital role in gaining insights from a variety of dat...

307 views 5 4
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you