You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geode.apache.org by Alan Kash <cr...@gmail.com> on 2016/02/13 05:42:50 UTC

Locator status null

Hello Geoders,

I am creating a prototype for Geode.

Once I start the locator

gfsh>start locator --name=l1
Starting a GemFire Locator in
/home/z/store/geode/apache-geode-1.0.0-incubating.M1/l1...
......
Locator in /home/z/store/geode/apache-geode-1.0.0-incubating.M1/l1 on
192.168.20.109[10334] as l1 is currently online.
Process ID: 4854
Uptime: 3 seconds
GemFire Version: 1.0.0-incubating.M1
Java Version: 1.8.0_66
Log File: /home/z/store/geode/apache-geode-1.0.0-incubating.M1/l1/l1.log
JVM Arguments: -Dgemfire.enable-cluster-configuration=true
-Dgemfire.load-cluster-configuration-from-dir=false
-Dgemfire.launcher.registerSignalHandlers=true -Djava.awt.headless=true
-Dsun.rmi.dgc.server.gcInterval=9223372036854775806
Class-Path:
/home/z/store/geode/apache-geode-1.0.0-incubating.M1/lib/gemfire-core-1.0.0-incubating.M1.jar:/home/z/store/geode/apache-geode-1.0.0-incubating.M1/lib/gemfire-core-dependencies.jar

Successfully connected to: [host=192.168.20.109, port=1099]

Cluster configuration service is up and running.

But when I run the status command, it always throw null

gfsh>status locator
null


Because of this, the server and pulse services are not running.

My Environment

OS: Fedora 22
Kernel: 4.3.4-200.fc22.x86_64
JVM:  1.8.0_66

I tested the GemFire 8.2 release, it is running fine.

Please let me know.

Thanks,
Aman

Re: Locator status null

Posted by Jens Deppe <jd...@pivotal.io>.
Hi Alan,

Did you build Geode or download a binary distro? It looks like Pulse isn't
in the binary distro for M1. This from the locator log file:

[warning 2016/02/13 08:45:55.889 PST locator1 <locator request thread[1]>
tid=0x28] GemFire Pulse war not found - neither
/Users/jdeppe/Downloads/apache-geode-1.0.0-incubating.M1/tools/Pulse/pulse.war
or /Users/jdeppe/Downloads/apache-geode-1.0.0-incubating.M1/lib/pulse.war
exist


If you grab the source, you will get a Pulse war file if you build it. The
quickest way to do this is with:

./gradlew -x rat -x javadoc -x test installDist


This will create the product distro in
gemfire-assembly/build/install/apache-geode. You can run gfsh directly out
of that if you wish (gemfire-assembly/build/install/apache-geode/bin/gfsh).

HTH
--Jens

On Sat, Feb 13, 2016 at 8:35 AM, Alan Kash <cr...@gmail.com> wrote:

