Algolia 1.12.3 Integration with my old Java 1.7 project

I’m using following java code to integrate algolia into my project

public class AlgoIndexes {

	APIClient algoClient = new APIClient("1JE4EJD5MM","xxxxxxxx");
	Index index = algoClient.initIndex("dev_content");


public String insertDataToAlgo(JSONObject data) {

	try {
		JSONObject insertStat = index.addObject(data);
		return insertStat.toString();
	} catch (AlgoliaException e) {
		e.printStackTrace();
	}
	return null;
}

}

Caused by: java.lang.ExceptionInInitializerError: null
at tv.myplex.services.backoffice.AlgoIndexes.insertDataToAlgo(AlgoIndexes.java:18) ~[content-store-logic-1.0-SNAPSHOT.jar:na]
at tv.myplex.services.search.ContentSearchDao.reindexAll(ContentSearchDao.java:170) ~[content-store-logic-1.0-SNAPSHOT.jar:na]
at tv.myplex.services.backoffice.ContentUpdateService.reindexAllWithDrop(ContentUpdateService.java:151) ~[content-store-logic-1.0-SNAPSHOT.jar:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_181]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_181]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_181]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_181]

<dependency>
	    <groupId>com.algolia</groupId>
	    <artifactId>algoliasearch</artifactId>
	    <version>1.12.3</version>
	</dependency>

Not sure if this starter error with setup. Please help!!

Please don’t ever share your Admin key which allows anyone to send operations to your Algolia index. Please go to your dashboard to regenerate your key. This will invalidate this one.

Unfortunalutely, I can’t see what the problem is. Can you debug further and let us know what you find?