-
1. Re: TcpTransportFactory cannot be cast to TransportFactory
mlinhard Aug 3, 2012 4:25 AM (in response to thomaswkim)Hi Thomas,
what kind of setting are you creating a RemoteCacheManager in ?
Is it inside of a war/ear deployment ?
m.
-
2. Re: TcpTransportFactory cannot be cast to TransportFactory
thomaswkim Aug 5, 2012 6:57 PM (in response to mlinhard)Hi Michal,
Thanks for replying.
this is the setting
infinispan.client.hotrod.transport_factory = org.infinispan.client.hotrod.impl.transport.tcp.TcpTransportFactory
infinispan.client.hotrod.server_list = 127.0.0.1:11222
infinispan.client.hotrod.marshaller = org.infinispan.marshall.jboss.GenericJBossMarshaller
infinispan.client.hotrod.async_executor_factory = org.infinispan.client.hotrod.impl.async.DefaultAsyncExecutorFactory
infinispan.client.hotrod.default_executor_factory.pool_size = 1
infinispan.client.hotrod.default_executor_factory.queue_size = 10000
infinispan.client.hotrod.hash_function_impl.1 = org.infinispan.client.hotrod.impl.consistenthash.ConsistentHashV1
infinispan.client.hotrod.tcp_no_delay = true
infinispan.client.hotrod.ping_on_startup = true
infinispan.client.hotrod.request_balancing_strategy = org.infinispan.client.hotrod.impl.transport.tcp.RoundRobinBalancingStrategy
infinispan.client.hotrod.key_size_estimate = 64
infinispan.client.hotrod.value_size_estimate = 512
infinispan.client.hotrod.force_return_values = false
## below is connection pooling config
maxActive=10
maxTotal = 10
maxIdle = 100
testOnBorrow=true
and it is in the war deployment.
-
3. Re: TcpTransportFactory cannot be cast to TransportFactory
mlinhard Aug 6, 2012 6:14 AM (in response to thomaswkim)1 of 1 people found this helpfulHi Thomas,
I couldn't replicate your issue, I just successfully tried to deploy a sample app war to JBoss 7.1.1.Final that uses Infinispan 5.1.5.FINAL RemoteCacheManager and it worked (Even with your hotrod properties). Can you send logs of your JBoss AS that the error occurs on ? Or isolate the issue into a simple small app that I could rerun and investigate ?
m.
-
4. Re: TcpTransportFactory cannot be cast to TransportFactory
genman Aug 6, 2012 11:02 AM (in response to mlinhard)1 of 1 people found this helpfulSmells like a classloader issue to me. I would take a look at your classpath and see if you don't have two copies of this class in two different jar files.
-
5. Re: TcpTransportFactory cannot be cast to TransportFactory
mircea.markus Aug 6, 2012 12:23 PM (in response to genman)Agreed with Elias. If the given class is loaded twice, with different ClassLoaders then a cast from one instance to the other will fail. Most likely these were loaded with different class loaders.
-
6. Re: TcpTransportFactory cannot be cast to TransportFactory
thomaswkim Aug 6, 2012 8:35 PM (in response to mircea.markus)Hi Michal, Thanks a lot.
I'll try it more as you suggested, let you know how it goes.