title: Spring Beginner - No such field error
body: <p>I am new to spring. I am developing one sample project using spring. I am getting the following exception when I provide a value in Beans.xml. Please provide solution.</p>
  
  <p>Beans.xml:</p>
  
  <pre><code>&lt;beans xmlns="http://www.springframework.org/schema/beans"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://www.springframework.org/schema/beans
      http://www.springframework.org/schema/beans/spring-beans-3.0.xsd"&gt;
  
     &lt;bean id="helloWorld" class="com.dhr.spring.beans.HelloWorld"&gt;
         &lt;property  name="message"  value="d" /&gt;
     &lt;/bean&gt;
  
  &lt;/beans&gt;
  </code></pre>
  
  <p>HelloWorld.java:</p>
  
  <pre><code>public class HelloWorld {
       private String message;
  
         public void setMessage(String message){
            this.message  = message;
         }
  
         public void getMessage(){
            System.out.println("Your Message : " + message);
         }
  }
  </code></pre>
  
  <p>MainApp:</p>
  
  <pre><code> public class MainApp {
       public static void main(String[] args) {
            ApplicationContext context = 
                   new ClassPathXmlApplicationContext("Beans.xml");
  
            HelloWorld obj = (HelloWorld) context.getBean("helloWorld");
  
            obj.getMessage();
         }
  }
  </code></pre>
  
  <p>Exception:</p>
  
  <pre><code>Caused by: java.lang.NoSuchFieldError: NULL
      at org.springframework.expression.TypedValue.&lt;clinit&gt;(TypedValue.java:31)
      at org.springframework.expression.spel.support.StandardEvaluationContext.setRootObject(StandardEvaluationContext.java:85)
      at org.springframework.expression.spel.support.StandardEvaluationContext.&lt;init&gt;(StandardEvaluationContext.java:74)
      at org.springframework.context.expression.StandardBeanExpressionResolver.evaluate(StandardBeanExpressionResolver.java:124)
      at org.springframework.beans.factory.support.AbstractBeanFactory.evaluateBeanDefinitionString(AbstractBeanFactory.java:1299)
      at org.springframework.beans.factory.support.BeanDefinitionValueResolver.evaluate(BeanDefinitionValueResolver.java:210)
      at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:182)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1360)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1118)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
      ... 11 more
  </code></pre>