GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — OSGI: mismatch between a Fragment-Host and a Bundle-SymbolicName that it should attach to · Issue #16006 · netty/netty

OSGI: mismatch between a Fragment-Host and a Bundle-SymbolicName that it should attach to #16006

New issue
Copy link
New issue
Copy link
Closed
#16015
Closed
OSGI: mismatch between a Fragment-Host and a Bundle-SymbolicName that it should attach to#16006
#16015
Copy link

Description

@LaurentT
LaurentT
opened on Dec 10, 2025
Issue body actions

Hello,

I'm working in an OSGI enviroment (Apache Felix 7.0.5) and I encounter the following issue:

2025-12-10T10:13:15.204 [WARN] reactor.core.Exceptions {ForkJoinPool-1-worker-6} - throwIfFatal detected a jvm fatal exception, which is thrown and logged below:
java.lang.UnsatisfiedLinkError: failed to load the required native library
        at io.netty.handler.codec.quic.Quic.ensureAvailability(Quic.java:87)
        at io.netty.handler.codec.quic.QuicheQuicSslContext.<init>(QuicheQuicSslContext.java:160)
        at io.netty.handler.codec.quic.QuicSslContextBuilder.build(QuicSslContextBuilder.java:404)
        at reactor.netty.http.Http3SslContextSpec.sslContext(Http3SslContextSpec.java:105)
        at reactor.netty.tcp.SslProvider.<init>(SslProvider.java:343)
        at reactor.netty.tcp.SslProvider$Build.build(SslProvider.java:650)
        at reactor.netty.http.client.HttpClientSecure.<clinit>(HttpClientSecure.java:82)
        at reactor.netty.http.client.HttpClient.protocol(HttpClient.java:1395)
        at com.livingobjects.longback.core.internal.reactive.client.HttpClientMethodImpl.setUpNettyClient(HttpClientMethodImpl.java:452)
        at com.livingobjects.longback.core.internal.reactive.client.HttpClientMethodImpl.lambda$execInternal$26(HttpClientMethodImpl.java:352)
        at reactor.core.publisher.FluxDefer.subscribe(FluxDefer.java:47)
        at reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:75)
        at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:54)
        at reactor.core.publisher.Mono.subscribe(Mono.java:4569)
        at reactor.core.publisher.FluxFlatMap$FlatMapMain.onNext(FluxFlatMap.java:432)
        at reactor.core.publisher.FluxIterable$IterableSubscription.slowPath(FluxIterable.java:335)
        at reactor.core.publisher.FluxIterable$IterableSubscription.request(FluxIterable.java:294)
        at reactor.core.publisher.FluxFlatMap$FlatMapMain.onSubscribe(FluxFlatMap.java:375)
        at reactor.core.publisher.FluxIterable.subscribe(FluxIterable.java:200)
        at reactor.core.publisher.FluxIterable.subscribe(FluxIterable.java:82)
        at reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:75)
        at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:54)
        at reactor.core.publisher.Mono.subscribe(Mono.java:4569)
        at reactor.core.publisher.MonoSubscribeOn$SubscribeOnSubscriber.run(MonoSubscribeOn.java:129)
        at reactor.core.scheduler.ExecutorScheduler$ExecutorTrackedRunnable.run(ExecutorScheduler.java:192)
        at com.livingobjects.longback.core.internal.execution.Dispatchers.lambda$execute$0(Dispatchers.java:26)
        at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1423)
        at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
        at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
        at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
        at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
        at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)
Caused by: java.lang.UnsatisfiedLinkError: could not load a native library: netty_quiche42_linux_x86_64
        at io.netty.util.internal.NativeLibraryLoader.load(NativeLibraryLoader.java:244)
        at io.netty.handler.codec.quic.Quiche.loadNativeLibrary(Quiche.java:80)
        at io.netty.handler.codec.quic.Quiche.<clinit>(Quiche.java:59)
        at io.netty.handler.codec.quic.Quic.<clinit>(Quic.java:46)
        at io.netty.handler.codec.quic.QuicheQuicSslContext.<clinit>(QuicheQuicSslContext.java:81)
        at io.netty.handler.codec.quic.QuicSslContextBuilder.build(QuicSslContextBuilder.java:402)
        ... 29 common frames omitted
Caused by: java.io.FileNotFoundException: META-INF/native/libnetty_quiche42_linux_x86_64.so
        at io.netty.util.internal.NativeLibraryLoader.load(NativeLibraryLoader.java:189)
        ... 34 common frames omitted
        Suppressed: java.lang.UnsatisfiedLinkError: no netty_quiche42_linux_x86_64 in java.library.path: /usr/java/packages/lib:/usr/lib64:/lib64:/lib:/usr/lib
                at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2458)
                at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:916)

I made sure to have the following jars:
netty-codec-native-quic-4.2.7.Final-linux-x86_64.jar
netty-codec-classes-quic-4.2.7.Final.jar

Both of my bundles are recognized, but i only reached the INSTALLED state for the fragment bundle (the one providing the native libraries). I want to have a RESOLVED state for the fragment bundle, but there is a mismatch between Fragment-Host value in the native bundle and Bundle-SymbolicName in the class bundle

