MicroUI: Generic event generator classname is unknown


I’m working on implementing a custom event generator in my Platform. I edited the microui.xml file of my Platform to add it.

An exception is now showing up when I’m starting my UI application in simulation. Here is the exception stack trace:

=============== [ Initialization Stage ] ===============
=============== [ Converting fonts ] ===============
=============== [ Converting images ] ===============
=============== [ Launching on Simulator ] ===============
Exception in thread "main" ej.microui.MicroUIException: MicroUI: Generic event generator classname is unknown. Please check your classpath to add the expected class.
	at java.lang.Throwable.fillInStackTrace(Throwable.java:82)
	at java.lang.Throwable.<init>(Throwable.java:37)
	at java.lang.Exception.<init>(Exception.java:18)
	at java.lang.RuntimeException.<init>(RuntimeException.java:18)
	at ej.microui.MicroUIException.<init>(MicroUIException.java:93)
	at ej.microui.SystemMicroUI.newGenericEventGenerator(SystemMicroUI.java:61)
	at ej.microui.SystemMicroUIImpl.init(SystemMicroUIImpl.java:38)
	at ej.microui.MicroUIFactory.start(MicroUIFactory.java:84)
	at ej.microui.MicroUI.start(MicroUI.java:59)
	at com.microej.example.foundation.microui.mvc.ExampleMVC.main(ExampleMVC.java:22)
	at java.lang.MainThread.run(Thread.java:914)
	at java.lang.Thread.runWrapper(Thread.java:387)

What did I miss?



Hello Fabrice,

This exception shows up when the event generator is not available in the application classpath. All events sent by the BSP to this event generator are ignored as it is not available.

Please find below documentation to setup generic event generators:



I added the event generator inside my application, the issue is gone now.