# Exception while starting up module Report-component example

**URL:** <https://forum.inductiveautomation.com/t/exception-while-starting-up-module-report-component-example/52139>\
**Category:** Module Development\
**Tags:** ignition81\
**Created:** [October 20, 2021, 2:02am UTC](https://forum.inductiveautomation.com/t/exception-while-starting-up-module-report-component-example/52139 "2021-10-20T02:02:47Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![user9](https://avatars.discourse-cdn.com/v4/letter/u/ebca7d/32.png) [@user9](https://forum.inductiveautomation.com/u/user9)\
**Post date:** [October 20, 2021, 2:02am UTC](https://forum.inductiveautomation.com/t/exception-while-starting-up-module-report-component-example/52139/1 "2021-10-20T02:02:47Z")

</div>

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!

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/d/5d5c13ec77fb1f66235f9b15b072b5350be12755.png)

Thank you!

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [October 20, 2021, 6:48am UTC](https://forum.inductiveautomation.com/t/exception-while-starting-up-module-report-component-example/52139/2 "2021-10-20T06:48:50Z")

</div>

restart the module and look at the logs.

---

<div class="post-metadata">

**Author:** ![user9](https://avatars.discourse-cdn.com/v4/letter/u/ebca7d/32.png) [@user9](https://forum.inductiveautomation.com/u/user9)\
**Post date:** [October 20, 2021, 7:05am UTC](https://forum.inductiveautomation.com/t/exception-while-starting-up-module-report-component-example/52139/3 "2021-10-20T07:05:37Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [October 20, 2021, 7:11am UTC](https://forum.inductiveautomation.com/t/exception-while-starting-up-module-report-component-example/52139/4 "2021-10-20T07:11:35Z")

</div>

This doesnt look like a problem with ignition but with the build you made. It didnt include the class, did you do a correct import?

---

<div class="post-metadata">

**Author:** ![user9](https://avatars.discourse-cdn.com/v4/letter/u/ebca7d/32.png) [@user9](https://forum.inductiveautomation.com/u/user9)\
**Post date:** [October 20, 2021, 7:29am UTC](https://forum.inductiveautomation.com/t/exception-while-starting-up-module-report-component-example/52139/5 "2021-10-20T07:29:32Z")

</div>

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/0/a019eafea7c82ef72d6f1d9cb9060f777c683913.png)

oh, I don’t know, but I think this is successful build and correct imported.

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [October 20, 2021, 8:23am UTC](https://forum.inductiveautomation.com/t/exception-while-starting-up-module-report-component-example/52139/6 "2021-10-20T08:23:13Z")

</div>

Check if this class is in the module file.

And if you have this turned on

> [@NoClassDefFoundError - Trying to add producer to the kafka module](https://forum.inductiveautomation.com/t/noclassdeffounderror-trying-to-add-producer-to-the-kafka-module/49926/2):
>
> Don’t mistake this answer for me knowing anything about this module because I just cloned it for the first time. I’m not sure what IDE you are using, but in IntelliJ you need to enable this option on your run configuration: All of the Ignition SDK dependencies are marked as “provided” scope in the Maven pom files, which basically means “these are provided by the environment I will run in, so I need them to compile against but don’t need to package them for runtime”.

altho i would think the ignition gateway should have acces to those files anyways, weird

---

<div class="post-metadata">

**Author:** ![user9](https://avatars.discourse-cdn.com/v4/letter/u/ebca7d/32.png) [@user9](https://forum.inductiveautomation.com/u/user9)\
**Post date:** [October 20, 2021, 8:27am UTC](https://forum.inductiveautomation.com/t/exception-while-starting-up-module-report-component-example/52139/7 "2021-10-20T08:27:27Z")

</div>

Thank you so much.  
I solved this problem when I change scope from ‘provide’ to ‘compile’.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [October 20, 2021, 1:34pm UTC](https://forum.inductiveautomation.com/t/exception-while-starting-up-module-report-component-example/52139/8 "2021-10-20T13:34:23Z")

</div>

You shouldn’t use “compile” for this dependency.

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…

> <https://github.com/inductiveautomation/ignition-sdk-examples/blob/1c2dcb8d3a5282f72ab2b21cad44afdb7126a1d7/report-component/report-component-build/pom.xml#L72-L81>

---

<div class="post-metadata">

**Author:** ![user9](https://avatars.discourse-cdn.com/v4/letter/u/ebca7d/32.png) [@user9](https://forum.inductiveautomation.com/u/user9)\
**Post date:** [October 21, 2021, 2:07am UTC](https://forum.inductiveautomation.com/t/exception-while-starting-up-module-report-component-example/52139/9 "2021-10-21T02:07:21Z")

</div>

Thanks for your support!
