Quantcast
Channel: VMware Communities : All Content - vFabric GemFire [ARCHIVED]
Viewing all 990 articles
Browse latest View live

Broken Pipe IOException while sending the last chunk to client

$
0
0

We are getting this intermittent error (presume under relatively higher load than normal circumstances)  Server side function executions gets broken pipe while trying to write back the response. Its clear client hung up before server function is done. Trying to understand what parameters client uses to hung up /  Server uses to terminate the connection.

 

System Alert from Distributed System
    : [warning 2013/02/01 19:31:52.594 HKT  Function Execution Processor22759 tid=0x111dd] Exception on server while executing function : com.************************.GetPositions@268354ce
com.gemstone.gemfire.cache.execute.FunctionException: IOException while sending the last chunk to client
    at com.gemstone.gemfire.internal.cache.execute.ServerToClientFunctionResultSender65.lastResult(ServerToClientFunctionResultSender65.java:85)
    at com.gemstone.gemfire.internal.cache.execute.DistributedRegionFunctionResultSender.lastResult(DistributedRegionFunctionResultSender.java:82)
    at com.gemstone.gemfire.internal.cache.execute.DistributedRegionFunctionResultSender.sendException(DistributedRegionFunctionResultSender.java:218)
    at com.************************..GetPositions.execute(GetPositions.java:73)
    at com.gemstone.gemfire.internal.cache.execute.AbstractExecution.executeFunctionLocally(AbstractExecution.java:337)
    at com.gemstone.gemfire.internal.cache.execute.AbstractExecution$2.run(AbstractExecution.java:301)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at com.gemstone.gemfire.distributed.internal.DistributionManager.runUntilShutdown(DistributionManager.java:639)
    at com.gemstone.gemfire.distributed.internal.DistributionManager$8$1.run(DistributionManager.java:1063)
    at java.lang.Thread.run(Unknown Source) Caused by: java.net.SocketException: Broken pipe
    at java.net.SocketOutputStream.socketWrite0(Native Method)
    at java.net.SocketOutputStream.socketWrite(Unknown Source)
    at java.net.SocketOutputStream.write(Unknown Source)
    at com.gemstone.gemfire.internal.cache.tier.sockets.Message.flushBuffer(Message.java:538)
    at com.gemstone.gemfire.internal.cache.tier.sockets.Message.sendBytes(Message.java:514)
    at com.gemstone.gemfire.internal.cache.tier.sockets.ChunkedMessage.sendChunk(ChunkedMessage.java:306)
    at com.gemstone.gemfire.internal.cache.execute.ServerToClientFunctionResultSender65.lastResult(ServerToClientFunctionResultSender65.java:79)
    ... 10 more

 

From observation we see below message before the above ones. Not necesarily always its just an observation.

 

System Alert from Distributed System
    : [warning 2013/02/01 19:31:50.906 HKT  ServerConnection on port 54413 Thread 32147 tid=0x111e9] Server connection from [identity(*****************(26906:loner):55257:55d79179:ServiceClient,connection=3; port=45025]: Handshake accept failed on socket Socket[addr=/14.129.48.113,port=45025,localport=54413]: java.net.SocketException: Broken pipe

 

Any bells?


NoSubscriptionServersAvailableException: Primary discovery

$
0
0
Hi,

Why would one get this exception when GemFire client has coonnected successfully to the cache server (not using locator, but going directly to cache server host:port from client)?

com.gemstone.gemfire.cache.NoSubscriptionServersAvailableException: com.gemstone.gemfire.cache.NoSubscriptionServersAvailableException: Primary discovery failed.
     at com.gemstone.gemfire.cache.client.internal.QueueManagerImpl.getAllConnections(QueueManagerImpl.java:177)
     at com.gemstone.gemfire.cache.client.internal.OpExecutorImpl.executeOnQueuesAndReturnPrimaryResult(OpExecutorImpl.java:272)
     at com.gemstone.gemfire.cache.client.internal.PoolImpl.executeOnQueuesAndReturnPrimaryResult(PoolImpl.java:673)
     at com.gemstone.gemfire.cache.client.internal.RegisterInterestOp.execute(RegisterInterestOp.java:52)
     at com.gemstone.gemfire.cache.client.internal.ServerRegionProxy.registerInterest(ServerRegionProxy.java:364)
     at com.gemstone.gemfire.internal.cache.LocalRegion.processSingleInterest(LocalRegion.java:3052)
     at com.gemstone.gemfire.internal.cache.LocalRegion.registerInterestRegex(LocalRegion.java:3143)
     at com.gemstone.gemfire.internal.cache.LocalRegion.registerInterestRegex(LocalRegion.java:3138)
     at com.gemstone.gemfire.internal.cache.LocalRegion.registerInterestRegex(LocalRegion.java:3133)

Custom PdxSerializer in Gemfire 7

$
0
0

We've written a custom PdxSerializer that serializes and deserializes our cached domain objects based on standard JAXB annotations. This PdxSerializer worked great for us in Gemfire 6.6 but after upgrading the project to Gemfire 7 I am getting an error on cache startup due to the class java.util.concurrent.CopyOnWriteArraySet not being serializable (i.e. not being annotated with JAXB annotations for my PdxSerializer). I am not using the java.util.concurrent.CopyOnWriteArraySet in any of my domain objects. Any idea what is causing this?

OQL + distributed member with REPLICATE_PROXY regions

$
0
0

Hi

 

We have defined two caches . One which holds the data and has REPLICATED regions and another which acts as a gateway with  REPLICATE_PROXY regions.

Now the problem comes with the client(used Databrowser) connecting though loctor. At times the query goes to the gateway memebr (with REPLICATED_PROXY regions) and don't get any data from the member .Ofcourse because it does not have the data and is only PROXY. However as per the documentations it should have worked:

 

REPLICATE_PROXY
          A REPLICATE_PROXY has no local state and forwards all operations to a REPLICATE or a REPLICATE_PERSISTENT that exists in its peers.

 

But does not look like all operations covers the OQL as well. Select * FROM /MYREGION.

a) Is this the intended behaviour or a bug?

