title: Null pointer when parsing camelContext.xml file during startup
body: <p>This is an intermittent problem, roughly 4/5 starts hit null pointer. Camel-Context.xml is below.</p>
  
  <ul>
  <li><p>Error:</p>
  
  <pre><code>2011-10-18 08:31:25,245 [main           ] INFO  MainSupport                    -   Apache Camel 2.8.0 stopping
  Exception in thread "main" org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from file [D:\Users\michaelb\workspace\camel-example-spring-eda\target\classes\META-INF\spring\camel-context-NERD.xml]; nested exception is java.lang.NullPointerException
  at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:412)
  at    org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)
      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)
      at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
      at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
      at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)
      at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:212)
      at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:126)
      at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:92)
      at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)
      at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:467)
      at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:397)
      at org.springframework.context.support.ClassPathXmlApplicationContext.&lt;init&gt;(ClassPathXmlApplicationContext.java:139)
      at org.springframework.context.support.ClassPathXmlApplicationContext.&lt;init&gt;(ClassPathXmlApplicationContext.java:93)
      at org.apache.camel.spring.Main.createDefaultApplicationContext(Main.java:185)
      at org.apache.camel.spring.Main.doStart(Main.java:139)
      at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:67)
      at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:54)
      at org.apache.camel.impl.MainSupport.run(MainSupport.java:136)
      at org.apache.camel.impl.MainSupport.run(MainSupport.java:322)
      at com.softwareag.eda.NERD.main(NERD.java:39)
  Caused by: java.lang.NullPointerException
      at com.sun.xml.internal.bind.v2.runtime.ClassBeanInfoImpl.checkOverrideProperties(ClassBeanInfoImpl.java:190)
      at com.sun.xml.internal.bind.v2.runtime.ClassBeanInfoImpl.&lt;init&gt;(ClassBeanInfoImpl.java:171)
      at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.getOrCreate(JAXBContextImpl.java:494)
  </code></pre></li>
  <li><p>Camel-Context.xml</p>
  
  <p>
  http://www.springframework.org/schema/beans
  http://www.springframework.org/schema/beans/spring-beans.xsd               <a href="http://camel.apache.org/schema/spring" rel="nofollow">http://camel.apache.org/schema/spring</a> http://camel.apache.org/schema/spring/camel-spring.xsd">
          
              org.apache.camel.example.spring.eda</p></li>
  </ul>
  
  <p> </p>
  
  <pre><code>            &lt;!-- Announce route --&gt;
              &lt;route id="Announcer" startupOrder="3"&gt;
                  &lt;from uri="file:src/data?noop=true" /&gt;
                  &lt;choice&gt;
                      &lt;when&gt;
                          &lt;xpath&gt;$eventtype = 'shipment'&lt;/xpath&gt;
                          &lt;to uri="jmsEDA:topic:orderMgmt" /&gt;
                      &lt;/when&gt;
                      &lt;otherwise&gt;
                          &lt;to uri="jmsEDA:topic:orderMgmt" /&gt;
                      &lt;/otherwise&gt;
                  &lt;/choice&gt;
              &lt;/route&gt;
  
              &lt;!-- Listen route --&gt;
              &lt;route id="Listener" startupOrder="2"&gt;
                  &lt;from uri="jmsEDA:topic:orderMgmt" /&gt;
                  &lt;to uri="file://target/test?noop=true" /&gt;
                  &lt;to uri="outputToScreen" /&gt;
                  &lt;log message="done" /&gt;
              &lt;/route&gt;
  
          &lt;/camelContext&gt;
  
          &lt;!-- EDA JMS endpoint URL --&gt;
          &lt;bean id="jmsEDA" class="org.apache.camel.component.jms.JmsComponent"&gt;
              &lt;property name="connectionFactory"&gt;
                  &lt;bean class="org.apache.activemq.ActiveMQConnectionFactory"&gt;
                      &lt;property name="brokerURL"
                          value="vm://localhost?broker.persistent=false&amp;amp;broker.useJmx=false" /&gt;
                  &lt;/bean&gt;
              &lt;/property&gt;
          &lt;/bean&gt;
  
          &lt;!-- Screen output endpoint --&gt;
          &lt;bean id="outputToScreen"
              class="com.softwareag.eda.NERD.outputToScreen"&gt;
          &lt;/bean&gt;
  
      &lt;/beans&gt;
  </code></pre>