ArrayIndexOutOfBounds Error adding 22nd function to component

So this is a strange one, there’s got to be something else going on here
I’m missing. But I have a cfm component that has 21 functions in it
(including init()), and it works great. However, when I go to add another
function, regardless of what its called, its signature, the logic it
contains, I get the following error.

ERROR: java.lang.ArrayIndexOutOfBoundsException

Stack Trace: 21 at
sql_cfc$cf.initComponent(D:\simtech\Sites\homelessdata\warehouse\cfm-app\util\Sql.cfc:1):1
at
sql_cfc$cf.newInstance(D:\simtech\Sites\homelessdata\warehouse\cfm-app\util\Sql.cfc:1):1
at
lucee.runtime.component.ComponentLoader.initComponent(ComponentLoader.java:576):576
at
lucee.runtime.component.ComponentLoader.loadComponent(ComponentLoader.java:457):457
at
lucee.runtime.component.ComponentLoader.load(ComponentLoader.java:393):393
at
lucee.runtime.component.ComponentLoader.load(ComponentLoader.java:258):258
at
lucee.runtime.component.ComponentLoader.loadComponent(ComponentLoader.java:59):59
at
lucee.runtime.PageContextImpl.loadComponent(PageContextImpl.java:2951):2951
at
lucee.runtime.functions.other.CreateObject.doComponent(CreateObject.java:228):228
at lucee.runtime.functions.other.CreateObject.call(CreateObject.java:79):79
at lucee.runtime.functions.other.CreateObject.call(CreateObject.java:59):59
at
basehudreport_cfc$cf.udfCall3(D:\simtech\Sites\homelessdata\warehouse\cfm-app\reports\BaseHUDReport.cfc:1104):1104
at
basehudreport_cfc$cf.udfCall(D:\simtech\Sites\homelessdata\warehouse\cfm-app\reports\BaseHUDReport.cfc):-1
at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:111):111 at
lucee.runtime.type.UDFImpl._call(UDFImpl.java:328):328 at
lucee.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:216):216 at
lucee.runtime.ComponentImpl._call(ComponentImpl.java:643):643 at
lucee.runtime.ComponentImpl._call(ComponentImpl.java:524):524 at
lucee.runtime.ComponentImpl.callWithNamedValues(ComponentImpl.java:1778):1778
at
lucee.runtime.util.VariableUtilImpl.callFunctionWithNamedValues(VariableUtilImpl.java:773):773
at
lucee.runtime.PageContextImpl.getFunctionWithNamedValues(PageContextImpl.java:1600):1600
at
basereport_cfc$cf.udfCall3(D:\simtech\Sites\homelessdata\warehouse\cfm-app\reports\BaseReport.cfc:397):397
at
basereport_cfc$cf.udfCall(D:\simtech\Sites\homelessdata\warehouse\cfm-app\reports\BaseReport.cfc):-1
at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:111):111 at
lucee.runtime.type.UDFImpl._call(UDFImpl.java:328):328 at
lucee.runtime.type.UDFImpl.call(UDFImpl.java:229):229 at
lucee.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:766):766 at
lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:742):742
at
lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1590):1590
at
basereport_cfc$cf.udfCall3(D:\simtech\Sites\homelessdata\warehouse\cfm-app\reports\BaseReport.cfc:371):371
at
basereport_cfc$cf.udfCall(D:\simtech\Sites\homelessdata\warehouse\cfm-app\reports\BaseReport.cfc):-1
at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:111):111 at
lucee.runtime.type.UDFImpl._call(UDFImpl.java:328):328 at
lucee.runtime.type.UDFImpl.call(UDFImpl.java:229):229 at
lucee.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:766):766 at
lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:742):742
at
lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1590):1590
at
basehudreport_cfc$cf.udfCall1(D:\simtech\Sites\homelessdata\warehouse\cfm-app\reports\BaseHUDReport.cfc:48):48
at
basehudreport_cfc$cf.udfCall(D:\simtech\Sites\homelessdata\warehouse\cfm-app\reports\BaseHUDReport.cfc):-1
at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:111):111 at
lucee.runtime.type.UDFImpl._call(UDFImpl.java:328):328 at
lucee.runtime.type.UDFImpl.call(UDFImpl.java:229):229 at
lucee.runtime.ComponentImpl._call(ComponentImpl.java:642):642 at
lucee.runtime.ComponentImpl._call(ComponentImpl.java:524):524 at
lucee.runtime.ComponentImpl.call(ComponentImpl.java:1761):1761 at
lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:742):742
at
lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1590):1590
at
reportcontroller_cfc$cf.udfCall(D:\simtech\Sites\homelessdata\warehouse\cfm-app\controllers\ReportController.cfc:90):90
at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:111):111 at
lucee.runtime.type.UDFImpl._call(UDFImpl.java:328):328 at
lucee.runtime.type.UDFImpl.call(UDFImpl.java:229):229 at
lucee.runtime.ComponentImpl._call(ComponentImpl.java:642):642 at
lucee.runtime.ComponentImpl._call(ComponentImpl.java:524):524 at
lucee.runtime.ComponentImpl.call(ComponentImpl.java:1761):1761 at
lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:742):742
at
lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1590):1590
at
__138.cfm_app180.api.v1.report_cfc$cf.threadCall(D:\simtech\Sites\homelessdata\warehouse\cfm-app\api\v1\report.cfc:94):94
at
lucee.runtime.thread.ChildThreadImpl.execute(ChildThreadImpl.java:199):199
at lucee.runtime.thread.ChildThreadImpl.run(ChildThreadImpl.java:148):148

Anyone come across this before, or have any suggestions I should try?

Thanks in advance,
Eddie

Adam, thanks for the quick reply. Good to know I’m not the only one seeing
this. Restarting seemed to do the trick, for now. It’s strange though,
because I have other components under the same application that have well
over 21 functions, and I can add new functions to them with no problem
whatsoever. If I can find a way to reproduce this in an isolated, reliable
way I’ll submit it to the Lucee bug tracker.

I’m not using any application framework at the moment.

Thanks again, you just saved me hours of digging through my to code to see
what could be causing this!

-EddieOn Friday, December 18, 2015 at 7:33:03 AM UTC-5, Adam Chapman wrote:

Myself and some co-workers experienced the same thing on Window$ when
adding new functions to a helpers include…

We logged an issue back in the Railo days but it doesn’t look like it’s
been resolved… Having said that, I’m now developing on OSX and haven’t
seen that issue since…

Our only workaround was to restart Lucee… Though the issue would seem to
crop up again whenever a new function was added… I tried to replicate it
outside of our application but couldn’t.

Are you using a particular application framework?

Regards,
Adam

Myself and some co-workers experienced the same thing on Window$ when adding new functions to a helpers include…

We logged an issue back in the Railo days but it doesn’t look like it’s been resolved… Having said that, I’m now developing on OSX and haven’t seen that issue since…

Our only workaround was to restart Lucee… Though the issue would seem to crop up again whenever a new function was added… I tried to replicate it outside of our application but couldn’t.

Are you using a particular application framework?

Regards,
Adam

Our team uses the cfwheels framework so it’s somewhat good to know that the issue is not framework specific…

I hope you have better luck than me in reproducing the issue.