b) How can we prevent a client form not connecting to this particuar member? cache-server-port does not work as it is just a work around and we do have paritioned-region mixed with the replicated regions, so can not specify a port?

c) Also setting at the cache level is-server="false" does not work? What is the usage of this tag. It is default value is anyways "false".

Instantiator deadlock

$
0
0

Managed to get a client VM to deadlock a few times after restart. Instantiators were implemented in static initializers as documented in API.

Should instantiators be explicitly and serially invoked before allowing access to the cache?

 

Found one Java-level deadlock:
==============================
"http-8081-219" nid=323 state=BLOCKED
    - waiting on <0x6aed299a> (a com.gemstone.gemfire.cache.client.internal.ConnectionImpl)
    - locked <0x6aed299a> (a com.gemstone.gemfire.cache.client.internal.ConnectionImpl)
     owned by http-8081-3 id=31
    at com.gemstone.gemfire.cache.client.internal.ConnectionImpl.execute(ConnectionImpl.java:220)
    at com.gemstone.gemfire.cache.client.internal.pooling.PooledConnection.execute(PooledConnection.java:321)
    at com.gemstone.gemfire.cache.client.internal.OpExecutorImpl.executeWithPossibleReAuthentication(OpExecutorImpl.java:646)
    at com.gemstone.gemfire.cache.client.internal.OpExecutorImpl.execute(OpExecutorImpl.java:108)
    at com.gemstone.gemfire.cache.client.internal.PoolImpl.execute(PoolImpl.java:624)
    at com.gemstone.gemfire.cache.client.internal.RegisterInstantiatorsOp.execute(RegisterInstantiatorsOp.java:40)
    at com.gemstone.gemfire.internal.cache.PoolManagerImpl.allPoolsRegisterInstantiator(PoolManagerImpl.java:219)
    at com.gemstone.gemfire.internal.InternalInstantiator.sendRegistrationMessageToServers(InternalInstantiator.java:204)
    at com.gemstone.gemfire.internal.InternalInstantiator._register(InternalInstantiator.java:159)
    at com.gemstone.gemfire.internal.InternalInstantiator.register(InternalInstantiator.java:87)
      - locked java.lang.Class@11e2a4dd
    at com.gemstone.gemfire.Instantiator.register(Instantiator.java:168)
      - locked java.lang.Class@2f2563c6
    at com.me.MyClass.<clinit>(MyClass.java:23)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:247)
    at com.gemstone.gemfire.internal.InternalInstantiator.getInstantiator(InternalInstantiator.java:502)
    at com.gemstone.gemfire.internal.InternalDataSerializer.readUserDataSerializable(InternalDataSerializer.java:2246)
    at com.gemstone.gemfire.internal.InternalDataSerializer.basicReadObject(InternalDataSerializer.java:2186)
    at com.gemstone.gemfire.DataSerializer.readObject(DataSerializer.java:3095)
    at com.gemstone.gemfire.internal.util.BlobHelper.deserializeBlob(BlobHelper.java:69)
    at com.gemstone.gemfire.internal.cache.tier.sockets.CacheServerHelper.deserialize(CacheServerHelper.java:53)
    at com.gemstone.gemfire.internal.cache.tier.sockets.Part.getObject(Part.java:178)
    at com.gemstone.gemfire.internal.cache.tier.sockets.Part.getObject(Part.java:182)
    at com.gemstone.gemfire.cache.client.internal.AbstractOp.processObjResponse(AbstractOp.java:274)
    at com.gemstone.gemfire.cache.client.internal.GetOp$GetOpImpl.processResponse(GetOp.java:160)
    at com.gemstone.gemfire.cache.client.internal.AbstractOp.attemptReadResponse(AbstractOp.java:163)
    at com.gemstone.gemfire.cache.client.internal.AbstractOp.attempt(AbstractOp.java:363)
    at com.gemstone.gemfire.cache.client.internal.ConnectionImpl.execute(ConnectionImpl.java:229)
      - locked com.gemstone.gemfire.cache.client.internal.ConnectionImpl@6d4767c2
    at com.gemstone.gemfire.cache.client.internal.pooling.PooledConnection.execute(PooledConnection.java:321)
    at com.gemstone.gemfire.cache.client.internal.OpExecutorImpl.executeWithPossibleReAuthentication(OpExecutorImpl.java:646)
    at com.gemstone.gemfire.cache.client.internal.OpExecutorImpl.execute(OpExecutorImpl.java:108)
    at com.gemstone.gemfire.cache.client.internal.OpExecutorImpl.execute(OpExecutorImpl.java:84)
    at com.gemstone.gemfire.cache.client.internal.PoolImpl.execute(PoolImpl.java:610)
    at com.gemstone.gemfire.cache.client.internal.GetOp.execute(GetOp.java:72)
    at com.gemstone.gemfire.cache.client.internal.ServerRegionProxy.get(ServerRegionProxy.java:120)
    at com.gemstone.gemfire.internal.cache.LocalRegion.findObjectInSystem(LocalRegion.java:2291)
    at com.gemstone.gemfire.internal.cache.LocalRegion.nonTxnFindObject(LocalRegion.java:1318)
    at com.gemstone.gemfire.internal.cache.LocalRegionDataView.findObject(LocalRegionDataView.java:99)
    at com.gemstone.gemfire.internal.cache.LocalRegion.get(LocalRegion.java:1226)
    at com.gemstone.gemfire.internal.cache.AbstractRegion.get(AbstractRegion.java:234)
    at sun.reflect.GeneratedMethodAccessor104.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.springframework.data.gemfire.GemfireTemplate$CloseSuppressingInvocationHandler.invoke(GemfireTemplate.java:410)
    at $Proxy8.get(Unknown Source)
    ...
