Hello: I get the following exception in the HW application. I followed all the specifications in the HW and my beans.xml file is as follows:
<beans> <bean id="renderer" class="StandardOutMessageRenderer"> <property name="messageProvider"> <ref local="greetingProvider"/> </property> </bean> <bean id="greetingProvider" class="HelloWorldMessageProvider"/> </beans> I have declared greetingProvider in HelloWorldMessageProvider with getter and setter methods. Exception INFO: Loading XML bean definitions from file [C:\Chetana\Java\25 - Spring Hello world\springhelloworld\samples\GHelloWorldSpringWithDIXMLFile\beans.xml] Exception in thread "main" java.lang.NullPointerException at HelloWorldMessageProvider.getMessage(HelloWorldMessageProvider.java:23) at StandardOutMessageRenderer.render(StandardOutMessageRenderer.java:21) at HelloWorldSpringWithDIXMLFile.main(HelloWorldSpringWithDIXMLFile.java:12) Java Result: 1 -- You received this message because you are subscribed to the Google Groups "Java EE (J2EE) Programming with Passion!" group. To post to this group, send email to java-ee-j2ee-programming-with-passion@googlegroups.com To unsubscribe from this group, send email to java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en