michaelklishin / quartz-mongodb

A MongoDB-based store for the Quartz scheduler. This fork strives to be as feature complete as possible. Originally by MuleSoft.
Other
248 stars 203 forks source link

Following error showing up #98

Closed arpitrajpurohit12 closed 9 years ago

arpitrajpurohit12 commented 9 years ago

Sorry for the incomplete info in the previous question asked-

Following is quartz.properties :

org.quartz.jobStore.class=com.novemberain.quartz.mongodb.MongoDBJobStore org.quartz.jobStore.mongoUri=mongodb://localhost:27020 org.quartz.jobStore.dbName=quartz org.quartz.jobStore.collectionPrefix=mycol org.quartz.threadPool.threadCount=1 org.quartz.jobStore.isClustered = false

Following error I get :

JobStore class 'com.novemberain.quartz.mongodb.MongoDBJobStore' props could not be configured.Exception in thread "main" java.lang.NullPointerException.

"Its from line 883 of StdSchedulerFactory"

Following is the constructor :

public CScheduler() throws SchedulerException{ properties=new Properties(); InputStream stream= getClass().getClassLoader().getResourceAsStream(propertiesFile); try{ properties.load(stream); } catch(Exception e) { System.out.println("Exception:"+e); } SchedulerFactory sf = new StdSchedulerFactory(properties); this.scheduler=sf.getScheduler(); }

michaelklishin commented 9 years ago

The exception comes from Quartz itself. This strongly suggests a misconfiguration.