# Problem with the module signer

**URL:** <https://forum.inductiveautomation.com/t/problem-with-the-module-signer/30698>\
**Category:** Module Development\
**Created:** [December 13, 2019, 2:36pm UTC](https://forum.inductiveautomation.com/t/problem-with-the-module-signer/30698 "2019-12-13T14:36:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ricardo.cabrita](https://avatars.discourse-cdn.com/v4/letter/r/ac8455/32.png) [@ricardo.cabrita](https://forum.inductiveautomation.com/u/ricardo.cabrita)\
**Post date:** [December 13, 2019, 2:36pm UTC](https://forum.inductiveautomation.com/t/problem-with-the-module-signer/30698/1 "2019-12-13T14:36:17Z")

</div>

Hello,

I am developing some driver modules for Ignition 7.9, I used to self sign modules without any issue. However, since I moved to Ubuntu 18.04 I haven’t been able to. What happens is that although the signing occurs apparently without any issues like it used to, when I install the module I get this errors:

Error installing module

java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

The module installs fine If I don’t sign it (with the gateway in dev mode of course). This happened with various versions of Ignition, 7.9.7, 7.9.12 and 7.9.13.

One thing to note is that I was using before (and was working) an older version of the module-signer compiled with java 8. From what I understand this latest version from July needs Java 11 to compile (which was what I did). I’ve also tried compiling that older version again on ubuntu 18.04 with Java 8 and still getting the same error.

Does anyone know what might be going on ?

thanks in advance,  
Ricardo

---

<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:** [December 13, 2019, 5:18pm UTC](https://forum.inductiveautomation.com/t/problem-with-the-module-signer/30698/2 "2019-12-13T17:18:23Z")

</div>

Can you get the full stack trace of the error from the gateway logs?

---

<div class="post-metadata">

**Author:** ![ricardo.cabrita](https://avatars.discourse-cdn.com/v4/letter/r/ac8455/32.png) [@ricardo.cabrita](https://forum.inductiveautomation.com/u/ricardo.cabrita)\
**Post date:** [December 16, 2019, 12:41pm UTC](https://forum.inductiveautomation.com/t/problem-with-the-module-signer/30698/3 "2019-12-16T12:41:34Z")

</div>

Hi, sure thing, this is the full error message when I expand it (I tried to attach it as a file but couldn’t as I am a new member). Thanks for the assistance:

_java.lang.IndexOutOfBoundsException: Index: 0, Size: 0_  
_at java.util.ArrayList.rangeCheck(ArrayList.java:657)_  
_at java.util.ArrayList.get(ArrayList.java:433)_  
_at com.inductiveautomation.ignition.gateway.web.pages.config.ModuleCertificateAcceptPage.(ModuleCertificateAcceptPage.java:151)_  
_at com.inductiveautomation.ignition.gateway.web.pages.config.ModuleInstallPage.eulaCertCheck(ModuleInstallPage.java:180)_  
_at com.inductiveautomation.ignition.gateway.web.pages.config.ModuleInstallPage$1.onSubmitInternal(ModuleInstallPage.java:70)_  
_at com.inductiveautomation.ignition.gateway.web.components.CsrfPreventingForm.onSubmit(CsrfPreventingForm.java:66)_  
_at org.apache.wicket.markup.html.form.Form$9.component(Form.java:1248)_  
_at org.apache.wicket.markup.html.form.Form$9.component(Form.java:1242)_  
_at org.apache.wicket.util.visit.Visits.visitPostOrderHelper(Visits.java:274)_  
_at org.apache.wicket.util.visit.Visits.visitPostOrder(Visits.java:245)_  
_at org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1241)_  
_at org.apache.wicket.markup.html.form.Form.process(Form.java:923)_  
_at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:769)_  
_at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:702)_  
_at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)_  
_at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)_  
_at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)_  
_at java.lang.reflect.Method.invoke(Method.java:498)_  
_at org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:258)_  
_at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:216)_  
_at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:240)_  
_at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:226)_  
_at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:814)_  
_at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)_  
_at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:253)_  
_at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:210)_  
_at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:281)_  
_at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:188)_  
_at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:245)_  
_at com.inductiveautomation.ignition.gateway.bootstrap.SRFilter.doFilter(SRFilter.java:80)_  
_at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1759)_  
_at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:583)_  
_at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)_  
_at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)_  
_at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)_  
_at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1180)_  
_at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:513)_  
_at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)_  
_at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1112)_  
_at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)_  
_at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:52)_  
_at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)_  
_at org.eclipse.jetty.server.Server.handle(Server.java:539)_  
_at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:333)_  
_at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)_  
_at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:283)_  
_at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:108)_  
_at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)_  
_at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303)_  
_at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148)_  
_at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136)_  
_at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671)_  
_at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589)_  
_at java.lang.Thread.run(Thread.java:748)_

---

<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:** [December 16, 2019, 3:17pm UTC](https://forum.inductiveautomation.com/t/problem-with-the-module-signer/30698/4 "2019-12-16T15:17:47Z")

</div>

This error suggests that the certificate chain file in your module is empty.

Open up the signed module (it’s just a zip) and inspect the contents, see if the chain is really empty or not.

---

<div class="post-metadata">

**Author:** ![ricardo.cabrita](https://avatars.discourse-cdn.com/v4/letter/r/ac8455/32.png) [@ricardo.cabrita](https://forum.inductiveautomation.com/u/ricardo.cabrita)\
**Post date:** [December 16, 2019, 5:06pm UTC](https://forum.inductiveautomation.com/t/problem-with-the-module-signer/30698/5 "2019-12-16T17:06:08Z")

</div>

Ah yes, that is indeed the case! There must be some issue with how I generated the chain, I’ll look into it and re-do it. Thank you!