"http-8081-3" nid=31 state=BLOCKED
    - waiting on <0x11e2a4dd> (a java.lang.Class)
    - locked <0x11e2a4dd> (a java.lang.Class)
     owned by http-8081-219 id=323
    at com.gemstone.gemfire.internal.InternalInstantiator.getInstantiator(InternalInstantiator.java:506)
    at com.gemstone.gemfire.internal.InternalDataSerializer.readUserDataSerializable(InternalDataSerializer.java:2246)
    at com.gemstone.gemfire.internal.InternalDataSerializer.basicReadObject(InternalDataSerializer.java:2186)
    at com.gemstone.gemfire.DataSerializer.readObject(DataSerializer.java:3095)
    at com.gemstone.gemfire.internal.util.BlobHelper.deserializeBlob(BlobHelper.java:69)
    at com.gemstone.gemfire.internal.cache.tier.sockets.CacheServerHelper.deserialize(CacheServerHelper.java:53)
    at com.gemstone.gemfire.internal.cache.tier.sockets.Part.getObject(Part.java:178)
    at com.gemstone.gemfire.internal.cache.tier.sockets.Part.getObject(Part.java:182)
    at com.gemstone.gemfire.cache.client.internal.AbstractOp.processObjResponse(AbstractOp.java:274)
    at com.gemstone.gemfire.cache.client.internal.GetOp$GetOpImpl.processResponse(GetOp.java:160)
    at com.gemstone.gemfire.cache.client.internal.AbstractOp.attemptReadResponse(AbstractOp.java:163)
    at com.gemstone.gemfire.cache.client.internal.AbstractOp.attempt(AbstractOp.java:363)
    at com.gemstone.gemfire.cache.client.internal.ConnectionImpl.execute(ConnectionImpl.java:229)
    at com.gemstone.gemfire.cache.client.internal.pooling.PooledConnection.execute(PooledConnection.java:321)
    at com.gemstone.gemfire.cache.client.internal.OpExecutorImpl.executeWithPossibleReAuthentication(OpExecutorImpl.java:646)
    at com.gemstone.gemfire.cache.client.internal.OpExecutorImpl.execute(OpExecutorImpl.java:108)
    at com.gemstone.gemfire.cache.client.internal.OpExecutorImpl.execute(OpExecutorImpl.java:84)
    at com.gemstone.gemfire.cache.client.internal.PoolImpl.execute(PoolImpl.java:610)
    at com.gemstone.gemfire.cache.client.internal.GetOp.execute(GetOp.java:72)
    at com.gemstone.gemfire.cache.client.internal.ServerRegionProxy.get(ServerRegionProxy.java:120)
    at com.gemstone.gemfire.internal.cache.LocalRegion.findObjectInSystem(LocalRegion.java:2291)
    at com.gemstone.gemfire.internal.cache.LocalRegion.nonTxnFindObject(LocalRegion.java:1318)
    at com.gemstone.gemfire.internal.cache.LocalRegionDataView.findObject(LocalRegionDataView.java:99)
    at com.gemstone.gemfire.internal.cache.LocalRegion.get(LocalRegion.java:1226)
    at com.gemstone.gemfire.internal.cache.AbstractRegion.get(AbstractRegion.java:234)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.springframework.data.gemfire.GemfireTemplate$CloseSuppressingInvocationHandler.invoke(GemfireTemplate.java:410)
    at $Proxy8.get(Unknown Source)
    ...

Async function execution

$
0
0

I've looked through the documentation, but can't seem to find an example of a fire and forget FunctionService execution.

Unless I missed something in the api docs, there doesn't appear to be a .execute method that doesn't return a ResultsCollector or throw a FunctionException if you ignore it.

 

Yes, I know I could just return a .lastResult(null) but it does seem to be violating the spirit of "fire and forget".

 

Did I miss something somewhere?

Problem starting Pulse tool hosted in Tomcat

$
0
0

I have the pulse.war file hosted in a Tomcat instance and I am trying to get it to connect to my Gemfire 7 cluster via a locator running as a JMX Manager. The locator and my only gemfire cache server node in the cluster seem to both be communicating and operating properly and I can start the Pulse application but I don't see any stats relating to my gemfire cluster in the Pulse web interface. Furthermore in the catalina.out log file of the Tomcat server where I am running Pulse I am getting repeating stack traces like the following:

 

 

