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) {
	return null;


Caused by: java.lang.ExceptionInInitializerError: null
at ~[content-store-logic-1.0-SNAPSHOT.jar:na]
at ~[content-store-logic-1.0-SNAPSHOT.jar:na]
at ~[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( ~[na:1.8.0_181]
at sun.reflect.DelegatingMethodAccessorImpl.invoke( ~[na:1.8.0_181]
at java.lang.reflect.Method.invoke( ~[na:1.8.0_181]


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?