Wildfly 28.0.1 class cast exception

69 views
Skip to first unread message

dt pham

unread,
Jun 6, 2023, 4:59:18 PM6/6/23
to WildFly
I try to upgrade my app running fine on wildfly 27.0.1 to wildfly 28.0.1. There are very few things need to update on my standalone.xml and mostly is module version and the removal of opentracing-smallrye module. However, I encounter some exceptions when try to access to anything from my web app. Not sure what I missed, but here the exception:
java.lang.ClassCastException: class org.infinispan.remoting.transport.LocalModeAddress cannot be cast to class java.lang.Void (org.infinispan.remoting.transport.LocalModeAddress is in unnamed module of loader 'org.inf...@14.0.8.Final' @52cf9167; java.lang.Void is in module java.base of loader 'bootstrap') at org.wildfly.clusteri...@28.0.1.Final//org.wildfly.clustering.server.infinispan.group.LocalGroup.createNode(LocalGroup.java:35) at org.wildfly.cluste...@28.0.1.Final//org.wildfly.clustering.ee.infinispan.PrimaryOwnerLocator.apply(PrimaryOwnerLocator.java:57) at org.wildfly.cluste...@28.0.1.Final//org.wildfly.clustering.ee.infinispan.PrimaryOwnerLocator.apply(PrimaryOwnerLocator.java:38) at org.wildfly.cluste...@28.0.1.Final//org.wildfly.clustering.web.infinispan.routing.PrimaryOwnerRouteLocator.locate(PrimaryOwnerRouteLocator.java:55) at org.wildfly.clust...@28.0.1.Final//org.wildfly.clustering.web.undertow.routing.DistributableSessionIdentifierCodec.encode(DistributableSessionIdentifierCodec.java:45) at org.wildfly.ext...@28.0.1.Final//org.wildfly.extension.undertow.session.CodecSessionConfig.clearSession(CodecSessionConfig.java:56) at io.undert...@2.3.6.Final//io.undertow.servlet.spec.ServletContextImpl$ServletContextSessionConfig.clearSession(ServletContextImpl.java:1268) at io.undert...@2.3.6.Final//io.undertow.servlet.spec.ServletContextImpl.getSession(ServletContextImpl.java:958) at io.undert...@2.3.6.Final//io.undertow.servlet.spec.HttpServletRequestImpl.getSession(HttpServletRequestImpl.java:450) at io.undert...@2.3.6.Final//io.undertow.servlet.spec.HttpServletRequestImpl.getSession(HttpServletRequestImpl.java:455)

Paul Ferraro

unread,
Jun 6, 2023, 6:11:59 PM6/6/23
to WildFly
Hmm - this looks to be bug - or rather, the changes in WF28 are not compatible with your configuration.
While no configuration *should* throw an exception like above (that's the bug), the exception above suggests an incongruent combination of subsystem configuration.
Can you paste the configuration for your distributable-web and infinispan subsystems?


Paul Ferraro

unread,
Jun 7, 2023, 8:59:13 AM6/7/23
to WildFly
I filed https://issues.redhat.com/browse/WFLY-18095 for which a fix should be submitted later today.
I included a workaround in the description which should avoid the problem above.
Let me know if that works for you.

On Tuesday, June 6, 2023 at 4:59:18 PM UTC-4 dt pham wrote:

dt pham

unread,
Jun 7, 2023, 10:05:58 AM6/7/23
to WildFly
Thank you very much. Yes, it works, adding distributable-web with local affinity solves the issue
Reply all
Reply to author
Forward
0 new messages