INFO: [Pulse] Creating New Cluster Thread...
Jan 29, 2013 5:55:09 PM com.vmware.gemfire.tools.pulse.internal.data.Cluster updateData
INFO: [Pulse] Updating Cluster data for Cluster :idcprdgflocator1:20003
Jan 29, 2013 5:55:09 PM com.vmware.gemfire.tools.pulse.internal.data.Cluster$JMXDataUpdater isConnected
INFO: [Pulse] Connection Not Found. Get new connection..
Jan 29, 2013 5:55:09 PM com.vmware.gemfire.tools.pulse.internal.data.Cluster$JMXDataUpdater getJMXConnection
INFO: [Pulse] Use Locator = true
Jan 29, 2013 5:55:09 PM com.vmware.gemfire.tools.pulse.internal.data.Cluster$JMXDataUpdater getJMXConnection
INFO: [Pulse] Locator host: idcprdgflocator1 and port: 20003
Jan 29, 2013 5:55:09 PM com.vmware.gemfire.tools.pulse.internal.data.Cluster$JMXDataUpdater getJMXConnection
INFO: [Pulse] Locator found jmx manager details : host 10.50.30.199 port 1099
java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is:
        java.net.ConnectException: Connection refused
        at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:601)
        at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198)
        at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
        at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:110)
        at javax.management.remote.rmi.RMIServerImpl_Stub.newClient(Unknown Source)
        at javax.management.remote.rmi.RMIConnector.getConnection(RMIConnector.java:2329)
        at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:279)
        at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:248)
        at com.vmware.gemfire.tools.pulse.internal.data.Cluster$JMXDataUpdater.getJMXConnection(Cluster.java:2101)
        at com.vmware.gemfire.tools.pulse.internal.data.Cluster$JMXDataUpdater.isConnected(Cluster.java:2168)
        at com.vmware.gemfire.tools.pulse.internal.data.Cluster$JMXDataUpdater.updateData(Cluster.java:2199)
        at com.vmware.gemfire.tools.pulse.internal.data.Cluster.updateData(Cluster.java:1170)
        at com.vmware.gemfire.tools.pulse.internal.data.Cluster.run(Cluster.java:1141)
Caused by: java.net.ConnectException: Connection refused
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
        at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
        at java.net.Socket.connect(Socket.java:529)
        at java.net.Socket.connect(Socket.java:478)
        at java.net.Socket.<init>(Socket.java:375)
        at java.net.Socket.<init>(Socket.java:189)
        at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
        at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
        at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595)
        ... 12 more
java.lang.NullPointerException
        at com.vmware.gemfire.tools.pulse.internal.data.Cluster$JMXDataUpdater.updateData(Cluster.java:2209)
        at com.vmware.gemfire.tools.pulse.internal.data.Cluster.updateData(Cluster.java:1170)
        at com.vmware.gemfire.tools.pulse.internal.data.Cluster.run(Cluster.java:1141)

 

 

 

Please let me know if you need more info or log files and I can post it.

Thanks

Tom

OQL 3 joins and index usage

$
0
0

Hi,

 

I'm observing slow OQL and it seems it's because the indexes are not used. Assume there are 3 regions A, B and C. given the query:

"select distinct c.branchId from A as a, B as b, C as c where a.loginId='user' and  a.communityId=b.id and b.id=c.communityId"

The indexes and names are:

loginId

communityId (for A)

id

communityId (for C)

 

All 3 regions are replicated global scope regions. The region sizes are:

A Size=6554

B Size=1935

C Size=2177

 

the GF query log says:

Query Executed in 45010.18 ms; indexesUsed(3):id(Results: 0),A.loginId(Results: 11),communityId(Results: 11062) "select distinct c.branchId from A as a, B as b, C as c where a.loginId='user' and  a.communityId=b.id and b.id=c.communityId"

 

Why so long? Why only 3 indexes? We have the data also persisted to SQL so it's pretty easy to verify same query against the region's SQL tables. In SQL same exact query executes instantly. Maybe there is an issue that the indexes A and C have same expression and name 'communityId'? Or is there a limit in GF query optimizer when it sees more than 2 joins, it doesn't consider the indexes properly?

 

Thank you


Functions and caching

$
0
0

I'm a little confused about how caches work with functions...

 

Setup is spring-gemfire so forgive me if I mix terms in the example.

 

I have a replicated region on a server.

I'm running a client region.

 

I have a function registered on the server that deletes a record as part of a transaction (@Transactional, using the spring-gemfire Txmgr).

That all works fine. I can see the logs, the transaction is doing what it should.

 

What drove me nuts yesterday was when I tried to test this.

I wrote a unit test that looked a little like this - excuse the pseudocode and the template. If I use region instead I get the same behaviour.

 

Obj = template.get(key);<function>.delete(key);
Obj1 = template.get(key); <== expected to be null
template.put(key, obj);

 

Initially the client region was set up with shortcut="CACHING_PROXY" and Obj1 was never null.

I thought perhaps this was a timing thing (eventually consistent and all that) and tried adding waits after the function executed. Still the same.

Tx comitted well before the second get.

 

When I set it up to be "PROXY" instead I got the behaviour I expected.

 

I'm reaching a bit, but it appears based on this test that a client region isn't updated when the server region is.

Is this expected behaviour? Is the cache in CACHING_ truly ~just~ a cache with no data aware behaviour?

 

 

 

Disk writing JVM arguments

$
0
0

I have a partitioned region and want to write-read data through disk. What JVM arguments should I use for better performance such that read and write takes lesser time.

