cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paulo Motta (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-10412) Could not initialize class org.apache.cassandra.config.DatabaseDescriptor
Date Tue, 06 Oct 2015 22:19:27 GMT


Paulo Motta commented on CASSANDRA-10412:

I think we should keep as few {{System.exit}} calls as possible spread around the code, and
{{CassandraDaemon}} already has a {{runManaged}} field to supress {{System.exit()}} on errors,
so we would be duplicating that functionality with {{DatabaseDescriptor.setEmbeddedService()}}.

I don't think {{DatabaseDescriptor}} became more difficult to use, we just need to make sure
it's used after {{DatabaseDescriptor.forceStaticInitialization()}} statement on {{CassandraDaemon.activate()}}.
Maybe we could rename this method or add a notice to {{CassandraDaemon.activate()}} to make
this more clear? Do you see any situation in which we would need to access {{DatabaseDescriptor}}
before it's initialization on {{CassandraDaemon.activate()}}?

> Could not initialize class org.apache.cassandra.config.DatabaseDescriptor
> -------------------------------------------------------------------------
>                 Key: CASSANDRA-10412
>                 URL:
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>         Environment: OS: Windows 2012 R2
> Java JRE: 1.8.0_51
>            Reporter: Eric Simmons
>            Assignee: Carl Yeksigian
>            Priority: Minor
>             Fix For: 2.2.x
>         Attachments: cassandra-env.ps1, cassandra.yaml
> We are unable to start version 2.2.1 on our Windows 2012 R2 systems, however we can use
the same environment to start version 2.1.2
> I have attached our Cassandra.yaml and cassandra-env.ps1 file for reference.  I have
also attached the system.log file displaying the error.
> I have also included an excerpt of the log file showing the stack trace of the error.
> ERROR [ScheduledTasks:1] 2015-09-29 07:03:47,482
- Error in ThreadPoolExecutor
> java.lang.NoClassDefFoundError: Could not initialize class org.apache.cassandra.config.DatabaseDescriptor
> 	at org.apache.cassandra.utils.JVMStabilityInspector.inspectThrowable(
> 	at org.apache.cassandra.concurrent.DebuggableScheduledThreadPoolExecutor$
> 	at java.util.concurrent.Executors$ Source) ~[na:1.8.0_51]
> 	at java.util.concurrent.FutureTask.runAndReset(Unknown Source) ~[na:1.8.0_51]
> 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown
Source) ~[na:1.8.0_51]
> 	at java.util.concurrent.ScheduledThreadPoolExecutor$
Source) ~[na:1.8.0_51]
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.8.0_51]
> 	at java.util.concurrent.ThreadPoolExecutor$ Source) [na:1.8.0_51]
> 	at Source) [na:1.8.0_51]

This message was sent by Atlassian JIRA

View raw message