activemq-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ARTEMIS-1397) io.netty.buffer.UnpooledUnsafeDirectByteBufWrapper not found when running in an OSGI container
Date Thu, 28 Sep 2017 19:23:01 GMT

    [ https://issues.apache.org/jira/browse/ARTEMIS-1397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16184701#comment-16184701
] 

ASF GitHub Bot commented on ARTEMIS-1397:
-----------------------------------------

Github user jbertram commented on the issue:

    https://github.com/apache/activemq-artemis/pull/1561
  
    Can you explain a bit why this solution isn't elegant what would constitute an elegant
solution in your opinion.  I'm not terribly familiar with Karaf/OSGi so maybe that's why I'm
not following.


> 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)

Mime
View raw message