title: Null Pointer Exception while Autowiring LinkedBlockingQueue
body: <p>I am getting null pointer exception while trying to add anything in my solrQueue. I checked in debugger and it is because solrQueue is null. But I have autowired it in my application context then why this error? </p>
  
  <pre><code>public class Check {
      @Autowired
      public LinkedBlockingQueue&lt;SolrInputDocument&gt; solrQueue;
      public SolrInputDocument solrDoc;   
      public void solradd(){
          solrDoc=new SolrInputDocument();
          solrDoc.addField("title", "abc");
          solrQueue.add(solrDoc);//solrQueue is null 
      }
  }
  </code></pre>
  
  <p>application Context.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;beans xmlns="http://www.springframework.org/schema/beans"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop"
      xmlns:context="http://www.springframework.org/schema/context"
      xsi:schemaLocation="http://www.springframework.org/schema/beans
          http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
          http://www.springframework.org/schema/aop 
          http://www.springframework.org/schema/aop/spring-aop-2.0.xsd
          http://www.springframework.org/schema/context
          http://www.springframework.org/schema/context/spring-context-2.5.xsd"&gt;
  
      &lt;context:annotation-config /&gt;
      &lt;!--&lt;context:component-scan base-package="com/abc" /&gt;   --&gt;
  
      &lt;bean id="solrQueue" class="java.util.concurrent.LinkedBlockingQueue" /&gt;
      &lt;bean id="check" class="com.abc.Check" scope="prototype" /&gt;
  
  &lt;/beans&gt;
  </code></pre>