Comments (6)
Which version of the component bundle is used?
from knopflerfish.org.
6.0.2, built from develop
from knopflerfish.org.
Also reproducible in component_all-5.0.3.jar
from knopflerfish.org.
Mike,
I think you're right in your analysis, we need to add the new id.
Could you do the following changes and re-test?
--- a/osgi/bundles/component/src/org/knopflerfish/bundle/component/Reference.java
+++ b/osgi/bundles/component/src/org/knopflerfish/bundle/component/Reference.java
@@ -314,9 +314,9 @@ class Reference implements org.apache.felix.scr.Reference
listener = null;
// NYI, optimize, we don't have to checkTargetChanged again
}
- } else if (useNoId) {
- // No change, just make sure that ccid is registered
- listener.addId(ccid, true);
+ } else {
+ // No change, add new ccid or replace if was NO_CCID.
+ listener.addId(ccid, useNoId);
}
}
if (factoryListeners != null) {
from knopflerfish.org.
I applied the changes, and it started working a little bit better, NPE is not thrown when component instances are created for the first time, but if I then delete their configurations and create them again, NPE is thrown.
I tested it with a larger setup, ~50 components of different types with complex dependencies between them.
from knopflerfish.org.
Fixed this issue in component version 6.0.3. The new version also contains a number of other fixes related to factory configurations. I'll closes this now. If there are any other remaining problems, create a new issue.
from knopflerfish.org.
Related Issues (20)
- proguard does not support java 9
- asm and JDK9 HOT 1
- Release docs: index.html
- Release docs: index.html
- docs: programming.html
- Dynamic import dead lock HOT 1
- Building with JDK10 fails HOT 1
- Improve framework log message when unable to resolve
- Using target property filters may cause SCR to give incorrect errors for circular component chains
- Junit test doesn't detect if it fails to start a test bundle HOT 2
- SCR doesn't handle service that dynamically changes service ranking
- reference:file: bundles can not be loaded if org.knopflerfish.osgi.registerserviceurlhandler=false HOT 2
- Compiling KF with JDK 11 HOT 4
- Deadlock weaving hooks HOT 1
- Question about Knopflerfish R7 compatibility for SCR HOT 2
- SCR gets ConcurrentModificationException in service listener HOT 1
- API question: HttpService registerServlet and registerResources enumeration HOT 1
- Is this project dead? HOT 1
- Http Server: threads created in transactions increase activeCount and server will eventually stop processing requests
- Generate a maven repository index file
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from knopflerfish.org.