jakarta-jcs-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Smuts <asm...@yahoo.com>
Subject Re: Exception when shutting down UDP discovery
Date Fri, 23 Jun 2006 18:07:30 GMT
Sure. I'll see if I can figure out why this is
happening.  

It's recommended that you use the JCS convenience
class rather than CacheAccess directly.  If just for
simplicities sake. . . 

Cheers,

Aaron

--- Marek.Cyzio@equifax.com wrote:

> 
> 
> 
> 
> Is there a way to make UDP discovery shut down clean
> without throwing
> errors?
> 
> INFO |23 Jun 2006 09:42:42,984|-127.0.0.1
> |.discovery.UDPDiscoveryService|Shutting down UDP
> discovery service
> receiver.|
> ERROR|23 Jun 2006 09:42:42,986|Thread-23
> |discovery.UDPDiscoveryReceiver|Error receving
> multicast packet|
> java.net.SocketException: Socket closed
>         at
> java.net.PlainDatagramSocketImpl.peekData(Native
> Method)
>         at
>
java.net.DatagramSocket.receive(DatagramSocket.java:662)
>         at
>
org.apache.jcs.auxiliary.lateral.socket.tcp.discovery.UDPDiscoveryReceiver.waitForMessage(UDPDiscoveryReceiver.java:159)
>         at
>
org.apache.jcs.auxiliary.lateral.socket.tcp.discovery.UDPDiscoveryReceiver.run(UDPDiscoveryReceiver.java:182)
>         at java.lang.Thread.run(Thread.java:595)
> DEBUG|23 Jun 2006 09:42:42,987|Thread-23
> |discovery.UDPDiscoveryReceiver|35
> messages received.|
> WARN |23 Jun 2006 09:42:42,987|Thread-23
> |discovery.UDPDiscoveryReceiver|message is null|
> INFO |23 Jun 2006 09:42:42,996|-127.0.0.1
> |.discovery.UDPDiscoveryService|Shutting down UDP
> discovery service
> sender.|
> 
> 
> This is how I initialize the cache:
>     compositeCacheManager =
> CompositeCacheManager.getUnconfiguredInstance();
>     compositeCacheManager.configure(
> configurator.getProperties() );
>     cacheAccess = new CacheAccess(
> compositeCacheManager.getCache(
> CACHE_NAME ) );
> 
> and this is how I shut it down:
>     compositeCacheManager.shutDown();
> 
> Exception happens when calling shutDown().
> 
> Using version 1.2.7.6.
> 
> Thanks,
> 
> Marek Cyzio
> Equifax
> (770)740-6610
> Marek.Cyzio@equifax.com
> This message contains information from Equifax Inc.
> which may be
> confidential and privileged.  If you are not an
> intended recipient, please
> refrain from any disclosure, copying, distribution
> or use of this
> information and note that such actions are
> prohibited.  If you have
> received this transmission in error, please notify
> by e-mail
> postmaster@equifax.com.
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> jcs-users-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> jcs-users-help@jakarta.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-users-help@jakarta.apache.org


Mime
View raw message