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 Mon, 02 Oct 2017 21:22:00 GMT

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

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

Github user michaelandrepearce commented on the issue:

    https://github.com/apache/activemq-artemis/pull/1567
  
    @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
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