question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cassandra fails on runAll command

See original GitHub issue

Lagom Version (2.5.x / etc)

1.1 Activator 1.3.10

API (Scala / Java / Neither / Both)

Java

Operating System (Ubuntu 15.10 / MacOS 10.10 / Windows 10)

MacOS 10.11.6

JDK (Oracle 1.8.0_72, OpenJDK 1.8.x, Azul Zing)

1.8.0_66

When I try runAll command. Project fails to start services. Error is about cassandra. Command prints the log below:

[info] Starting embedded Cassandra server
.......Exception (java.lang.NullPointerException) encountered during startup: null
2016-09-06 12:55:06,990 ERROR org.apache.cassandra.service.CassandraDaemon - Exception encountered during startup
java.lang.NullPointerException: null
    at org.apache.cassandra.db.RowUpdateBuilder.builder(RowUpdateBuilder.java:118) ~[cassandra-all-3.0.2.jar:3.0.2]
    at org.apache.cassandra.db.RowUpdateBuilder.add(RowUpdateBuilder.java:287) ~[cassandra-all-3.0.2.jar:3.0.2]
    at org.apache.cassandra.db.RowUpdateBuilder.add(RowUpdateBuilder.java:274) ~[cassandra-all-3.0.2.jar:3.0.2]
    at org.apache.cassandra.schema.SchemaKeyspace.makeCreateKeyspaceMutation(SchemaKeyspace.java:389) ~[cassandra-all-3.0.2.jar:3.0.2]
    at org.apache.cassandra.schema.SchemaKeyspace.makeCreateKeyspaceMutation(SchemaKeyspace.java:396) ~[cassandra-all-3.0.2.jar:3.0.2]
    at org.apache.cassandra.schema.SchemaKeyspace.saveSystemKeyspacesSchema(SchemaKeyspace.java:267) ~[cassandra-all-3.0.2.jar:3.0.2]
    at org.apache.cassandra.db.SystemKeyspace.finishStartup(SystemKeyspace.java:469) ~[cassandra-all-3.0.2.jar:3.0.2]
    at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:327) ~[cassandra-all-3.0.2.jar:3.0.2]
    at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:549) ~[cassandra-all-3.0.2.jar:3.0.2]
    at akka.persistence.cassandra.testkit.CassandraLauncher$.start(CassandraLauncher.scala:113) [akka-persistence-cassandra_2.11-0.13.jar:0.13]
    at akka.persistence.cassandra.testkit.CassandraLauncher$.main(CassandraLauncher.scala:56) [akka-persistence-cassandra_2.11-0.13.jar:0.13]
    at akka.persistence.cassandra.testkit.CassandraLauncher.main(CassandraLauncher.scala) [akka-persistence-cassandra_2.11-0.13.jar:0.13]
java.lang.NullPointerException
    at org.apache.cassandra.db.RowUpdateBuilder.builder(RowUpdateBuilder.java:118)
    at org.apache.cassandra.db.RowUpdateBuilder.add(RowUpdateBuilder.java:287)
    at org.apache.cassandra.db.RowUpdateBuilder.add(RowUpdateBuilder.java:274)
    at org.apache.cassandra.schema.SchemaKeyspace.makeCreateKeyspaceMutation(SchemaKeyspace.java:389)
    at org.apache.cassandra.schema.SchemaKeyspace.makeCreateKeyspaceMutation(SchemaKeyspace.java:396)
    at org.apache.cassandra.schema.SchemaKeyspace.saveSystemKeyspacesSchema(SchemaKeyspace.java:267)
    at org.apache.cassandra.db.SystemKeyspace.finishStartup(SystemKeyspace.java:469)
    at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:327)
    at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:549)
    at akka.persistence.cassandra.testkit.CassandraLauncher$.start(CassandraLauncher.scala:113)
    at akka.persistence.cassandra.testkit.CassandraLauncher$.main(CassandraLauncher.scala:56)
    at akka.persistence.cassandra.testkit.CassandraLauncher.main(CassandraLauncher.scala)
