Hi Ryan,

I am new to Dropwizard. Can you point out what are those configuration that 
is being passed to my hibernate bundle? 

This is my code for my hibernatebundle:
private final HibernateBundle<TardisConfiguration> hibernate = new 
ScanningHibernateBundle<TardisConfiguration>(new String[] {
"com.my.package.hibernateEntities"}, new SessionFactoryFactory())
{
public DataSourceFactory getDataSourceFactory(TardisConfiguration 
configuration)
{
return configuration.getDatabase();
}
};

Thanks

On Friday, August 6, 2021 at 8:48:20 AM UTC+8 [email protected] wrote:

> If I had to guess, some piece of configuration passed to your hibernate 
> bundle has a null value in it:
>
>
> https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ConcurrentHashMap.html#put-K-V-
>
> Ryan
>
> On Thu, Aug 5, 2021 at 4:34 PM Dondell Batac <[email protected]> wrote:
>
>> I have issue when running the application. 
>>
>> I don't have clue which causes this issue.
>>
>> java.lang.NullPointerException
>>     at 
>> java.base/java.util.concurrent.ConcurrentHashMap.putVal(ConcurrentHashMap.java:1011)
>>     at 
>> java.base/java.util.concurrent.ConcurrentHashMap.put(ConcurrentHashMap.java:1006)
>>     at java.base/java.util.Properties.put(Properties.java:1334)
>>     at java.base/java.util.Properties.setProperty(Properties.java:229)
>>     at 
>> io.dropwizard.db.DataSourceFactory.build(DataSourceFactory.java:872)
>>     at 
>> io.dropwizard.hibernate.SessionFactoryFactory.build(SessionFactoryFactory.java:40)
>>     at 
>> io.dropwizard.hibernate.HibernateBundle.run(HibernateBundle.java:74)
>>     at io.dropwizard.setup.Bootstrap.run(Bootstrap.java:183)
>>     at 
>> io.dropwizard.cli.EnvironmentCommand.run(EnvironmentCommand.java:43)
>>     at io.dropwizard.cli.ConfiguredCommand.run(ConfiguredCommand.java:87)
>>     at io.dropwizard.cli.Cli.run(Cli.java:79)
>>     at io.dropwizard.Application.run(Application.java:94)
>>     at 
>> com.fulcrumgt.tardis.TardisApplication.main(TardisApplication.java:87)
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "dropwizard-user" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected].
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/dropwizard-user/f21b8bac-a2fb-47cb-b99a-e9cdf8892f2an%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/dropwizard-user/f21b8bac-a2fb-47cb-b99a-e9cdf8892f2an%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"dropwizard-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dropwizard-user/7843d7fd-8729-484b-a031-22ba0d355517n%40googlegroups.com.

Reply via email to