[Coldbox 4.0] null pointer error

Hello!

I’ve been 'round and 'round with this and not getting anywhere so I thought I’d post here.

Basically I have two model services - A and B.

A has

A has that is supposed to return a struct.

B.getSomething does its thing and immediately prior to I cfdump local.rtnStruct and it’s a simple struct - everything is fine.

On A however throws the following error -

“ERROR”,“FILELOG”,“03/05/2015”,“16:29:09”,“coldbox.system.Bootstrap”,"Error: <?xml version="1.0" encoding="UTF-8"?>"

It’s basically saying B.getSomething() isn’t valid yet clearly it called it and everything was fine per the cfdump immediately prior to cfreturn on B.getsomething(). It just won’t return it.

Does this make any sense at all to anyone? There’s no other info provided with the error except the value of the various var types - session, cookie, etc.

Thank you!

Irv Wilson

To expand this a bit the calling function has -

<cfset local.rtnStruct.strDocMetaData = DocfinityService.SearchForDocument(
arrSearchValues = local.searchArray,
searchName = “webservices_jobs_general”,
searchPromptsList = “Job##,CTS##,Record Type”,
documentType = “R” ) />



DocfinityService.SearchForDocument() does a bunch of stuff and then ends with

If I cfdump var=#local.strMetaInfo# immediately prior to cfreturn I get a normal struct. I’ve tried returntype of any and struct thinking that might have something to do with it.

DocfinityService is setup at top of calling function like so -

Obviously that’s working as the function in DocfinityService runs. The try/catch above basically says DocfinityService.SearchForDocument doesn’t exists however. Not a bad type or value or anything - it’s just not there.

cfcatch var shows the following:

struct
Message [empty string]
StackTrace java.lang.NullPointerException
Suppressed
array [empty]

TagContext
array [empty]

Type java.lang.NullPointerException

Sorry, I think this is something else. I forgot I had other processes running the same function. I think it’s blowing up earlier in the process. Just a long day.

Thank you!