brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aled Sage (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (BROOKLYN-147) NPE loading default catalog items
Date Wed, 03 Jun 2015 09:53:50 GMT

     [ https://issues.apache.org/jira/browse/BROOKLYN-147?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Aled Sage resolved BROOKLYN-147.
--------------------------------
    Resolution: Duplicate

Duplicate of https://issues.apache.org/jira/browse/BROOKLYN-148

> NPE loading default catalog items
> ---------------------------------
>
>                 Key: BROOKLYN-147
>                 URL: https://issues.apache.org/jira/browse/BROOKLYN-147
>             Project: Brooklyn
>          Issue Type: Bug
>    Affects Versions: 0.7.0-SNAPSHOT
>            Reporter: Aled Sage
>            Priority: Critical
>
> When I do `brooklyn launch`, I get the following stdout:
> {noformat}
>  _                     _    _             
> | |__  _ __ ___   ___ | | _| |_   _ _ __ (R)
> | '_ \| '__/ _ \ / _ \| |/ / | | | | '_ \ 
> | |_) | | | (_) | (_) |   <| | |_| | | | |
> |_.__/|_|  \___/ \___/|_|\_\_|\__, |_| |_|
>                               |___/             0.7.0-SNAPSHOT
> 2015-06-01 04:32:24,179 INFO  Started Brooklyn console at http://127.0.0.1:8082/, running
classpath://brooklyn.war
> 2015-06-01 04:32:24,195 INFO  Persistence disabled
> 2015-06-01 04:32:24,195 INFO  High availability disabled
> 2015-06-01 04:32:27,876 ERROR Error loading catalog item 'brooklyn.catalog.internal.CatalogItemDo[CatalogPolicyItemDto[brooklyn.policy.ha.ServiceRestarter:0.7.0-SNAPSHOT/Service
Restarter]]': java.lang.NullPointerException: policy config
> 2015-06-01 04:32:28,004 ERROR Error loading catalog item 'brooklyn.catalog.internal.CatalogItemDo[CatalogPolicyItemDto[brooklyn.policy.autoscaling.AutoScalerPolicy:0.7.0-SNAPSHOT/Auto-scaler]]':
java.lang.NullPointerException: policy config
> 2015-06-01 04:32:28,134 ERROR Error loading catalog item 'brooklyn.catalog.internal.CatalogItemDo[CatalogPolicyItemDto[brooklyn.policy.ha.ServiceReplacer:0.7.0-SNAPSHOT/Service
Replacer]]': java.lang.NullPointerException: policy config
> 2015-06-01 04:32:28,160 ERROR Error loading catalog item 'brooklyn.catalog.internal.CatalogItemDo[CatalogPolicyItemDto[brooklyn.policy.ha.ConnectionFailureDetector:0.7.0-SNAPSHOT/Connection
Failure Detector]]': java.lang.NullPointerException: policy config
> 2015-06-01 04:32:28,190 ERROR Error loading catalog item 'brooklyn.catalog.internal.CatalogItemDo[CatalogPolicyItemDto[brooklyn.policy.ha.SshMachineFailureDetector:0.7.0-SNAPSHOT/Ssh
Connectivity Failure Detector]]': java.lang.NullPointerException: policy config
> 2015-06-01 04:32:28,463 INFO  Launched Brooklyn; will now block until shutdown command
received via GUI/API (recommended) or process interrupt.
> {noformat}
> When I go to the web-console, it warns me:
> {noformat}
> Warning!
> This Brooklyn server has errors.
> Please check with your system administrator.
> If you would like to debug the server, click here to dismiss this warning until you reload
this page. (You should reload the page once you believe the errors are fixed to confirm that
this dialog does not return.)
> {noformat}
> The debug log shows:
> {noformat}
> 2015-06-01 04:32:27,876 ERROR b.c.i.CatalogInitialization [main]: Error loading catalog
item 'brooklyn.catalog.internal.CatalogItemDo[CatalogPolicyItemDto[brooklyn.policy.ha.ServiceRestarter:0.7.0-SNAPSHOT/Service
Restarter]]': java.lang.NullPointerException: policy config
> 2015-06-01 04:32:27,877 DEBUG b.c.i.CatalogInitialization [main]: Trace for error loading
catalog item 'brooklyn.catalog.internal.CatalogItemDo[CatalogPolicyItemDto[brooklyn.policy.ha.ServiceRestarter:0.7.0-SNAPSHOT/Service
Restarter]]': java.lang.NullPointerException: policy config
> java.lang.NullPointerException: policy config
>         at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:229)
~[com.google.guava-guava-17.0.jar:na]
>         at brooklyn.catalog.internal.BasicBrooklynCatalog.createPolicySpec(BasicBrooklynCatalog.java:426)
~[org.apache.brooklyn-brooklyn-core-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
>         at brooklyn.catalog.internal.BasicBrooklynCatalog.createSpec(BasicBrooklynCatalog.java:350)
~[org.apache.brooklyn-brooklyn-core-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
>         at brooklyn.cli.Main$LaunchCommand.confirmCatalog(Main.java:636) [org.apache.brooklyn-brooklyn-cli-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
>         at brooklyn.cli.Main$LaunchCommand$1.apply(Main.java:428) [org.apache.brooklyn-brooklyn-cli-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
>         at brooklyn.cli.Main$LaunchCommand$1.apply(Main.java:418) [org.apache.brooklyn-brooklyn-cli-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
>         at brooklyn.catalog.internal.CatalogInitialization.populateViaCallbacks(CatalogInitialization.java:374)
[org.apache.brooklyn-brooklyn-core-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
>         at brooklyn.catalog.internal.CatalogInitialization.populateCatalogImpl(CatalogInitialization.java:233)
[org.apache.brooklyn-brooklyn-core-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
>         at brooklyn.catalog.internal.CatalogInitialization.populateCatalog(CatalogInitialization.java:198)
[org.apache.brooklyn-brooklyn-core-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
>         at brooklyn.launcher.BrooklynLauncher.start(BrooklynLauncher.java:604) [org.apache.brooklyn-brooklyn-launcher-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
>         at brooklyn.cli.Main$LaunchCommand.call(Main.java:455) [org.apache.brooklyn-brooklyn-cli-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
>         at brooklyn.cli.Main$LaunchCommand.call(Main.java:190) [org.apache.brooklyn-brooklyn-cli-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
>         at brooklyn.cli.AbstractMain.execCli(AbstractMain.java:222) [org.apache.brooklyn-brooklyn-cli-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
>         at brooklyn.cli.AbstractMain.execCli(AbstractMain.java:214) [org.apache.brooklyn-brooklyn-cli-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
>         at brooklyn.cli.Main.main(Main.java:117) [org.apache.brooklyn-brooklyn-cli-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
> {noformat}
> I expected no errors for any default catalog items.



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

Mime
View raw message