<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=nomadium" rel="nofollow">Miguel Landaeta</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-7351?redirect=false" rel="nofollow">SPR-7351</a></strong> and commented</p>
<p dir="auto">The Debian Java team is preparing a package for Spring Framework 3.0.<br>
<a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=575877" rel="nofollow">http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=575877</a></p>
<p dir="auto">However, before this can be completed, all the dependences of Spring have to be packaged. In particular, we found that spring-build (<a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=586523" rel="nofollow">http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=586523</a>) doesn't include a file indicating the license and the copyright of this subproject.</p>
<p dir="auto">Inspecting the source code available at <a href="https://src.springframework.org/svn/spring-build/trunk/" rel="nofollow">https://src.springframework.org/svn/spring-build/trunk/</a>, we found many files without a clear license, some are licensed under GPL, others are licensed under Apache 2.0, etc.</p>
<p dir="auto">It's very important to have unambiguous copyright and license conditions for the Debian packages, otherwise they cannot be accepted and distributed.</p>
<p dir="auto">It would be very nice if you could provide a LICENSE file in the root directory of this subproject clearly indicating the license and the copyright statements for that software.</p>
<p dir="auto">Thanks in advance,</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.0.4</p>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398106097" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12011" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12011/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12011">#12011</a> Debian : Spring Build system has no licence / copyright (<em><strong>"duplicates"</strong></em>)</li>
</ul>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=geniusgroup" rel="nofollow">G</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-4396?redirect=false" rel="nofollow">SPR-4396</a></strong> and commented</p>
<p dir="auto">Autowiring failed when one of the bean contains factory-method (Static setter). Even we don't apply autowire in that bean, it will also crash the whole framework.</p>
<p dir="auto">Reference: <a href="http://forum.springframework.org/showthread.php?t=48399" rel="nofollow">http://forum.springframework.org/showthread.php?t=48399</a></p>
<p dir="auto">Partial XML:</p>
<p dir="auto">&lt;?xml version="1.0" encoding="UTF-8"?&gt;</p>
<p dir="auto">&lt;beans xmlns="<a href="http://www.springframework.org/schema/beans" rel="nofollow">http://www.springframework.org/schema/beans</a>"<br>
xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance" rel="nofollow">http://www.w3.org/2001/XMLSchema-instance</a>"<br>
xmlns:context="<a href="http://www.springframework.org/schema/context" rel="nofollow">http://www.springframework.org/schema/context</a>"<br>
xsi:schemaLocation="<a href="http://www.springframework.org/schema/beans" rel="nofollow">http://www.springframework.org/schema/beans</a> <a href="http://www.springframework.org/schema/beans/spring-beans-2.5.xsd" rel="nofollow">http://www.springframework.org/schema/beans/spring-beans-2.5.xsd</a><br>
<a href="http://www.springframework.org/schema/context" rel="nofollow">http://www.springframework.org/schema/context</a> <a href="http://www.springframework.org/schema/context/spring-context-2.5.xsd%22%3E" rel="nofollow">http://www.springframework.org/schema/context/spring-context-2.5.xsd"&gt;</a></p>
<p dir="auto">&lt;context:annotation-config /&gt;</p>
<p dir="auto">&lt;bean id="hibernateUtil" class="com.foo.hibernate.HibernateUtil"<br>
factory-method="setSessionFactory"&gt;<br>
&lt;constructor-arg ref="sessionFactory" /&gt;<br>
&lt;/bean&gt;<br>
&lt;/beans&gt;</p>
<p dir="auto">Java:<br>
package com.foo.hibernate;</p>
<p dir="auto">import org.hibernate.SessionFactory;</p>
<p dir="auto">public class HibernateUtil {</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="private static SessionFactory sessionFactory_;

public static SessionFactory getSessionFactory() { return sessionFactory_; }
public static void setSessionFactory(SessionFactory sessionFactory) { sessionFactory_ = sessionFactory; }"><pre class="notranslate"><code class="notranslate">private static SessionFactory sessionFactory_;

public static SessionFactory getSessionFactory() { return sessionFactory_; }
public static void setSessionFactory(SessionFactory sessionFactory) { sessionFactory_ = sessionFactory; }
</code></pre></div>
<p dir="auto">}</p>
<p dir="auto">Error:<br>
ERROR|14:45:57,234| ContextLoader:215 - Context initialization failed<br>
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateUtil' defined in ServletContext resource [/WEB-INF/conf/applicationContext-hibernate.xml]: Initialization of bean failed; nested exception is java.lang.NullPointerException<br>
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:445)<br>
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:383)<br>
at java.security.AccessController.doPrivileged(Native Method)<br>
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:353)<br>
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245)<br>
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:169)<br>
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242)<br>
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)<br>
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:400)<br>
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:736)<br>
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:369)<br>
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:261)<br>
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)<br>
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)<br>
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3830)<br>
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4337)<br>
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)<br>
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)<br>
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)<br>
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)<br>
at org.apache.catalina.core.StandardService.start(StandardService.java:516)<br>
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)<br>
at org.apache.catalina.startup.Catalina.start(Catalina.java:566)<br>
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)<br>
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)<br>
at java.lang.reflect.Method.invoke(Unknown Source)<br>
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)<br>
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)<br>
Caused by: java.lang.NullPointerException<br>
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:876)<br>
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:437)<br>
... 28 more</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.5.1</p>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398084830" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/9045" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/9045/hovercard" href="https://github.com/spring-projects/spring-framework/issues/9045">#9045</a> Autowiring failed when one of the bean contains factory-method (<em><strong>"duplicates"</strong></em>)</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398084676" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/9024" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/9024/hovercard" href="https://github.com/spring-projects/spring-framework/issues/9024">#9024</a> NPE in AbstractAutowireCapableBeanFactory#populateBean() if bean wrapper is null and InstantiationAwareBeanPostProcessor are registered (<em><strong>"duplicates"</strong></em>)</li>
</ul>