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

Paulo Motta commented on CASSANDRA-10412:
-----------------------------------------

Overall looks good, but I'd rather not add the {{Config.setEmbeddedService()}} 
method only for this exit check on {{DatabaseDescriptor}} if there are 
alternatives. 

Can't we move the Windows timer period initialization to after 
{{DatabaseDescriptor.forceStaticInitialization()}} on 
{{CassandraDaemon.activate()}} ? The {{DatabaseDescriptor}} static 
initialization will be done anyway before the timer setup, so unless there's 
some nit I'm not aware of with this Windows timer period thing I don't see a 
problem with this approach. We'd still need to throw 
{{ExceptionInInitializerError}} after catching a {{ConfigurationException}} on  
{{DatabaseDescriptor.forceStaticInitialization()}}, so 
{{CassandraDaemon.activate()}} would fail and exit with a nice message after a 
configuration error.

> Could not initialize class org.apache.cassandra.config.DatabaseDescriptor
> -------------------------------------------------------------------------
>
>                 Key: CASSANDRA-10412
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-10412
>             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 
> DebuggableThreadPoolExecutor.java:242 - Error in ThreadPoolExecutor
> java.lang.NoClassDefFoundError: Could not initialize class 
> org.apache.cassandra.config.DatabaseDescriptor
>       at 
> org.apache.cassandra.utils.JVMStabilityInspector.inspectThrowable(JVMStabilityInspector.java:57)
>  ~[apache-cassandra-2.2.1.jar:2.2.1]
>       at 
> org.apache.cassandra.concurrent.DebuggableScheduledThreadPoolExecutor$UncomplainingRunnable.run(DebuggableScheduledThreadPoolExecutor.java:122)
>  ~[apache-cassandra-2.2.1.jar:2.2.1]
>       at java.util.concurrent.Executors$RunnableAdapter.call(Unknown 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$ScheduledFutureTask.run(Unknown
>  Source) ~[na:1.8.0_51]
>       at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) 
> [na:1.8.0_51]
>       at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 
> [na:1.8.0_51]
>       at java.lang.Thread.run(Unknown Source) [na:1.8.0_51]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to