commit | f05db4017e6d8541abc8e548d4555c305948e145 | [log] [tgz] |
---|---|---|
author | Yuta HIGUCHI <y-higuchi@ak.jp.nec.com> | Fri Aug 12 18:36:33 2016 -0700 |
committer | Gerrit Code Review <gerrit@onlab.us> | Tue Aug 16 00:59:48 2016 +0000 |
tree | b6afa77509c5bb7eae23dd9c72e20926c27029f2 | |
parent | 2a6749004095a0281da27b7d43d324428521ea85 [diff] |
Fix for Netty wiring issue after 4.0 bump. - After updating Netty 4.0 version, we sometimes see java.lang.NoClassDefFoundError: io/netty/util/internal/TypeParameterMatcher with backtrace insisting there's some dynamic class resolution inside Netty. It might be side-effect of recent native-epoll support inside karaf? https://github.com/netty/netty/issues/5119 - Add DynamicImport-Package for io.netty to allow deferred wiring http://felix.apache.org/documentation/tutorials-examples-and-presentations/apache-felix-osgi-faq.html#how-to-provide-optional-services - Add a way to pass DynamicImport-Package on BUCK build Change-Id: I50ec3400e940c56fb52563d84659ebb30c302235
diff --git a/core/store/dist/BUCK b/core/store/dist/BUCK index b5db3b8..27e4e3b 100644 --- a/core/store/dist/BUCK +++ b/core/store/dist/BUCK
@@ -23,4 +23,5 @@ deps = COMPILE_DEPS, test_deps = TEST_DEPS, visibility = ['PUBLIC'], + dynamicimport_packages = 'io.netty.*', )
diff --git a/core/store/dist/pom.xml b/core/store/dist/pom.xml index b52f5f4..0ca4dd9 100644 --- a/core/store/dist/pom.xml +++ b/core/store/dist/pom.xml
@@ -120,4 +120,23 @@ <version>${netty4.version}</version> </dependency> </dependencies> + + <build> + <plugins> + + <plugin> + <groupId>org.apache.felix</groupId> + <artifactId>maven-bundle-plugin</artifactId> + <extensions>true</extensions> + <configuration> + <instructions> + <DynamicImport-Package> + io.netty.* + </DynamicImport-Package> + </instructions> + </configuration> + </plugin> + </plugins> + </build> + </project>