NoAvailableServersException when running query from DataBrowser

$
0
0

I'm running the DataBrowser UI connected to a locator in my distributed system. When I execute a query from the DataBrowser I get a NoAvailableServersException. The full stack trace from the DataBrowser log is below. I can run the same query successfully in gfsh on the same machine the I am running the DataBrowser. I'vve looked through the DataBrowser documentation but can't seem to find any issues with my setup. Please let me know if you need more info.

Tom

 

 

[ INFO 2013/02/06 17:39:19.135 EST main ] DataBrowser User Manual path is C:\vmware\vfabric-gemfire\vFabric_GemFire_70_b38623\tools\DataBrowser\docs\index.html
[ INFO 2013/02/06 17:39:19.512 EST main ] Starting to poll for the results of connect to JMX manager operation.
[ SEVERE 2013/02/06 17:39:19.692 EST JMXCallExecutorThread ] Exception while connecting to Locator on host: idcprdgflocator2.carecorenational.com and port: 1099 : com.gemstone.gemfire.management.ManagementException: Locator did not respond. This is normal if the locator was shutdown. If it wasn't check its log for exceptions.
[ INFO 2013/02/06 17:39:19.692 EST JMXCallExecutorThread ] Trying to connect to a JMX Manager on host: idcprdgflocator2.carecorenational.com and port: 1099
[ INFO 2013/02/06 17:39:19.793 EST JMXCallExecutorThread ] Connected to the Gemfire distributed system
[ INFO 2013/02/06 17:39:21.666 EST JMXCallExecutorThread ] Adding member :ccnscupadsgf01(10552)<v14>:4709
[ INFO 2013/02/06 17:39:21.679 EST JMXCallExecutorThread ] Updated the refreshInterval to 60000
[ INFO 2013/02/06 17:39:23.594 EST JMXCallExecutorThread ] GemFire(7.0) Cache is created. PDX support is available.
[ INFO 2013/02/06 17:39:23.710 EST JMXCallExecutorThread ] Version of GemFire jar in classpath: 7.0
[ INFO 2013/02/06 17:39:23.710 EST JMXCallExecutorThread ] The GemFire system version is :7.0
[ INFO 2013/02/06 17:39:23.710 EST JMXCallExecutorThread ] This version of GemFire system supports LIMIT clause :false
[ INFO 2013/02/06 17:39:23.711 EST JMXCallExecutorThread ] The user has successfully connected to JMX Manager at idcprdgflocator2.carecorenational.com : 1099
[ INFO 2013/02/06 17:40:01.633 EST Query Executer ] Preparing Pool for member :
[ SEVERE 2013/02/06 17:40:04.692 EST Query Executer ] Error occured while executing the query: com.gemstone.gemfire.mgmt.DataBrowser.controller.QueryConfigurationPrms@5608a6fc com.gemstone.gemfire.mgmt.DataBrowser.query.QueryExecutionException: com.gemstone.gemfire.cache.client.NoAvailableServersException
at com.gemstone.gemfire.mgmt.DataBrowser.query.QueryUtil.executeQuery(QueryUtil.java:74)
at com.gemstone.gemfire.mgmt.DataBrowser.connection.internal.GemFireClientConnectionImpl.executeQuery(GemFireClientConnectionImpl.java:122)
at com.gemstone.gemfire.mgmt.DataBrowser.controller.internal.QueryExecutionHelper$QueryExecutor.run(QueryExecutionHelper.java:169)
at java.lang.Thread.run(Thread.java:662)
Caused by: com.gemstone.gemfire.cache.client.NoAvailableServersException
at com.gemstone.gemfire.cache.client.internal.pooling.ConnectionManagerImpl.borrowConnection(ConnectionManagerImpl.java:246)
at com.gemstone.gemfire.cache.client.internal.OpExecutorImpl.execute(OpExecutorImpl.java:135)
at com.gemstone.gemfire.cache.client.internal.OpExecutorImpl.execute(OpExecutorImpl.java:114)
at com.gemstone.gemfire.cache.client.internal.PoolImpl.execute(PoolImpl.java:638)
at com.gemstone.gemfire.cache.client.internal.QueryOp.execute(QueryOp.java:51)
at com.gemstone.gemfire.cache.client.internal.ServerProxy.query(ServerProxy.java:81)
at com.gemstone.gemfire.cache.query.internal.DefaultQuery.executeOnServer(DefaultQuery.java:282)
at com.gemstone.gemfire.cache.query.internal.DefaultQuery.execute(DefaultQuery.java:213)
at com.gemstone.gemfire.cache.query.internal.DefaultQuery.execute(DefaultQuery.java:195)
at com.gemstone.gemfire.mgmt.DataBrowser.query.QueryUtil.executeQuery(QueryUtil.java:70)
... 3 more
[ SEVERE 2013/02/06 17:40:04.694 EST Query Result Processor ] Error while executing query:  com.gemstone.gemfire.mgmt.DataBrowser.query.QueryExecutionException: com.gemstone.gemfire.cache.client.NoAvailableServersException
at com.gemstone.gemfire.mgmt.DataBrowser.query.QueryUtil.executeQuery(QueryUtil.java:74)
at com.gemstone.gemfire.mgmt.DataBrowser.connection.internal.GemFireClientConnectionImpl.executeQuery(GemFireClientConnectionImpl.java:122)
at com.gemstone.gemfire.mgmt.DataBrowser.controller.internal.QueryExecutionHelper$QueryExecutor.run(QueryExecutionHelper.java:169)
at java.lang.Thread.run(Thread.java:662)
Caused by: com.gemstone.gemfire.cache.client.NoAvailableServersException
at com.gemstone.gemfire.cache.client.internal.pooling.ConnectionManagerImpl.borrowConnection(ConnectionManagerImpl.java:246)
at com.gemstone.gemfire.cache.client.internal.OpExecutorImpl.execute(OpExecutorImpl.java:135)
at com.gemstone.gemfire.cache.client.internal.OpExecutorImpl.execute(OpExecutorImpl.java:114)
at com.gemstone.gemfire.cache.client.internal.PoolImpl.execute(PoolImpl.java:638)
at com.gemstone.gemfire.cache.client.internal.QueryOp.execute(QueryOp.java:51)
at com.gemstone.gemfire.cache.client.internal.ServerProxy.query(ServerProxy.java:81)
at com.gemstone.gemfire.cache.query.internal.DefaultQuery.executeOnServer(DefaultQuery.java:282)
at com.gemstone.gemfire.cache.query.internal.DefaultQuery.execute(DefaultQuery.java:213)
at com.gemstone.gemfire.cache.query.internal.DefaultQuery.execute(DefaultQuery.java:195)
at com.gemstone.gemfire.mgmt.DataBrowser.query.QueryUtil.executeQuery(QueryUtil.java:70)
... 3 more

 

