Uploaded image for project: 'Apache Gora'
  1. Apache Gora
  2. GORA-95

Catch incorrect mapping configurations and implement sufficient logging.

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.2
    • Fix Version/s: 0.3
    • Component/s: gora-cassandra, testing
    • Labels:
      None

      Description

      Whilst (pulling my hair out) writing the cassandra test suite, after many failing tests and some debugging I noticed that, under many InvocationTargetException's, CassandraMapping#loadConfiguration() throws the following

      Caused by: java.lang.NullPointerException
      at org.apache.gora.cassandra.store.CassandraMapping.loadConfiguration(CassandraMapping.java:100)
      at org.apache.gora.cassandra.store.CassandraClient.init(CassandraClient.java:66)
      at org.apache.gora.cassandra.store.CassandraStore.<init>(CassandraStore.java:72)
      ... 43 more

      when it cannot load the correct configuration from gora.properties. I know it is not great practice to put the while method in a try catch block so would be good to work towards a better solution.

        Attachments

        1. GORA-95.patch
          4 kB
          Lewis John McGibbney
        2. GORA-95-v2.patch
          4 kB
          Lewis John McGibbney

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              lewismc Lewis John McGibbney
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: