Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hazelcast 2nd level cache + Cucumber test failing #2553

Closed
jdubois opened this issue Jan 1, 2016 · 9 comments
Closed

Hazelcast 2nd level cache + Cucumber test failing #2553

jdubois opened this issue Jan 1, 2016 · 9 comments
Milestone

Comments

@jdubois
Copy link
Member

jdubois commented Jan 1, 2016

As mentioned in #2502

  • Hazelcast with 2nd level cache
  • Cucumber test

Fails with:

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hazelcastInstance' defined in class path resource [com/mycompany/myapp/config/CacheConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.hazelcast.core.HazelcastInstance]: Factory method 'hazelcastInstance' threw exception; nested exception is com.hazelcast.core.DuplicateInstanceNameException: HazelcastInstance with name 'tmp' already exists!
@lordlothar99
Copy link
Contributor

Hi jdubois, I'm gonna have a look at this soon

@jdubois
Copy link
Member Author

jdubois commented Jan 8, 2016

Cool, this is driving me crazy...

@lordlothar99
Copy link
Contributor

i just had a look at #2502, seems like it's been quite a headache !! hope I can find a way to solve this ..

@lordlothar99
Copy link
Contributor

ok, I pulled the repo and reproduced the pb... I think some resources are not well destroyed in cucumber test context.

@lordlothar99
Copy link
Contributor

I think I have a fix... I just have to test it

lordlothar99 added a commit to lordlothar99/generator-jhipster that referenced this issue Jan 8, 2016
…itted cucumber / not cucumber tests execution
@lordlothar99
Copy link
Contributor

unit test ok ! 👍

lordlothar99 added a commit to lordlothar99/generator-jhipster that referenced this issue Jan 9, 2016
jdubois added a commit that referenced this issue Jan 10, 2016
Hazelcast 2nd level cache + Cucumber test failing #2553
@lordlothar99
Copy link
Contributor

shouldn't we set this issue as "fixed" ?

@jdubois
Copy link
Member Author

jdubois commented Jan 11, 2016

Sorry, yes -> I usually don't do it, see https://github.com/jhipster/generator-jhipster/blob/master/CONTRIBUTING.md#commit where you "must" use the Gitub keywords to automatically close your issues (not a big deal, of course!)

@jdubois jdubois closed this as completed Jan 11, 2016
@lordlothar99
Copy link
Contributor

noted ! 👍

@jdubois jdubois modified the milestone: 2.27.0 Jan 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants