<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "TimeoutException and JGroupsBootstrapManager warnings"]]></title>
		<link>http://forums.terracotta.org/forums/posts/list/16.page</link>
		<description><![CDATA[Latest messages posted in the topic "TimeoutException and JGroupsBootstrapManager warnings"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>TimeoutException and JGroupsBootstrapManager warnings</title>
				<description><![CDATA[ We have ehcache-jgroupsreplicator 1.7, ehcache 2.6, hibernate-ehcache 4.1.5SP1, jgroups 3.1.0.   When we add two initial hosts to jgroups for the ehcache cluster, our cache starts throwing these warnings at bootup:

<span class="genmed"><b>Code:</b></span><br>
		<div>
		<pre bbCodeId="pre-code" style="overflow: auto; width: 95%; max-height: 350px; height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">2012-08-06 15:30:19,755 WARN  &#91;Incoming-1,Ehcache_Channel,MarkMac-37554&#93; jgroups.JGroupsBootstrapManager - No BootstrapRequest registered for cache com.test.model.code.TestCode,
 the event will have no effect: JGroupEventMessage 
&#91;event=BOOTSTRAP_RESPONSE, cacheName=com.test.model.code.TestCode, serializableKey=com.test.model.code.TestCode#1040,
 element=&#91; key = com.test.model.code.TestCode#1040, 
value=org.hibernate.cache.ehcache.internal.strategy.AbstractReadWriteEhcacheAccessStrategy$Item@5d651981, version=1, hitCount=0, CreationTime = 1344284873000, LastAccessTime = 1344284873000 &#93;&#93;

</pre>
		</div>

And these errors when saving entities:

<span class="genmed"><b>Code:</b></span><br>
		<div>
		<pre bbCodeId="pre-code" style="overflow: auto; width: 95%; max-height: 350px; height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">2012-08-06 16:33:34,060 ERROR &#91;Incoming-1,Ehcache_Channel,MarkMac-35690&#93; pbcast.NAKACK - couldn't deliver message &#91;dst: &lt;null&gt;, src: firecracker-39479 &#40;2 headers&#41;, size=18802 bytes&#93;
java.lang.IllegalArgumentException: java.io.InvalidObjectException: Could not find a SessionFactory &#91;uuid=533b12b1-0e56-4761-bf18-71237dc6efcc,name=null&#93;
        at org.jgroups.Message.getObject&#40;Message.java:378&#41;
        at net.sf.ehcache.distribution.jgroups.JGroupsCacheReceiver.receive&#40;JGroupsCacheReceiver.java:64&#41;
        at org.jgroups.JChannel.invokeCallback&#40;JChannel.java:757&#41;
        at org.jgroups.JChannel.up&#40;JChannel.java:718&#41;
        at org.jgroups.stack.ProtocolStack.up&#40;ProtocolStack.java:1020&#41;
        at org.jgroups.protocols.pbcast.StreamingStateTransfer.up&#40;StreamingStateTransfer.java:262&#41;
        at org.jgroups.protocols.pbcast.FLUSH.up&#40;FLUSH.java:496&#41;
        at org.jgroups.protocols.pbcast.GMS.up&#40;GMS.java:899&#41;
        at org.jgroups.protocols.pbcast.STABLE.up&#40;STABLE.java:244&#41;
        at org.jgroups.protocols.pbcast.NAKACK.handleMessage&#40;NAKACK.java:751&#41;
        at org.jgroups.protocols.pbcast.NAKACK.up&#40;NAKACK.java:572&#41;
        at org.jgroups.protocols.VERIFY_SUSPECT.up&#40;VERIFY_SUSPECT.java:143&#41;
        at org.jgroups.protocols.Discovery.up&#40;Discovery.java:359&#41;
        at org.jgroups.protocols.TP.passMessageUp&#40;TP.java:1211&#41;
        at org.jgroups.protocols.TP$IncomingPacket.handleMyMessage&#40;TP.java:1775&#41;
        at org.jgroups.protocols.TP$IncomingPacket.run&#40;TP.java:1743&#41;
        at java.util.concurrent.ThreadPoolExecutor.runWorker&#40;ThreadPoolExecutor.java:1110&#41;
        at java.util.concurrent.ThreadPoolExecutor$Worker.run&#40;ThreadPoolExecutor.java:603&#41;
        at java.lang.Thread.run&#40;Thread.java:722&#41;
Caused by: java.io.InvalidObjectException: Could not find a SessionFactory &#91;uuid=533b12b1-0e56-4761-bf18-71237dc6efcc,name=null&#93;
        at org.hibernate.internal.SessionFactoryImpl.locateSessionFactoryOnDeserialization&#40;SessionFactoryImpl.java:1992&#41;
        at org.hibernate.internal.SessionFactoryImpl.readResolve&#40;SessionFactoryImpl.java:1972&#41;
        at sun.reflect.NativeMethodAccessorImpl.invoke0&#40;Native Method&#41;
        at sun.reflect.NativeMethodAccessorImpl.invoke&#40;NativeMethodAccessorImpl.java:57&#41;
        at java.util.concurrent.ThreadPoolExecutor$Worker.run&#40;ThreadPoolExecutor.java:603&#41;
        at java.lang.Thread.run&#40;Thread.java:722&#41;
Caused by: java.io.InvalidObjectException: Could not find a SessionFactory &#91;uuid=533b12b1-0e56-4761-bf18-71237dc6efcc,name=null&#93;
        at org.hibernate.internal.SessionFactoryImpl.locateSessionFactoryOnDeserialization&#40;SessionFactoryImpl.java:1992&#41;
        at org.hibernate.internal.SessionFactoryImpl.readResolve&#40;SessionFactoryImpl.java:1972&#41;
        at sun.reflect.NativeMethodAccessorImpl.invoke0&#40;Native Method&#41;
        at sun.reflect.NativeMethodAccessorImpl.invoke&#40;NativeMethodAccessorImpl.java:57&#41;
        at sun.reflect.DelegatingMethodAccessorImpl.invoke&#40;DelegatingMethodAccessorImpl.java:43&#41;
        at java.lang.reflect.Method.invoke&#40;Method.java:601&#41;
        at java.io.ObjectStreamClass.invokeReadResolve&#40;ObjectStreamClass.java:1091&#41;
        at java.io.ObjectInputStream.readOrdinaryObject&#40;ObjectInputStream.java:1780&#41;
        at java.io.ObjectInputStream.readObject0&#40;ObjectInputStream.java:1347&#41;
        at java.io.ObjectInputStream.defaultReadFields&#40;ObjectInputStream.java:1964&#41;
        at java.io.ObjectInputStream.readSerialData&#40;ObjectInputStream.java:1888&#41;
        at java.io.ObjectInputStream.readOrdinaryObject&#40;ObjectInputStream.java:1771&#41;
        at java.io.ObjectInputStream.readObject0&#40;ObjectInputStream.java:1347&#41;
        at java.io.ObjectInputStream.defaultReadFields&#40;ObjectInputStream.java:1964&#41;
        at java.io.ObjectInputStream.readSerialData&#40;ObjectInputStream.java:1888&#41;
        at java.io.ObjectInputStream.readOrdinaryObject&#40;ObjectInputStream.java:1771&#41;
        at java.io.ObjectInputStream.readObject0&#40;ObjectInputStream.java:1347&#41;
        at java.io.ObjectInputStream.defaultReadFields&#40;ObjectInputStream.java:1964&#41;
        at java.io.ObjectInputStream.readSerialData&#40;ObjectInputStream.java:1888&#41;
        at java.io.ObjectInputStream.readOrdinaryObject&#40;ObjectInputStream.java:1771&#41;
        at java.io.ObjectInputStream.readObject0&#40;ObjectInputStream.java:1347&#41;
        at java.io.ObjectInputStream.defaultReadFields&#40;ObjectInputStream.java:1964&#41;
        at java.io.ObjectInputStream.readSerialData&#40;ObjectInputStream.java:1888&#41;
        at java.io.ObjectInputStream.readOrdinaryObject&#40;ObjectInputStream.java:1771&#41;
        at java.io.ObjectInputStream.readObject0&#40;ObjectInputStream.java:1347&#41;
        at java.io.ObjectInputStream.readObject&#40;ObjectInputStream.java:369&#41;
        at java.util.ArrayList.readObject&#40;ArrayList.java:733&#41;
        at sun.reflect.NativeMethodAccessorImpl.invoke0&#40;Native Method&#41;
        at sun.reflect.NativeMethodAccessorImpl.invoke&#40;NativeMethodAccessorImpl.java:57&#41;
        at sun.reflect.DelegatingMethodAccessorImpl.invoke&#40;DelegatingMethodAccessorImpl.java:43&#41;
        at java.lang.reflect.Method.invoke&#40;Method.java:601&#41;
        at java.io.ObjectStreamClass.invokeReadObject&#40;ObjectStreamClass.java:1004&#41;
        at java.io.ObjectInputStream.readSerialData&#40;ObjectInputStream.java:1866&#41;
        at java.io.ObjectInputStream.readOrdinaryObject&#40;ObjectInputStream.java:1771&#41;
        at java.io.ObjectInputStream.readObject0&#40;ObjectInputStream.java:1347&#41;
        at java.io.ObjectInputStream.readObject&#40;ObjectInputStream.java:369&#41;
        at org.jgroups.util.Util.objectFromByteBuffer&#40;Util.java:430&#41;
        at org.jgroups.Message.getObject&#40;Message.java:375&#41;
        ... 18 more
</pre>
		</div>

However, the second level cache appears to be working.  I see hits and I see puts.

I can post the configs, but maybe these messages mean something to someone?]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/7336.page#36128</guid>
				<link>http://forums.terracotta.org/forums/posts/list/7336.page#36128</link>
				<pubDate><![CDATA[Tue, 7 Aug 2012 12:46:22]]> GMT</pubDate>
				<author><![CDATA[ mhaller]]></author>
			</item>
			<item>
				<title>Re:TimeoutException and JGroupsBootstrapManager warnings</title>
				<description><![CDATA[ I wound up doing two things which seems to have resolved it:

1) updated the jgroups tcp configuration for that cache.  jgroups 3.x has some significant changes to their api.  So, I grabbed tcp.xml from the jar and modified just the bind port and initial hosts strings.   This seemed to clear up the bootstrap warnings.

Note: the example tcp unicast configs here: http://ehcache.org/documentation/replication/jgroups-replicated-caching won't work with jgroups3.  

2) to deal with the sessionfactory deserialization messages, I needed to just define the hibernate. session_factory_name which sets up a jndi context and this gets rid of these messages.  (which again, didn't seem to be causing a problem anyway)

I figured the latter out thanks to this fine blog post:
http://rstechjournal.blogspot.com/2012/07/hibernate-ehcache-cache-invalidation.html]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/7336.page#36197</guid>
				<link>http://forums.terracotta.org/forums/posts/list/7336.page#36197</link>
				<pubDate><![CDATA[Fri, 10 Aug 2012 14:33:47]]> GMT</pubDate>
				<author><![CDATA[ mhaller]]></author>
			</item>
			<item>
				<title>Re:TimeoutException and JGroupsBootstrapManager warnings</title>
				<description><![CDATA[ Issue seems to be resolved, closing the topic.]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/7336.page#36205</guid>
				<link>http://forums.terracotta.org/forums/posts/list/7336.page#36205</link>
				<pubDate><![CDATA[Mon, 13 Aug 2012 22:54:16]]> GMT</pubDate>
				<author><![CDATA[ rajoshi]]></author>
			</item>
	</channel>
</rss>