Uploaded image for project: 'Thorntail'
  1. Thorntail
  2. THORN-168

Classcast issue instantiating hazelcast within wildfly-swarm

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: core
    • Labels:
    • External issue ID:
      158

      Description

      Hello,
      I know wildfly internally uses infinispan but...

      Tried to use hazelcast in both fully-blown wildfly 10.CR4 and swarm and observed following classcast error:
      `org.jboss.resteasy.spi.UnhandledException: org.jboss.weld.exceptions.WeldException: WELD-000049: Unable to invoke void eu.telepski.test.hazelcast.wildfly10.bootstrap.cache.CacheProvider.init() on eu.telepski.test.hazelcast.wildfly10.bootstrap.cache.CacheProvider@59b26d36
      [...]
      Caused by: java.lang.ClassCastException: Cannot cast com.hazelcast.instance.DefaultNodeExtension to com.hazelcast.instance.NodeExtension`
      Full stacktrace in attachment.

      Obviously it should be possible to cast DefaultNodeExtension class to NodeExtension interface:
      public class DefaultNodeExtension implements NodeExtension

      'Shallow' war deployed to wildfly10 instance works fine.

      If you need a TC feel free to use this repo: https://github.com/mtelep/hazelcast-wildfly10
      Is it really an issue or maybe is it me doing something wrong?
      Thanks in advance for support!
      Michal
      classcast-trace.txt

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                kenfinni Ken Finnigan
                Reporter:
                mtelep Michal Telepski
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: