Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-13592

Null Pointer exception at SELECT JSON statement

    XMLWordPrintableJSON

    Details

    • Bug Category:
      Correctness - API / Semantic Implementation
    • Severity:
      Normal

      Description

      A Nulll pointer exception appears when the command

      SELECT JSON * FROM examples.basic;
      
      ---MORE---
      <Error from server: code=0000 [Server error] message="java.lang.NullPointerException">
      
      Examples.basic has the following description (DESC examples.basic;):
      CREATE TABLE examples.basic (
          key frozen<tuple<uuid, int>> PRIMARY KEY,
          wert text
      ) WITH bloom_filter_fp_chance = 0.01
          AND caching = {'keys': 'ALL', 'rows_per_partition': 'NONE'}
          AND comment = ''
          AND compaction = {'class': 'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy', 'max_threshold': '32', 'min_threshold': '4'}
          AND compression = {'chunk_length_in_kb': '64', 'class': 'org.apache.cassandra.io.compress.LZ4Compressor'}
          AND crc_check_chance = 1.0
          AND dclocal_read_repair_chance = 0.1
          AND default_time_to_live = 0
          AND gc_grace_seconds = 864000
          AND max_index_interval = 2048
          AND memtable_flush_period_in_ms = 0
          AND min_index_interval = 128
          AND read_repair_chance = 0.0
          AND speculative_retry = '99PERCENTILE';
      

      The error appears after the --MORE-- line.

      The field "wert" has a JSON formatted string.

        Attachments

        1. system.log
          3.01 MB
          Wyss Philipp

          Activity

            People

            • Assignee:
              jasonstack Zhao Yang
              Reporter:
              panibus Wyss Philipp
              Authors:
              Zhao Yang
              Reviewers:
              Benjamin Lerer
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: