2 Replies Latest reply: Sep 17, 2013 7:32 AM by SubbaraoD RSS

    Error while sending email using TemplateEmailSender in CSC server

    SubbaraoD

      Hi,

       

      We are trying to send email using TemplateEmailSender from CSC server. But it is giving Null Pointer Exception in ProfiledMessageSource like below. The same code is working fine in commerce instance but it is failing in CSC instance. We are using ATG2007.1p3

       

      Any pointers would be helpful.

       

      Below is the error.

       

      Error while sending email

      java.lang.NullPointerException

              at atg.userprofiling.dms.ProfiledMessageSource.isConfiguredForProfileSubject(ProfiledMessageSource.java:196)

              at atg.userprofiling.dms.DPSMessageSource.fireEndSessionMessage(DPSMessageSource.java:864)

              at atg.userprofiling.dms.DPSMessageSource.fireEndSessionMessage(DPSMessageSource.java:848)

              at atg.userprofiling.SessionEventTrigger.nameContextElementPreUnbound(SessionEventTrigger.java:553)

              at atg.nucleus.GenericContext.sendPreUnboundEvent(GenericContext.java:200)

              at atg.nucleus.GenericContext.preNotifyRemovedObject(GenericContext.java:528)

              at atg.nucleus.GenericContext.removeElement(GenericContext.java:566)

              at atg.servlet.SessionNameContext.unbindFromNameContext(SessionNameContext.java:557)

              at atg.servlet.SessionNameContext.stopSession(SessionNameContext.java:534)

              at atg.servlet.SessionNameContext.decrementWrapperCount(SessionNameContext.java:242)

              at atg.servlet.SessionBindingReporter.valueUnbound(SessionBindingReporter.java:206)

              at org.apache.catalina.session.StandardSession.removeAttributeInternal(StandardSession.java:1625)

              at org.apache.catalina.session.StandardSession.expire(StandardSession.java:749)

              at org.apache.catalina.session.StandardSession.expire(StandardSession.java:655)

              at org.apache.catalina.session.StandardSession.invalidate(StandardSession.java:1100)

              at org.apache.catalina.session.StandardSessionFacade.invalidate(StandardSessionFacade.java:150)

              at atg.userprofiling.email.TemplateInvoker$TemplateSession.endSession(TemplateInvoker.java:935)

              at atg.userprofiling.email.TemplateEmailSender.createMessage(TemplateEmailSender.java:2387)