HttpsessionManagement - C/S example

$
0
0

I am trying to run httpsesssion management with tcServer using gemfire in a client/server mode.

Followed instructions at http://pubs.vmware.com/vfabricNoSuite/index.jsp?topic=/com.vmware.vfabric.gemfire.7.0/tools_modules/http_session_mgmt/tc_setting_up_the_module.html

 

Peer to Peer worked fine, but when I try client/server, I get the following exception. Any ideas ?

 

Thanks

 

java.lang.ExceptionInInitializerError     com.gemstone.gemfire.internal.size.ObjectGraphSizer.<clinit>(ObjectGraphSizer.java:32)     com.gemstone.gemfire.internal.size.WellKnownClassSizer.<clinit>(WellKnownClassSizer.java:31)     com.gemstone.gemfire.internal.size.SizeClassOnceObjectSizer.sizeof(SizeClassOnceObjectSizer.java:45)     com.gemstone.gemfire.internal.cache.lru.MemLRUCapacityController.basicSizeof(MemLRUCapacityController.java:464)     com.gemstone.gemfire.internal.cache.lru.HeapLRUCapacityController.sizeof(HeapLRUCapacityController.java:302)     com.gemstone.gemfire.internal.cache.lru.HeapLRUCapacityController$1.entrySize(HeapLRUCapacityController.java:214)     com.gemstone.gemfire.internal.cache.AbstractLRURegionEntry.updateEntrySize(AbstractLRURegionEntry.java:49)     com.gemstone.gemfire.internal.cache.AbstractLRURegionEntry.updateEntrySize(AbstractLRURegionEntry.java:43)     com.gemstone.gemfire.internal.cache.AbstractLRURegionMap.lruEntryUpdate(AbstractLRURegionMap.java:734)     com.gemstone.gemfire.internal.cache.AbstractLRURegionMap.lruEntryCreate(AbstractLRURegionMap.java:727)     com.gemstone.gemfire.internal.cache.AbstractRegionMap.basicPut(AbstractRegionMap.java:3040)     com.gemstone.gemfire.internal.cache.AbstractLRURegionMap.basicPut(AbstractLRURegionMap.java:45)     com.gemstone.gemfire.internal.cache.LocalRegion.virtualPut(LocalRegion.java:5541)     com.gemstone.gemfire.internal.cache.LocalRegionDataView.putEntry(LocalRegionDataView.java:106)     com.gemstone.gemfire.internal.cache.LocalRegion.basicPut(LocalRegion.java:4973)     com.gemstone.gemfire.internal.cache.LocalRegion.validatedPut(LocalRegion.java:1709)     com.gemstone.gemfire.internal.cache.LocalRegion.put(LocalRegion.java:1691)     com.gemstone.gemfire.internal.cache.AbstractRegion.put(AbstractRegion.java:284)     com.gemstone.gemfire.modules.session.catalina.AbstractSessionCache.putSession(AbstractSessionCache.java:46)     com.gemstone.gemfire.modules.session.catalina.DeltaSessionManager.add(DeltaSessionManager.java:323)     org.apache.catalina.session.StandardSession.setId(StandardSession.java:392)     org.apache.catalina.session.StandardSession.setId(StandardSession.java:376)     org.apache.catalina.session.ManagerBase.createSession(ManagerBase.java:655)     org.apache.catalina.connector.Request.doGetSession(Request.java:2891)     org.apache.catalina.connector.Request.getSession(Request.java:2316)     com.gemstone.gemfire.modules.session.catalina.CommitSessionValve.invoke(CommitSessionValve.java:33)     org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)     org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)     org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)     org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)     org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)     org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)     java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)     java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)     java.lang.Thread.run(Thread.java:722)

 

root cause

