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 (JIRA)" <ji...@apache.org> on 2012/05/18 13:42:06 UTC

[jira] [Closed] (GORA-95) Catch incorrect mapping configurations and implement sufficient logging.

     [ https://issues.apache.org/jira/browse/GORA-95?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lewis John McGibbney closed GORA-95.
------------------------------------

    
> Catch incorrect mapping configurations and implement sufficient logging.
> ------------------------------------------------------------------------
>
>                 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
>
>         Attachments: GORA-95-v2.patch, GORA-95.patch
>
>
> 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