google-code-export / activeweb

Automatically exported from code.google.com/p/activeweb
0 stars 0 forks source link

NPE when starting up in environment without configuration #16

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
If ACTIVE_ENV is set to a value without equivalent in DbConfig, there is an NPE:

activeweb.InitException: failed to create a new instance of class: 
app.config.AppBootstrap: class java.lang.NullPointerException:null

        at java.util.Hashtable.put(Hashtable.java:394)

        at java.util.Properties.setProperty(Properties.java:143)

        at app.config.DbConfig.getTestingProperties(DbConfig.java:38)

        at app.config.DbConfig.init(DbConfig.java:17)

        at app.config.AppBootstrap.init(AppBootstrap.java:18)

        Truncated. see log file for complete stacktrace

Caused By: java.lang.NullPointerException

        at java.util.Hashtable.put(Hashtable.java:394)

        at java.util.Properties.setProperty(Properties.java:143)

        at app.config.DbConfig.getTestingProperties(DbConfig.java:38)

        at app.config.DbConfig.init(DbConfig.java:17)

        at app.config.AppBootstrap.init(AppBootstrap.java:18)

        Truncated. see log file for complete stacktrace

Original issue reported on code.google.com by ipolevoy@gmail.com on 4 May 2011 at 5:49