karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré (JIRA) <j...@apache.org>
Subject [jira] [Commented] (KARAF-4909) NullPointerException in BundleSynchronizer.getSyncPolicy
Date Wed, 19 Apr 2017 09:25:41 GMT

    [ https://issues.apache.org/jira/browse/KARAF-4909?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15974375#comment-15974375
] 

Jean-Baptiste Onofré commented on KARAF-4909:
---------------------------------------------

I add a test to prevent the NPE, but it means you don't have the property:

{code}
group.bundle.sync=cluster
{code}

in the {{org.apache.karaf.cellar.groups.cfg}} file.

> NullPointerException in BundleSynchronizer.getSyncPolicy
> --------------------------------------------------------
>
>                 Key: KARAF-4909
>                 URL: https://issues.apache.org/jira/browse/KARAF-4909
>             Project: Karaf
>          Issue Type: Bug
>          Components: cellar-bundle
>    Affects Versions: cellar-4.0.3
>            Reporter: Roland Hauser
>            Assignee: Jean-Baptiste Onofré
>             Fix For: cellar-4.0.4, cellar-4.1.0
>
>
> 2016-12-27 13:05:00,239 | INFO  | 3]-nio2-thread-8 | ChannelSession                 
 | 161 - org.apache.sshd.core - 0.14.0 | Executing command: cluster:group-join 5fe8a639-a123-4f59-b384-7a1ecfa9bd98

> 2016-12-27 13:05:00,668 | ERROR | pool-39-thread-1 | EventDispatchTask              
 | 91 - org.apache.karaf.cellar.core - 4.0.3 | Error while dispatching task
> java.lang.NullPointerException
> 	at org.apache.karaf.cellar.bundle.BundleSynchronizer.getSyncPolicy(BundleSynchronizer.java:338)[89:org.apache.karaf.cellar.bundle:4.0.3]
> 	at org.apache.karaf.cellar.bundle.BundleSynchronizer.sync(BundleSynchronizer.java:82)[89:org.apache.karaf.cellar.bundle:4.0.3]
> 	at org.apache.karaf.cellar.hazelcast.HazelcastGroupManager.registerGroup(HazelcastGroupManager.java:405)[93:org.apache.karaf.cellar.hazelcast:4.0.3]
> 	at org.apache.karaf.cellar.core.control.ManageGroupCommandHandler.joinGroup(ManageGroupCommandHandler.java:91)[91:org.apache.karaf.cellar.core:4.0.3]
> 	at org.apache.karaf.cellar.core.control.ManageGroupCommandHandler.execute(ManageGroupCommandHandler.java:41)[91:org.apache.karaf.cellar.core:4.0.3]
> 	at org.apache.karaf.cellar.core.control.ManageGroupCommandHandler.execute(ManageGroupCommandHandler.java:27)[91:org.apache.karaf.cellar.core:4.0.3]
> 	at org.apache.karaf.cellar.core.command.CommandHandler.handle(CommandHandler.java:40)[91:org.apache.karaf.cellar.core:4.0.3]
> 	at org.apache.karaf.cellar.core.command.CommandHandler.handle(CommandHandler.java:28)[91:org.apache.karaf.cellar.core:4.0.3]
> 	at org.apache.karaf.cellar.core.event.EventDispatchTask.run(EventDispatchTask.java:67)[91:org.apache.karaf.cellar.core:4.0.3]
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_112]
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_112]
> 	at java.lang.Thread.run(Thread.java:745)[:1.8.0_112]



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message