<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=hengels" rel="nofollow">Holger Engels</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-638?redirect=false" rel="nofollow">SPR-638</a></strong> and commented</p>
<p dir="auto">"GenerateLetters.java:42" calls SessionFactoryUtils.getSession(), before the adviced method "ProfileBuilderLogicSupport.java:542" is called. Problem: SessionFactoryUtils looks up the Session with SessionHolder.DEFAULT_KEY, though the Session is stored with the current transaction as key.</p>
<p dir="auto">java.lang.NullPointerException<br>
at org.springframework.orm.hibernate.HibernateTemplate.createQuery(HibernateTemplate.java:836)<br>
at org.springframework.orm.hibernate.HibernateTemplate$25.doInHibernate(HibernateTemplate.java:469)<br>
at org.springframework.orm.hibernate.HibernateTemplate.execute(HibernateTemplate.java:200)<br>
at org.springframework.orm.hibernate.HibernateTemplate.executeFind(HibernateTemplate.java:220)<br>
at org.springframework.orm.hibernate.HibernateTemplate.find(HibernateTemplate.java:467)<br>
at wilken.openshop.modules.eprofiler.dao.support.hibernate.EProfilerDaoSupport.getFavoritAttributesForBp(EProfilerDaoSupport.java:103)<br>
at wilken.openshop.modules.eprofiler.logic.support.ProfileBuilderLogicSupport.getAllFavoriteAttributes(ProfileBuilderLogicSupport.java:691)<br>
at wilken.openshop.modules.eprofiler.logic.support.ProfileBuilderLogicSupport.getEmptyFavoriteTree(ProfileBuilderLogicSupport.java:527)<br>
at wilken.openshop.modules.eprofiler.logic.support.ProfileBuilderLogicSupport.getFilledFavoriteTree(ProfileBuilderLogicSupport.java:542)<br>
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br>
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br>
at java.lang.reflect.Method.invoke(Method.java:324)<br>
at org.springframework.aop.framework.AopProxyUtils.invokeJoinpointUsingReflection(AopProxyUtils.java:61)<br>
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:149)<br>
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:116)<br>
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:56)<br>
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:138)<br>
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:152)<br>
at $Proxy4.getFilledFavoriteTree(Unknown Source)<br>
at wilken.openshop.modules.ecampaign.logic.support.CampaignContentBuilderSupport.getFavoriteTree(CampaignContentBuilderSupport.java:384)<br>
at wilken.openshop.modules.ecampaign.logic.support.CampaignContentBuilderSupport.buildContent(CampaignContentBuilderSupport.java:236)<br>
at wilken.openshop.modules.ecampaign.campaign.GenerateLetters.getLocalizedContentItems(GenerateLetters.java:74)<br>
at wilken.openshop.modules.ecampaign.campaign.GenerateLetters.createNewsletter(GenerateLetters.java:65)<br>
at wilken.openshop.modules.ecampaign.campaign.GenerateLetters.execute(GenerateLetters.java:42)<br>
at org.concern.controller.Controller.execute(Controller.java:725)<br>
at org.concern.controller.Controller.process(Controller.java:642)<br>
at org.concern.controller.Controller.process(Controller.java:608)<br>
at org.concern.controller.Controller.timeout(Controller.java:198)<br>
at org.concern.controller.Controller$TimeoutTask.run(Controller.java:1131)<br>
at java.util.TimerThread.mainLoop(Timer.java:432)<br>
at java.util.TimerThread.run(Timer.java:382)</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 1.1.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="398054525" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/5382" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/5382/hovercard" href="https://github.com/spring-projects/spring-framework/issues/5382">#5382</a> HibernateTemplate.checkWriteOperationAllowed &gt; NullPointerException (<em><strong>"is duplicated by"</strong></em>)</li>
</ul>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=jhampton" rel="nofollow">John Hampton</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-4138?redirect=false" rel="nofollow">SPR-4138</a></strong> and commented</p>
<p dir="auto">A MailSendException created with the MailSendException(String msg) constructor throws a NPE when printStackTrace is called.</p>
<p dir="auto">java.lang.NullPointerException<br>
at org.springframework.mail.MailSendException.printStackTrace(MailSendException.java:149)<br>
at org.apache.log4j.spi.ThrowableInformation.getThrowableStrRep(ThrowableInformation.java:59)<br>
at org.apache.log4j.spi.LoggingEvent.getThrowableStrRep(LoggingEvent.java:342)<br>
at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:304)<br>
at org.apache.log4j.WriterAppender.append(WriterAppender.java:159)<br>
at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:230)<br>
at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:65)<br>
at org.apache.log4j.Category.callAppenders(Category.java:203)<br>
at org.apache.log4j.Category.forcedLog(Category.java:388)<br>
at org.apache.log4j.Category.log(Category.java:853)<br>
at org.apache.commons.logging.impl.Log4JLogger.error(Log4JLogger.java:193)<br>
at com.cleanoffer.mylistings.impl.Emailer.sendUploadConfirmation(Emailer.java:51)<br>
at com.cleanoffer.mylistings.impl.EmailerTest.testSendUploadConfirmation_withSendException(EmailerTest.java:38)<br>
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br>
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br>
at org.jmock.core.VerifyingTestCase.runBare(VerifyingTestCase.java:39)<br>
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40)<br>
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br>
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br>
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.5 final</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="398083195" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/8852" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/8852/hovercard" href="https://github.com/spring-projects/spring-framework/issues/8852">#8852</a> NullPointerException thrown from MailSendException if particular constructors are used. (<em><strong>"is duplicated by"</strong></em>)</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398083367" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/8875" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/8875/hovercard" href="https://github.com/spring-projects/spring-framework/issues/8875">#8875</a> NullPointerException in MailSendException (<em><strong>"is duplicated by"</strong></em>)</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398088456" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/9505" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/9505/hovercard" href="https://github.com/spring-projects/spring-framework/issues/9505">#9505</a> MailSendException is prone to Null Pointer Exceptions (<em><strong>"is duplicated by"</strong></em>)</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398085197" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/9090" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/9090/hovercard" href="https://github.com/spring-projects/spring-framework/issues/9090">#9090</a> MailSendException.getMessage will result in NPE (<em><strong>"is duplicated by"</strong></em>)</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398085235" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/9095" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/9095/hovercard" href="https://github.com/spring-projects/spring-framework/issues/9095">#9095</a> NullPointerException in org.springframework.mail.MailSendException (<em><strong>"is duplicated by"</strong></em>)</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398082214" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/8726" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/8726/hovercard" href="https://github.com/spring-projects/spring-framework/issues/8726">#8726</a> MailSendException created with Map of SmartMimeMessages and SendExceptions is not serializable but not transient</li>
</ul>