[
https://issues.apache.org/jira/browse/CASSANDRA-7254?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14044164#comment-14044164
]
Chris Lohfink commented on CASSANDRA-7254:
------------------------------------------
I did open a JVM ticket but hasnt gotten approved yet, I will update the ticket
with info on it. I think the agent is worth exploring or having an alternative
main class that can check the jmx port (provided as arg) to execute in
cassandra-env.sh script.
For CCM wont be a problem necessarily be a problem since the line that sets the
rmi.port is in the cassandra-env.sh script which it doesnt use.
> NPE on startup if another Cassandra instance is already running
> ---------------------------------------------------------------
>
> Key: CASSANDRA-7254
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7254
> Project: Cassandra
> Issue Type: Bug
> Components: Core
> Reporter: Tyler Hobbs
> Assignee: Chris Lohfink
> Priority: Minor
> Fix For: 2.1.0
>
>
> After CASSANDRA-7087, if you try to start cassandra while another instance is
> already running, you'll see something like this:
> {noformat}
> $ bin/cassandra -f
> Error: Exception thrown by the agent : java.lang.NullPointerException
> {noformat}
> This is probably a JVM bug, but we should confirm that, open a JVM ticket,
> and see if we can give a more useful error message on the C* side.
--
This message was sent by Atlassian JIRA
(v6.2#6252)