Home

Unhappy Bean Factory

What follows is the actual conversation between myself and a project manager who noticed that a certain back-end process wasn’t working. The content has been changed slightly to protect the innocent and/or the names of internal data structures et al. It could be inferred from the following that neither of us are Java people, and those inferrnaces would be correct.

(13:10:16) Kathy : hum… ok… VISA didn’t get transactions today

(14:38:13) dave: megha’s beans are not autowiring

(14:38:19) dave: and the factory is very upset

(14:38:33) Kathy : oh no

(14:38:43) dave: yeah it’s throwing things and refusing to nest

(14:38:55) Kathy : not good…. how much time to fix

(14:39:03) dave: it’s throwing nesting exceptions. EXCEPTIONS TO NESTING. basically, it’s anti-nesting

(14:39:06) dave: on account of her beans

(14:39:23) dave: we’re re-jarring her beans

(14:39:29) Kathy : let me get off this phone call and then i’ll call you

(14:39:29) dave: or at least she is

(14:39:46) dave: and then we’re going to see if maybe the factory will nest

(14:40:07) Kathy : are you talking jelly beans or pork and beans?

(14:40:45) dave: well clearly they aren’t autowiring beans…

(14:41:00) dave: Error creating bean with name ‘userService’: Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private ; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘foo’: Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: .mailService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘mailService’: Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.mail.javamail.JavaMailSender .services.MailServiceImpl.mailSender; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [org.springframework.mail.javamail.JavaMailSender] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency.

(14:41:29) Kathy : what the hell…

(14:41:32) dave: you see how the factory is upset about the beans?

(14:41:40) Kathy : totally, I would be too

(14:42:01) Kathy : we don’t want to make the factory upset

(14:42:18) dave: well I think it’s too late for that Kathy

(14:42:24) Kathy : crap

Home