Hi there
Here is my class Triangle
and this is my spring.xml
this is my application from where I am calling
and this is point Object class
and I am getting output as
Jul 16, 2014 10:02:10 PM org.springframework.context.support.ClassPathXmlApplicationContext prepareRefresh
INFO: Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@10d13e3e: startup date [Wed Jul 16 22:02:10 IST 2014]; root of context hierarchy
Jul 16, 2014 10:02:10 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [spring.xml]
Exception in thread "main" java.lang.NullPointerException
at Kishor.BeanFactory.Triangle.draw(Triangle.java:139)
at Kishor.BeanFactory.DrawingApplication.main(DrawingApplication.java:36)
what is the error?
Thanks