Still cannot save the newly created group setting.
I did the following steps:
1. install a fresh copy of Karaf v2.3.3 on a Windows Platform.
2. edit etc/config.properties to make felix.fileinstall.enableConfigSave =
true
3. root> features:addUrl
mvn:org.apache.karaf.cellar/apache-karaf-cellar/2.3.2/xml/features
4. root> features:install cellar
5. type the following command to create a cluster group:
root> cluster:group-create test
6. type "display" command to show the following error:
2013-11-22 00:02:47,745 | ERROR | pool-10-thread-1 |
ConfigurationEventHandler | config.ConfigurationEventHandler
91 | 89 - org.apache.karaf.cellar.config - 2.3.2 | CELLAR CONFIG: failed
to update local configuration
java.lang.NullPointerException
at
org.apache.karaf.cellar.config.ConfigurationEventHandler.handle(Configuratio
nEventHandler.java:71)[89:org.apa
che.karaf.cellar.config:2.3.2]
at
org.apache.karaf.cellar.config.ConfigurationEventHandler.handle(Configuratio
nEventHandler.java:36)[89:org.apa
che.karaf.cellar.config:2.3.2]
at Proxy3f1893d1_77af_4a74_a182_6162d1e3c688.handle(Unknown
Source)[:]
7. try to shutdown the Karaf instance and restart again.
8. type the following to show the current cluster group setting:
root> cluster:group-list
karaf@root> cluster:group-list
Group Members
* [default ] [serverhost:5701* ]
karaf@root>
Find that it only shows up the default cluster group setting only.
Any suggestion to solve the above problem?
Best Rgds,
Tom
-----Original Message-----
From: Jean-Baptiste Onofré [mailto:[email protected]]
Sent: Thursday, November 21, 2013 9:05 PM
To: [email protected]
Subject: Re: Cellar don't save the newly created group settings
Hi Tom,
do you use Karaf 2.3.3 ?
Actually, I reproduced your issue but it's not due to Cellar itself, it's
due to a change in Karaf 2.3.3 (a very bad change as it changes the default
behavior about ConfigAdmin storage for all config instead of one as
expected).
With Karaf 2.3.3, you have to change the following property in
etc/config.properties:
felix.fileinstall.enableConfigSave = true
Regards
JB
On 11/01/2013 09:28 AM, Tom Leung wrote:
> I have a question about cellar cluster:group features as follows:
>
> 1. install a new fresh copy of Karaf on a MacOS X machine
>
> 2. type the following commands:
>
>> features:addUrl
>> mvn:org.apache.karaf.cellar/apache-karaf-cellar/2.3.2/xml/features
>
>> features:install cellar
>
> After that I pretend a new cluster group:
>
>> cluster:group-create test01
>
>> cluster:group-join test01
>
> *karaf*@root> cluster:group-join test01
>
> Group Members
>
> * [test01 ] [192.168.28.163:5701* ]
>
> * [default ] [192.168.28.163:5701* ]
>
> *karaf*@root> cluster:group-list
>
> Group Members
>
> * [test01 ] [192.168.28.163:5701* ]
>
> * [default ] [192.168.28.163:5701* ]
>
> *karaf*@root>
>
> *karaf*@root>
>
> *karaf*@root>
>
> *karaf*@root> shutdown
>
> Then, I quit Karaf and restart it again.
>
> Type the following command:
>
> cluster:group-list
>
> *karaf*@root> cluster:group-list
>
> Group Members
>
> * [default ] [192.168.28.163:5701* ]
>
> *karaf*@root>
>
> *karaf*@root> cluster:group-list
>
> Group Members
>
> * [default ] [192.168.28.163:5701* ]
>
> *karaf*@root>
>
> The new group test01 is not shown again and find the following errors
> by running "display" command:
>
> 2013-11-01 16:18:18,194 | INFO | rint Extender: 3 |
> system | dardLoggerFactory$StandardLogger 50
> | 54 - com.hazelcast - 2.6.0 | [192.168.28.163]:5701 [cellar]
> | Copyright
> (C) 2008-2013 Hazelcast.com
>
> 2013-11-01 16:18:18,205 | INFO | rint Extender: 3 |
> LifecycleServiceImpl | dardLoggerFactory$StandardLogger 50
> | 54 - com.hazelcast - 2.6.0 | [192.168.28.163]:5701 [cellar]
> Address[192.168.28.163]:5701 is STARTING
>
> 2013-11-01 16:18:21,049 | INFO | ar.ServiceThread |
> MulticastJoiner | dardLoggerFactory$StandardLogger 50
> | 54 - com.hazelcast - 2.6.0 | [192.168.28.163]:5701 [cellar]
>
> Members [1] {
>
> Member [192.168.28.163]:5701 this
>
> }
>
> 2013-11-01 16:18:21,090 | INFO | rint Extender: 3 |
> LifecycleServiceImpl | dardLoggerFactory$StandardLogger 50
> | 54 - com.hazelcast - 2.6.0 | [192.168.28.163]:5701 [cellar]
> Address[192.168.28.163]:5701 is STARTED
>
> 2013-11-01 16:18:21,104 | INFO | ar.ServiceThread |
> PartitionManager | dardLoggerFactory$StandardLogger 50
> | 54 - com.hazelcast - 2.6.0 | [192.168.28.163]:5701 [cellar]
> Initializing cluster partition table first arrangement...
>
> 2013-11-01 16:18:21,331 | ERROR | pool-10-thread-1 |
> ConfigurationEventHandler | config.ConfigurationEventHandler 91
> | 59 - org.apache.karaf.cellar.config - 2.3.2 | CELLAR CONFIG: failed
> | to
> update local configuration
>
> java.lang.NullPointerException
>
> at
> org.apache.karaf.cellar.config.ConfigurationEventHandler.handle(Config
> urationEventHandler.java:71)[59:org.apache.karaf.cellar.config:2.3.2]
>
> at
> org.apache.karaf.cellar.config.ConfigurationEventHandler.handle(Config
> urationEventHandler.java:36)[59:org.apache.karaf.cellar.config:2.3.2]
>
> at Proxy4caff14c_fca1_42b4_8376_3ad62394f58b.handle(Unknown
> Source)[:]
>
> at
> org.apache.karaf.cellar.core.event.EventDispatchTask.run(EventDispatch
> Task.java:57)[55:org.apache.karaf.cellar.core:2.3.2]
>
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.j
> ava:1145)[:1.7.0_40]
>
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.
> java:615)[:1.7.0_40]
>
> at java.lang.Thread.run(Thread.java:724)[:1.7.0_40]
>
> 2013-11-01 16:18:21,331 | ERROR | pool-10-thread-2 |
> ConfigurationEventHandler | config.ConfigurationEventHandler 91
> | 59 - org.apache.karaf.cellar.config - 2.3.2 | CELLAR CONFIG: failed
> | to
> update local configuration
>
> java.lang.NullPointerException
>
> at
> org.apache.karaf.cellar.config.ConfigurationEventHandler.handle(Config
> urationEventHandler.java:71)[59:org.apache.karaf.cellar.config:2.3.2]
>
> at
> org.apache.karaf.cellar.config.ConfigurationEventHandler.handle(Config
> urationEventHandler.java:36)[59:org.apache.karaf.cellar.config:2.3.2]
>
> at Proxy4caff14c_fca1_42b4_8376_3ad62394f58b.handle(Unknown
> Source)[:]
>
> at
> org.apache.karaf.cellar.core.event.EventDispatchTask.run(EventDispatch
> Task.java:57)[55:org.apache.karaf.cellar.core:2.3.2]
>
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.j
> ava:1145)[:1.7.0_40]
>
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.
> java:615)[:1.7.0_40]
>
> at java.lang.Thread.run(Thread.java:724)[:1.7.0_40]
>
> 2013-11-01 16:18:21,334 | ERROR | pool-10-thread-3 |
> ConfigurationEventHandler | config.ConfigurationEventHandler 91
> | 59 - org.apache.karaf.cellar.config - 2.3.2 | CELLAR CONFIG: failed
> | to
> update local configuration
>
> java.lang.NullPointerException
>
> at
> org.apache.karaf.cellar.config.ConfigurationEventHandler.handle(Config
> urationEventHandler.java:71)[59:org.apache.karaf.cellar.config:2.3.2]
>
> at
> org.apache.karaf.cellar.config.ConfigurationEventHandler.handle(Config
> urationEventHandler.java:36)[59:org.apache.karaf.cellar.config:2.3.2]
>
> at Proxy4caff14c_fca1_42b4_8376_3ad62394f58b.handle(Unknown
> Source)[:]
>
> at
> org.apache.karaf.cellar.core.event.EventDispatchTask.run(EventDispatch
> Task.java:57)[55:org.apache.karaf.cellar.core:2.3.2]
>
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.j
> ava:1145)[:1.7.0_40]
>
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.
> java:615)[:1.7.0_40]
>
> at java.lang.Thread.run(Thread.java:724)[:1.7.0_40]
>
> 2013-11-01 16:18:21,335 | ERROR | pool-10-thread-4 |
> ConfigurationEventHandler | config.ConfigurationEventHandler 91
> | 59 - org.apache.karaf.cellar.config - 2.3.2 | CELLAR CONFIG: failed
> | to
> update local configuration
>
> java.lang.NullPointerException
>
> at
> org.apache.karaf.cellar.config.ConfigurationEventHandler.handle(Config
> urationEventHandler.java:71)[59:org.apache.karaf.cellar.config:2.3.2]
>
> at
> org.apache.karaf.cellar.config.ConfigurationEventHandler.handle(Config
> urationEventHandler.java:36)[59:org.apache.karaf.cellar.config:2.3.2]
>
> at Proxy4caff14c_fca1_42b4_8376_3ad62394f58b.handle(Unknown
> Source)[:]
>
> at
> org.apache.karaf.cellar.core.event.EventDispatchTask.run(EventDispatch
> Task.java:57)[55:org.apache.karaf.cellar.core:2.3.2]
>
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.j
> ava:1145)[:1.7.0_40]
>
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.
> java:615)[:1.7.0_40]
>
> at java.lang.Thread.run(Thread.java:724)[:1.7.0_40]
>
> 2013-11-01 16:18:21,337 | ERROR | pool-10-thread-2 |
> ConfigurationEventHandler | config.ConfigurationEventHandler 91
> | 59 - org.apache.karaf.cellar.config - 2.3.2 | CELLAR CONFIG: failed
> | to
> update local configuration
>
> java.lang.NullPointerException
>
> at
> org.apache.karaf.cellar.config.ConfigurationEventHandler.handle(Config
> urationEventHandler.java:71)[59:org.apache.karaf.cellar.config:2.3.2]
>
> at
> org.apache.karaf.cellar.config.ConfigurationEventHandler.handle(Config
> urationEventHandler.java:36)[59:org.apache.karaf.cellar.config:2.3.2]
>
> at Proxy4caff14c_fca1_42b4_8376_3ad62394f58b.handle(Unknown
> Source)[:]
>
> at
> org.apache.karaf.cellar.core.event.EventDispatchTask.run(EventDispatch
> Task.java:57)[55:org.apache.karaf.cellar.core:2.3.2]
>
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.j
> ava:1145)[:1.7.0_40]
>
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.
> java:615)[:1.7.0_40]
>
> at java.lang.Thread.run(Thread.java:724)[:1.7.0_40]
>
> 2013-11-01 16:18:21,339 | ERROR | pool-10-thread-3 |
> ConfigurationEventHandler | config.ConfigurationEventHandler 91
> | 59 - org.apache.karaf.cellar.config - 2.3.2 | CELLAR CONFIG: failed
> | to
> update local configuration
>
> java.lang.NullPointerException
>
> at
> org.apache.karaf.cellar.config.ConfigurationEventHandler.handle(Config
> urationEventHandler.java:71)[59:org.apache.karaf.cellar.config:2.3.2]
>
> at
> org.apache.karaf.cellar.config.ConfigurationEventHandler.handle(Config
> urationEventHandler.java:36)[59:org.apache.karaf.cellar.config:2.3.2]
>
> at Proxy4caff14c_fca1_42b4_8376_3ad62394f58b.handle(Unknown
> Source)[:]
>
> at
> org.apache.karaf.cellar.core.event.EventDispatchTask.run(EventDispatch
> Task.java:57)[55:org.apache.karaf.cellar.core:2.3.2]
>
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.j
> ava:1145)[:1.7.0_40]
>
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.
> java:615)[:1.7.0_40]
>
> at java.lang.Thread.run(Thread.java:724)[:1.7.0_40]
>
> *karaf*@root>
>
> Should cellar save all the group configuration I have created before?
>
> Best Rgds,
>
> Tom
>
--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com