activemq-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (ARTEMIS-1397) io.netty.buffer.UnpooledUnsafeDirectByteBufWrapper not found when running in an OSGI container
Date Mon, 02 Oct 2017 21:22:00 GMT


ASF GitHub Bot commented on ARTEMIS-1397:

Github user michaelandrepearce commented on the issue:
    @franz1981 i agree with you, any chance we can get netty guys, to either take your class,
or to get netty to make the methods you use in UnsafeByteBufUtil set to public? So we don't
have to have a full copy of UnsafeByteBufUtil in artemis just to sort some OSGI issue?

> io.netty.buffer.UnpooledUnsafeDirectByteBufWrapper not found when running in an OSGI
> ----------------------------------------------------------------------------------------------
>                 Key: ARTEMIS-1397
>                 URL:
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>          Components: osgi
>    Affects Versions: 2.2.0
>         Environment: karaf 4.1.1 
>            Reporter: Ryan Yeats
>            Priority: Critical
> In OSGI environments UnpooledUnsafeDirectByteBufWrapper class from artemis-journal can't
be found. This looks like its because its package is io.netty.buffer which won't be visible
in OSGI environments because the bundles are also importing io.netty.buffer from netty. Currently
I am only seeing the error when trying to run Artemis as part of a cluster.
> {quote}Exception in thread "Thread-161" java.lang.NoClassDefFoundError: io/netty/buffer/UnpooledUnsafeDirectByteBufWrapper
> 	at org.apache.activemq.artemis.core.paging.impl.PagingStoreImpl.createPage(
> 	at org.apache.activemq.artemis.core.paging.impl.PagingStoreImpl.openNewPage(
> 	at org.apache.activemq.artemis.core.paging.impl.PagingStoreImpl.forceAnotherPage(
> 	at org.apache.activemq.artemis.core.persistence.impl.journal.JournalStorageManager.getPageInformationForSync(
> 	at org.apache.activemq.artemis.core.persistence.impl.journal.JournalStorageManager.startReplication(
> 	at org.apache.activemq.artemis.core.server.impl.SharedNothingLiveActivation$
> 	at
> Caused by: java.lang.ClassNotFoundException: io.netty.buffer.UnpooledUnsafeDirectByteBufWrapper
cannot be found by org.apache.activemq.artemis-server-osgi_2.2.0
> 	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(
> 	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(
> 	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(
> 	at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(
> 	at java.lang.ClassLoader.loadClass(
> 	... 7 more{quote}

This message was sent by Atlassian JIRA

View raw message