6 Replies Latest reply on Aug 6, 2012 8:35 PM by Thomas Kim

    TcpTransportFactory cannot be cast to TransportFactory

    Thomas Kim Newbie

      I'm struggling with the error that is org.infinispan.client.hotrod.impl.transport.tcp.TcpTransportFactory cannot be cast to org.infinispan.client.hotrod.impl.transport.TransportFactory

      at org.infinispan.client.hotrod.RemoteCacheManager.start(RemoteCacheManager.java:464)




         public void start() {



            String factory = config.getTransportFactory();

            transportFactory = (TransportFactory) getInstance(factory, classLoader);



            started = true;




      TransportFactory is an Interface, I think it should work anyway.


      because I'm using this code in a standalone maven project, it works well.


        Properties prop = new Properties();

                                    prop.load(new FileInputStream("hotrod-client.properties"));


        RemoteCacheManager cachemgr = new org.infinispan.client.hotrod.RemoteCacheManager(prop);


                                    RemoteCache<Object, Object> remotecache = a.getCache();


      but if I try to use this on Infinispan 5.1.5 and JBOSS 7.1. I'm getting this error.


      I'm thinking this is a problem related to Conflicts of Version or Modules in JBoss.


      please give me any ideas.


      Thanks in Advance.