You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2016/06/25 04:46:16 UTC

[jira] [Commented] (KARAF-4317) NullPointerException when adding a feature repository to a cluster

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

ASF subversion and git services commented on KARAF-4317:
--------------------------------------------------------

Commit 56228eb1780bfa93be983b0eeb0ddddd735a4725 in karaf-cellar's branch refs/heads/master from [~jbonofre]
[ https://git-wip-us.apache.org/repos/asf?p=karaf-cellar.git;h=56228eb ]

[KARAF-4317] Set install/uninstall flag to the cluster event in the local features listener


> NullPointerException when adding a feature repository to a cluster
> ------------------------------------------------------------------
>
>                 Key: KARAF-4317
>                 URL: https://issues.apache.org/jira/browse/KARAF-4317
>             Project: Karaf
>          Issue Type: Bug
>          Components: cellar-features
>            Reporter: Roland Hauser
>            Assignee: Jean-Baptiste Onofré
>             Fix For: cellar-4.0.1
>
>
> I have a cluster with 2 nodes. Both nodes have the feature listener enabled (org.apache.karaf.cellar.node.cfg / feature.listener = true).
> On node 1, I install a custom feature repository with following command:
> {{feature:repo-add  mvn:com.bechtle.terra/com.bechtle.terra.renderer.feature/LATEST/xml/features}}
> On node 2, I get a NullPointerException:
> {code}
> 2016-02-05 11:10:39,849 | ERROR | pool-50-thread-1 | RepositoryEventHandler           | 64 - org.apache.karaf.cellar.features - 4.0.0 | CELLAR FEATURE: failed to add/remove repository URL mvn:com.bechtle.terra/com.bechtle.terra.renderer.feature/LATEST/xml/features
> java.lang.NullPointerException
> 	at org.apache.karaf.cellar.features.RepositoryEventHandler.handle(RepositoryEventHandler.java:80)[64:org.apache.karaf.cellar.features:4.0.0]
> 	at org.apache.karaf.cellar.features.RepositoryEventHandler.handle(RepositoryEventHandler.java:29)[64:org.apache.karaf.cellar.features:4.0.0]
> 	at org.apache.karaf.cellar.core.event.EventDispatchTask.run(EventDispatchTask.java:57)[63:org.apache.karaf.cellar.core:4.0.0]
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)[:1.7.0_55]
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)[:1.7.0_55]
> 	at java.lang.Thread.run(Unknown Source)[:1.7.0_55]
> {code}	
> The same effect occurs when I use the dedicated cluster command:
> {{cluster:feature-repo-add default mvn:com.bechtle.terra/com.bechtle.terra.renderer.feature/LATEST/xml/features}}
> When I disable the feature listener (org.apache.karaf.cellar.node.cfg / feature.listener = false), the cluster-command
> {{cluster:feature-repo-add default mvn:com.bechtle.terra/com.bechtle.terra.renderer.feature/LATEST/xml/features}}
> works as exepected. The repository is then also available on node 2 and the feature can be installed.
> If I did something wrong, it would nevertheless be helpful if an error message would tell what caused the problem.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)