Error Injector.InstanceNotFoundException using the For Newbies guide

I’m trying to go through the newbie intro and have run into a wall on the Restful section. (https://coldbox.ortusbooks.com/for-newbies/60-minute-quick-start/restful-data)

I have gotten everything to work up to the point of calling the restful version of the app using one of the requests for specific data types (http://127.0.0.1:58033/contacts.json)

I probably just missed entering a line of code somewhere but I can’t find it. Any suggestions would be appreciated.

This is the error I am getting:

Error Details:
Type: Injector.InstanceNotFoundException
Message: Requested instance not found: ‘DataMarshaller@coldbox’
Detail: The instance could not be located in any declared scan location(s) (models) or full path location
Timestamp: 11/25/2019 07:06:05 AM
Event Details:
Event: contacts.index
Route: :handler/
Route Name: N/A
Routed Module: N/A
Routed Namespace: N/A
Routed URL: contacts/
Layout: N/A (Module: )
View: N/A

Hi Ian,

Could you paste your handler’s code?

Regards
Ryan

Also, what is the full stack trace?

Here’s the stack trace.

Here’s the handler code.

Hmm, I don’t’ see any reason why that wouldn’t work. What version of ColdBox do you have installed? Are you running this code on a server that might have other versions of ColdBox running? Are you sure Coldbox didn’t get corrupted when installing it?

Thanks!

~Brad

Developer Advocate
Ortus Solutions, Corp

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