Issue 1:
Pavel Kuzin opened SPR-6359 and commented

Error while deploing application.

With RC1 - it was OK.

SEVERE: Application context refresh failed (OsgiBundleXmlApplicationContext(bundle=ndx.billing.DatabaseFunctions, config=osgibundle:/META-INF/spring/*.xml))

java.lang.NullPointerException

at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:861)

at org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext.finishRefresh(AbstractOsgiBundleApplicationContext.java:235)

at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:358)

at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)

at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)

at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:136)

at java.lang.Thread.run(Thread.java:619)

Nov 16, 2009 12:27:05 PM

SEVERE: Exception in thread "SpringOsgiExtenderThread-14"

Nov 16, 2009 12:27:05 PM

SEVERE: java.lang.NullPointerException

at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:861)

at org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext.finishRefresh(AbstractOsgiBundleApplicationContext.java:235)

at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:358)

at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)

at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)

at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:136)

at java.lang.Thread.run(Thread.java:619)

Affects: 3.0 RC2

Issue Links:

#11022 NPE in AbstractApplicationContext finishRefresh when initialized via Spring DM ("duplicates")

Issue 2:
Andrey Akselrod opened SPR-2018 and commented

MailSender uses conrete class SimpleMailMessage. Instead it should use an interface with the getter methods it needs - the opposite of MailMessage interface which contains setters.

SimpleMailMessage would implement MailMessage and this other new interface.

It will allow to specify an alternative way for setting email values. For example I can implement my own SimpleVelocityMailMessage class that will only implement that new interface. I can have setTemplate(tpl, model) in my class without having to have setText(text). I don't have to implement MailMessage interface or extend SimpleMailMessage class.

Affects: 2.0 M4

Issue Links:

#6139 MailSender.send() method takes SimpleMailMessage parameter, which causes trouble when abstracting ("duplicates")