Hi everyone, i have a problem when i install a module example (Report-component) in “example SDK ignition”. Gateway Ignition catch exception with log “Exception while starting up module com.inductiveautomation.ignition.examples.report-component” when i import .modl file had been built by maven 3.2.
Can you solve this problem, please!
java.lang.Exception: Exception while starting up module “com.inductiveautomation.ignition.examples.report-component”.
Caused by: java.lang.NoClassDefFoundError: com/inductiveautomation/rm/shape/j2dshapes/AbstractJ2DShape
at java.base/java.lang.ClassLoader.defineClass1(Native Method)
at java.base/java.lang.ClassLoader.defineClass(Unknown Source)
at java.base/java.security.SecureClassLoader.defineClass(Unknown Source)
at java.base/java.net.URLClassLoader.defineClass(Unknown Source)
at java.base/java.net.URLClassLoader$1.run(Unknown Source)
at java.base/java.net.URLClassLoader$1.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.net.URLClassLoader.findClass(Unknown Source)
at com.inductiveautomation.ignition.gateway.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:37)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
at com.inductiveautomation.ignition.gateway.modules.ModuleClassLoader.loadClass(ModuleClassLoader.java:85)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
at com.inductiveautomation.ignition.examples.report.component.gateway.GatewayHook.startup(GatewayHook.java:23)
at com.inductiveautomation.ignition.gateway.modules.ModuleManagerImpl$LoadedModule.startup(ModuleManagerImpl.java:2434)
… 12 more
Caused by: java.lang.ClassNotFoundException: com.inductiveautomation.rm.shape.j2dshapes.AbstractJ2DShape
at java.base/java.net.URLClassLoader.findClass(Unknown Source)
at com.inductiveautomation.ignition.gateway.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:37)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
at com.inductiveautomation.ignition.gateway.modules.ModuleClassLoader.loadClass(ModuleClassLoader.java:85)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
… 26 more
8.1.10 (b2021090812)
Azul Systems, Inc. 11.0.11
I restarted module but not resolve this. Should this problem come from Ignition version?
It looks to me like the real problem is the reporting component example is still using the old module ID of the reporting module instead of the new one: com.inductiveautomation.reporting
If you change rept to com.inductiveautomation.reporting in these dependencies it should work…