activemq-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ryan Yeats (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (ARTEMIS-1397) io.netty.buffer.UnpooledUnsafeDirectByteBufWrapper not found when running in an OSGI container
Date Wed, 06 Sep 2017 20:10:00 GMT

     [ https://issues.apache.org/jira/browse/ARTEMIS-1397?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ryan Yeats updated ARTEMIS-1397:
--------------------------------
    Summary: io.netty.buffer.UnpooledUnsafeDirectByteBufWrapper not found when running in
an OSGI container  (was: io.netty.buffer.UnpooledUnsafeDirectByteBufWrapper cannot be found
in when running in an OSGI container)

> 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
>
> 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.
> ```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```



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message