You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/10/01 08:18:00 UTC
[jira] [Commented] (ARTEMIS-1397)
io.netty.buffer.UnpooledUnsafeDirectByteBufWrapper not found when running
in an OSGI container
[ https://issues.apache.org/jira/browse/ARTEMIS-1397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16187312#comment-16187312 ]
ASF GitHub Bot commented on ARTEMIS-1397:
-----------------------------------------
Github user michaelandrepearce commented on the issue:
https://github.com/apache/activemq-artemis/pull/1561
If access is needed why not contribute to netty to get the access changed, rather than hacking it, in artemis
> io.netty.buffer.UnpooledUnsafeDirectByteBufWrapper not found when running in an OSGI container
> ----------------------------------------------------------------------------------------------
>
> Key: ARTEMIS-1397
> URL: https://issues.apache.org/jira/browse/ARTEMIS-1397
> 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 11:48:43
> at org.apache.activemq.artemis.core.paging.impl.PagingStoreImpl.createPage(PagingStoreImpl.java:541)
> at org.apache.activemq.artemis.core.paging.impl.PagingStoreImpl.openNewPage(PagingStoreImpl.java:1083)
> at org.apache.activemq.artemis.core.paging.impl.PagingStoreImpl.forceAnotherPage(PagingStoreImpl.java:561)
> at org.apache.activemq.artemis.core.persistence.impl.journal.JournalStorageManager.getPageInformationForSync(JournalStorageManager.java:642)
> at org.apache.activemq.artemis.core.persistence.impl.journal.JournalStorageManager.startReplication(JournalStorageManager.java:569)
> at org.apache.activemq.artemis.core.server.impl.SharedNothingLiveActivation$2.run(SharedNothingLiveActivation.java:178)
> at java.lang.Thread.run(Thread.java:748)
> 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(BundleLoader.java:410)
> at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:372)
> at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:364)
> at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:161)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> ... 7 more{quote}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)