java.lang.ClassCastException: com.gemstone.gemfire.internal.size.ReflectionSingleObjectSizer cannot be cast to com.gemstone.gemfire.internal.size.SingleObjectSizer     com.gemstone.gemfire.internal.size.ObjectGraphSizer.<clinit>(ObjectGraphSizer.java:30)     com.gemstone.gemfire.internal.size.WellKnownClassSizer.<clinit>(WellKnownClassSizer.java:31)     com.gemstone.gemfire.internal.size.SizeClassOnceObjectSizer.sizeof(SizeClassOnceObjectSizer.java:45)     com.gemstone.gemfire.internal.cache.lru.MemLRUCapacityController.basicSizeof(MemLRUCapacityController.java:464)     com.gemstone.gemfire.internal.cache.lru.HeapLRUCapacityController.sizeof(HeapLRUCapacityController.java:302)     com.gemstone.gemfire.internal.cache.lru.HeapLRUCapacityController$1.entrySize(HeapLRUCapacityController.java:214)     com.gemstone.gemfire.internal.cache.AbstractLRURegionEntry.updateEntrySize(AbstractLRURegionEntry.java:49)     com.gemstone.gemfire.internal.cache.AbstractLRURegionEntry.updateEntrySize(AbstractLRURegionEntry.java:43)     com.gemstone.gemfire.internal.cache.AbstractLRURegionMap.lruEntryUpdate(AbstractLRURegionMap.java:734)     com.gemstone.gemfire.internal.cache.AbstractLRURegionMap.lruEntryCreate(AbstractLRURegionMap.java:727)     com.gemstone.gemfire.internal.cache.AbstractRegionMap.basicPut(AbstractRegionMap.java:3040)     com.gemstone.gemfire.internal.cache.AbstractLRURegionMap.basicPut(AbstractLRURegionMap.java:45)     com.gemstone.gemfire.internal.cache.LocalRegion.virtualPut(LocalRegion.java:5541)     com.gemstone.gemfire.internal.cache.LocalRegionDataView.putEntry(LocalRegionDataView.java:106)     com.gemstone.gemfire.internal.cache.LocalRegion.basicPut(LocalRegion.java:4973)     com.gemstone.gemfire.internal.cache.LocalRegion.validatedPut(LocalRegion.java:1709)     com.gemstone.gemfire.internal.cache.LocalRegion.put(LocalRegion.java:1691)     com.gemstone.gemfire.internal.cache.AbstractRegion.put(AbstractRegion.java:284)     com.gemstone.gemfire.modules.session.catalina.AbstractSessionCache.putSession(AbstractSessionCache.java:46)     com.gemstone.gemfire.modules.session.catalina.DeltaSessionManager.add(DeltaSessionManager.java:323)     org.apache.catalina.session.StandardSession.setId(StandardSession.java:392)     org.apache.catalina.session.StandardSession.setId(StandardSession.java:376)     org.apache.catalina.session.ManagerBase.createSession(ManagerBase.java:655)     org.apache.catalina.connector.Request.doGetSession(Request.java:2891)     org.apache.catalina.connector.Request.getSession(Request.java:2316)     com.gemstone.gemfire.modules.session.catalina.CommitSessionValve.invoke(CommitSessionValve.java:33)     org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)     org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)     org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)     org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)     org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)     org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)     java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)     java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)     java.lang.Thread.run(Thread.java:722)

start GFMon is failing in linux

$
0
0
Hi,

 

Could you please help me on GFMon.

 

i have installed and configured gemfire server and cache server properly.
...

able to start agent with locator

 

after that i executed >bash gfmon

 

then i'm getting below error

 

ERROR: trouble starting GFMon.
This is likely a swt graphics library issue while loading the gtk libraries
or you forgot to set your DISPLAY environment variable.

Scheduling function using scheduled threadpool executor

$
0
0

Hi,

 

Is it possible to schedule a function to execute every 4 th hour using scheduledthreadpoolexecutor inside Gemfire.

 

My requirement is without managing additional cron job script and without using additional quartz like framework need to achieve in scheduling a function every N'th hour.

 

1) need to confirm if it is possible?

2) if function also updates every entry and if a member goes down due to some other issue, can I assume function would be rolled over to other node safely during next N'th hour. (Nice to have)

 

Thanks

Setting read-timeout=0 in gemfire client cache xml pool

$
0
0

Hi All

 

What is the result of setting read-timeout=0 in gemfire client cache xml pool

 

For ex:

 

 

        <pool name="testPool" read-timeout="0" retry-attempts="5">
                <server host="test" port="1000" />
        </pool>

 

 

I ask because of this bug note from http://www.vmware.com/support/vfabric-gemfire/doc/BugsFixedGemFire66.html

 

02/12/07#36349Bridge client region.put() completes without exception, but entry value is not updated at the server5.0closedServer's entry value is not updated although client region.put completes without exceptionThis happens when operations are performed out of order on the server. The problem arises from this sequence of events: 1. A client attempts to put value X one or more times, but each attempt times out. 2. Each failed attempt "orphans" a thread on the server. 3. The client picks a new connection (and its associated server thread) and continues to perform its sequential updates (X+1, X+2, ... X+n). 4. The orphan threads are eventually scheduled and successfully perform the put with value X, overwriting the previous values (X+1 or X+2 or X+n).

 

Disable timeout behavior for the BridgeLoader, BridgeWriter, or BridgeClient by setting its "readTimeout" parameter to zero. This causes all Region operations supported by the client to block until the server has finished with the operation, preserving client ordering. The "retryAttempts" configuration will still be used when there are communication failures with the server or when the server cache closes in the midst of the operation.

 

