Cannot find feature entry point class

Hello,
I am trying to build a sandboxed application but when I try to run the feature on my VDE I have the following error:

=============== [ Initialization Stage ] ===============
=============== [ Converting fonts ] ===============
=============== [ Converting images ] ===============
=============== [ Launching on Simulator ] ===============
=============== [ Launch Shielded Plug server on port 10082 ] ===============
ShieldedPlug client "/127.0.0.1:61889" disconnected.
KERNEL Hello World!
=> Starting Feature MyFeature
Cannot find feature entry point class com/mycompany/MyFeature
Exception in thread "com.is2t.feature.MyFeature" java.lang.NullPointerException
	at java.lang.Throwable.fillInStackTrace(Throwable.java:82)
	at java.lang.Throwable.<init>(Throwable.java:32)
	at java.lang.Exception.<init>(Exception.java:14)
	at java.lang.RuntimeException.<init>(RuntimeException.java:14)
	at java.lang.NullPointerException.<init>(NullPointerException.java:6)
	at ej.kf.Feature.initEntryPoint(Feature.java:196)
	at ej.kf.Kernel$2.run(Kernel.java:220)
	at java.lang.Thread.run(Thread.java:325)
	at java.lang.Thread.runWrapper(Thread.java:387)

What is going on?
Thank you.

Hello Medhi,

The error says that the kernel can not find the feature MyFeature. The kernel looks for the feature described in the file feature.kf located in src/main/resources/.

Check that the feature entry point described in feature.kf matches that of your feature.
Also, you may try to build the .fo (see Run on the Device) to see what happens.

Best,

1 Like

Thank you!

Indeed I had renamed my feature with the refactor tool but it didn’t update the feature.kf file. After I’ve updated the feature.kf entry point, everything works as expected.

Thanks for the tips to run on the device, the error is a bit clearer yes:

1 : SOAR ERROR [feature.kf]
	[M51] - Class com.mycompany.MyFeature not found (class is referenced by the file ...\MySandboxedApp\bin/feature.kf).