[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"blog-post-freak-fw1-and-di1-bean-not-found-debugging-issue-and-solution":3},{"id":4,"title":5,"body":6,"date":31,"description":12,"extension":32,"meta":33,"navigation":34,"path":35,"published":34,"seo":36,"slug":37,"stem":38,"summary":5,"tags":39,"__hash__":43},"blog/blog/2015-02-13-freak-fw1-and-di1-bean-not-found-debugging-issue-and-solution.md","Freak FW/1 & DI/1 Bean Not Found Debugging Issue / Solution",{"type":7,"value":8,"toc":27},"minimark",[9,13,16,24],[10,11,12],"p",{},"So earlier today I was working on the back end for this blog;Â which runs on FW/1 and DI/1. I ran intoÂ an issue that set me back for a hot minute; mostly because the error was quite vague in regardsÂ and I also didn't stress my debugging options as much as I could/should have (initially)!",[10,14,15],{},"I was making updates to a service object handled by DI/1 for use in a controllerÂ and at one point, all of a sudden, the page using the service bombed on me consistently. After catching the error, all I was getting back was \"bean not found: MyService\". The stack trace wasn't lending any hints either. This threw me a bit short-sighted as the CFC was definitely where it needed to be but for some reason DI/1 wasn't picking it up. I gave up for the time being.",[10,17,18,19,23],{},"Then the light bulb went off in my head. To help in getting to the bottom of the issue I dumped out the structure returned by ",[20,21,22],"code",{},"getBeanFactory().getBeanInfo()"," and sure enough, I had a hint to the problem. In the list I expected to see the object \"MyService\" but what I found instead was \"MyServicedomains\". Domains being my singleton location for Domain Objects. I took a look in the directory it linked to and there it was, a copy of the CFC. At some freak point I accidentally dropped it into the wrong directory. Removing it immediately synced things back to normal.",[10,25,26],{},"Such a silly mistake but given the scenario, not as apparent I thought. So there ya go: Having issues with DI/1 picking up an object? Dump out the bean info and see if it's hooking it up somewhere else.",{"title":28,"searchDepth":29,"depth":29,"links":30},"",2,[],"2015-02-13","md",{},true,"/blog/2015-02-13-freak-fw1-and-di1-bean-not-found-debugging-issue-and-solution",{"title":5,"description":12},"freak-fw1-and-di1-bean-not-found-debugging-issue-and-solution","blog/2015-02-13-freak-fw1-and-di1-bean-not-found-debugging-issue-and-solution",[40,41,42],"CFML","FW1","DI1","T12k7hytFWwZb_HCTrq15fXIqnAyeFwiz7XiD4dAhp0"]