[MAGNOLIA-4360] Starting up 4.5.1 with STK 1.4 ends up with hard to decipher Guice exceptions Created: 29/Mar/12 Updated: 04/Apr/16 Resolved: 04/Apr/16 |
|
| Status: | Closed |
| Project: | Magnolia |
| Component/s: | core |
| Affects Version/s: | 4.5.1 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Magnolia International | Assignee: | Unassigned |
| Resolution: | Won't Do | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Template: |
|
||||||||
| Acceptance criteria: |
Empty
|
||||||||
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
||||||||
| Bug DoR: |
[ ]*
Steps to reproduce, expected, and actual results filled
[ ]*
Affected version filled
|
||||||||
| Date of First Response: | |||||||||
| Description |
|
I was trying to update a project, and didn't think of updating my dependency to STK. So I was starting this projects based on 4.5.1, with STK 1.4.4. At startup, this resulted in this exception A binding to info.magnolia.cms.core.AggregationState was already configured at info.magnolia.objectfactory.guice.GuiceComponentConfigurationModule.bindImplementation(GuiceComponentConfigurationModule.java:157). I traced it down to the GuiceComponentProviderBuilder.build() call in info.magnolia.cms.beans.config.ConfigLoader#load. I'm reporting this as "critical", because it's easy to overlook one or the other dependency when upgrading a project, especially until we don't fix I'm not suggesting such a project should work or even start, but it would be nice if the exception message was a little less puzzling, or offered some sort of information or hint that would allow to track the problem down.
I'm also suspecting this sort of conflict could occur, say, if two modules try to register the same component (or using the same key) ? |
| Comments |
| Comment by Jan Haderka [ 30/Mar/12 ] |
|
Error message have been already improved as part of |
| Comment by Michael Mühlebach [ 04/Apr/16 ] |
|
Given the thousands of other issues we have open that are more highly requested, we won't be able to address this issue in the foreseeable future. Instead we will focus on issues with a higher impact, and more votes. |