# Getting an error on module upload, any suggestions

**URL:** <https://forum.inductiveautomation.com/t/getting-an-error-on-module-upload-any-suggestions/46205>\
**Category:** Module Development\
**Tags:** ignition79\
**Created:** [April 30, 2021, 2:52pm UTC](https://forum.inductiveautomation.com/t/getting-an-error-on-module-upload-any-suggestions/46205 "2021-04-30T14:52:12Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![rkumar](https://avatars.discourse-cdn.com/v4/letter/r/4491bb/32.png) [@rkumar](https://forum.inductiveautomation.com/u/rkumar)\
**Post date:** [April 30, 2021, 2:52pm UTC](https://forum.inductiveautomation.com/t/getting-an-error-on-module-upload-any-suggestions/46205/1 "2021-04-30T14:52:12Z")

</div>

Hello,

We have created a module and while uploading it in Ignition below is the Warning coming in the gateway logger:

java.util.MissingResourceException: Can’t find bundle for base name path/AbstractScriptModule, locale en\_US

We have created other modules with the exact same structure and never faced this issue. AbstractScriptModule is also created for this module and we are able to see help on click of ctrl + spacebar from Ignition.

Although this is a warning but this keeps coming everytime the module is uploaded or gateway script is changed and saved during the development process.

Any leads on this will help in resolving this issue. Not able to see any relevant help on the internet search also.

thanks,  
Rajiv Kumar,  
OpteBiz Inc.  
Taledo, OH USA

---

<div class="post-metadata">

**Author:** ![mlunapinel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mlunapinel/32/19719_2.png) [@mlunapinel](https://forum.inductiveautomation.com/u/mlunapinel)\
**Post date:** [May 3, 2021, 7:17pm UTC](https://forum.inductiveautomation.com/t/getting-an-error-on-module-upload-any-suggestions/46205/2 "2021-05-03T19:17:05Z")

</div>

I’m also seeing this warning on ignition 8.1, any clues?

---

<div class="post-metadata">

**Author:** ![rkumar](https://avatars.discourse-cdn.com/v4/letter/r/4491bb/32.png) [@rkumar](https://forum.inductiveautomation.com/u/rkumar)\
**Post date:** [September 15, 2021, 1:01pm UTC](https://forum.inductiveautomation.com/t/getting-an-error-on-module-upload-any-suggestions/46205/3 "2021-09-15T13:01:17Z")

</div>

I am still facing this problem. Any luck? Please share the workaround if you could find, any. Others also please help on this.

---

<div class="post-metadata">

**Author:** ![PerryAJ](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/perryaj/32/3281_2.png) [@PerryAJ](https://forum.inductiveautomation.com/u/PerryAJ)\
**Post date:** [September 15, 2021, 10:19pm UTC](https://forum.inductiveautomation.com/t/getting-an-error-on-module-upload-any-suggestions/46205/4 "2021-09-15T22:19:39Z")

</div>

Is there a stack trace associated with this log message?  
I believe the system is looking for a resource bundle (property file, or set of files for containing translation keys and terms, generally located in the jar, and in _src/main/resources/_ in the project source directories) for the purposes of localization, but I’m just guessing based on the logged message.

---

<div class="post-metadata">

**Author:** ![rkumar](https://avatars.discourse-cdn.com/v4/letter/r/4491bb/32.png) [@rkumar](https://forum.inductiveautomation.com/u/rkumar)\
**Post date:** [September 16, 2021, 1:58pm UTC](https://forum.inductiveautomation.com/t/getting-an-error-on-module-upload-any-suggestions/46205/5 "2021-09-16T13:58:46Z")

</div>

Thanks Perry,

Regarding stack trace I will work with the client to get this if this is enabled. Do we have to enable it to get this trace and which folder it will reside in?

Regarding the path, I can see the path in the Eclipse project folder and the file “AbstractScriptModule.properties”. Just to confirm, the physical folder is also located similarly as “\src\main\resources\com\optebiz\factogrids95\DataAnalysis” in the project folder. We are able to see help text also using ctrl + for methods which come from this properties file. Hope this helps in getting some clues.

---

<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:** [September 16, 2021, 2:13pm UTC](https://forum.inductiveautomation.com/t/getting-an-error-on-module-upload-any-suggestions/46205/6 "2021-09-16T14:13:32Z")

</div>

> [@rkumar](#):
>
> java.util.MissingResourceException: Can’t find bundle for base name path/AbstractScriptModule, locale en\_US

Could you show the path/AbstractScriptModule aswell as where you bind it to the resources.  
and maybe a picture of the relavent folder structure

---

<div class="post-metadata">

**Author:** ![rkumar](https://avatars.discourse-cdn.com/v4/letter/r/4491bb/32.png) [@rkumar](https://forum.inductiveautomation.com/u/rkumar)\
**Post date:** [September 16, 2021, 2:32pm UTC](https://forum.inductiveautomation.com/t/getting-an-error-on-module-upload-any-suggestions/46205/7 "2021-09-16T14:32:39Z")

</div>

This is the path in Eclipse:

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

---

<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:** [September 16, 2021, 2:34pm UTC](https://forum.inductiveautomation.com/t/getting-an-error-on-module-upload-any-suggestions/46205/8 "2021-09-16T14:34:37Z")

</div>

alright and do you have the code of where you bind it to the component?

---

<div class="post-metadata">

**Author:** ![rkumar](https://avatars.discourse-cdn.com/v4/letter/r/4491bb/32.png) [@rkumar](https://forum.inductiveautomation.com/u/rkumar)\
**Post date:** [September 16, 2021, 2:52pm UTC](https://forum.inductiveautomation.com/t/getting-an-error-on-module-upload-any-suggestions/46205/9 "2021-09-16T14:52:59Z")

</div>

We have put help texts in this properties file and added “@ScriptFunction(docBundlePrefix = “AbstractScriptModule”)” in the AbstractScriptModule available in Common. Is this what you are looking for? Else let me know, I will provide that.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [September 16, 2021, 2:55pm UTC](https://forum.inductiveautomation.com/t/getting-an-error-on-module-upload-any-suggestions/46205/10 "2021-09-16T14:55:00Z")

</div>

Are you using BundleUtil to load the properties file at that prefix? (And unload in your module shutdown hook?)

---

<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:** [September 16, 2021, 2:58pm UTC](https://forum.inductiveautomation.com/t/getting-an-error-on-module-upload-any-suggestions/46205/11 "2021-09-16T14:58:13Z")

</div>

> [@rkumar](#):
>
> base name path/AbstractScriptModule

like it says its missing a file located at **path** /AbstractScriptModule, its just that that doesnt look like a valid path idk, where is this used xd could you do a search for "path/AbstractScriptModule"? in the files?

---

<div class="post-metadata">

**Author:** ![rkumar](https://avatars.discourse-cdn.com/v4/letter/r/4491bb/32.png) [@rkumar](https://forum.inductiveautomation.com/u/rkumar)\
**Post date:** [September 16, 2021, 3:17pm UTC](https://forum.inductiveautomation.com/t/getting-an-error-on-module-upload-any-suggestions/46205/12 "2021-09-16T15:17:44Z")

</div>

Sorry Victor, this “path” in the text " base name path/AbstractScriptModule" is actually the complete path as shown in the screen shot. I had put “\<” and “\>” which got removed as html conversion it seems.

While doing a search I do find references in:

1. AbstractScriptModule in common  
static {  
BundleUtil.get().addBundle(  
AbstractScriptModule.class.getSimpleName(),  
AbstractScriptModule.class.getClassLoader(),  
AbstractScriptModule.class.getName().replace(’.’, ‘/’));  
}

2. GatewayscriptModule in gateway  
a. import com.optebiz.factogrids95.DataAnalysis.AbstractScriptModule;  
b. public class GatewayScriptModule extends AbstractScriptModule {

---

<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:** [September 17, 2021, 6:29am UTC](https://forum.inductiveautomation.com/t/getting-an-error-on-module-upload-any-suggestions/46205/13 "2021-09-17T06:29:31Z")

</div>

Ah haha welh the path was the most imporant thing xD The error says its not finding something so either the path is wrong or the thing its looking for isnt inside of it.

---

<div class="post-metadata">

**Author:** ![rkumar](https://avatars.discourse-cdn.com/v4/letter/r/4491bb/32.png) [@rkumar](https://forum.inductiveautomation.com/u/rkumar)\
**Post date:** [September 17, 2021, 8:04am UTC](https://forum.inductiveautomation.com/t/getting-an-error-on-module-upload-any-suggestions/46205/14 "2021-09-17T08:04:53Z")

</div>

I commented this, not the right approach, and when I compiled the project, it stopped giving the help text on ctrl+spacebar but the warning was not there.

And, also this is coming when there are two modules uploaded with this same text in ArchiveScriptModule. When I uploaded the same module standalone, with the same texts, the error was not there even on multiple upload. As soon as I uploaded a different module it started giving this error. And, this same error was coming even after uninstalling the new module.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [September 17, 2021, 12:09pm UTC](https://forum.inductiveautomation.com/t/getting-an-error-on-module-upload-any-suggestions/46205/15 "2021-09-17T12:09:24Z")

</div>

You should be loading your own bundle named after your own class, not hijacking the bundle named for the AbstractScriptModule. And you should not be loading it statically, or you won’t get changes without a complete gateway restart. Load in hook setup, unload in hook shutdown.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [January 17, 2023, 5:18pm UTC](https://forum.inductiveautomation.com/t/getting-an-error-on-module-upload-any-suggestions/46205/16 "2023-01-17T17:18:06Z")

</div>

Split this topic on January 17, 2023, 5:18pm UTC

A post was split to a new topic: [Unable to load bundle](https://forum.inductiveautomation.com/t/unable-to-load-bundle/68678)
