I've got a Spring configured cache-server running on a single host and a client-cache trying to connect. Communication occurs, but so does a failure.
When the client connects, it logs:
The server is logging:Code:[info 2012/06/13 23:05:03.659 PDT <poolTimer-locgf-pool-3> tid=0x12] Communication with locator localhost/127.0.0.1:40404 failed with java.net.SocketException: Connection reset. java.net.SocketException: Connection reset at java.net.SocketInputStream.read(SocketInputStream.java:168) at java.net.SocketInputStream.read(SocketInputStream.java:182) at java.io.DataInputStream.readByte(DataInputStream.java:248) at com.gemstone.gemfire.internal.InternalDataSerializer.basicReadObject(InternalDataSerializer.java:2622) at com.gemstone.gemfire.DataSerializer.readObject(DataSerializer.java:3217) at com.gemstone.org.jgroups.stack.tcpserver.TcpClient.requestToServer(TcpClient.java:84) at com.gemstone.gemfire.cache.client.internal.AutoConnectionSourceImpl.queryOneLocator(AutoConnectionSourceImpl.java:183)
The cacheserver Spring config is:Code:[warning 2012/06/13 23:05:13.644 PDT LOC GF CacheServer <Handshaker /127.0.0.1:40404 Thread 0> tid=0x2f] Bridge server: failed accepting client connection java.io.IOException: Acceptor received unknown communication mode: 0
the client-cache Spring config is:Code:<!-- GemFire cache bean --> <gfe:cache properties-ref="props" /> <util:properties id="props" location="cache.properties"/> <gfe:cache-server id="locgf-cacheserver" auto-startup="true" bind-address="${server.host}" port="${gfe.port}" host-name-for-clients="${server.host}" load-poll-interval="2000" max-connections="22" max-threads="16" max-message-count="1000" max-time-between-pings="30000" groups="locgf-servers"> <gfe:subscription-config eviction-type="ENTRY" capacity="1000" disk-store="file://${java.io.tmpdir}"/> </gfe:cache-server> <context:property-placeholder location="classpath:app-context.properties" /> <gfe:partitioned-region id="consumer-partition" copies="2" total-buckets="4" persistent="true"> <gfe:disk-store queue-size="50" auto-compact="true" max-oplog-size="10" synchronous-write="false" time-interval="9999"> <gfe:disk-dir location="${disk.dir.1}" max-size="999"/> <gfe:disk-dir location="${disk.dir.2}" max-size="999"/> </gfe:disk-store> <gfe:eviction type="MEMORY_SIZE" threshold="512" action="OVERFLOW_TO_DISK"/> <!-- <gfe:cache-loader ref="c-loader"/> <gfe:cache-writer ref="c-writer"/> --> </gfe:partitioned-region>
I'm referencing Spring 3.1.1.RELEASE and Spring Data GemFire 1.2.0.M1.Code:<gfe:client-cache pool-name="locgf-pool" properties-ref="props"/> <util:properties id="props" location="classpath:/cache.properties"/> <gfe:pool id="locgf-pool" subscription-enabled="true" server-group="locgf-servers"> <gfe:locator host="${client.host}" port="${gfe.port}"/> </gfe:pool> <gfe:client-region id="consumer-region" pool-name="locgf-pool"> <gfe:cache-listener ref="consumerListener"/> </gfe:client-region>
Any help would be appreciated! I'd be happy to post more info if I have missed something.


Reply With Quote