You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@gora.apache.org by "Lewis John McGibbney (Created) (JIRA)" <ji...@apache.org> on 2012/02/18 23:15:59 UTC
[jira] [Created] (GORA-95) Catch incorrect/missing configuration in
gora.properties files
Catch incorrect/missing configuration in gora.properties files
--------------------------------------------------------------
Key: GORA-95
URL: https://issues.apache.org/jira/browse/GORA-95
Project: Apache Gora
Issue Type: Improvement
Components: storage-cassandra, testing
Affects Versions: 0.2
Reporter: Lewis John McGibbney
Fix For: 0.3
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.
--
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