As this was my first post to this forum, I wonder if someone would reply
to it if only to prove to myself that I've not posted to //dev/null/ as
it were even if there's no answer or the question is stupid, etc. (Note:
I am getting other forum posts, but maybe what I've posted didn't reach
the forum?)
Profuse thanks,
Russ
On 08/18/2017 05:49 PM, Russell Bateman wrote:
Cassandra version 3.9, -unit version 3.1.3.2.
In my (first ever) unit test, I've coded:
@BeforeClass public static void initFakeCassandra() throws
InterruptedException, IOException, TTransportException
{
EmbeddedCassandraServerHelper.startEmbeddedCassandra( 20000L );
}
Execution crashes down inside at
at org.apache.cassandra.transport.Server.start(Server.java:128)
at java.util.Collections$SingletonSet.forEach(Collections.java:4767)
at
org.apache.cassandra.service.NativeTransportService.start(NativeTransportService.java:128)
at
org.apache.cassandra.service.CassandraDaemon.startNativeTransport(CassandraDaemon.java:649)
at
org.apache.cassandra.service.CassandraDaemon.start(CassandraDaemon.java:511)
at
org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:616)
at
org.cassandraunit.utils.EmbeddedCassandraServerHelper$1.run(EmbeddedCassandraServerHelper.java:129)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NullPointerException: name
at
io.netty.util.internal.logging.AbstractInternalLogger.<init>(AbstractInternalLogger.java:39)
at
io.netty.util.internal.logging.Slf4JLogger.<init>(Slf4JLogger.java:30)
at
io.netty.util.internal.logging.Slf4JLoggerFactory.newInstance(Slf4JLoggerFactory.java:73)
at
io.netty.util.internal.logging.InternalLoggerFactory.getInstance(InternalLoggerFactory.java:84)
at
io.netty.util.internal.logging.InternalLoggerFactory.getInstance(InternalLoggerFactory.java:77)
at
io.netty.bootstrap.ServerBootstrap.<clinit>(ServerBootstrap.java:46)
... 10 more
I am following the tutorial at Baeldung. Not sure where to go from
here. Stackoverflow response
<https://stackoverflow.com/questions/33514745/cassandra-startup-failed-with-exception-exception-encountered-during-startup>
was not helpful to me, I probably don't know enough yet.
Thanks.