| Summary: | Adding an aspect to a blueprint reference works 50% of the time | ||
|---|---|---|---|
| Product: | [RT] Gemini.Blueprint | Reporter: | Morten Knudsen <mkn> |
| Component: | Core | Assignee: | Project Inbox <gemini.blueprint-inbox> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | glyn.normington, olaf |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
Morten Knudsen
I have some more info:
In the cases where the aspect works, the data source bean classloader is BundleDelegatingClassLoader, while in the cases where it doesn't work, it's org.eclipse.gemini.blueprint.context.support.internal.classloader.ChainedClassLoader
I found this out by creating a bean:
public class DataSourceChecker {
private Logger log = LoggerFactory.getLogger(getClass());
@Autowired
public DataSourceChecker(DataSource dataSource) {
log.info("DataSource classloader = " + dataSource.getClass().getClassLoader());
}
}
(In reply to comment #1) > I have some more info: > In the cases where the aspect works, the data source bean classloader is > BundleDelegatingClassLoader, while in the cases where it doesn't work, it's > org.eclipse.gemini.blueprint.context.support.internal.classloader. > ChainedClassLoader > I found this out by creating a bean: > public class DataSourceChecker { > > private Logger log = LoggerFactory.getLogger(getClass()); > > @Autowired > public DataSourceChecker(DataSource dataSource) { > log.info("DataSource classloader = " + > dataSource.getClass().getClassLoader()); > } > } That's weird because it means that sometimes ChainedClassLoader is supposedly the defining class loader of DataSource. I'm afraid I can't invest the time to reproduce this problem and look into it. If it's still of interest to you, you may care to attach a sample project which reproduces the problem plus steps to reproduce the problem. That might encourage someone else to invest the time. Sorry! There has not been any activity on this ticket since a long time. Also, this behavior needs to be re-tested with the recent most release. I'll close this as won't fix. To be re-opened if the requirement arises. |