The Artima Developer Community
Sponsored Link

Java Answers Forum
.CacheException: Problem starting listener for RMICachePeer

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
itay hindy

Posts: 6
Nickname: itayhindy
Registered: Apr, 2006

.CacheException: Problem starting listener for RMICachePeer Posted: Mar 2, 2008 9:23 AM
Reply to this message Reply
Advertisement
Hi All,

I have the next problem with the ehcache in my application.
When I run it I get:
net.sf.ehcache.CacheException: Problem starting listener for RMICachePeer //node-2:47945/JmsUcpCache. Initial cause was Error unmarshaling return header; nested exception is:
java.net.SocketException: Connection reset

When I follow the startup steps of the application I see that
1 - the application try to bind to certain port to notify that a cache was added.
2- connection reset happen
3 - some other process start write to this port
4 - some other process start listento this port

Ass a result of the connection reset the spring fails to initialize and the application does not start.

Here is my ehcache.xml:
<?xml version="1.0" encoding="UTF-8"?>
<ehcache>
<diskStore path="C:\\Temp\\cache"/>

<defaultCache
maxElementsInMemory="100"
eternal="true"
overflowToDisk="false"
diskPersistent="true"
diskExpiryThreadIntervalSeconds="120"/>

<cache name="AvailableTrnCache"
maxElementsInMemory="100"
eternal="false"
overflowToDisk="false"
diskPersistent="true">
<cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true,
replicateUpdatesViaCopy=false, replicateRemovals=true "/>
</cache>

<cacheManagerPeerListenerFactory
class="net.sf.ehcache.distribution.RMICacheManagerPeerListenerFactory"
properties="port=63101, socketTimeoutMillis=2000"/>

<cacheManagerPeerProviderFactory
class="net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory"
properties="peerDiscovery=automatic, multicastGroupAddress=224.10.11.1,
multicastGroupPort=63101, timeToLive=32"/>
</ehcache>

Any Ideas?

Thanks in advance,
Itay

Topic: .CacheException: Problem starting listener for RMICachePeer Previous Topic   Next Topic Topic: Does Java scriprs's onload event depend on JVM?

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use