Does this issue still exist with gemfire 6.5.1 ?

 

Thanks


Using PKCS for Authentication

$
0
0
Hi,
I'm trying to integrate the PCKS Authentication in my application. I'm using a class that extends to PKCSAuthInit in my client and using the he keystore path, the security alias, and the keystore password in the properties file and a PKCSAuthenticator class in the server this work fine and the Authentication is succesfull. The porblems is that I need that the Properties objets that return the getCredentials mehtod in the class PKCSAuthInit, have two additional props an id and a password that is encrypted. Then i need to verify this fields (id and password) in the server side to authenticate, but i don't know how do this.
Someone can help me ?
Thanks.

HTTP Session Management for Tomcat: ServerConnectivityException

$
0
0

Hi everyone,

 

I'm trying to get the HTTP session management module up and running in a client-server configuration with Tomcat 7.  I've modified the server.xml and context.xml files as directed, and I've added a <pool> element to cache-client.xml indicating the host and port of the locator I need to use.  But when I try to run my web app, I get an exception:

 

SEVERE: Error manager.start()

org.apache.catalina.LifecycleException: Failed to start component [Tomcat7DeltaSessionManager[container=StandardEngine[Catalina].StandardHost[localhost].StandardContext[]; regionName=gemfire_modules_sessions; regionAttributesId=null]]

          at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)

          at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5300)

          at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

          at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)

          at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)

          at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)

          at java.util.concurrent.FutureTask.run(FutureTask.java:166)

          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

          at java.lang.Thread.run(Thread.java:722)

Caused by: com.gemstone.gemfire.cache.client.ServerConnectivityException: Could not create a new connection to server 10.0.2.15:40404

          at com.gemstone.gemfire.cache.client.internal.pooling.ConnectionManagerImpl.borrowConnection(ConnectionManagerImpl.java:335)

          at com.gemstone.gemfire.cache.client.internal.OpExecutorImpl.executeOnServer(OpExecutorImpl.java:328)

          at com.gemstone.gemfire.cache.client.internal.OpExecutorImpl.executeOn(OpExecutorImpl.java:303)

          at com.gemstone.gemfire.cache.client.internal.PoolImpl.executeOn(PoolImpl.java:659)

          at com.gemstone.gemfire.cache.client.internal.SingleHopOperationCallable.call(SingleHopOperationCallable.java:45)

          ... 5 more

I've verified that the server.xml, context.xml, and cache-client.xml files are all being read, but I must be doing something wrong still.  40404 is the default port GemFire uses, so I must have missed a step somewhere, right?
Any advice anyone can offer -- including maybe some more detailed instructions than what's available in the documentation -- would be greatly appreciated. 
Thanks very much in advance!
-Will

GemFire and Atomikos in tcServer

$
0
0

So I'm trying to use a Function in Gemfire in a JTA transaction with spring-data, a template and annotations.

 

I have a test which is throwing a runtime exception to simulate a failure.

It's not working as well as I'd hoped, in that I seem to be getting a partial rollback of my object.

 

Before I get into the whole posting code and stack traces, has anyone done this with any degree of success?

High-availability cluster

$
0
0

How I can configure a High-availability cluster in Gemfire? I need one cluster with two node and two servers.

GemFire - Hibernate 2L Cache Provider

$
0
0

Hi,

 

I try to use GemFire as Hibernate Second Level Cache Provider. After i deploy my application to JBoss, the following exception is thrown. This issue does not occur with Coherence on JBoss. Do you have any comment?

 

Caused by: com.gemstone.gemfire.management.ManagementException: javax.management.NotCompliantMBeanException: Class does not expose a management interface: java.lang.Object
    at com.gemstone.gemfire.management.internal.MBeanJMXAdapter.registerMBean(MBeanJMXAdapter.java:111)
    at com.gemstone.gemfire.management.internal.SystemManagementService.registerInternalMBean(SystemManagementService.java:384)
    at com.gemstone.gemfire.management.internal.beans.ManagementAdapter.handleCacheCreation(ManagementAdapter.java:162)
    at com.gemstone.gemfire.management.internal.beans.ManagementListener.handleEvent(ManagementListener.java:105)
    at com.gemstone.gemfire.distributed.internal.InternalDistributedSystem.notifyResourceEventListeners(InternalDistributedSystem.java:2087)
    at com.gemstone.gemfire.distributed.internal.InternalDistributedSystem.handleResourceEvent(InternalDistributedSystem.java:424)
    at com.gemstone.gemfire.internal.cache.GemFireCacheImpl.init(GemFireCacheImpl.java:819)
    at com.gemstone.gemfire.internal.cache.GemFireCacheImpl.create(GemFireCacheImpl.java:609)
    at com.gemstone.gemfire.cache.CacheFactory.create(CacheFactory.java:182)
    at com.gemstone.gemfire.cache.CacheFactory.create(CacheFactory.java:227)
    at com.gemstone.gemfire.modules.hibernate.internal.RegionFactoryDelegate.startCache(RegionFactoryDelegate.java:48)
    at com.gemstone.gemfire.modules.hibernate.GemFireRegionFactory.start(GemFireRegionFactory.java:90)
    at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:238)
    at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1872)
    at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:860)
    at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:779)
    at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:188)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)
    ... 131 more

 

My Installation is

 

Hibernate 3.6.4

jboss-5.1.0.GA
gemfire-7.0
gemfire-modules-2.1.2

 

Thanks...

Viewing all 990 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>