Instead of two different letters ATG sends the same

Hi All!
I'm trying to notify administrator and customer about submitted action with emailing. At first I send a letter to administrator and then another one to a customer. The same function is used in both cases with different email templates and recipients' addresses:
getEmailSender().sendEmailMessage(templateEmailInfo, recipients, true, false);
But both recipients receive the same letter! The letter which was the last, customer's letter. Quite a strange behavior, isn't it?
For the sake of an experiment I've placed a pause between the two sending of notifications, e.g. Thread.sleep(1000L);, and it works perfect! - administrator and customer have their own letters.
When I trying to send notification in one thread: *getEmailSender().sendEmailMessage(templateEmailInfo, recipients, false, false);* (e.g. getEmailSender().sendEmailMessage(templateEmailInfo, recipients); ), emailing works perfect, but the following exception is occurred:
15:52:58,350 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
java.util.EmptyStackException
at java.util.Stack.peek(Stack.java:85)
at atg.multisite.SiteContextManager.popSiteContext(SiteContextManager.java:298)
at atg.multisite.SiteContextManager.popSiteContext(SiteContextManager.java:259)
at atg.multisite.SiteContextPipelineServlet.service(SiteContextPipelineServlet.java:389)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at atg.servlet.pipeline.HeadPipelineServlet.passRequest(HeadPipelineServlet.java:1174)
at atg.servlet.pipeline.HeadPipelineServlet.service(HeadPipelineServlet.java:857)
at atg.servlet.pipeline.PipelineableServletImpl.service(PipelineableServletImpl.java:250)
at atg.filter.dspjsp.PageFilter.doFilter(PageFilter.java:263)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:183)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:95)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:451)
at java.lang.Thread.run(Thread.java:662)
As far as I understand the exception is a cause of multisite feature, but have no idea how to fix it.
Could anybody please help me?
Thank you in advance,
Viktar
Edited by: 920802 on Mar 14, 2012 6:53 AM
Edited by: 920802 on Mar 14, 2012 6:54 AM
Edited by: 920802 on Mar 14, 2012 6:55 AM
Edited by: 920802 on Mar 14, 2012 6:55 AM

Hi Viktar,
We have a KM document on exactly this topic:
Emails being sent to the wrong recipient or containing another user's info (Doc ID 1038177.1)
https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&id=1038177.1
This should explain how to troubleshoot this problem which is actually a problem with your custom code using the TemplateEmailSender.
It obviously does require you to have support access on the My Oracle Support (MOS) site.
Thanks.
Nick Glover
Oracle Support for ATG Products

