[jboss-user] [JBoss Cache: Core Edition] - Re: Remoting On Existing POJO Channel

kblanken do-not-reply at jboss.com
Mon May 5 13:08:14 EDT 2008


Hi there,

thank you, Shorrockin, for describing the problem and more importantly the solution in detail. In fact, I'm having the very same problem of creating a TreeCache instance with a multiplexer channel (JBoss Cache 1.4.1.SP9).

Here's my code:

JChannelFactory factory=new JChannelFactory();
  | factory.setMultiplexerConfig(getClass().getResource("stacks.xml"));
  | Channel channel = factory.createMultiplexerChannel("udp-safe", cacheName);
  | channel.setOpt(Channel.AUTO_RECONNECT, Boolean.TRUE);
  | 
  | cache = new TreeCache((JChannel) channel);
  | 
  | PropertyConfigurator configurator = new PropertyConfigurator();
  | configurator.configure(cache, getClass().getResourceAsStream("replSync-pessimistic-service.xml"));
  | 
  | cache.createService();
  | cache.startService();

When executing this code, the last line of this snippet hangs. The stacktrace is
Vector(Object).wait(long, int) line: not available [native method]
  | Vector(Object).wait() line: 199
  | TreeCache.getCoordinator() line: 1840
  | TreeCache.determineCoordinator() line: 1818
  | TreeCache.startService() line: 1580
  | 

Obviously no one is calling notify() on the Vector object. The only place this could happen is in the viewAccepted method of the MembershipListener interface. As this is just what Shorrockin has described, it seems to me that he has had the same problem back then.

Am I missing something here? BTW, I'm outside JBoss AS, so I can't access the cache MBean. (Can I?)


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4148654#4148654

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4148654



More information about the jboss-user mailing list