> Hi Udo,
>
> I again gave it a shot,
>
> gfsh>start locator --name=l1 --bind-address=192.168.20.109
> --hostname-for-clients=192.168.20.109
>
> gfsh>start server --name=l1s1
>
> gfsh>create region --name=regionA --type=REPLICATE_PERSISTENT
>
>
> 1. Client (RESOLVED)
>
> IntelliJ 15 - SUCCESS
>
> I tried NetBeans 8.1 - SUCCESS
>
> 2. Pulse (PENDING) :
>
> gfsh>start pulse
> Launched GemFire Pulse
>
> gfsh>Created new window in existing browser session.
>
> It is trying to connect to localhost:7070/pulse by default, I tried
> changing the IP address to 192.168.20.109:7070/pulse - I still get HTTP
> 404 error.
>
> I tried the same configuration on OS X 10.11, it is throwing the same
> error.
>
>
> Thanks,
> Alan
>
>
> On Sat, Feb 13, 2016 at 3:17 AM, Udo Kohlmeyer <uk...@pivotal.io>
> wrote:
>
>> Hi there Alan,
>>
>> I've just tried the 5 minute guide and it worked for me.
>>
>> I would just like to confirm the following:
>>
>>    - You started both locator and server
>>    - Could you try connecting to the locator from the client using
>>    "localhost"
>>       - Otherwise we might have to tell the locator to directly bind to
>>       an ip address using 'start locator --name=ll --bind-address=192.168.20.109
>>       --hostname-for-clients==192.168.20.109'
>>    - When starting pulse is it trying to connect to 'localhost' or
>>    '192.168.20.109'?
>>
>> --Udo
>>
>> On 13/02/2016 4:24 pm, Alan Kash wrote:
>>
>> Thanks, that resolved the locator issue.
>>
>> gfsh>status locator --name=l1
>> Locator in /home/z/store/geode/apache-geode-1.0.0-incubating.M1/l1 on
>> 192.168.20.109[10334] as l1 is currently online.
>> Process ID: 13124
>> Uptime: 19 seconds
>> GemFire Version: 1.0.0-incubating.M1
>> Java Version: 1.8.0_66
>> Log File: /home/z/store/geode/apache-geode-1.0.0-incubating.M1/l1/l1.log
>> JVM Arguments: -Dgemfire.enable-cluster-configuration=true
>> -Dgemfire.load-cluster-configuration-from-dir=false
>> -Dgemfire.launcher.registerSignalHandlers=true -Djava.awt.headless=true
>> -Dsun.rmi.dgc.server.gcInterval=9223372036854775806
>> Class-Path:
>> /home/z/store/geode/apache-geode-1.0.0-incubating.M1/lib/gemfire-core-1.0.0-incubating.M1.jar:/home/z/store/geode/apache-geode-1.0.0-incubating.M1/lib/gemfire-core-dependencies.jar
>>
>> Cluster configuration service is up and running.
>>
>>
>> I am following 5 minute guide -
>> https://cwiki.apache.org/confluence/display/GEODE/Index#Index-Geodein5minutes
>>
>> Two more issues :
>>
>> 1. Pulse shows HTTP 404 error (problem accessing /pulse) after starting
>> from gfsh
>>
>> gfsh>start pulse
>> Launched GemFire Pulse
>>
>> gfsh>Created new window in existing browser session.
>>
>> 2. When I connect using Java, it throw "NoAvailableLocatorsException"
>>
>> public static void main(String[] args) {
>>     ClientCache cache = new ClientCacheFactory()
>>             .addPoolLocator("192.168.20.109", 10334)
>>             .create();
>>     Region<String, String> region = cache
>>             .<String, String>createClientRegionFactory(ClientRegionShortcut.CACHING_PROXY)
>>             .create("r1");
>>
>>     region.put("1", "Hello");
>>     region.put("2", "World");
>>
>>     for (Map.Entry<String, String> entry : region.entrySet()) {
>>         System.out.format("Key = %s, Value = %s\n", entry.getKey(), entry.getValue());
>>     }
>> }
>>
>> ${gemfire-pattern}${gemfire-pattern}${gemfire-pattern}${gemfire-pattern}
>> java.net.SocketException: Connection reset
>> at java.net.SocketInputStream.read(SocketInputStream.java:209)
>> ~[?:1.8.0_66]
>> at java.net.SocketInputStream.read(SocketInputStream.java:141)
>> ~[?:1.8.0_66]
>> at java.net.SocketInputStream.read(SocketInputStream.java:223)
>> ~[?:1.8.0_66]
>> at java.io.FilterInputStream.read(FilterInputStream.java:83) ~[?:1.8.0_66]
>> at java.io.DataInputStream.readByte(DataInputStream.java:265)
>> ~[?:1.8.0_66]
>> at
>> com.gemstone.gemfire.internal.InternalDataSerializer.basicReadObject(InternalDataSerializer.java:2883)
>> ~[gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
>> at
>> com.gemstone.gemfire.DataSerializer.readObject(DataSerializer.java:3249)
>> ~[gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
>> at
>> com.gemstone.gemfire.distributed.internal.tcpserver.TcpClient.requestToServer(TcpClient.java:122)
>> ~[gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
>> at
>> com.gemstone.gemfire.distributed.internal.tcpserver.TcpClient.requestToServer(TcpClient.java:78)
>> ~[gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
>> at
>> com.gemstone.gemfire.cache.client.internal.AutoConnectionSourceImpl.queryOneLocator(AutoConnectionSourceImpl.java:188)
>> [gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
>> at
>> com.gemstone.gemfire.cache.client.internal.AutoConnectionSourceImpl.queryLocators(AutoConnectionSourceImpl.java:220)
>> [gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
>> at
>> com.gemstone.gemfire.cache.client.internal.AutoConnectionSourceImpl$UpdateLocatorListTask.run2(AutoConnectionSourceImpl.java:374)
>> [gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
>> at
>> com.gemstone.gemfire.cache.client.internal.PoolImpl$PoolTask.run(PoolImpl.java:1250)
>> [gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
>> at
>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>> [?:1.8.0_66]
>> at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
>> [?:1.8.0_66]
>> at
>> com.gemstone.gemfire.internal.ScheduledThreadPoolExecutorWithKeepAlive$DelegatingScheduledFuture.run(ScheduledThreadPoolExecutorWithKeepAlive.java:250)
>> [gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
>> at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>> [?:1.8.0_66]
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>> [?:1.8.0_66]
>> at java.lang.Thread.run(Thread.java:745) [?:1.8.0_66]
>> ${gemfire-pattern}Exception in thread "main"*
>> com.gemstone.gemfire.cache.client.NoAvailableLocatorsException: Unable to
>> connect to any locators in the list [/192.168.20.109:10334
>> <http://192.168.20.109:10334>]*
>> at
>> com.gemstone.gemfire.cache.client.internal.AutoConnectionSourceImpl.findServer(AutoConnectionSourceImpl.java:136)
>> at
>> com.gemstone.gemfire.cache.client.internal.ConnectionFactoryImpl.createClientToServerConnection(ConnectionFactoryImpl.java:207)
>> at
>> com.gemstone.gemfire.cache.client.internal.pooling.ConnectionManagerImpl.borrowConnection(ConnectionManagerImpl.java:215)
>> at
>> com.gemstone.gemfire.cache.client.internal.OpExecutorImpl.execute(OpExecutorImpl.java:134)
>> at
>> com.gemstone.gemfire.cache.client.internal.OpExecutorImpl.execute(OpExecutorImpl.java:113)
>> at
>> com.gemstone.gemfire.cache.client.internal.PoolImpl.execute(PoolImpl.java:703)
>> at com.gemstone.gemfire.cache.client.internal.PutOp.execute(PutOp.java:99)
>> at
>> com.gemstone.gemfire.cache.client.internal.ServerRegionProxy.put(ServerRegionProxy.java:198)
>> at
>> com.gemstone.gemfire.internal.cache.LocalRegion.serverPut(LocalRegion.java:2973)
>> at
>> com.gemstone.gemfire.internal.cache.LocalRegion.cacheWriteBeforePut(LocalRegion.java:3109)
>> at
>> com.gemstone.gemfire.internal.cache.AbstractRegionMap.invokeCacheWriter(AbstractRegionMap.java:3131)
>> at
>> com.gemstone.gemfire.internal.cache.AbstractRegionMap.basicPut(AbstractRegionMap.java:2895)
>> at
>> com.gemstone.gemfire.internal.cache.LocalRegion.virtualPut(LocalRegion.java:5780)
>> at
>> com.gemstone.gemfire.internal.cache.LocalRegionDataView.putEntry(LocalRegionDataView.java:118)
>> at
>> com.gemstone.gemfire.internal.cache.LocalRegion.basicPut(LocalRegion.java:5182)
>> at
>> com.gemstone.gemfire.internal.cache.LocalRegion.validatedPut(LocalRegion.java:1574)
>> at
>> com.gemstone.gemfire.internal.cache.LocalRegion.put(LocalRegion.java:1557)
>> at
>> com.gemstone.gemfire.internal.cache.AbstractRegion.put(AbstractRegion.java:321)
>> at io.palindrome.geode.HelloGeode.main(HelloGeode.java:20)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:497)
>> at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
>> ${gemfire-pattern}${gemfire-pattern}${gemfire-pattern}${gemfire-pattern}
>> Process finished with exit code 1
>>
>> Am I missing something here ?
>>
>>
>> Thanks,
>> Aman
>>
>>
>>>
>>
>>
>

Re: Locator status null

Posted by Alan Kash <cr...@gmail.com>.
Thanks everyone, the issue is resolved.


On Sat, Feb 13, 2016 at 12:00 PM, Alan Kash <cr...@gmail.com> wrote:

> I am using M1. is it merged in github source ?
>
> Thanks
>
>
>
>
> On Sat, Feb 13, 2016 at 11:56 AM, Sai Boorlagadda <sboorlagadda@pivotal.io
> > wrote:
>
>> Hello Alan,
>>
>> Are you using the M1 release archive or checked out source from github?
>>
>> If you are using M1 release archive, pulse is not yet included into M1.
>>
>> Sai
>>
>> On Sat, Feb 13, 2016 at 8:35 AM, Alan Kash <cr...@gmail.com> wrote:
>>
>>> Hi Udo,
>>>
>>> I again gave it a shot,
>>>
>>> gfsh>start locator --name=l1 --bind-address=192.168.20.109
>>> --hostname-for-clients=192.168.20.109
>>>
>>> gfsh>start server --name=l1s1
>>>
>>> gfsh>create region --name=regionA --type=REPLICATE_PERSISTENT
>>>
>>>
>>> 1. Client (RESOLVED)
>>>
>>> IntelliJ 15 - SUCCESS
>>>
>>> I tried NetBeans 8.1 - SUCCESS
>>>
>>> 2. Pulse (PENDING) :
>>>
>>> gfsh>start pulse
>>> Launched GemFire Pulse
>>>
>>> gfsh>Created new window in existing browser session.
>>>
>>> It is trying to connect to localhost:7070/pulse by default, I tried
>>> changing the IP address to 192.168.20.109:7070/pulse - I still get HTTP
>>> 404 error.
>>>
>>> I tried the same configuration on OS X 10.11, it is throwing the same
>>> error.
>>>
>>>
>>> Thanks,
>>> Alan
>>>
>>>
>>> On Sat, Feb 13, 2016 at 3:17 AM, Udo Kohlmeyer <uk...@pivotal.io>
>>> wrote:
>>>
>>>> Hi there Alan,
>>>>
>>>> I've just tried the 5 minute guide and it worked for me.
>>>>
>>>> I would just like to confirm the following:
>>>>
>>>>    - You started both locator and server
>>>>    - Could you try connecting to the locator from the client using
>>>>    "localhost"
>>>>       - Otherwise we might have to tell the locator to directly bind
>>>>       to an ip address using 'start locator --name=ll
>>>>       --bind-address=192.168.20.109 --hostname-for-clients==192.168.20.109'
>>>>    - When starting pulse is it trying to connect to 'localhost' or
>>>>    '192.168.20.109'?
>>>>
>>>> --Udo
>>>>
>>>> On 13/02/2016 4:24 pm, Alan Kash wrote:
>>>>
>>>> Thanks, that resolved the locator issue.
>>>>
>>>> gfsh>status locator --name=l1
>>>> Locator in /home/z/store/geode/apache-geode-1.0.0-incubating.M1/l1 on
>>>> 192.168.20.109[10334] as l1 is currently online.
>>>> Process ID: 13124
>>>> Uptime: 19 seconds
>>>> GemFire Version: 1.0.0-incubating.M1
>>>> Java Version: 1.8.0_66
>>>> Log File: /home/z/store/geode/apache-geode-1.0.0-incubating.M1/l1/l1.log
>>>> JVM Arguments: -Dgemfire.enable-cluster-configuration=true
>>>> -Dgemfire.load-cluster-configuration-from-dir=false
>>>> -Dgemfire.launcher.registerSignalHandlers=true -Djava.awt.headless=true
>>>> -Dsun.rmi.dgc.server.gcInterval=9223372036854775806
>>>> Class-Path:
>>>> /home/z/store/geode/apache-geode-1.0.0-incubating.M1/lib/gemfire-core-1.0.0-incubating.M1.jar:/home/z/store/geode/apache-geode-1.0.0-incubating.M1/lib/gemfire-core-dependencies.jar
>>>>
>>>> Cluster configuration service is up and running.
>>>>
>>>>
>>>> I am following 5 minute guide -
>>>> https://cwiki.apache.org/confluence/display/GEODE/Index#Index-Geodein5minutes
>>>>
>>>> Two more issues :
>>>>
>>>> 1. Pulse shows HTTP 404 error (problem accessing /pulse) after starting
>>>> from gfsh
>>>>
>>>> gfsh>start pulse
>>>> Launched GemFire Pulse
>>>>
>>>> gfsh>Created new window in existing browser session.
>>>>
>>>> 2. When I connect using Java, it throw "NoAvailableLocatorsException"
>>>>
>>>> public static void main(String[] args) {
>>>>     ClientCache cache = new ClientCacheFactory()
>>>>             .addPoolLocator("192.168.20.109", 10334)
>>>>             .create();
>>>>     Region<String, String> region = cache
>>>>             .<String, String>createClientRegionFactory(ClientRegionShortcut.CACHING_PROXY)
>>>>             .create("r1");
>>>>
>>>>     region.put("1", "Hello");
>>>>     region.put("2", "World");
>>>>
>>>>     for (Map.Entry<String, String> entry : region.entrySet()) {
>>>>         System.out.format("Key = %s, Value = %s\n", entry.getKey(), entry.getValue());
>>>>     }
>>>> }
>>>>
>>>> ${gemfire-pattern}${gemfire-pattern}${gemfire-pattern}${gemfire-pattern}
>>>> java.net.SocketException: Connection reset
>>>> at java.net.SocketInputStream.read(SocketInputStream.java:209)
>>>> ~[?:1.8.0_66]
>>>> at java.net.SocketInputStream.read(SocketInputStream.java:141)
>>>> ~[?:1.8.0_66]
>>>> at java.net.SocketInputStream.read(SocketInputStream.java:223)
>>>> ~[?:1.8.0_66]
>>>> at java.io.FilterInputStream.read(FilterInputStream.java:83)
>>>> ~[?:1.8.0_66]
>>>> at java.io.DataInputStream.readByte(DataInputStream.java:265)
>>>> ~[?:1.8.0_66]
>>>> at
>>>> com.gemstone.gemfire.internal.InternalDataSerializer.basicReadObject(InternalDataSerializer.java:2883)
>>>> ~[gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
>>>> at
>>>> com.gemstone.gemfire.DataSerializer.readObject(DataSerializer.java:3249)
>>>> ~[gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
>>>> at
>>>> com.gemstone.gemfire.distributed.internal.tcpserver.TcpClient.requestToServer(TcpClient.java:122)
>>>> ~[gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
>>>> at
>>>> com.gemstone.gemfire.distributed.internal.tcpserver.TcpClient.requestToServer(TcpClient.java:78)
>>>> ~[gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
>>>> at
>>>> com.gemstone.gemfire.cache.client.internal.AutoConnectionSourceImpl.queryOneLocator(AutoConnectionSourceImpl.java:188)
>>>> [gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
>>>> at
>>>> com.gemstone.gemfire.cache.client.internal.AutoConnectionSourceImpl.queryLocators(AutoConnectionSourceImpl.java:220)
>>>> [gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
>>>> at
>>>> com.gemstone.gemfire.cache.client.internal.AutoConnectionSourceImpl$UpdateLocatorListTask.run2(AutoConnectionSourceImpl.java:374)
>>>> [gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
>>>> at
>>>> com.gemstone.gemfire.cache.client.internal.PoolImpl$PoolTask.run(PoolImpl.java:1250)
>>>> [gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
>>>> at
>>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>>>> [?:1.8.0_66]
>>>> at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
>>>> [?:1.8.0_66]
>>>> at
>>>> com.gemstone.gemfire.internal.ScheduledThreadPoolExecutorWithKeepAlive$DelegatingScheduledFuture.run(ScheduledThreadPoolExecutorWithKeepAlive.java:250)
>>>> [gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
>>>> at
>>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>>>> [?:1.8.0_66]
>>>> at
>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>>>> [?:1.8.0_66]
>>>> at java.lang.Thread.run(Thread.java:745) [?:1.8.0_66]
>>>> ${gemfire-pattern}Exception in thread "main"*
>>>> com.gemstone.gemfire.cache.client.NoAvailableLocatorsException: Unable to
>>>> connect to any locators in the list [/192.168.20.109:10334
>>>> <http://192.168.20.109:10334>]*
>>>> at
>>>> com.gemstone.gemfire.cache.client.internal.AutoConnectionSourceImpl.findServer(AutoConnectionSourceImpl.java:136)
>>>> at
>>>> com.gemstone.gemfire.cache.client.internal.ConnectionFactoryImpl.createClientToServerConnection(ConnectionFactoryImpl.java:207)
>>>> at
>>>> com.gemstone.gemfire.cache.client.internal.pooling.ConnectionManagerImpl.borrowConnection(ConnectionManagerImpl.java:215)
>>>> at
>>>> com.gemstone.gemfire.cache.client.internal.OpExecutorImpl.execute(OpExecutorImpl.java:134)
>>>> at
>>>> com.gemstone.gemfire.cache.client.internal.OpExecutorImpl.execute(OpExecutorImpl.java:113)
>>>> at
>>>> com.gemstone.gemfire.cache.client.internal.PoolImpl.execute(PoolImpl.java:703)
>>>> at
>>>> com.gemstone.gemfire.cache.client.internal.PutOp.execute(PutOp.java:99)
>>>> at
>>>> com.gemstone.gemfire.cache.client.internal.ServerRegionProxy.put(ServerRegionProxy.java:198)
>>>> at
>>>> com.gemstone.gemfire.internal.cache.LocalRegion.serverPut(LocalRegion.java:2973)
>>>> at
>>>> com.gemstone.gemfire.internal.cache.LocalRegion.cacheWriteBeforePut(LocalRegion.java:3109)
>>>> at
>>>> com.gemstone.gemfire.internal.cache.AbstractRegionMap.invokeCacheWriter(AbstractRegionMap.java:3131)
>>>> at
>>>> com.gemstone.gemfire.internal.cache.AbstractRegionMap.basicPut(AbstractRegionMap.java:2895)
>>>> at
>>>> com.gemstone.gemfire.internal.cache.LocalRegion.virtualPut(LocalRegion.java:5780)
>>>> at
>>>> com.gemstone.gemfire.internal.cache.LocalRegionDataView.putEntry(LocalRegionDataView.java:118)
>>>> at
>>>> com.gemstone.gemfire.internal.cache.LocalRegion.basicPut(LocalRegion.java:5182)
>>>> at
>>>> com.gemstone.gemfire.internal.cache.LocalRegion.validatedPut(LocalRegion.java:1574)
>>>> at
>>>> com.gemstone.gemfire.internal.cache.LocalRegion.put(LocalRegion.java:1557)
>>>> at
>>>> com.gemstone.gemfire.internal.cache.AbstractRegion.put(AbstractRegion.java:321)
>>>> at io.palindrome.geode.HelloGeode.main(HelloGeode.java:20)
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> at
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>> at
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>> at java.lang.reflect.Method.invoke(Method.java:497)
>>>> at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
>>>> ${gemfire-pattern}${gemfire-pattern}${gemfire-pattern}${gemfire-pattern}
>>>> Process finished with exit code 1
>>>>
>>>> Am I missing something here ?
>>>>
>>>>
>>>> Thanks,
>>>> Aman
>>>>
>>>>
>>>>>
>>>>
>>>>
>>>
>>
>>
>> --
>> Sai Boorlagadda
>>
>
>

Re: Locator status null

Posted by Alan Kash <cr...@gmail.com>.
I am using M1. is it merged in github source ?

Thanks




On Sat, Feb 13, 2016 at 11:56 AM, Sai Boorlagadda <sb...@pivotal.io>
wrote:

> Hello Alan,
>
> Are you using the M1 release archive or checked out source from github?
>
> If you are using M1 release archive, pulse is not yet included into M1.
>
> Sai
>
> On Sat, Feb 13, 2016 at 8:35 AM, Alan Kash <cr...@gmail.com> wrote:
>
>> Hi Udo,
>>
>> I again gave it a shot,
>>
>> gfsh>start locator --name=l1 --bind-address=192.168.20.109
>> --hostname-for-clients=192.168.20.109
>>
>> gfsh>start server --name=l1s1
>>
>> gfsh>create region --name=regionA --type=REPLICATE_PERSISTENT
>>
>>
>> 1. Client (RESOLVED)
>>
>> IntelliJ 15 - SUCCESS
>>
>> I tried NetBeans 8.1 - SUCCESS
>>
>> 2. Pulse (PENDING) :
>>
>> gfsh>start pulse
>> Launched GemFire Pulse
>>
>> gfsh>Created new window in existing browser session.
>>
>> It is trying to connect to localhost:7070/pulse by default, I tried
>> changing the IP address to 192.168.20.109:7070/pulse - I still get HTTP
>> 404 error.
>>
>> I tried the same configuration on OS X 10.11, it is throwing the same
>> error.
>>
>>
>> Thanks,
>> Alan
>>
>>
>> On Sat, Feb 13, 2016 at 3:17 AM, Udo Kohlmeyer <uk...@pivotal.io>
>> wrote:
>>
>>> Hi there Alan,
>>>
>>> I've just tried the 5 minute guide and it worked for me.
>>>
>>> I would just like to confirm the following:
>>>
>>>    - You started both locator and server
>>>    - Could you try connecting to the locator from the client using
>>>    "localhost"
>>>       - Otherwise we might have to tell the locator to directly bind to
>>>       an ip address using 'start locator --name=ll --bind-address=192.168.20.109
>>>       --hostname-for-clients==192.168.20.109'
>>>    - When starting pulse is it trying to connect to 'localhost' or
>>>    '192.168.20.109'?
>>>
>>> --Udo
>>>
>>> On 13/02/2016 4:24 pm, Alan Kash wrote:
>>>
>>> Thanks, that resolved the locator issue.
>>>
>>> gfsh>status locator --name=l1
>>> Locator in /home/z/store/geode/apache-geode-1.0.0-incubating.M1/l1 on
>>> 192.168.20.109[10334] as l1 is currently online.
>>> Process ID: 13124
>>> Uptime: 19 seconds
>>> GemFire Version: 1.0.0-incubating.M1
>>> Java Version: 1.8.0_66
>>> Log File: /home/z/store/geode/apache-geode-1.0.0-incubating.M1/l1/l1.log
>>> JVM Arguments: -Dgemfire.enable-cluster-configuration=true
>>> -Dgemfire.load-cluster-configuration-from-dir=false
>>> -Dgemfire.launcher.registerSignalHandlers=true -Djava.awt.headless=true
>>> -Dsun.rmi.dgc.server.gcInterval=9223372036854775806
>>> Class-Path:
>>> /home/z/store/geode/apache-geode-1.0.0-incubating.M1/lib/gemfire-core-1.0.0-incubating.M1.jar:/home/z/store/geode/apache-geode-1.0.0-incubating.M1/lib/gemfire-core-dependencies.jar
>>>
>>> Cluster configuration service is up and running.
>>>
>>>
>>> I am following 5 minute guide -
>>> https://cwiki.apache.org/confluence/display/GEODE/Index#Index-Geodein5minutes
>>>
>>> Two more issues :
>>>
>>> 1. Pulse shows HTTP 404 error (problem accessing /pulse) after starting
>>> from gfsh
>>>
>>> gfsh>start pulse
>>> Launched GemFire Pulse
>>>
>>> gfsh>Created new window in existing browser session.
>>>
>>> 2. When I connect using Java, it throw "NoAvailableLocatorsException"
>>>
>>> public static void main(String[] args) {
>>>     ClientCache cache = new ClientCacheFactory()
>>>             .addPoolLocator("192.168.20.109", 10334)
>>>             .create();
>>>     Region<String, String> region = cache
>>>             .<String, String>createClientRegionFactory(ClientRegionShortcut.CACHING_PROXY)
>>>             .create("r1");
>>>
>>>     region.put("1", "Hello");
>>>     region.put("2", "World");
>>>
>>>     for (Map.Entry<String, String> entry : region.entrySet()) {
>>>         System.out.format("Key = %s, Value = %s\n", entry.getKey(), entry.getValue());
>>>     }
>>> }
>>>
>>> ${gemfire-pattern}${gemfire-pattern}${gemfire-pattern}${gemfire-pattern}
>>> java.net.SocketException: Connection reset
>>> at java.net.SocketInputStream.read(SocketInputStream.java:209)
>>> ~[?:1.8.0_66]
>>> at java.net.SocketInputStream.read(SocketInputStream.java:141)
>>> ~[?:1.8.0_66]
>>> at java.net.SocketInputStream.read(SocketInputStream.java:223)
>>> ~[?:1.8.0_66]
>>> at java.io.FilterInputStream.read(FilterInputStream.java:83)
>>> ~[?:1.8.0_66]
>>> at java.io.DataInputStream.readByte(DataInputStream.java:265)
>>> ~[?:1.8.0_66]
>>> at
>>> com.gemstone.gemfire.internal.InternalDataSerializer.basicReadObject(InternalDataSerializer.java:2883)
>>> ~[gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
>>> at
>>> com.gemstone.gemfire.DataSerializer.readObject(DataSerializer.java:3249)
>>> ~[gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
>>> at
>>> com.gemstone.gemfire.distributed.internal.tcpserver.TcpClient.requestToServer(TcpClient.java:122)
>>> ~[gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
>>> at
>>> com.gemstone.gemfire.distributed.internal.tcpserver.TcpClient.requestToServer(TcpClient.java:78)
>>> ~[gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
>>> at
>>> com.gemstone.gemfire.cache.client.internal.AutoConnectionSourceImpl.queryOneLocator(AutoConnectionSourceImpl.java:188)
>>> [gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
>>> at
>>> com.gemstone.gemfire.cache.client.internal.AutoConnectionSourceImpl.queryLocators(AutoConnectionSourceImpl.java:220)
>>> [gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
>>> at
>>> com.gemstone.gemfire.cache.client.internal.AutoConnectionSourceImpl$UpdateLocatorListTask.run2(AutoConnectionSourceImpl.java:374)
>>> [gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
>>> at
>>> com.gemstone.gemfire.cache.client.internal.PoolImpl$PoolTask.run(PoolImpl.java:1250)
>>> [gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
>>> at
>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>>> [?:1.8.0_66]
>>> at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
>>> [?:1.8.0_66]
>>> at
>>> com.gemstone.gemfire.internal.ScheduledThreadPoolExecutorWithKeepAlive$DelegatingScheduledFuture.run(ScheduledThreadPoolExecutorWithKeepAlive.java:250)
>>> [gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
>>> at
>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>>> [?:1.8.0_66]
>>> at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>>> [?:1.8.0_66]
>>> at java.lang.Thread.run(Thread.java:745) [?:1.8.0_66]
>>> ${gemfire-pattern}Exception in thread "main"*
>>> com.gemstone.gemfire.cache.client.NoAvailableLocatorsException: Unable to
>>> connect to any locators in the list [/192.168.20.109:10334
>>> <http://192.168.20.109:10334>]*
>>> at
>>> com.gemstone.gemfire.cache.client.internal.AutoConnectionSourceImpl.findServer(AutoConnectionSourceImpl.java:136)
>>> at
>>> com.gemstone.gemfire.cache.client.internal.ConnectionFactoryImpl.createClientToServerConnection(ConnectionFactoryImpl.java:207)
>>> at
>>> com.gemstone.gemfire.cache.client.internal.pooling.ConnectionManagerImpl.borrowConnection(ConnectionManagerImpl.java:215)
>>> at
>>> com.gemstone.gemfire.cache.client.internal.OpExecutorImpl.execute(OpExecutorImpl.java:134)
>>> at
>>> com.gemstone.gemfire.cache.client.internal.OpExecutorImpl.execute(OpExecutorImpl.java:113)
>>> at
>>> com.gemstone.gemfire.cache.client.internal.PoolImpl.execute(PoolImpl.java:703)
>>> at
>>> com.gemstone.gemfire.cache.client.internal.PutOp.execute(PutOp.java:99)
>>> at
>>> com.gemstone.gemfire.cache.client.internal.ServerRegionProxy.put(ServerRegionProxy.java:198)
>>> at
>>> com.gemstone.gemfire.internal.cache.LocalRegion.serverPut(LocalRegion.java:2973)
>>> at
>>> com.gemstone.gemfire.internal.cache.LocalRegion.cacheWriteBeforePut(LocalRegion.java:3109)
>>> at
>>> com.gemstone.gemfire.internal.cache.AbstractRegionMap.invokeCacheWriter(AbstractRegionMap.java:3131)
>>> at
>>> com.gemstone.gemfire.internal.cache.AbstractRegionMap.basicPut(AbstractRegionMap.java:2895)
>>> at
>>> com.gemstone.gemfire.internal.cache.LocalRegion.virtualPut(LocalRegion.java:5780)
>>> at
>>> com.gemstone.gemfire.internal.cache.LocalRegionDataView.putEntry(LocalRegionDataView.java:118)
>>> at
>>> com.gemstone.gemfire.internal.cache.LocalRegion.basicPut(LocalRegion.java:5182)
>>> at
>>> com.gemstone.gemfire.internal.cache.LocalRegion.validatedPut(LocalRegion.java:1574)
>>> at
>>> com.gemstone.gemfire.internal.cache.LocalRegion.put(LocalRegion.java:1557)
>>> at
>>> com.gemstone.gemfire.internal.cache.AbstractRegion.put(AbstractRegion.java:321)
>>> at io.palindrome.geode.HelloGeode.main(HelloGeode.java:20)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:497)
>>> at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
>>> ${gemfire-pattern}${gemfire-pattern}${gemfire-pattern}${gemfire-pattern}
>>> Process finished with exit code 1
>>>
>>> Am I missing something here ?
>>>
>>>
>>> Thanks,
>>> Aman
>>>
>>>
>>>>
>>>
>>>
>>
>
>
> --
> Sai Boorlagadda
>

Re: Locator status null

Posted by Sai Boorlagadda <sb...@pivotal.io>.
Hello Alan,

Are you using the M1 release archive or checked out source from github?

If you are using M1 release archive, pulse is not yet included into M1.

Sai

On Sat, Feb 13, 2016 at 8:35 AM, Alan Kash <cr...@gmail.com> wrote:

> Hi Udo,
>
> I again gave it a shot,
>
> gfsh>start locator --name=l1 --bind-address=192.168.20.109
> --hostname-for-clients=192.168.20.109
>
> gfsh>start server --name=l1s1
>
> gfsh>create region --name=regionA --type=REPLICATE_PERSISTENT
>
>
> 1. Client (RESOLVED)
>
> IntelliJ 15 - SUCCESS
>
> I tried NetBeans 8.1 - SUCCESS
>
> 2. Pulse (PENDING) :
>
> gfsh>start pulse
> Launched GemFire Pulse
>
> gfsh>Created new window in existing browser session.
>
> It is trying to connect to localhost:7070/pulse by default, I tried
> changing the IP address to 192.168.20.109:7070/pulse - I still get HTTP
> 404 error.
>
> I tried the same configuration on OS X 10.11, it is throwing the same
> error.
>
>
> Thanks,
> Alan
>
>
> On Sat, Feb 13, 2016 at 3:17 AM, Udo Kohlmeyer <uk...@pivotal.io>
> wrote:
>
>> Hi there Alan,
>>
>> I've just tried the 5 minute guide and it worked for me.
>>
>> I would just like to confirm the following:
>>
>>    - You started both locator and server
>>    - Could you try connecting to the locator from the client using
>>    "localhost"
>>       - Otherwise we might have to tell the locator to directly bind to
>>       an ip address using 'start locator --name=ll --bind-address=192.168.20.109
>>       --hostname-for-clients==192.168.20.109'
>>    - When starting pulse is it trying to connect to 'localhost' or
>>    '192.168.20.109'?
>>
>> --Udo
>>
>> On 13/02/2016 4:24 pm, Alan Kash wrote:
>>
>> Thanks, that resolved the locator issue.
>>
>> gfsh>status locator --name=l1
>> Locator in /home/z/store/geode/apache-geode-1.0.0-incubating.M1/l1 on
>> 192.168.20.109[10334] as l1 is currently online.
>> Process ID: 13124
>> Uptime: 19 seconds
>> GemFire Version: 1.0.0-incubating.M1
>> Java Version: 1.8.0_66
>> Log File: /home/z/store/geode/apache-geode-1.0.0-incubating.M1/l1/l1.log
>> JVM Arguments: -Dgemfire.enable-cluster-configuration=true
>> -Dgemfire.load-cluster-configuration-from-dir=false
>> -Dgemfire.launcher.registerSignalHandlers=true -Djava.awt.headless=true
>> -Dsun.rmi.dgc.server.gcInterval=9223372036854775806
>> Class-Path:
>> /home/z/store/geode/apache-geode-1.0.0-incubating.M1/lib/gemfire-core-1.0.0-incubating.M1.jar:/home/z/store/geode/apache-geode-1.0.0-incubating.M1/lib/gemfire-core-dependencies.jar
>>
>> Cluster configuration service is up and running.
>>
>>
>> I am following 5 minute guide -
>> https://cwiki.apache.org/confluence/display/GEODE/Index#Index-Geodein5minutes
>>
>> Two more issues :
>>
>> 1. Pulse shows HTTP 404 error (problem accessing /pulse) after starting
>> from gfsh
>>
>> gfsh>start pulse
>> Launched GemFire Pulse
>>
>> gfsh>Created new window in existing browser session.
>>
>> 2. When I connect using Java, it throw "NoAvailableLocatorsException"
>>
>> public static void main(String[] args) {
>>     ClientCache cache = new ClientCacheFactory()
>>             .addPoolLocator("192.168.20.109", 10334)
>>             .create();
>>     Region<String, String> region = cache
>>             .<String, String>createClientRegionFactory(ClientRegionShortcut.CACHING_PROXY)
>>             .create("r1");
>>
>>     region.put("1", "Hello");
>>     region.put("2", "World");
>>
>>     for (Map.Entry<String, String> entry : region.entrySet()) {
>>         System.out.format("Key = %s, Value = %s\n", entry.getKey(), entry.getValue());
>>     }
>> }
>>
>> ${gemfire-pattern}${gemfire-pattern}${gemfire-pattern}${gemfire-pattern}
>> java.net.SocketException: Connection reset
>> at java.net.SocketInputStream.read(SocketInputStream.java:209)
>> ~[?:1.8.0_66]
>> at java.net.SocketInputStream.read(SocketInputStream.java:141)
>> ~[?:1.8.0_66]
>> at java.net.SocketInputStream.read(SocketInputStream.java:223)
>> ~[?:1.8.0_66]
>> at java.io.FilterInputStream.read(FilterInputStream.java:83) ~[?:1.8.0_66]
>> at java.io.DataInputStream.readByte(DataInputStream.java:265)
>> ~[?:1.8.0_66]
>> at
>> com.gemstone.gemfire.internal.InternalDataSerializer.basicReadObject(InternalDataSerializer.java:2883)
>> ~[gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
>> at
>> com.gemstone.gemfire.DataSerializer.readObject(DataSerializer.java:3249)
>> ~[gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
>> at
>> com.gemstone.gemfire.distributed.internal.tcpserver.TcpClient.requestToServer(TcpClient.java:122)
>> ~[gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
>> at
>> com.gemstone.gemfire.distributed.internal.tcpserver.TcpClient.requestToServer(TcpClient.java:78)
>> ~[gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
>> at
>> com.gemstone.gemfire.cache.client.internal.AutoConnectionSourceImpl.queryOneLocator(AutoConnectionSourceImpl.java:188)
>> [gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
>> at
>> com.gemstone.gemfire.cache.client.internal.AutoConnectionSourceImpl.queryLocators(AutoConnectionSourceImpl.java:220)
>> [gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
>> at
>> com.gemstone.gemfire.cache.client.internal.AutoConnectionSourceImpl$UpdateLocatorListTask.run2(AutoConnectionSourceImpl.java:374)
>> [gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
>> at
>> com.gemstone.gemfire.cache.client.internal.PoolImpl$PoolTask.run(PoolImpl.java:1250)
>> [gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
>> at
>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>> [?:1.8.0_66]
>> at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
>> [?:1.8.0_66]
>> at
>> com.gemstone.gemfire.internal.ScheduledThreadPoolExecutorWithKeepAlive$DelegatingScheduledFuture.run(ScheduledThreadPoolExecutorWithKeepAlive.java:250)
>> [gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
>> at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>> [?:1.8.0_66]
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>> [?:1.8.0_66]
>> at java.lang.Thread.run(Thread.java:745) [?:1.8.0_66]
>> ${gemfire-pattern}Exception in thread "main"*
>> com.gemstone.gemfire.cache.client.NoAvailableLocatorsException: Unable to
>> connect to any locators in the list [/192.168.20.109:10334
>> <http://192.168.20.109:10334>]*
>> at
>> com.gemstone.gemfire.cache.client.internal.AutoConnectionSourceImpl.findServer(AutoConnectionSourceImpl.java:136)
>> at
>> com.gemstone.gemfire.cache.client.internal.ConnectionFactoryImpl.createClientToServerConnection(ConnectionFactoryImpl.java:207)
>> at
>> com.gemstone.gemfire.cache.client.internal.pooling.ConnectionManagerImpl.borrowConnection(ConnectionManagerImpl.java:215)
>> at
>> com.gemstone.gemfire.cache.client.internal.OpExecutorImpl.execute(OpExecutorImpl.java:134)
>> at
>> com.gemstone.gemfire.cache.client.internal.OpExecutorImpl.execute(OpExecutorImpl.java:113)
>> at
>> com.gemstone.gemfire.cache.client.internal.PoolImpl.execute(PoolImpl.java:703)
>> at com.gemstone.gemfire.cache.client.internal.PutOp.execute(PutOp.java:99)
>> at
>> com.gemstone.gemfire.cache.client.internal.ServerRegionProxy.put(ServerRegionProxy.java:198)
>> at
>> com.gemstone.gemfire.internal.cache.LocalRegion.serverPut(LocalRegion.java:2973)
>> at
>> com.gemstone.gemfire.internal.cache.LocalRegion.cacheWriteBeforePut(LocalRegion.java:3109)
>> at
>> com.gemstone.gemfire.internal.cache.AbstractRegionMap.invokeCacheWriter(AbstractRegionMap.java:3131)
>> at
>> com.gemstone.gemfire.internal.cache.AbstractRegionMap.basicPut(AbstractRegionMap.java:2895)
>> at
>> com.gemstone.gemfire.internal.cache.LocalRegion.virtualPut(LocalRegion.java:5780)
>> at
>> com.gemstone.gemfire.internal.cache.LocalRegionDataView.putEntry(LocalRegionDataView.java:118)
>> at
>> com.gemstone.gemfire.internal.cache.LocalRegion.basicPut(LocalRegion.java:5182)
>> at
>> com.gemstone.gemfire.internal.cache.LocalRegion.validatedPut(LocalRegion.java:1574)
>> at
>> com.gemstone.gemfire.internal.cache.LocalRegion.put(LocalRegion.java:1557)
>> at
>> com.gemstone.gemfire.internal.cache.AbstractRegion.put(AbstractRegion.java:321)
>> at io.palindrome.geode.HelloGeode.main(HelloGeode.java:20)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:497)
>> at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
>> ${gemfire-pattern}${gemfire-pattern}${gemfire-pattern}${gemfire-pattern}
>> Process finished with exit code 1
>>
>> Am I missing something here ?
>>
>>
>> Thanks,
>> Aman
>>
>>
>>>
>>
>>
>


-- 
Sai Boorlagadda

Re: Locator status null

Posted by Luke Shannon <ls...@pivotal.io>.
Maybe check it actually launched on 7070. There might have been a port
conflict in which case it will have picked another port.

One way to check is a working directory will have been made for the
locator. Something like this:

Pivotal_GemFire_810_b50625_Linux/bin/test/GemFire_lshannon/services/http

This will be blank when it first starts. After you run 'start pulse' the
http directory will now look something like this:

*➜  **http * ls

*0.0.0.0_7070_gemfire* *0.0.0.0_7070_pulse*

This is the Tomcat running my Pulse application. Check your directory, the
port it is running on will be in name of the folder.

Also when testing locally I use 127.0.0.1 as my bind address. It makes life
a bit easier.

On Sat, Feb 13, 2016 at 11:35 AM, Alan Kash <cr...@gmail.com> wrote:

> Hi Udo,
>
> I again gave it a shot,
>
> gfsh>start locator --name=l1 --bind-address=192.168.20.109
> --hostname-for-clients=192.168.20.109
>
> gfsh>start server --name=l1s1
>
> gfsh>create region --name=regionA --type=REPLICATE_PERSISTENT
>
>
> 1. Client (RESOLVED)
>
> IntelliJ 15 - SUCCESS
>
> I tried NetBeans 8.1 - SUCCESS
>
> 2. Pulse (PENDING) :
>
> gfsh>start pulse
> Launched GemFire Pulse
>
> gfsh>Created new window in existing browser session.
>
> It is trying to connect to localhost:7070/pulse by default, I tried
> changing the IP address to 192.168.20.109:7070/pulse - I still get HTTP
> 404 error.
>
> I tried the same configuration on OS X 10.11, it is throwing the same
> error.
>
>
> Thanks,
> Alan
>
>
> On Sat, Feb 13, 2016 at 3:17 AM, Udo Kohlmeyer <uk...@pivotal.io>
> wrote:
>
>> Hi there Alan,
>>
>> I've just tried the 5 minute guide and it worked for me.
>>
>> I would just like to confirm the following:
>>
>>    - You started both locator and server
>>    - Could you try connecting to the locator from the client using
>>    "localhost"
>>       - Otherwise we might have to tell the locator to directly bind to
>>       an ip address using 'start locator --name=ll --bind-address=192.168.20.109
>>       --hostname-for-clients==192.168.20.109'
>>    - When starting pulse is it trying to connect to 'localhost' or
>>    '192.168.20.109'?
>>
>> --Udo
>>
>> On 13/02/2016 4:24 pm, Alan Kash wrote:
>>
>> Thanks, that resolved the locator issue.
>>
>> gfsh>status locator --name=l1
>> Locator in /home/z/store/geode/apache-geode-1.0.0-incubating.M1/l1 on
>> 192.168.20.109[10334] as l1 is currently online.
>> Process ID: 13124
>> Uptime: 19 seconds
>> GemFire Version: 1.0.0-incubating.M1
>> Java Version: 1.8.0_66
>> Log File: /home/z/store/geode/apache-geode-1.0.0-incubating.M1/l1/l1.log
>> JVM Arguments: -Dgemfire.enable-cluster-configuration=true
>> -Dgemfire.load-cluster-configuration-from-dir=false
>> -Dgemfire.launcher.registerSignalHandlers=true -Djava.awt.headless=true
>> -Dsun.rmi.dgc.server.gcInterval=9223372036854775806
>> Class-Path:
>> /home/z/store/geode/apache-geode-1.0.0-incubating.M1/lib/gemfire-core-1.0.0-incubating.M1.jar:/home/z/store/geode/apache-geode-1.0.0-incubating.M1/lib/gemfire-core-dependencies.jar
>>
>> Cluster configuration service is up and running.
>>
>>
>> I am following 5 minute guide -
>> https://cwiki.apache.org/confluence/display/GEODE/Index#Index-Geodein5minutes
>>
>> Two more issues :
>>
>> 1. Pulse shows HTTP 404 error (problem accessing /pulse) after starting
>> from gfsh
>>
>> gfsh>start pulse
>> Launched GemFire Pulse
>>
>> gfsh>Created new window in existing browser session.
>>
>> 2. When I connect using Java, it throw "NoAvailableLocatorsException"
>>
>> public static void main(String[] args) {
>>     ClientCache cache = new ClientCacheFactory()
>>             .addPoolLocator("192.168.20.109", 10334)
>>             .create();
>>     Region<String, String> region = cache
>>             .<String, String>createClientRegionFactory(ClientRegionShortcut.CACHING_PROXY)
>>             .create("r1");
>>
>>     region.put("1", "Hello");
>>     region.put("2", "World");
>>
>>     for (Map.Entry<String, String> entry : region.entrySet()) {
>>         System.out.format("Key = %s, Value = %s\n", entry.getKey(), entry.getValue());
>>     }
>> }
>>
>> ${gemfire-pattern}${gemfire-pattern}${gemfire-pattern}${gemfire-pattern}
>> java.net.SocketException: Connection reset
>> at java.net.SocketInputStream.read(SocketInputStream.java:209)
>> ~[?:1.8.0_66]
>> at java.net.SocketInputStream.read(SocketInputStream.java:141)
>> ~[?:1.8.0_66]
>> at java.net.SocketInputStream.read(SocketInputStream.java:223)
>> ~[?:1.8.0_66]
>> at java.io.FilterInputStream.read(FilterInputStream.java:83) ~[?:1.8.0_66]
>> at java.io.DataInputStream.readByte(DataInputStream.java:265)
>> ~[?:1.8.0_66]
>> at
>> com.gemstone.gemfire.internal.InternalDataSerializer.basicReadObject(InternalDataSerializer.java:2883)
>> ~[gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
>> at
>> com.gemstone.gemfire.DataSerializer.readObject(DataSerializer.java:3249)
>> ~[gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
>> at
>> com.gemstone.gemfire.distributed.internal.tcpserver.TcpClient.requestToServer(TcpClient.java:122)
>> ~[gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
>> at
>> com.gemstone.gemfire.distributed.internal.tcpserver.TcpClient.requestToServer(TcpClient.java:78)
>> ~[gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
>> at
>> com.gemstone.gemfire.cache.client.internal.AutoConnectionSourceImpl.queryOneLocator(AutoConnectionSourceImpl.java:188)
>> [gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
>> at
>> com.gemstone.gemfire.cache.client.internal.AutoConnectionSourceImpl.queryLocators(AutoConnectionSourceImpl.java:220)
>> [gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
>> at
>> com.gemstone.gemfire.cache.client.internal.AutoConnectionSourceImpl$UpdateLocatorListTask.run2(AutoConnectionSourceImpl.java:374)
>> [gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
>> at
>> com.gemstone.gemfire.cache.client.internal.PoolImpl$PoolTask.run(PoolImpl.java:1250)
>> [gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
>> at
>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>> [?:1.8.0_66]
>> at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
>> [?:1.8.0_66]
>> at
>> com.gemstone.gemfire.internal.ScheduledThreadPoolExecutorWithKeepAlive$DelegatingScheduledFuture.run(ScheduledThreadPoolExecutorWithKeepAlive.java:250)
>> [gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
>> at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>> [?:1.8.0_66]
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>> [?:1.8.0_66]
>> at java.lang.Thread.run(Thread.java:745) [?:1.8.0_66]
>> ${gemfire-pattern}Exception in thread "main"*
>> com.gemstone.gemfire.cache.client.NoAvailableLocatorsException: Unable to
>> connect to any locators in the list [/192.168.20.109:10334
>> <http://192.168.20.109:10334>]*
>> at
>> com.gemstone.gemfire.cache.client.internal.AutoConnectionSourceImpl.findServer(AutoConnectionSourceImpl.java:136)
>> at
>> com.gemstone.gemfire.cache.client.internal.ConnectionFactoryImpl.createClientToServerConnection(ConnectionFactoryImpl.java:207)
>> at
>> com.gemstone.gemfire.cache.client.internal.pooling.ConnectionManagerImpl.borrowConnection(ConnectionManagerImpl.java:215)
>> at
>> com.gemstone.gemfire.cache.client.internal.OpExecutorImpl.execute(OpExecutorImpl.java:134)
>> at
>> com.gemstone.gemfire.cache.client.internal.OpExecutorImpl.execute(OpExecutorImpl.java:113)
>> at
>> com.gemstone.gemfire.cache.client.internal.PoolImpl.execute(PoolImpl.java:703)
>> at com.gemstone.gemfire.cache.client.internal.PutOp.execute(PutOp.java:99)
>> at
>> com.gemstone.gemfire.cache.client.internal.ServerRegionProxy.put(ServerRegionProxy.java:198)
>> at
>> com.gemstone.gemfire.internal.cache.LocalRegion.serverPut(LocalRegion.java:2973)
>> at
>> com.gemstone.gemfire.internal.cache.LocalRegion.cacheWriteBeforePut(LocalRegion.java:3109)
>> at
>> com.gemstone.gemfire.internal.cache.AbstractRegionMap.invokeCacheWriter(AbstractRegionMap.java:3131)
>> at
>> com.gemstone.gemfire.internal.cache.AbstractRegionMap.basicPut(AbstractRegionMap.java:2895)
>> at
>> com.gemstone.gemfire.internal.cache.LocalRegion.virtualPut(LocalRegion.java:5780)
>> at
>> com.gemstone.gemfire.internal.cache.LocalRegionDataView.putEntry(LocalRegionDataView.java:118)
>> at
>> com.gemstone.gemfire.internal.cache.LocalRegion.basicPut(LocalRegion.java:5182)
>> at
>> com.gemstone.gemfire.internal.cache.LocalRegion.validatedPut(LocalRegion.java:1574)
>> at
>> com.gemstone.gemfire.internal.cache.LocalRegion.put(LocalRegion.java:1557)
>> at
>> com.gemstone.gemfire.internal.cache.AbstractRegion.put(AbstractRegion.java:321)
>> at io.palindrome.geode.HelloGeode.main(HelloGeode.java:20)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:497)
>> at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
>> ${gemfire-pattern}${gemfire-pattern}${gemfire-pattern}${gemfire-pattern}
>> Process finished with exit code 1
>>
>> Am I missing something here ?
>>
>>
>> Thanks,
>> Aman
>>
>>
>>>
>>
>>
>


-- 
Luke Shannon | Field Engineering | Pivotal
-------------------------------------------------------------------------
Mobile:416-571-9495
Join the Toronto Pivotal Usergroup:
http://www.meetup.com/Toronto-Pivotal-User-Group/

Re: Locator status null

Posted by Alan Kash <cr...@gmail.com>.
Hi Udo,

I again gave it a shot,

gfsh>start locator --name=l1 --bind-address=192.168.20.109
--hostname-for-clients=192.168.20.109

gfsh>start server --name=l1s1

gfsh>create region --name=regionA --type=REPLICATE_PERSISTENT


1. Client (RESOLVED)

IntelliJ 15 - SUCCESS

I tried NetBeans 8.1 - SUCCESS

2. Pulse (PENDING) :

gfsh>start pulse
Launched GemFire Pulse

gfsh>Created new window in existing browser session.

It is trying to connect to localhost:7070/pulse by default, I tried
changing the IP address to 192.168.20.109:7070/pulse - I still get HTTP 404
error.

I tried the same configuration on OS X 10.11, it is throwing the same error.


Thanks,
Alan


On Sat, Feb 13, 2016 at 3:17 AM, Udo Kohlmeyer <uk...@pivotal.io>
wrote:

> Hi there Alan,
>
> I've just tried the 5 minute guide and it worked for me.
>
> I would just like to confirm the following:
>
>    - You started both locator and server
>    - Could you try connecting to the locator from the client using
>    "localhost"
>       - Otherwise we might have to tell the locator to directly bind to
>       an ip address using 'start locator --name=ll --bind-address=192.168.20.109
>       --hostname-for-clients==192.168.20.109'
>    - When starting pulse is it trying to connect to 'localhost' or
>    '192.168.20.109'?
>
> --Udo
>
> On 13/02/2016 4:24 pm, Alan Kash wrote:
>
> Thanks, that resolved the locator issue.
>
> gfsh>status locator --name=l1
> Locator in /home/z/store/geode/apache-geode-1.0.0-incubating.M1/l1 on
> 192.168.20.109[10334] as l1 is currently online.
> Process ID: 13124
> Uptime: 19 seconds
> GemFire Version: 1.0.0-incubating.M1
> Java Version: 1.8.0_66
> Log File: /home/z/store/geode/apache-geode-1.0.0-incubating.M1/l1/l1.log
> JVM Arguments: -Dgemfire.enable-cluster-configuration=true
> -Dgemfire.load-cluster-configuration-from-dir=false
> -Dgemfire.launcher.registerSignalHandlers=true -Djava.awt.headless=true
> -Dsun.rmi.dgc.server.gcInterval=9223372036854775806
> Class-Path:
> /home/z/store/geode/apache-geode-1.0.0-incubating.M1/lib/gemfire-core-1.0.0-incubating.M1.jar:/home/z/store/geode/apache-geode-1.0.0-incubating.M1/lib/gemfire-core-dependencies.jar
>
> Cluster configuration service is up and running.
>
>
> I am following 5 minute guide -
> https://cwiki.apache.org/confluence/display/GEODE/Index#Index-Geodein5minutes
>
> Two more issues :
>
> 1. Pulse shows HTTP 404 error (problem accessing /pulse) after starting
> from gfsh
>
> gfsh>start pulse
> Launched GemFire Pulse
>
> gfsh>Created new window in existing browser session.
>
> 2. When I connect using Java, it throw "NoAvailableLocatorsException"
>
> public static void main(String[] args) {
>     ClientCache cache = new ClientCacheFactory()
>             .addPoolLocator("192.168.20.109", 10334)
>             .create();
>     Region<String, String> region = cache
>             .<String, String>createClientRegionFactory(ClientRegionShortcut.CACHING_PROXY)
>             .create("r1");
>
>     region.put("1", "Hello");
>     region.put("2", "World");
>
>     for (Map.Entry<String, String> entry : region.entrySet()) {
>         System.out.format("Key = %s, Value = %s\n", entry.getKey(), entry.getValue());
>     }
> }
>
> ${gemfire-pattern}${gemfire-pattern}${gemfire-pattern}${gemfire-pattern}
> java.net.SocketException: Connection reset
> at java.net.SocketInputStream.read(SocketInputStream.java:209)
> ~[?:1.8.0_66]
> at java.net.SocketInputStream.read(SocketInputStream.java:141)
> ~[?:1.8.0_66]
> at java.net.SocketInputStream.read(SocketInputStream.java:223)
> ~[?:1.8.0_66]
> at java.io.FilterInputStream.read(FilterInputStream.java:83) ~[?:1.8.0_66]
> at java.io.DataInputStream.readByte(DataInputStream.java:265) ~[?:1.8.0_66]
> at
> com.gemstone.gemfire.internal.InternalDataSerializer.basicReadObject(InternalDataSerializer.java:2883)
> ~[gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
> at
> com.gemstone.gemfire.DataSerializer.readObject(DataSerializer.java:3249)
> ~[gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
> at
> com.gemstone.gemfire.distributed.internal.tcpserver.TcpClient.requestToServer(TcpClient.java:122)
> ~[gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
> at
> com.gemstone.gemfire.distributed.internal.tcpserver.TcpClient.requestToServer(TcpClient.java:78)
> ~[gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
> at
> com.gemstone.gemfire.cache.client.internal.AutoConnectionSourceImpl.queryOneLocator(AutoConnectionSourceImpl.java:188)
> [gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
> at
> com.gemstone.gemfire.cache.client.internal.AutoConnectionSourceImpl.queryLocators(AutoConnectionSourceImpl.java:220)
> [gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
> at
> com.gemstone.gemfire.cache.client.internal.AutoConnectionSourceImpl$UpdateLocatorListTask.run2(AutoConnectionSourceImpl.java:374)
> [gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
> at
> com.gemstone.gemfire.cache.client.internal.PoolImpl$PoolTask.run(PoolImpl.java:1250)
> [gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> [?:1.8.0_66]
> at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
> [?:1.8.0_66]
> at
> com.gemstone.gemfire.internal.ScheduledThreadPoolExecutorWithKeepAlive$DelegatingScheduledFuture.run(ScheduledThreadPoolExecutorWithKeepAlive.java:250)
> [gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> [?:1.8.0_66]
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> [?:1.8.0_66]
> at java.lang.Thread.run(Thread.java:745) [?:1.8.0_66]
> ${gemfire-pattern}Exception in thread "main"*
> com.gemstone.gemfire.cache.client.NoAvailableLocatorsException: Unable to
> connect to any locators in the list [/192.168.20.109:10334
> <http://192.168.20.109:10334>]*
> at
> com.gemstone.gemfire.cache.client.internal.AutoConnectionSourceImpl.findServer(AutoConnectionSourceImpl.java:136)
> at
> com.gemstone.gemfire.cache.client.internal.ConnectionFactoryImpl.createClientToServerConnection(ConnectionFactoryImpl.java:207)
> at
> com.gemstone.gemfire.cache.client.internal.pooling.ConnectionManagerImpl.borrowConnection(ConnectionManagerImpl.java:215)
> at
> com.gemstone.gemfire.cache.client.internal.OpExecutorImpl.execute(OpExecutorImpl.java:134)
> at
> com.gemstone.gemfire.cache.client.internal.OpExecutorImpl.execute(OpExecutorImpl.java:113)
> at
> com.gemstone.gemfire.cache.client.internal.PoolImpl.execute(PoolImpl.java:703)
> at com.gemstone.gemfire.cache.client.internal.PutOp.execute(PutOp.java:99)
> at
> com.gemstone.gemfire.cache.client.internal.ServerRegionProxy.put(ServerRegionProxy.java:198)
> at
> com.gemstone.gemfire.internal.cache.LocalRegion.serverPut(LocalRegion.java:2973)
> at
> com.gemstone.gemfire.internal.cache.LocalRegion.cacheWriteBeforePut(LocalRegion.java:3109)
> at
> com.gemstone.gemfire.internal.cache.AbstractRegionMap.invokeCacheWriter(AbstractRegionMap.java:3131)
> at
> com.gemstone.gemfire.internal.cache.AbstractRegionMap.basicPut(AbstractRegionMap.java:2895)
> at
> com.gemstone.gemfire.internal.cache.LocalRegion.virtualPut(LocalRegion.java:5780)
> at
> com.gemstone.gemfire.internal.cache.LocalRegionDataView.putEntry(LocalRegionDataView.java:118)
> at
> com.gemstone.gemfire.internal.cache.LocalRegion.basicPut(LocalRegion.java:5182)
> at
> com.gemstone.gemfire.internal.cache.LocalRegion.validatedPut(LocalRegion.java:1574)
> at
> com.gemstone.gemfire.internal.cache.LocalRegion.put(LocalRegion.java:1557)
> at
> com.gemstone.gemfire.internal.cache.AbstractRegion.put(AbstractRegion.java:321)
> at io.palindrome.geode.HelloGeode.main(HelloGeode.java:20)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:497)
> at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
> ${gemfire-pattern}${gemfire-pattern}${gemfire-pattern}${gemfire-pattern}
> Process finished with exit code 1
>
> Am I missing something here ?
>
>
> Thanks,
> Aman
>
>
>>
>
>

Re: Locator status null

Posted by Udo Kohlmeyer <uk...@pivotal.io>.
Hi there Alan,

I've just tried the 5 minute guide and it worked for me.

I would just like to confirm the following:

  * You started both locator and server
  * Could you try connecting to the locator from the client using
    "localhost"
      o Otherwise we might have to tell the locator to directly bind to
        an ip address using 'start locator --name=ll
        --bind-address=192.168.20.109
        --hostname-for-clients==192.168.20.109'
  * When starting pulse is it trying to connect to 'localhost' or
    '192.168.20.109'?

--Udo


On 13/02/2016 4:24 pm, Alan Kash wrote:
> Thanks, that resolved the locator issue.
>
> gfsh>status locator --name=l1
> Locator in /home/z/store/geode/apache-geode-1.0.0-incubating.M1/l1 on 
> 192.168.20.109[10334] as l1 is currently online.
> Process ID: 13124
> Uptime: 19 seconds
> GemFire Version: 1.0.0-incubating.M1
> Java Version: 1.8.0_66
> Log File: /home/z/store/geode/apache-geode-1.0.0-incubating.M1/l1/l1.log
> JVM Arguments: -Dgemfire.enable-cluster-configuration=true 
> -Dgemfire.load-cluster-configuration-from-dir=false 
> -Dgemfire.launcher.registerSignalHandlers=true 
> -Djava.awt.headless=true 
> -Dsun.rmi.dgc.server.gcInterval=9223372036854775806
> Class-Path: 
> /home/z/store/geode/apache-geode-1.0.0-incubating.M1/lib/gemfire-core-1.0.0-incubating.M1.jar:/home/z/store/geode/apache-geode-1.0.0-incubating.M1/lib/gemfire-core-dependencies.jar
>
> Cluster configuration service is up and running.
>
>
> I am following 5 minute guide - 
> https://cwiki.apache.org/confluence/display/GEODE/Index#Index-Geodein5minutes
>
> Two more issues :
>
> 1. Pulse shows HTTP 404 error (problem accessing /pulse) after 
> starting from gfsh
>
> gfsh>start pulse
> Launched GemFire Pulse
>
> gfsh>Created new window in existing browser session.
>
> 2. When I connect using Java, it throw "NoAvailableLocatorsException"
>
> public static void main(String[] args) {
>      ClientCache cache =new ClientCacheFactory()
>              .addPoolLocator("192.168.20.109",10334)
>              .create();
>      Region<String,String> region = cache
>              .<String,String>createClientRegionFactory(ClientRegionShortcut.CACHING_PROXY)
>              .create("r1");
>
>      region.put("1","Hello");
>      region.put("2","World");
>
>      for (Map.Entry<String,String> entry : region.entrySet()) {
>          System.out.format("Key = %s, Value = %s\n", entry.getKey(), entry.getValue());
>      }
> }
> ${gemfire-pattern}${gemfire-pattern}${gemfire-pattern}${gemfire-pattern} 
> java.net.SocketException: Connection reset
> at java.net.SocketInputStream.read(SocketInputStream.java:209) 
> ~[?:1.8.0_66]
> at java.net.SocketInputStream.read(SocketInputStream.java:141) 
> ~[?:1.8.0_66]
> at java.net.SocketInputStream.read(SocketInputStream.java:223) 
> ~[?:1.8.0_66]
> at java.io.FilterInputStream.read(FilterInputStream.java:83) ~[?:1.8.0_66]
> at java.io.DataInputStream.readByte(DataInputStream.java:265) 
> ~[?:1.8.0_66]
> at 
> com.gemstone.gemfire.internal.InternalDataSerializer.basicReadObject(InternalDataSerializer.java:2883) 
> ~[gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
> at 
> com.gemstone.gemfire.DataSerializer.readObject(DataSerializer.java:3249) 
> ~[gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
> at 
> com.gemstone.gemfire.distributed.internal.tcpserver.TcpClient.requestToServer(TcpClient.java:122) 
> ~[gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
> at 
> com.gemstone.gemfire.distributed.internal.tcpserver.TcpClient.requestToServer(TcpClient.java:78) 
> ~[gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
> at 
> com.gemstone.gemfire.cache.client.internal.AutoConnectionSourceImpl.queryOneLocator(AutoConnectionSourceImpl.java:188) 
> [gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
> at 
> com.gemstone.gemfire.cache.client.internal.AutoConnectionSourceImpl.queryLocators(AutoConnectionSourceImpl.java:220) 
> [gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
> at 
> com.gemstone.gemfire.cache.client.internal.AutoConnectionSourceImpl$UpdateLocatorListTask.run2(AutoConnectionSourceImpl.java:374) 
> [gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
> at 
> com.gemstone.gemfire.cache.client.internal.PoolImpl$PoolTask.run(PoolImpl.java:1250) 
> [gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
> at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_66]
> at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) 
> [?:1.8.0_66]
> at 
> com.gemstone.gemfire.internal.ScheduledThreadPoolExecutorWithKeepAlive$DelegatingScheduledFuture.run(ScheduledThreadPoolExecutorWithKeepAlive.java:250) 
> [gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 
> [?:1.8.0_66]
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 
> [?:1.8.0_66]
> at java.lang.Thread.run(Thread.java:745) [?:1.8.0_66]
> ${gemfire-pattern}Exception in thread 
> "main"*com.gemstone.gemfire.cache.client.NoAvailableLocatorsException: 
> Unable to connect to any locators in the list [/192.168.20.109:10334 
> <http://192.168.20.109:10334>]*
> at 
> com.gemstone.gemfire.cache.client.internal.AutoConnectionSourceImpl.findServer(AutoConnectionSourceImpl.java:136)
> at 
> com.gemstone.gemfire.cache.client.internal.ConnectionFactoryImpl.createClientToServerConnection(ConnectionFactoryImpl.java:207)
> at 
> com.gemstone.gemfire.cache.client.internal.pooling.ConnectionManagerImpl.borrowConnection(ConnectionManagerImpl.java:215)
> at 
> com.gemstone.gemfire.cache.client.internal.OpExecutorImpl.execute(OpExecutorImpl.java:134)
> at 
> com.gemstone.gemfire.cache.client.internal.OpExecutorImpl.execute(OpExecutorImpl.java:113)
> at 
> com.gemstone.gemfire.cache.client.internal.PoolImpl.execute(PoolImpl.java:703)
> at com.gemstone.gemfire.cache.client.internal.PutOp.execute(PutOp.java:99)
> at 
> com.gemstone.gemfire.cache.client.internal.ServerRegionProxy.put(ServerRegionProxy.java:198)
> at 
> com.gemstone.gemfire.internal.cache.LocalRegion.serverPut(LocalRegion.java:2973)
> at 
> com.gemstone.gemfire.internal.cache.LocalRegion.cacheWriteBeforePut(LocalRegion.java:3109)
> at 
> com.gemstone.gemfire.internal.cache.AbstractRegionMap.invokeCacheWriter(AbstractRegionMap.java:3131)
> at 
> com.gemstone.gemfire.internal.cache.AbstractRegionMap.basicPut(AbstractRegionMap.java:2895)
> at 
> com.gemstone.gemfire.internal.cache.LocalRegion.virtualPut(LocalRegion.java:5780)
> at 
> com.gemstone.gemfire.internal.cache.LocalRegionDataView.putEntry(LocalRegionDataView.java:118)
> at 
> com.gemstone.gemfire.internal.cache.LocalRegion.basicPut(LocalRegion.java:5182)
> at 
> com.gemstone.gemfire.internal.cache.LocalRegion.validatedPut(LocalRegion.java:1574)
> at 
> com.gemstone.gemfire.internal.cache.LocalRegion.put(LocalRegion.java:1557)
> at 
> com.gemstone.gemfire.internal.cache.AbstractRegion.put(AbstractRegion.java:321)
> at io.palindrome.geode.HelloGeode.main(HelloGeode.java:20)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:497)
> at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
> ${gemfire-pattern}${gemfire-pattern}${gemfire-pattern}${gemfire-pattern}
> Process finished with exit code 1
>
> Am I missing something here ?
>
>
> Thanks,
> Aman
>
>
>


Re: Locator status null

Posted by Alan Kash <cr...@gmail.com>.
Thanks, that resolved the locator issue.

gfsh>status locator --name=l1
Locator in /home/z/store/geode/apache-geode-1.0.0-incubating.M1/l1 on
192.168.20.109[10334] as l1 is currently online.
Process ID: 13124
Uptime: 19 seconds
GemFire Version: 1.0.0-incubating.M1
Java Version: 1.8.0_66
Log File: /home/z/store/geode/apache-geode-1.0.0-incubating.M1/l1/l1.log
JVM Arguments: -Dgemfire.enable-cluster-configuration=true
-Dgemfire.load-cluster-configuration-from-dir=false
-Dgemfire.launcher.registerSignalHandlers=true -Djava.awt.headless=true
-Dsun.rmi.dgc.server.gcInterval=9223372036854775806
Class-Path:
/home/z/store/geode/apache-geode-1.0.0-incubating.M1/lib/gemfire-core-1.0.0-incubating.M1.jar:/home/z/store/geode/apache-geode-1.0.0-incubating.M1/lib/gemfire-core-dependencies.jar

Cluster configuration service is up and running.


I am following 5 minute guide -
https://cwiki.apache.org/confluence/display/GEODE/Index#Index-Geodein5minutes

Two more issues :

1. Pulse shows HTTP 404 error (problem accessing /pulse) after starting
from gfsh

gfsh>start pulse
Launched GemFire Pulse

gfsh>Created new window in existing browser session.

2. When I connect using Java, it throw "NoAvailableLocatorsException"

public static void main(String[] args) {
    ClientCache cache = new ClientCacheFactory()
            .addPoolLocator("192.168.20.109", 10334)
            .create();
    Region<String, String> region = cache
            .<String,
String>createClientRegionFactory(ClientRegionShortcut.CACHING_PROXY)
            .create("r1");

    region.put("1", "Hello");
    region.put("2", "World");

    for (Map.Entry<String, String> entry : region.entrySet()) {
        System.out.format("Key = %s, Value = %s\n", entry.getKey(),
entry.getValue());
    }
}

${gemfire-pattern}${gemfire-pattern}${gemfire-pattern}${gemfire-pattern}
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:209) ~[?:1.8.0_66]
at java.net.SocketInputStream.read(SocketInputStream.java:141) ~[?:1.8.0_66]
at java.net.SocketInputStream.read(SocketInputStream.java:223) ~[?:1.8.0_66]
at java.io.FilterInputStream.read(FilterInputStream.java:83) ~[?:1.8.0_66]
at java.io.DataInputStream.readByte(DataInputStream.java:265) ~[?:1.8.0_66]
at
com.gemstone.gemfire.internal.InternalDataSerializer.basicReadObject(InternalDataSerializer.java:2883)
~[gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
at com.gemstone.gemfire.DataSerializer.readObject(DataSerializer.java:3249)
~[gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
at
com.gemstone.gemfire.distributed.internal.tcpserver.TcpClient.requestToServer(TcpClient.java:122)
~[gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
at
com.gemstone.gemfire.distributed.internal.tcpserver.TcpClient.requestToServer(TcpClient.java:78)
~[gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
at
com.gemstone.gemfire.cache.client.internal.AutoConnectionSourceImpl.queryOneLocator(AutoConnectionSourceImpl.java:188)
[gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
at
com.gemstone.gemfire.cache.client.internal.AutoConnectionSourceImpl.queryLocators(AutoConnectionSourceImpl.java:220)
[gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
at
com.gemstone.gemfire.cache.client.internal.AutoConnectionSourceImpl$UpdateLocatorListTask.run2(AutoConnectionSourceImpl.java:374)
[gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
at
com.gemstone.gemfire.cache.client.internal.PoolImpl$PoolTask.run(PoolImpl.java:1250)
[gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[?:1.8.0_66]
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
[?:1.8.0_66]
at
com.gemstone.gemfire.internal.ScheduledThreadPoolExecutorWithKeepAlive$DelegatingScheduledFuture.run(ScheduledThreadPoolExecutorWithKeepAlive.java:250)
[gemfire-core-1.0.0-incubating-SNAPSHOT.jar:?]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[?:1.8.0_66]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[?:1.8.0_66]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_66]
${gemfire-pattern}Exception in thread "main"*
com.gemstone.gemfire.cache.client.NoAvailableLocatorsException: Unable to
connect to any locators in the list [/192.168.20.109:10334
<http://192.168.20.109:10334>]*
at
com.gemstone.gemfire.cache.client.internal.AutoConnectionSourceImpl.findServer(AutoConnectionSourceImpl.java:136)
at
com.gemstone.gemfire.cache.client.internal.ConnectionFactoryImpl.createClientToServerConnection(ConnectionFactoryImpl.java:207)
at
com.gemstone.gemfire.cache.client.internal.pooling.ConnectionManagerImpl.borrowConnection(ConnectionManagerImpl.java:215)
at
com.gemstone.gemfire.cache.client.internal.OpExecutorImpl.execute(OpExecutorImpl.java:134)
at
com.gemstone.gemfire.cache.client.internal.OpExecutorImpl.execute(OpExecutorImpl.java:113)
at
com.gemstone.gemfire.cache.client.internal.PoolImpl.execute(PoolImpl.java:703)
at com.gemstone.gemfire.cache.client.internal.PutOp.execute(PutOp.java:99)
at
com.gemstone.gemfire.cache.client.internal.ServerRegionProxy.put(ServerRegionProxy.java:198)
at
com.gemstone.gemfire.internal.cache.LocalRegion.serverPut(LocalRegion.java:2973)
at
com.gemstone.gemfire.internal.cache.LocalRegion.cacheWriteBeforePut(LocalRegion.java:3109)
at
com.gemstone.gemfire.internal.cache.AbstractRegionMap.invokeCacheWriter(AbstractRegionMap.java:3131)
at
com.gemstone.gemfire.internal.cache.AbstractRegionMap.basicPut(AbstractRegionMap.java:2895)
at
com.gemstone.gemfire.internal.cache.LocalRegion.virtualPut(LocalRegion.java:5780)
at
com.gemstone.gemfire.internal.cache.LocalRegionDataView.putEntry(LocalRegionDataView.java:118)
at
com.gemstone.gemfire.internal.cache.LocalRegion.basicPut(LocalRegion.java:5182)
at
com.gemstone.gemfire.internal.cache.LocalRegion.validatedPut(LocalRegion.java:1574)
at
com.gemstone.gemfire.internal.cache.LocalRegion.put(LocalRegion.java:1557)
at
com.gemstone.gemfire.internal.cache.AbstractRegion.put(AbstractRegion.java:321)
at io.palindrome.geode.HelloGeode.main(HelloGeode.java:20)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
${gemfire-pattern}${gemfire-pattern}${gemfire-pattern}${gemfire-pattern}
Process finished with exit code 1

Am I missing something here ?


Thanks,
Aman


>

Re: Locator status null

Posted by John Blum <jb...@pivotal.io>.
You have to tell it which Locator, as in...

gfsh>status locator --name=l1

Cheers,
John

On Fri, Feb 12, 2016 at 8:42 PM, Alan Kash <cr...@gmail.com> wrote:

> Hello Geoders,
>
> I am creating a prototype for Geode.
>
> Once I start the locator
>
> gfsh>start locator --name=l1
> Starting a GemFire Locator in
> /home/z/store/geode/apache-geode-1.0.0-incubating.M1/l1...
> ......
> Locator in /home/z/store/geode/apache-geode-1.0.0-incubating.M1/l1 on
> 192.168.20.109[10334] as l1 is currently online.
> Process ID: 4854
> Uptime: 3 seconds
> GemFire Version: 1.0.0-incubating.M1
> Java Version: 1.8.0_66
> Log File: /home/z/store/geode/apache-geode-1.0.0-incubating.M1/l1/l1.log
> JVM Arguments: -Dgemfire.enable-cluster-configuration=true
> -Dgemfire.load-cluster-configuration-from-dir=false
> -Dgemfire.launcher.registerSignalHandlers=true -Djava.awt.headless=true
> -Dsun.rmi.dgc.server.gcInterval=9223372036854775806
> Class-Path:
> /home/z/store/geode/apache-geode-1.0.0-incubating.M1/lib/gemfire-core-1.0.0-incubating.M1.jar:/home/z/store/geode/apache-geode-1.0.0-incubating.M1/lib/gemfire-core-dependencies.jar
>
> Successfully connected to: [host=192.168.20.109, port=1099]
>
> Cluster configuration service is up and running.
>
> But when I run the status command, it always throw null
>
> gfsh>status locator
> null
>
>
> Because of this, the server and pulse services are not running.
>
> My Environment
>
> OS: Fedora 22
> Kernel: 4.3.4-200.fc22.x86_64
> JVM:  1.8.0_66
>
> I tested the GemFire 8.2 release, it is running fine.
>
> Please let me know.
>
> Thanks,
> Aman
>



-- 
-John
503-504-8657
john.blum10101 (skype)