CRM and CX Blogs by Members
Find insights on SAP customer relationship management and customer experience products in blog posts from community members. Post your own perspective today!
Showing results for 
Search instead for 
Did you mean: 
0 Kudos
Hi All,

Here, am writing the blog related to the issue, which I have faced earlier, While creating a cronjob class.

The Error is:

Error creating bean with name 'Your Cronjob class name' defined in class path resource-Failed to instantiated the class:Constructor threw null pointer exception.

Nested exception is Null pointer exception.



1.If a cronjob class throws null pointer exception, then we need to define the corresponding  properties for that bean.


2.Add @Autowired in that cronjob class and define setters and getters for that particular properties.


3.Write your perform() method of that cronjob class in a try catch block.

4.Put ant clean all.

5.Once the build was success, start the server by given a command like: hybrisserver.bat