g! headers 33  
Netty/Codec/Native/Quic (33)
----------------------------
Bnd-LastModified = 1760446519127
BoringSSL-Branch = main
BoringSSL-Revision = 0226f30467f540a3f62ef48d453f93927da199b6
Build-Jdk = 11.0.28
Build-Jdk-Spec = 11
Built-By = root
Bundle-Description = Netty is an asynchronous event-driven network application framework for    rapid development of maintainable high performance protocol servers and    clients.
Bundle-DocURL = https://netty.io/
Bundle-License = https://www.apache.org/licenses/LICENSE-2.0
Bundle-ManifestVersion = 2
Bundle-Name = Netty/Codec/Native/Quic
Bundle-NativeCode = META-INF/native/libnetty_quiche42_linux_x86_64.so;osname=linux;processor=x86_64
Bundle-SymbolicName = io.netty.codec-native-quic
Bundle-Vendor = The Netty Project
Bundle-Version = 4.2.7.Final
Created-By = Apache Maven Bundle Plugin 5.1.8
**Fragment-Host = io.netty.netty-codec-classes-quic**
Implementation-Title = Netty/Codec/Native/Quic 
Implementation-URL = https://netty.io/netty-codec-native-quic/
Implementation-Vendor = The Netty Project
Implementation-Vendor-Id = io.netty
Implementation-Version = 4.2.7.Final
Import-Package = sun.nio.ch;resolution:=optional,org.bouncycastle.jcajce.provider;version="[1.0,2)";resolution:=optional
Manifest-Version = 1.0
Multi-Release = true
Quiche-Branch = master
Quiche-Revision = 5ea8d8e3569c1ed34b895e2211e62791e77c29ab
Specification-Title = Netty/Codec/Native/Quic
Specification-Vendor = The Netty Project
Specification-Version = 4.2
Tool = Bnd-6.3.1.202206071316
g! headers 27
Netty/Codec/Classes/Quic (27)
-----------------------------
Bnd-LastModified = 1760446385178
Build-Jdk = 11.0.28
Build-Jdk-Spec = 11
Built-By = root
Bundle-Description = Netty is an asynchronous event-driven network application framework for    rapid development of maintainable high performance protocol servers and    clients.
Bundle-DocURL = https://netty.io/
Bundle-License = https://www.apache.org/licenses/LICENSE-2.0
Bundle-ManifestVersion = 2
Bundle-Name = Netty/Codec/Classes/Quic
**Bundle-SymbolicName = io.netty.codec-classes-quic**
Bundle-Vendor = The Netty Project
Bundle-Version = 4.2.7.Final
Created-By = Apache Maven Bundle Plugin 5.1.8
Export-Package = io.netty.handler.codec.quic;uses:="io.netty.buffer,io.netty.channel,io.netty.channel.socket,io.netty.handler.ssl,io.netty.util,io.netty.util.concurrent,javax.net.ssl";version="4.2.7"
Implementation-Title = Netty/Codec/Classes/Quic
Implementation-URL = https://netty.io/netty-codec-classes-quic/
Implementation-Vendor = The Netty Project
Implementation-Vendor-Id = io.netty
Implementation-Version = 4.2.7.Final
Import-Package = io.netty.buffer;version="[4.2,5)",io.netty.channel;version="[4.2,5)",io.netty.channel.epoll;version="[4.2,5)";resolution:=optional,io.netty.channel.socket;version="[4.2,5)",io.netty.channel.unix;version="[4.2,5)",io.netty.handler.ssl;version="[4.2,5)",io.netty.handler.ssl.util;version="[4.2,5)",io.netty.util;version="[4.2,5)",io.netty.util.collection;version="[4.2,5)",io.netty.util.concurrent;version="[4.2,5)",io.netty.util.internal;version="[4.2,5)",io.netty.util.internal.logging;version="[4.2,5)",javax.crypto,javax.crypto.spec,javax.net.ssl,javax.security.auth.x500,javax.security.cert,sun.nio.ch;resolution:=optional,org.bouncycastle.jcajce.provider;version="[1.0,2)";resolution:=optional
Manifest-Version = 1.0
Multi-Release = true
Require-Capability = osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=1.8))"
Specification-Title = Netty/Codec/Classes/Quic 
Specification-Vendor = The Netty Project
Specification-Version = 4.2
Tool = Bnd-6.3.1.202206071316

I think the issue lies in this file:

netty/codec-native-quic/pom.xml

Line 35 in 640b6b7

<fragmentHost>io.netty.netty-codec-classes-quic</fragmentHost>

Activity

  1. normanmaurer commented on Dec 11, 2025

    @normanmaurer
    normanmaurer
    on Dec 11, 2025
    Member
    More actions

    @LaurentT I am far from an expert of OSGI but I would be happy to review a PR. /cc @rovarga

  2. rovarga
    added a commit that references this issue on Dec 11, 2025

    Correct codec-native-quic Fragment-Host

    This issue will close once commit b1b77db is merged into the '4.2' branch.
    b1b77db
  3. rovarga commented on Dec 11, 2025

    @rovarga
    rovarga
    on Dec 11, 2025
    Contributor
    More actions

    yeah, that's a simple typo, should be cleared up with #16015

  4. normanmaurer
    closed this as completedin #16015on Dec 11, 2025
  5. normanmaurer
    added 2 commits that reference this issue on Dec 11, 2025

    Correct codec-native-quic Fragment-Host (#16015)

    This issue will close once commit 50fb26c is merged into the '4.2' branch.
    50fb26c

    Correct codec-native-quic Fragment-Host (#16015) (#16017)

    This issue will close once commit a44d17e is merged into the '4.2' branch.
    a44d17e
  6. LaurentT commented on Dec 11, 2025

    @LaurentT
    LaurentT
    on Dec 11, 2025
    Author
    More actions

    Nice, thanks a lot :)

  7. rovarga commented on Dec 12, 2025

    @rovarga
    rovarga
    on Dec 12, 2025
    Contributor
    More actions

    @LaurentT thanks for the excellent analysis -- it saved us quite a bit of trouble downstream, where we are just about to start using HTTP/3 in an OSGi environment :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.