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

Justin Bertram commented on ARTEMIS-6054:
-----------------------------------------

Work to upgrade to Netty 4.2.x has already started via ARTEMIS-5734. However, 
it's not a particularly straight-forward upgrade due to the transition away 
from {{sun.misc.Unsafe}}.

Does Spring have any kind of classloader isolation so that applications can use 
their own dependencies instead of those shipped with Spring? If so, I recommend 
investigating that as an option to proceed with your upgrade.

> Artemis broker fails with UnsupportedOperationException on startup after 
> upgrading to netty 4.2.9
> -------------------------------------------------------------------------------------------------
>
>                 Key: ARTEMIS-6054
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-6054
>             Project: Artemis
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 2.53.0
>            Reporter: Shilpi
>            Priority: Critical
>
> We are migrating our application from spring 6 to spring 7 with java 25, 
> artemis 2.53.0 and netty 4.2.9.
> We are using embedded Artemis broker which is falling on startup after 
> upgarde.
> Seems upgrading netty from 4.1.108 to 4.2.9 is causing this issue, as 
> NIOSequentialFileFactory is calling the deprecated methods.
> *This is blocking our application upgrade.*
> Artemis broker is falling with below exception:
> {code:java}
> java.lang.UnsupportedOperationException: Cannot clean arbitrary ByteBuffer 
> instancesat 
> io.netty.util.internal.CleanerJava24Linker.freeDirectBuffer(CleanerJava24Linker.java:203)at
>  
> io.netty.util.internal.PlatformDependent.freeDirectBuffer(PlatformDependent.java:613)at
>  
> org.apache.activemq.artemis.core.io.nio.NIOSequentialFileFactory.releaseDirectBuffer(NIOSequentialFileFactory.java:138)at
>  
> org.apache.activemq.artemis.core.journal.impl.JournalImpl.load(JournalImpl.java:2317)at
>  
> org.apache.activemq.artemis.core.journal.impl.JournalImpl.load(JournalImpl.java:1649)at
>  org.apache.activemq.artemis.core.journal.Journal.load(Journal.java:276)at 
> org.apache.activemq.artemis.core.persistence.impl.journal.AbstractJournalStorageManager.loadBindingJournal(AbstractJournalStorageManager.java:1629)at
>  
> org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.loadJournals(ActiveMQServerImpl.java:3895)at
>  
> org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.initialisePart2(ActiveMQServerImpl.java:3527)at
>  
> org.apache.activemq.artemis.core.server.impl.PrimaryOnlyActivation.run(PrimaryOnlyActivation.java:84)at
>  
> org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.internalStart(ActiveMQServerImpl.java:774)at
>  
> org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.start(ActiveMQServerImpl.java:652)at
>  
> org.apache.activemq.artemis.core.server.embedded.EmbeddedActiveMQ.start(EmbeddedActiveMQ.java:124)
>  {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to