Similar Messages

  • Can iCloud on a Windows 7 PC be used with two different Apple accounts at the same time?

    Can iCloud on a Windows 7 PC support two different Apple accounts at the same time?

    You should be able to do this by using the Multifox add-on - http://br.mozdev.org/multifox/

  • HT204053 If I have set up my Mac with two different users,  can I use two different Apple IDs on the same Mac?

    If I have set up my Mac with two different users,  can I use two different Apple IDs on the same Mac?

    Each user account may have its own Apple ID.

  • Can I download two different itunes accts on the same computer

    Can I downloan two different Itunes accounts on the same computer under different users???  I have 3 Iphones and they don't want to share an itunes acct.

    Yes. Launch iTunes with the Shift key held down as needed, or use separate Windows user accounts on the computer.
    (107261)

  • Can we have two different itunes accounts on the same mac?

    Can we have two different itunes accounts on the same account? I am having trouble accessing mine from my sons.

    Yes you can.
    The fact you cannot access your son's library from your User account is intentional. User accounts on your Mac are nearly as separate from each other as your Macs are from anyone else's on the planet. To copy music from his account to yours, first copy it to the Shared folder, then log into your account and import the music. Then, you can erase it from Shared.
    The Shared folder exists at /Users/Shared.
    Read
    iTunes: How to share music between different accounts on a single computer
    OS X Mavericks: Set up users on your Mac

  • How do I set two different beat measures in the same project, e.g. 2/4 and 3/4?

    How do I set two different beat measures in the same project, e.g. 2/4 and 3/4?

    mpcsouza wrote:
    How do I set two different beat measures in the same project, e.g. 2/4 and 3/4?
    you can't, GB is restricted to a single time signature per project
    however, the time sig is really more cosmetic, it doesn't affect the way the project plays back, so you could set the project to 2/4 when working on the 2/4 parts, and 3/4 when working on the 3/4 parts

  • Forward two different dial numbers at the same time to the same destination

    Hello everybody,
    I need to forward two different dial numbers in the same phone (Cisco 6921) to the same destination.
    I'd change the phone if it'll be necessary.
    Forward from the end user web is not a valid posibility. It is neccesary to do this forward from the phone.
    Any idea, suggestion or testing scenario should be appreciated.
    I use CUCM 8.5
    Thanks in advance.

    you can mask the other number by using translation pattern 

  • Is it a problem having two different Ipod accounts on the same computer?

    I have just bought an Ipod Nano for my wife. I have a 30 Gb Ipod my self.
    My question is:
    Is it a problem, having two different Ipod accounts on the same computer?
    Are there something I should be aware of before connecting the second Ipod?
      Windows XP  

    hiya!
    these resources might be of some help with your questions:
    Natalie Beresford: multiple iPod/iTunes installations
    How to use multiple iPods with one computer
    iTunes: How to share music between different accounts on a single computer
    love, b

  • How does one set up two different iTunes accounts on the same computer so that they do not merge into one?

    How does one set up two different iTunes accounts on the same computer so that they do not merge into one?

    mparker402 wrote:
    So, when the other iTunes account needs to be used, I should log out of Windows and have the other user log in under a different Windows account, correct?  
    M Parker, 
    Yes, since you are trying to keep things separate, that is exactly what you would do.

  • How do you set up two different icloud accounts on the same itunes account?

    How do you set up two different icloud accounts on the same itunes account?

    Don't know what you mean.
    Please explain.

  • Can I install two different iPhoto applications on the same Mac?

    Can I install two different iPhoto applications on the same Mac?

    Please explain in more detail what you are wanting to do.
    Do you want to have two different versions of iPhoto, have two different Libraries or Share iPhoto with multiple users?
    Two different iPhoto versions (06 and 08, 08 and 09 for examples) is a problem and I say no because the older version can not use a Library that the newer version has modified. 
    For iPhoto support articles, see >  Apple - Support - Mac Apps - iPhoto
    To Share a Library with other users, see > iPhoto: Sharing libraries among multiple users
    To Move a Library, see > iPhoto '11: Move your iPhoto library to a new location

  • Two different iPhoto libraries on the same iPod

    Is it possible to synchronize two different iPhoto libraries on the same iPod Touch ? And, if yes, how ?
    Thank you for your help.
    Francis

    Please explain in more detail what you are wanting to do.
    Do you want to have two different versions of iPhoto, have two different Libraries or Share iPhoto with multiple users?
    Two different iPhoto versions (06 and 08, 08 and 09 for examples) is a problem and I say no because the older version can not use a Library that the newer version has modified. 
    For iPhoto support articles, see >  Apple - Support - Mac Apps - iPhoto
    To Share a Library with other users, see > iPhoto: Sharing libraries among multiple users
    To Move a Library, see > iPhoto '11: Move your iPhoto library to a new location

  • Can you have two different itunes account on the same computer

    how can you have 2 different itunes accounts on the same computer?

    You would need two seperate users on the computer. Then each library would be independent of each other. Or do you mean two seperate iTunes store accounts?

  • Can I connect two iPhones to two different iTunes account on the same iMac?

    I have one (1) iMac and two (2) iPhones and two (2) iPads...
    I have set up two (2) login accounts on the same iMac... one for myself and another for my wife.
    Likewise I have setup iTunes account for myself and for my wife in both the logins... the problem occurs when I try and sync my wife's iPhone to her version of the iTunes...
    By the way I have authorised the same iMac with both the iTunes account so that me and my wife can have a individual setups and not mess with each others apps / music.
    Any help would be welcome.
    Thanks 

    Each iTunes account is linked to a different Apple ID.  Setup one iPhone with the Apple ID for your wife and the other with the Apple ID for yourself.  Then sync the iPhones to their respective login/iTunes accounts on the Mac.

  • Load balancing within the same ACE across two different contexts residing on the same vlan

    I'm working on a design that requires traffic be sent to a different context in the same ACE. The question I have is can this be done when both reside on the same VLAN. Would the traffic in this case be handled at layer 2 instead of layer 7. Would I have to create a seperate subnet in order to provide loadbalancing?
    |__________________|
    |   | vlan 5         |         |
        |                  |
        |                  |
    Context A        |
                           |
                           |
                        Context B
    Thanks, Jerilyn

    by design, two contexts on the same box in the same vlan can't communicate. You have to use an external L3 device.
    A workaround may be to use two diferent vlans and then bridge between them with a loopback cable.

Maybe you are looking for

  • OM problem in transporting the request

    Message no. 5W612 Diagnosis The system has transported a relationship to the specified object of an object currently being activated. However, the relationship cannot be activated. The problem is usually caused by the related object not being availab

  • How can I duplicate a card in "Contacts"?

    Hi, Using Macs since 1985. Does someone know WHY ON EARTH did some dumb-*** remove the ability to duplicate a contact in Contacts app? (X at least since Lion or definitely Mavericks. Why on earth should I have to manually duplicate a contact card whe

  • Doc files have been renamed to unknown file format .bhdiraa

    Hey All, Randomly doc extensions files are being renamed to doc.bhdiraa .It looks like files have been encrypted. Files are shared on the server and served by 100s of users (From WAN and LAN end).We did scan server with Many AVs and with virustotal.c

  • Checking the health of Oracle database

    How to make sure that the Oracle database Server is running at any given time. Is there any way I can send the small data pockets to cross check it is up and running. I can always try to connect to Oracle database server and if it fails I know it is

  • Mail Merging from Numbers

    I'm trying to Mail Merge from Numbers into Pages to generate mailing envelopes. I've built the columns in my Numbers spreadsheet to correspond to individual merge fields (street, city, state, zip), and I can build my merge template in Pages. When I t