Re: An existing connection was forcibly closed by the remote host

1,048 views
Skip to first unread message

Geeth Narayanan

unread,
Jan 3, 2013, 5:00:25 PM1/3/13
to haze...@googlegroups.com
Update...
Since I am running just 1 server, I removed the client and just use the Instance. This seems to work, but I am planning to separate Instance/Server from the client.
Any thoughts why the above settings wouldn't work?

On Wednesday, January 2, 2013 6:56:17 PM UTC-6, Geeth Narayanan wrote:
Hi,

I am a Hazelcast newbie trying to use it in a Tomcat server using Spring config. I just have 1 server that has both client and server in it for now. I am using the default Hazelcast config
Here is my spring config for Hazelcast:

<hz:hazelcast id="hzinstance">
<hz:config>
<hz:group name="${hcast.grp.name}" password="${hcast.grp.password}" />
<hz:network port="5701" port-auto-increment="false">
<hz:join>
<hz:multicast enabled="false" multicast-group="224.2.2.3"
multicast-port="54327" />
<hz:tcp-ip enabled="true">
<hz:members>${hcast.grp.ips}</hz:members>
</hz:tcp-ip>
</hz:join>
</hz:network>
<hz:map name="messageMap" backup-count="2" max-size="0"
eviction-percentage="30" read-backup-data="true" cache-value="true"
eviction-policy="NONE" merge-policy="hz.ADD_NEW_ENTRY" />
</hz:config>
</hz:hazelcast>
<hz:client id="hzclient" group-name="${hcast.grp.name}"
group-password="${hcast.grp.password}" depends-on="hzinstance">
<hz:member>${hcast.grp.ips}</hz:member>
</hz:client>
<hz:queue id="hzqueue" instance-ref="hzclient" name="hzqueue"
lazy-init="true" depends-on="hzinstance" />


I keep getting the following error:

WARNING: Server didn't respond to client's requests for 30 seconds. Assuming it is dead, closing the connection!
Jan 02, 2013 6:40:41 PM com.hazelcast.client.ConnectionManager
WARNING: Connection to Connection [8] [jisu.ws/127.0.0.1:5701 -> 127.0.0.1:5701] is lost
Jan 02, 2013 6:40:41 PM com.hazelcast.nio.Connection
INFO: [127.0.0.1]:5701 [dev] Connection [Address[127.0.0.1]:56113] lost. Reason: java.io.IOException[An existing connection was forcibly closed by the remote host]
Jan 02, 2013 6:40:41 PM com.hazelcast.nio.ReadHandler

Could you please let me know what could be cause of the error?

Thanks.
Geeth

Enes Akar

unread,
Jan 4, 2013, 4:17:15 AM1/4/13
to haze...@googlegroups.com
Can that be related to this issue?

You can check this by adding to a map from client in context start-up. If the problem vanishes then it seems the same issue.


--
You received this message because you are subscribed to the Google Groups "Hazelcast" group.
To post to this group, send email to haze...@googlegroups.com.
To unsubscribe from this group, send email to hazelcast+...@googlegroups.com.
Visit this group at http://groups.google.com/group/hazelcast?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Enes Akar
Hazelcast | Open source in-memory data grid
Mobile: +90.505.394.1668
Reply all
Reply to author
Forward
0 new messages