webMethods

webMethods

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  SMTP - ClassCastException

    Posted Sat August 09, 2008 01:15 AM

    Hi All,

    I am trying to send HTML mail and for the same i have created the template. I am running runTemplateOnPipe service whose output $txt is mapped with attachements/content and attachement/contenttype is text/html and other all parameters are hardcoded like to,cc,mailhost and all. I guess i have mapped everthing properly but still i am getting java.lang.ClassCastException in pub.client:smtp service.

    Can you please tell me what’s wrong in this.

    Thanks
    Atul


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 2.  RE: SMTP - ClassCastException

    Posted Mon August 11, 2008 06:54 PM

    Hi All Experts,

    Waiting for your comments on this Class cast exception while using SMTP service. Please suggest.

    Thanks


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 3.  RE: SMTP - ClassCastException

    Posted Thu May 26, 2011 07:48 PM

    Hi Atul,

    I am facing the same issue. Were you ever able to fix it? Can you please tell me what was the solution?

    Thanks,
    SM


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods


  • 4.  RE: SMTP - ClassCastException

    Posted Fri May 27, 2011 05:18 AM

    Hi Patil,

    What is that you are passing as a $txt…i mean which data type is it…if i am not wrong SMTP service will pick up everything in the pipeline named as an attachment…once you remove your attachment and work out…


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 5.  RE: SMTP - ClassCastException

    Posted Fri May 27, 2011 06:01 PM

    Hi Rajesh,

    I am facing similar problem with pub.client.smtp service. I am using runStringTemplate service to create HTML string and I am mapping it to attachment/content varible of pub.client.smtp. This works fine in my UAT env. I moved same code to Test/Dev envs. Now everytime when I invoke pub.client.smtp service, it throws java.lang.ClassCastException and it goes to catch block. I am not sure if there some java class mismatch between environments or something else. Any suggestion?

    Thanks
    SM


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 6.  RE: SMTP - ClassCastException

    Posted Fri May 27, 2011 09:34 PM