Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Our last hypothesis was that having cyclic dependencies was the reason for the exception. We have not completely discarded this yet. We added a cyclic dependency in the archetype project, and we got the same exception, but not exaclty: http://pastebin.com/FP70Bd4Q
- If you look closely when having cyclic dependency the stack trace shows:
- while locating ar.com.client.shared.DummyService
- for field at ar.com.server.SimpleCDIService.dummyService(SimpleCDIService.java:16)
- while locating ar.com.server.SimpleCDIService
- for field at ar.com.server.DummyServiceImpl.cdiService(DummyServiceImpl.java:13)
- while locating ar.com.server.DummyServiceImpl
- You can really see the cycle here DummyService, SimpleCDIService and DummyServiceImpl again. But in our case it’s not like that
- while locating app.server.helper.RuleHelper
- for field at app.server.service.EnabledStrategiesImpl.ruleHelper(EnabledStrategiesImpl.java:22)
- while locating app.server.service.EnabledStrategiesImpl
- In our case there is no cycle.
- Anyhow, we tried removing some cycles and it didn’t work, so it doesn’t seem to be the problem.
- UPDATE:
- I created a dependency cycle of 3 classes in the archetype and the error is the same.
- DummyService
- DummyService2
- SimpleCDIService
- DummyService
- the error is:
- com.google.inject.ConfigurationException: Guice configuration errors:
- 1) No implementation for ar.com.client.shared.DummyService2 was bound.
- while locating ar.com.client.shared.DummyService2
- for field at ar.com.server.DummyServiceImpl.dummyService2(DummyServiceImpl.java:14)
- while locating ar.com.server.DummyServiceImpl
- So I went to look again in appui for cycles and I found one of 5 classes. Unfortunately when I removed it same error happened.
- Here is the cycle: http://pastebin.com/4yv3TAdt
- I looked for more cycles related to the 2 exception classes but couldn’t find any.
Advertisement
Add Comment
Please, Sign In to add comment