RE:[coldbox 3.5]

Hi guys

I am using coldbox 3.5 everything works just fine,except for the case that sometimes I will get an error message the the gateway is undefined. I refresh the page and it works again. I don not know what could be the possible cause?

Sounds like an issue with your web server or ColdFusion connectors. We’d need much more information about your installation and the exact error message plug web server log files to be able to help.

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

The error message is below.

Variable BODYGATEWAY is undefined.
ID: ??; LINE: 521; TEMPLATE: C:\websites\sand\shared\handlers\ehLoginSearch.cfc ID: CFINVOKE; LINE: 699; TEMPLATE: C:\websites\sand\sandbox\coldbox\system\web\Controller.cfc ID: CF_UDFMETHOD; LINE: 584; TEMPLATE: C:\websites\sand\san\coldbox\system\web\Controller.cfc ID: CF_TEMPLATEPROXY; LINE: 236; TEMPLATE: C:\websites\sandbox\sand\coldbox\system\Coldbox.cfc ID: CF_TEMPLATEPROXY; LINE: 80; TEMPLATE: C:\websites\sand\sand\Application.cfc

Just out of curiosity, is the BODYGATEWAY being wired into the ehLoginSearch?

yes. it has been injected

Cool the reason I ask is that I have also seen something similar, but in ContentBox from time to time getting the error message. And wonder if it is related.

java.lang.NullPointerException at coldfusion.runtime.AppHelper.getApplicationMetaData(AppHelper.java:1246) at coldfusion.runtime.CFPage.GetApplicationMetadata(CFPage.java:10394) at cfCFORMUtil2ecfc1165099099$funcGETDEFAULTDATASOURCE.runFunction(D:\home[andyscott.id.au](http://andyscott.id.au)\wwwroot\coldbox\system\orm\hibernate\util\CFORMUtil.cfc:83) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472) at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:405) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:220) at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:2659) at cfCFORMUtil2ecfc1165099099$funcGETENTITYDATASOURCE.runFunction(D:\home[andyscott.id.au](http://andyscott.id.au)\wwwroot\coldbox\system\

Is there a away it can be fixed or it just a outgoing coldbox bug?

Not sure, I am assuming you are running this on ColdFusion and not Railo?

Yes I am using ColdFusion

Ok, I believe that this is a ColdFusion issue. That is also related to these errors.

java.lang.NullPointerException at coldfusion.runtime.AppHelper.getApplicationMetaData(AppHelper.java:1246) at coldfusion.runtime.CFPage.GetApplicationMetadata(CFPage.java:10394) at cfCFORMUtil2ecfc1165099099$funcGETDEFAULTDATASOURCE.runFunction(D:\home[andyscott.id.au](http://andyscott.id.au)\wwwroot\coldbox\system\orm\hibernate\util\CFORMUtil.cfc:83) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472) at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:405) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:220) at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:2659) at

and

coldfusion.runtime.UndefinedElementException: Element DATASOURCE is undefined in SETTINGS. at coldfusion.runtime.DotResolver.resolveSplitNameInMap(DotResolver.java:109) at coldfusion.runtime.CfJspPage._resolve(CfJspPage.java:1643) at coldfusion.runtime.CfJspPage._resolveAndAutoscalarize(CfJspPage.java:1822) at coldfusion.runtime.CfJspPage._resolveAndAutoscalarize(CfJspPage.java:1815) at cfCFORMUtil2ecfc1165099099$funcGETDEFAULTDATASOURCE.runFunction(D:\home[andyscott.id.au](http://andyscott.id.au)\wwwroot\coldbox\system\orm\hibernate\util\CFORMUtil.cfc:94) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472) at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:405) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:220) at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:2659) at

All of which happen for no reason that I can see, I have my host (Hostek) talking to Adobe about these errors, and to date have heard nothing back on them.

Can I also ask, is this only ever know and then for you?

The reason I ask, is that if it is the first hit each time to the page then it might be something else.

Most of the time I get this when I first touch the very first page, And then on random pages, but occasionally I do not see consistency in the error messages

Can you show the code in that method as well as the injection property?

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

Those two errors don’t seem related to me. Erik’s is an undefined variable in ColdFusion code and Andrew’s is an internal Java error inside a native function.

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

How do you explain this error then Brad?

coldfusion.runtime.UndefinedElementException: Element DATASOURCE is undefined in SETTINGS. at coldfusion.runtime.DotResolver.resolveSplitNameInMap(DotResolver.java:109) at coldfusion.runtime.CfJspPage._resolve(CfJspPage.java:1643) at coldfusion.runtime.CfJspPage._resolveAndAutoscalarize(CfJspPage.java:1822) at coldfusion.runtime.CfJspPage._resolveAndAutoscalarize(CfJspPage.java:1815) at cfCFORMUtil2ecfc1165099099$funcGETDEFAULTDATASOURCE.runFunction(D:\home[andyscott.id.au](http://andyscott.id.au/)\wwwroot\coldbox\system\orm\hibernate\util\CFORMUtil.cfc:94) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472) at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:405) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:220) at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:2659) at

Is this on dev or production? Do you have HandlersIndexAutoReload turned on?

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

Here is the injection

here is the line where it is being used
var lList = bodyDataDefinitionGateway.getBodyDataDefinitionAllRecords(ID=rc.bodySelect);

This is in prod and HandlersIndexAutoReload is set to false

I don’t know why that errors, but how is it related to Erik’s error? His is a different error on a different variable in a different file. I don’t see the connection.

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

I’m confused, that line of code doesn’t reference “bodytGateway”. Furthermore, the error message you pasted in earlier was for a variable called “bodygateway”.

Do you have any code that references the variable in your init method?

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com