2016-09-06 12:55:06,994 ERROR org.apache.cassandra.service.CassandraDaemon - Exception in thread Thread[main,5,main]
java.lang.RuntimeException: Exception encountered during startup
    at org.apache.cassandra.service.CassandraDaemon.exitOrFail(CassandraDaemon.java:686) ~[cassandra-all-3.0.2.jar:3.0.2]
    at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:579) ~[cassandra-all-3.0.2.jar:3.0.2]
    at akka.persistence.cassandra.testkit.CassandraLauncher$.start(CassandraLauncher.scala:113) ~[akka-persistence-cassandra_2.11-0.13.jar:0.13]
    at akka.persistence.cassandra.testkit.CassandraLauncher$.main(CassandraLauncher.scala:56) ~[akka-persistence-cassandra_2.11-0.13.jar:0.13]
    at akka.persistence.cassandra.testkit.CassandraLauncher.main(CassandraLauncher.scala) ~[akka-persistence-cassandra_2.11-0.13.jar:0.13]
Caused by: java.lang.NullPointerException: null
    at org.apache.cassandra.db.RowUpdateBuilder.builder(RowUpdateBuilder.java:118) ~[cassandra-all-3.0.2.jar:3.0.2]
    at org.apache.cassandra.db.RowUpdateBuilder.add(RowUpdateBuilder.java:287) ~[cassandra-all-3.0.2.jar:3.0.2]
    at org.apache.cassandra.db.RowUpdateBuilder.add(RowUpdateBuilder.java:274) ~[cassandra-all-3.0.2.jar:3.0.2]
    at org.apache.cassandra.schema.SchemaKeyspace.makeCreateKeyspaceMutation(SchemaKeyspace.java:389) ~[cassandra-all-3.0.2.jar:3.0.2]
    at org.apache.cassandra.schema.SchemaKeyspace.makeCreateKeyspaceMutation(SchemaKeyspace.java:396) ~[cassandra-all-3.0.2.jar:3.0.2]
    at org.apache.cassandra.schema.SchemaKeyspace.saveSystemKeyspacesSchema(SchemaKeyspace.java:267) ~[cassandra-all-3.0.2.jar:3.0.2]
    at org.apache.cassandra.db.SystemKeyspace.finishStartup(SystemKeyspace.java:469) ~[cassandra-all-3.0.2.jar:3.0.2]
    at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:327) ~[cassandra-all-3.0.2.jar:3.0.2]
    at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:549) ~[cassandra-all-3.0.2.jar:3.0.2]
    ... 3 common frames omitted
................................
[info] Cassandra server is not yet started.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:27 (15 by maintainers)

github_iconTop GitHub Comments

2reactions
TimMoorecommented, Mar 31, 2017

One more thing to try: @Kml55 can you try to download and run Cassandra 3.0.9 from http://archive.apache.org/dist/cassandra/3.0.9/ (documentation).

I’m curious whether the standard distribution also fails in your environment or if it’s something specific to the way Lagom runs it.

2reactions
TimMoorecommented, Mar 22, 2017

@jonjack, @ignasi35 you’ve discovered a problem with the change I recently made to the templates to add an explicit keyspace configuration to application.conf. Thanks for finding the bug! 🐛

I’ve raised issues lagom/lagom-java.g8#6 and lagom/lagom-scala.g8#5 to fix the templates to deal with hyphens. You can also fix it manually by editing application.conf after creating the project and removing the hyphens from the keyspace name (or change hyphens to underscores, which are valid).

This isn’t the same problem that @Kml55 reported, which predates the change to the templates.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Running remote cqlsh to execute commands on ...
I have installed DataStax Apache Cassandra on this new Windows machine, and I want to be able to run all the CQL commands...
Read more >
Testing - Apache Cassandra
Beyond running specific tests you know are applicable, or are failing, to the work at hand, it is recommended to rely upon the...
Read more >
Getting NoSuchMethodError running cassandra-unit ...
So I'm using "cassandra-unit" , The problem that I could run all my tests from ... Embedded cassandra failed to restart due to...
Read more >
MongoDB: The Mongo Shell & Basic Commands
Run all MongoDB queries from the Mongo shell. ... Print error messages, so you know what went wrong with your commands.
Read more >
Cannot connect to a database | IntelliJ IDEA Documentation
Open a command line and type the following command: ping -a ... The SSL connection fails if the server certificate cannot be verified....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found