brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (BROOKLYN-491) IndexOutOfBoundsException parsing blobstore location definition "aws-s3"
Date Tue, 25 Apr 2017 20:58:04 GMT

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

ASF GitHub Bot commented on BROOKLYN-491:
-----------------------------------------

GitHub user aledsage opened a pull request:

    https://github.com/apache/brooklyn-server/pull/653

    BROOKLYN-491: fix named jcloudsLocation

    See https://issues.apache.org/jira/browse/BROOKLYN-491

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/aledsage/brooklyn-server BROOKLYN-491

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/brooklyn-server/pull/653.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #653
    
----
commit 54d48b110006e4a6201758bee20cda2e353f2049
Author: Aled Sage <aled.sage@gmail.com>
Date:   2017-04-25T20:55:38Z

    BROOKLYN-491: fix named jcloudsLocation

----


> IndexOutOfBoundsException parsing blobstore location definition "aws-s3"
> ------------------------------------------------------------------------
>
>                 Key: BROOKLYN-491
>                 URL: https://issues.apache.org/jira/browse/BROOKLYN-491
>             Project: Brooklyn
>          Issue Type: Bug
>            Reporter: Aled Sage
>            Priority: Minor
>
> With Brooklyn 0.11.0-rc2, in my {{brooklyn.cfg}} I had the following blobstore location
defined:
> {noformat}
> brooklyn.location.named.my-s3=aws-s3
> brooklyn.location.named.my-s3.region=eu-west-1
> brooklyn.location.named.my-s3.identity=********************
> brooklyn.location.named.my-s3.credential==********************=******************
> {noformat}
> And in my {{org.apache.brooklyn.osgilauncher.cfg}} I had {{persistenceLocation=my-s3}}.
> However, when I started Brooklyn it failed with the error shown below:
> {noformat}
> Caused by: java.lang.IndexOutOfBoundsException: position (1) must be less than the number
of elements that remained (1)
>         at com.google.common.collect.Iterators.get(Iterators.java:818)
>         at com.google.common.collect.Iterables.get(Iterables.java:728)
>         at org.apache.brooklyn.location.jclouds.JcloudsPropertiesFromBrooklynProperties.getProviderFromDefinition(JcloudsPropertiesFromBrooklynProperties.java:130)
>         at org.apache.brooklyn.location.jclouds.JcloudsPropertiesFromBrooklynProperties.getProviderName(JcloudsPropertiesFromBrooklynProperties.java:113)
>         at org.apache.brooklyn.location.jclouds.JcloudsPropertiesFromBrooklynProperties.getJcloudsProperties(JcloudsPropertiesFromBrooklynProperties.java:91)
>         at org.apache.brooklyn.location.jclouds.JcloudsLocationResolver.newLocationSpecFromString(JcloudsLocationResolver.java:156)
>         at org.apache.brooklyn.core.location.BasicLocationRegistry.getLocationSpec(BasicLocationRegistry.java:375)[120:org.apache.brooklyn.core:0.11.0.20170316_1432]
>         at org.apache.brooklyn.core.location.BasicLocationRegistry.getLocationSpec(BasicLocationRegistry.java:350)[120:org.apache.brooklyn.core:0.11.0.20170316_1432]
>         at org.apache.brooklyn.core.location.NamedLocationResolver.newLocationSpecFromString(NamedLocationResolver.java:85)[120:org.apache.brooklyn.core:0.11.0.20170316_1432]
>         at org.apache.brooklyn.core.location.BasicLocationRegistry.getLocationSpec(BasicLocationRegistry.java:375)[120:org.apache.brooklyn.core:0.11.0.20170316_1432]
>         at org.apache.brooklyn.core.location.BasicLocationRegistry.getLocationSpec(BasicLocationRegistry.java:355)[120:org.apache.brooklyn.core:0.11.0.20170316_1432]
>         at org.apache.brooklyn.core.mgmt.persist.BrooklynPersistenceUtils.newPersistenceObjectStore(BrooklynPersistenceUtils.java:87)
>         at org.apache.brooklyn.launcher.common.BasicLauncher.initPersistence(BasicLauncher.java:581)
>         ... 48 more
> {noformat}
> ---
> A workaround is to use {{brooklyn.location.named.my-s3=jclouds:aws-s3}}, or to in-line
the region like {{brooklyn.location.named.my-s3=aws-s3:eu-west-1}}.



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

Mime
View raw message