org.apache.cassandra.config.Config; exception=Cannot create property=seed_provider for JavaBean=org.apache.c assandra.config.Config@3f9f3736; java.lang.reflect.InvocationTargetException

380 views
Skip to first unread message

vveludan

unread,
Sep 10, 2012, 3:26:46 PM9/10/12
to lucand...@googlegroups.com
Hi I am trying to run solandra. cassandra.yaml has the following set:

seed_provider:

    # Addresses of hosts that are deemed contact points.

    # Cassandra nodes use this list of hosts to find each other and learn

    # the topology of the ring.  You must change this if you are running

    # multiple nodes!

    - class_name: org.apache.cassandra.locator.SimpleSeedProvider

      parameters:

          # seeds is actually a comma-delimited list of addresses.

          # Ex: "<ip1>,<ip2>,<ip3>"

          - seeds: "127.0.0.1

when I solandra I get the following exception:
ERROR 15:18:41,814 Fatal configuration error error
Can't construct a java object for tag:yaml.org,2002:org.apache.cassandra.config.Config; exception=Cannot create property=seed_provider for JavaBean=org.apache.c
assandra.config.Config@3f9f3736; java.lang.reflect.InvocationTargetException
in "<reader>", line 3, column 1:
    cluster_name: Solandra Cluster
    ^

        at org.yaml.snakeyaml.constructor.Constructor$ConstructYamlObject.construct(Constructor.java:372)
        at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:177)
        at org.yaml.snakeyaml.constructor.BaseConstructor.constructDocument(BaseConstructor.java:136)
        at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:122)
        at org.yaml.snakeyaml.Loader.load(Loader.java:52)
        at org.yaml.snakeyaml.Yaml.load(Yaml.java:166)
        at org.apache.cassandra.config.DatabaseDescriptor.loadYaml(DatabaseDescriptor.java:142)
        at org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescriptor.java:117)
        at org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassandraDaemon.java:126)
        at org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCassandraDaemon.java:353)
        at lucandra.CassandraUtils$1.run(CassandraUtils.java:267)
        at java.lang.Thread.run(Thread.java:619)
Caused by: org.yaml.snakeyaml.error.YAMLException: Cannot create property=seed_provider for JavaBean=org.apache.cassandra.config.Config@3f9f3736; java.lang.refl
ect.InvocationTargetException
        at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:305)
        at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.construct(Constructor.java:184)
        at org.yaml.snakeyaml.constructor.Constructor$ConstructYamlObject.construct(Constructor.java:370)
        ... 11 more
Caused by: org.yaml.snakeyaml.error.YAMLException: java.lang.reflect.InvocationTargetException
        at org.yaml.snakeyaml.constructor.Constructor$ConstructSequence.construct(Constructor.java:589)
        at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:177)
        at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:298)
        ... 13 more
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at org.yaml.snakeyaml.constructor.Constructor$ConstructSequence.construct(Constructor.java:587)
        ... 15 more
Caused by: java.lang.NullPointerException
        at org.apache.cassandra.config.SeedProviderDef.<init>(SeedProviderDef.java:34)
        ... 20 more
null; Can't construct a java object for tag:yaml.org,2002:org.apache.cassandra.config.Config; exception=Cannot create property=seed_provider for JavaBean=org.ap
ache.cassandra.config.Config@3f9f3736; java.lang.reflect.InvocationTargetException
Invalid yaml; unable to start server.  See log for stacktrace.

Could you please let me know how could I get over this problem.

Thanks
Venkat
Reply all
Reply to author
Forward
0 new messages