Hello,
I’m working on a simple Kernel application, I get the following exception when starting the Kernel on my device:
Exception in thread "main" java.lang.ExceptionInInitializerError: java.lang.NullPointerException
at java.lang.System.getStackTrace(Unknown Source)
at java.lang.Throwable.fillInStackTrace(Throwable.java:82)
at java.lang.Throwable.<init>(Throwable.java:51)
at java.lang.Error.<init>(Error.java:26)
at java.lang.LinkageError.<init>(LinkageError.java:26)
at java.lang.ExceptionInInitializerError.<init>(ExceptionInInitializerError.java:22)
at java.lang.Thread.clinitWrapper(Thread.java:490)
at java.lang.Thread.callWrapper(Thread.java:449)
Caused by: java.lang.NullPointerException
at com.is2t.tools.ArrayTools.add(ArrayTools.java:86)
at ej.kf.Kernel.addFeatureStateListener(Kernel.java:383)
at com.is2t.bon.timer.TimerTaskListKernel.<init>(TimerTaskListKernel.java:30)
at com.is2t.bon.BONFactoryKF.newTimerTaskList(BONFactoryKF.java:32)
at ej.bon.Timer.<init>(Timer.java:107)
at ej.bon.Timer.<init>(Timer.java:87)
at com.mycompany.helloworld.Main.<clinit>(Main.java:29)
at java.lang.Thread.execClinit(Unknown Source)
at java.lang.Thread.clinitWrapper(Thread.java:483)
at java.lang.Thread.callWrapper(Thread.java:449)
Find below a snippet of my Kernel code with the faulty line:
Could you help me to figure out what is going on?
Regards,
Fabrice