[ https://issues.apache.org/jira/browse/CASSANDRA-3939?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13212940#comment-13212940 ]
Brandon Williams commented on CASSANDRA-3939: --------------------------------------------- +1 > occasional failure of CliTest > ----------------------------- > > Key: CASSANDRA-3939 > URL: https://issues.apache.org/jira/browse/CASSANDRA-3939 > Project: Cassandra > Issue Type: Bug > Components: Tests > Affects Versions: 1.0.7 > Reporter: Eric Evans > Assignee: Eric Evans > Priority: Minor > Fix For: 1.0.8 > > Attachments: > v1-0001-CASSANDRA-3939-properly-initialize-CliSessionState.sch.txt > > > {{CliTest}} will occasionally fail with an NPE. > {noformat} > [junit] Testcase: testCli(org.apache.cassandra.cli.CliTest): Caused an ERROR > [junit] java.lang.NullPointerException > [junit] java.lang.RuntimeException: java.lang.NullPointerException > [junit] at > org.apache.cassandra.cli.CliClient.executeAddColumnFamily(CliClient.java:1039) > [junit] at > org.apache.cassandra.cli.CliClient.executeCLIStatement(CliClient.java:228) > [junit] at > org.apache.cassandra.cli.CliMain.processStatement(CliMain.java:213) > [junit] at org.apache.cassandra.cli.CliTest.testCli(CliTest.java:241) > [junit] Caused by: java.lang.NullPointerException > [junit] at > org.apache.cassandra.cli.CliClient.validateSchemaIsSettled(CliClient.java:2855) > [junit] at > org.apache.cassandra.cli.CliClient.executeAddColumnFamily(CliClient.java:1030) > {noformat} > This occurs because no default for {{schema_mwt}} is applied unless > {{main()}} is invoked. > (Trivial )patch to follow. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira