MessagingException

I'm annoyed because I have this Exception with occured within my HTML page when I'm using it out of Jbuilder.
While I'm using the HTML page (generated in Jbuilder) in Jbuider I don't have any problem and my mail is sent, but not when I'm using it outside of the Jbuilder soft....
Here is the Message I get:
java.lang.ClassNotFoundException: javax.mail.MessagingException
     at com/ms/vm/loader/URLClassLoader.loadClass
     at java/lang/ClassLoader.loadClassInternal
     at newholiday/Applet1.buttonEnvoi_mouseClicked
     at newholiday/Applet1$2.mouseClicked
     at java/awt/Component.processMouseEvent
     at java/awt/Component.processEvent
     at java/awt/Button.processEvent
     at java/awt/Component.dispatchEventImpl
     at java/awt/Component.dispatchEvent
     at com/ms/awt/ZComponentPeer.processEvent
     at java/awt/Component.dispatchEventImpl
     at java/awt/Container.dispatchEventImpl
     at java/awt/Component.dispatchEvent
     at java/awt/EventDispatchThread.run
Could somebody help me please???
My problem is the following one.
package newholiday;
import java.awt.*;
import java.awt.event.*;
import java.applet.*;
import java.util.*;
import java.lang.System;
import java.util.Properties;
import javax.mail.*;
import javax.mail.internet.*;
public class Applet1 extends Applet {
boolean isStandalone = false;
//Get a parameter value
Panel panneauConge = new Panel();
Label Label1 = new Label();
Choice jourDeb = new Choice();
Choice moisDeb = new Choice();
Label Label2 = new Label();
Choice anneeDeb = new Choice();
Choice jourFin = new Choice();
Choice moisFin = new Choice();
Choice anneeFin = new Choice();
TextField jourTravail = new TextField();
Label Label3 = new Label();
String nomEmploye = new String();
// Vector demandeConges = new Vector();
int nombreConges = 0;
String[] etatEnvoi = { "Envoi en cours, attendez svp", "Envoi OK","Envoi KO","Envoi"};
StringBuffer tampon = new StringBuffer("Holiday Request ");
double posX=0;
double posPanelY=0;
double posHeigth = 0;
double posComponentY = 0;
double posWorkDaysY = 0;
Button buttonValidation = new Button();
Choice typeConge = new Choice();
TextArea listeConges = new TextArea();
// ScrollPane scrollPane1 = new ScrollPane();
Button buttonEnvoi = new Button();
Label etatAvancement = new Label();
public String getParameter(String key, String def) {
return isStandalone ? System.getProperty(key, def) :
(getParameter(key) != null ? getParameter(key) : def);
//Construct the applet
public Applet1() {
//Initialize the applet
public void init() {
try {
jbInit();
catch(Exception e) {
e.printStackTrace();
//Component initialization
private void jbInit() throws Exception {
String libelPeriod = "P�riode";
Calendar cal = Calendar.getInstance();
tampon.append(nomEmploye);
tampon.append("\n");
tampon.append("Date:"+cal.get(Calendar.DAY_OF_MONTH)+"/"+cal.get(Calendar.MONTH)+"/"+cal.get(Calendar.YEAR));
tampon.append("\n");
tampon.append("\n");
panneauConge.setBackground(Color.white);
panneauConge.setBounds(new Rectangle(-1, 7, 467, 105));
buttonValidation.setBackground(SystemColor.info);
buttonValidation.setBounds(new Rectangle(19, 117, 171, 32));
buttonValidation.setLabel("Validation");
buttonValidation.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(MouseEvent e) {
buttonValidation_mouseClicked(e);
typeConge.setBounds(new Rectangle(271, 68, 119, 24));
typeConge.addItem("Cong� l�gal");
typeConge.addItem("Cong� sans solde");
typeConge.addItem("R�cup�ration");
typeConge.addItem("Maladie");
typeConge.addItem("Autres");
// scrollPane1.add(listeConges);
// scrollPane1.setBounds(new Rectangle(19, 157, 400, 219));
listeConges.setBounds(new Rectangle(19, 157, 400, 219));
buttonEnvoi.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(MouseEvent e) {
buttonEnvoi_mouseClicked(e);
buttonEnvoi.setLabel("Envoi");
buttonEnvoi.setBounds(new Rectangle(204, 117, 199, 32));
buttonEnvoi.setBackground(SystemColor.info);
etatAvancement.setEnabled(false);
etatAvancement.setFont(new java.awt.Font("DialogInput", 1, 20));
etatAvancement.setForeground(Color.red);
etatAvancement.setBounds(new Rectangle(19, 388, 403, 38));
this.setBackground(Color.white);
panneauConge.add(Label1, null);
panneauConge.add(Label2, null);
panneauConge.add(anneeDeb, null);
panneauConge.add(moisDeb, null);
panneauConge.add(jourDeb, null);
panneauConge.add(jourFin, null);
panneauConge.add(moisFin, null);
panneauConge.add(anneeFin, null);
panneauConge.add(jourTravail, null);
panneauConge.add(Label3, null);
panneauConge.add(typeConge, null);
this.add(buttonEnvoi, null);
this.add(buttonValidation, null);
this.add(etatAvancement, null);
// this.add(scrollPane1, null);
this.add(listeConges, null);
this.add(panneauConge, null);
this.setLayout(null);
panneauConge.setLayout(null);
Label1.setText("Pour une p�riode du ");
Label1.setBounds(new Rectangle(11, 8, 116, 17));
Label2.setText("au");
Label2.setBounds(new Rectangle(360, 5, 22, 17));
jourDeb.setBounds(new Rectangle(133, 5, 51, 21));
jourDeb.addItem("01");
jourDeb.addItem("02");
jourDeb.addItem("03");
jourDeb.addItem("04");
jourDeb.addItem("05");
jourDeb.addItem("06");
jourDeb.addItem("07");
jourDeb.addItem("08");
jourDeb.addItem("09");
jourDeb.addItem("10");
jourDeb.addItem("11");
jourDeb.addItem("12");
jourDeb.addItem("13");
jourDeb.addItem("14");
jourDeb.addItem("15");
jourDeb.addItem("16");
jourDeb.addItem("17");
jourDeb.addItem("18");
jourDeb.addItem("19");
jourDeb.addItem("20");
jourDeb.addItem("21");
jourDeb.addItem("22");
jourDeb.addItem("23");
jourDeb.addItem("24");
jourDeb.addItem("25");
jourDeb.addItem("26");
jourDeb.addItem("27");
jourDeb.addItem("28");
jourDeb.addItem("29");
jourDeb.addItem("30");
jourDeb.addItem("31");
moisDeb.setBounds(new Rectangle(190, 4, 104, 21));
moisDeb.addItem("Janvier");
moisDeb.addItem("F�vrier");
moisDeb.addItem("Mars");
moisDeb.addItem("Avril");
moisDeb.addItem("Mai");
moisDeb.addItem("Juin");
moisDeb.addItem("Juillet");
moisDeb.addItem("Ao�t");
moisDeb.addItem("Septembre");
moisDeb.addItem("Octobre");
moisDeb.addItem("Novembre");
moisDeb.addItem("D�cembre");
anneeDeb.setBounds(new Rectangle(304, 5, 52, 21));
anneeDeb.addItem("2002");
anneeDeb.addItem("2003");
anneeDeb.addItem("2004");
jourFin.setBounds(new Rectangle(132, 32, 51, 21));
moisFin.setBounds(new Rectangle(191, 32, 104, 21));
anneeFin.setBounds(new Rectangle(305, 32, 52, 21));
jourTravail.setText("0");
jourTravail.setBounds(new Rectangle(131, 68, 37, 20));
Label3.setText("Jour de travail");
Label3.setBounds(new Rectangle(174, 62, 90, 30));
jourFin.addItem("01");
jourFin.addItem("02");
jourFin.addItem("03");
jourFin.addItem("04");
jourFin.addItem("05");
jourFin.addItem("06");
jourFin.addItem("07");
jourFin.addItem("08");
jourFin.addItem("09");
jourFin.addItem("10");
jourFin.addItem("11");
jourFin.addItem("12");
jourFin.addItem("13");
jourFin.addItem("14");
jourFin.addItem("15");
jourFin.addItem("16");
jourFin.addItem("17");
jourFin.addItem("18");
jourFin.addItem("19");
jourFin.addItem("20");
jourFin.addItem("21");
jourFin.addItem("22");
jourFin.addItem("23");
jourFin.addItem("24");
jourFin.addItem("25");
jourFin.addItem("26");
jourFin.addItem("27");
jourFin.addItem("28");
jourFin.addItem("29");
jourFin.addItem("30");
jourFin.addItem("31");
moisFin.addItem("Janvier");
moisFin.addItem("F�vrier");
moisFin.addItem("Mars");
moisFin.addItem("Avril");
moisFin.addItem("Mai");
moisFin.addItem("Juin");
moisFin.addItem("Juillet");
moisFin.addItem("Ao�t");
moisFin.addItem("Septembre");
moisFin.addItem("Octobre");
moisFin.addItem("Novembre");
moisFin.addItem("D�cembre");
anneeFin.addItem("2002");
anneeFin.addItem("2003");
anneeFin.addItem("2004");
//Start the applet
public void start() {
//Stop the applet
public void stop() {
//Destroy the applet
public void destroy() {
//Get Applet information
public String getAppletInfo() {
return "Applet Information";
//Get parameter info
public String[][] getParameterInfo() {
nomEmploye = getParameter("nomEmploye");
return null;
//Main method
public static void main(String[] args) {
Applet1 applet = new Applet1();
applet.isStandalone = true;
Frame frame;
frame = new Frame() {
protected void processWindowEvent(WindowEvent e) {
super.processWindowEvent(e);
if (e.getID() == WindowEvent.WINDOW_CLOSING) {
System.exit(0);
public synchronized void setTitle(String title) {
super.setTitle(title);
enableEvents(AWTEvent.WINDOW_EVENT_MASK);
frame.setTitle("Applet Frame");
frame.add(applet, BorderLayout.CENTER);
applet.init();
applet.start();
frame.setSize(400,320);
Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
frame.setLocation((d.width - frame.getSize().width) / 2, (d.height - frame.getSize().height) / 2);
frame.setVisible(true);
void buttonValidation_mouseClicked(MouseEvent e) {
buttonEnvoi.setLabel(etatEnvoi[3]);
String valjourTravail = "O";
String numConge = " ";
nombreConges = nombreConges + 1;
listeConges.append("P�riode ");
tampon.append("P�riode ");
listeConges.append(Integer.toString(nombreConges));
tampon.append(Integer.toString(nombreConges));
listeConges.append(":\n\t");
tampon.append(":\n\t");
listeConges.append(jourDeb.getSelectedItem());
tampon.append(jourDeb.getSelectedItem());
listeConges.append(" ");
tampon.append(" ");
listeConges.append(moisDeb.getSelectedItem());
tampon.append(moisDeb.getSelectedItem());
listeConges.append(" ");
tampon.append(" ");
listeConges.append(anneeDeb.getSelectedItem());
tampon.append(anneeDeb.getSelectedItem());
listeConges.append(" au ");
tampon.append(" au ");
listeConges.append(jourFin.getSelectedItem());
tampon.append(jourFin.getSelectedItem());
listeConges.append(" ");
tampon.append(" ");
listeConges.append(moisFin.getSelectedItem());
tampon.append(moisFin.getSelectedItem());
listeConges.append(" ");
tampon.append(" ");
listeConges.append(anneeFin.getSelectedItem());
tampon.append(anneeFin.getSelectedItem());
listeConges.append("\n\t");
tampon.append("\n\t");
listeConges.append(jourTravail.getText());
tampon.append(jourTravail.getText());
listeConges.append(" Jours de travail \n\t");
tampon.append(" Jours de travail \n\t");
listeConges.append(typeConge.getSelectedItem());
tampon.append(typeConge.getSelectedItem());
listeConges.append("\n\n ************************************************* \n\n");
tampon.append("\n\n ************************************************* \n\n");
void buttonEnvoi_mouseClicked(MouseEvent e) {
buttonEnvoi.setLabel(etatEnvoi[0]);
etatAvancement.setText(etatEnvoi[0]);
String host = "mail.infoteam.be";
String from = "[email protected]";
String to = "[email protected]";
// Get system properties
Properties props = System.getProperties();
// Setup mail server
props.put("mail.smtp.host", host);
//props.put("mail.infoteam.be", host);
// Get session
Session session = Session.getDefaultInstance(props, null);
// Define message
MimeMessage message = new MimeMessage(session);
try {
message.setFrom(new InternetAddress(from));
// Set the to address
message.addRecipient(Message.RecipientType.TO,new InternetAddress(to));
// Set the subject
message.setSubject("Holiday Request");
// Set the content
// ecrit un bout de chaine
message.setText(tampon.toString());
// Send message
Transport.send(message);
buttonEnvoi.setLabel(etatEnvoi[1]);
etatAvancement.setText(etatEnvoi[1]);
buttonEnvoi.setBackground(SystemColor.info);
etatAvancement.setForeground(Color.green);
catch(MessagingException me){
buttonEnvoi.setLabel(etatEnvoi[2]);
etatAvancement.setText(etatEnvoi[2]);
int n=0;
Runtime.getRuntime().exit(n);*/

Look again. The message you get is not MessagingException, but java.lang.ClassNotFoundException. And that's the usual problem, JVM can't find that class because it isn't in the classpath. But it appears you are using an applet. So you will have to make sure that mail.jar and activation.jar are accessible via its codebase parameter.

Similar Messages

  • Getting Exception of MessagingException

    Hi All,
    I am developing Email Application which retrieve the emails from the Gmail Account.
    But I am getting the Exception:
    1)
    javax.mail.MessagingException: Connect failed;  nested exception is: java.io.IOException: Couldn't connect using "javax.net.ssl.SSLSocketFactory" socket factory to host, port: pop.gmail.com, 995; Exception: java.lang.reflect.InvocationTargetException
    2)
    javax.mail.MessagingException: Not connected
    Following is my program.
    // This file has been generated partially by the Web Dynpro Code Generator.
    // MODIFY CODE ONLY IN SECTIONS ENCLOSED BY @@begin AND @@end.
    // ALL OTHER CHANGES WILL BE LOST IF THE FILE IS REGENERATED.
    package com.sap.training;
    // IMPORTANT NOTE:
    // _ALL_ IMPORT STATEMENTS MUST BE PLACED IN THE FOLLOWING SECTION ENCLOSED
    // BY @@begin imports AND @@end. FURTHERMORE, THIS SECTION MUST ALWAYS CONTAIN
    // AT LEAST ONE IMPORT STATEMENT (E.G. THAT FOR IPrivateAccessGmailComp).
    // OTHERWISE, USING THE ECLIPSE FUNCTION "Organize Imports" FOLLOWED BY
    // A WEB DYNPRO CODE GENERATION (E.G. PROJECT BUILD) WILL RESULT IN THE LOSS
    // OF IMPORT STATEMENTS.
    //@@begin imports
    import java.io.IOException;
    import java.util.Properties;
    import javax.mail.Folder;
    import javax.mail.MessagingException;
    import javax.mail.Multipart;
    import javax.mail.Part;
    import javax.mail.Session;
    import javax.mail.Store;
    import javax.mail.URLName;
    import com.sap.training.wdp.IPrivateAccessGmailComp;
    import com.sap.training.wdp.IPublicAccessGmailComp;
    //@@end
    //@@begin documentation
    //@@end
    public class AccessGmailComp
       * Logging location.
      private static final com.sap.tc.logging.Location logger =
        com.sap.tc.logging.Location.getLocation(AccessGmailComp.class);
      static
        //@@begin id
        String id = "$Id$";
        //@@end
        com.sap.tc.logging.Location.getLocation("ID.com.sap.tc.webdynpro").infoT(id);
       * Private access to the generated Web Dynpro counterpart
       * for this controller class.  </p>
       * Use <code>wdThis</code> to gain typed access to the context,
       * to trigger navigation via outbound plugs, to get and enable/disable
       * actions, fire declared events, and access used controllers and/or
       * component usages.
       * @see com.sap.training.wdp.IPrivateAccessGmailComp for more details
      private final IPrivateAccessGmailComp wdThis;
       * Root node of this controller's context. </p>
       * Provides typed access not only to the elements of the root node
       * but also to all nodes in the context (methods node<i>XYZ</i>())
       * and their currently selected element (methods current<i>XYZ</i>Element()).
       * It also facilitates the creation of new elements for all nodes
       * (methods create<i>XYZ</i>Element()). </p>
       * @see com.sap.training.wdp.IPrivateAccessGmailComp.IContextNode for more details.
      private final IPrivateAccessGmailComp.IContextNode wdContext;
       * A shortcut for <code>wdThis.wdGetAPI()</code>. </p>
       * Represents the generic API of the generic Web Dynpro counterpart
       * for this controller. </p>
      private final com.sap.tc.webdynpro.progmodel.api.IWDComponent wdControllerAPI;
       * A shortcut for <code>wdThis.wdGetAPI().getComponent()</code>. </p>
       * Represents the generic API of the Web Dynpro component this controller
       * belongs to. Can be used to access the message manager, the window manager,
       * to add/remove event handlers and so on. </p>
      private final com.sap.tc.webdynpro.progmodel.api.IWDComponent wdComponentAPI;
      public AccessGmailComp(IPrivateAccessGmailComp wdThis)
        this.wdThis = wdThis;
        this.wdContext = wdThis.wdGetContext();
        this.wdControllerAPI = wdThis.wdGetAPI();
        this.wdComponentAPI = wdThis.wdGetAPI().getComponent();
      //@@begin javadoc:wdDoInit()
      /** Hook method called to initialize controller. */
      //@@end
      public void wdDoInit()
        //@@begin wdDoInit()
        //@@end
      //@@begin javadoc:wdDoExit()
      /** Hook method called to clean up controller. */
      //@@end
      public void wdDoExit()
        //@@begin wdDoExit()
        //@@end
      //@@begin javadoc:wdDoPostProcessing()
       * Hook called to handle data retrieval errors before rendering.
       * After doModifyView(), the Web Dynpro Framework gets all context data needed
       * for rendering by validating the contexts (which in turn calls the supply
       * functions and supplying relation roles). In this hook, the application
       * should handle the errors which occurred during validation of the contexts.
       * Using preorder depth-first traversal, this hook is called for all component
       * controllers starting with the current root component.
       * Permitted operations:
       * - Flushing model queue
       * - Creating messages
       * - Reading context and model data
       * Forbidden operations:
       * - Invalidating model data
       * - Manipulating the context
       * - Firing outbound plugs
       * - Creating components
       * @param isCurrentRoot true if this is the root of the current request
      //@@end
      public void wdDoPostProcessing(boolean isCurrentRoot)
        //@@begin wdDoPostProcessing()
        //@@end
      //@@begin javadoc:wdDoBeforeNavigation()
       * Hook before the navigation phase starts.
       * This hook allows you to flush the model queue and handle any
       * errors that occur. Firing outbound plugs is allowed in this hook.
       * Using preorder depth-first traversal, this hook is called for all component
       * controllers starting with the current root component.
       * @param isCurrentRoot true if this is the root of the current request
      //@@end
      public void wdDoBeforeNavigation(boolean isCurrentRoot)
        //@@begin wdDoBeforeNavigation()
        //@@end
      //@@begin javadoc:wdDoApplicationStateChange()
       * Hook that informs the application about a state change.
       * <p>
       * This hook is called e.g. to tell the application that will be
       * <ul>
       *  <li>left via a suspend plug and therefore should go into a suspend/sleep
       *      mode with minimal need of resources. errors that occur. Firing
       *      outbound plugs is allowed in this hook.
       *  <li>left due to a timeout and could write it's state to a data base if the
       *      user comes back later on
       * </ul>
       * The concrete reason is available via IWDApplicationStateChangeInfo
       * <p>
       * <b>Important</b>: This hook is called for the top level component only!
       * @param stateChangeInfo contains the information about the nature of the state change
       * @param stateChangeReturn allows the application to ask for a different state change.
       *        The framework is allowed to ignore it considering i.e. the current resources situation.
      //@@end
      public void wdDoApplicationStateChange(com.sap.tc.webdynpro.progmodel.api.IWDApplicationStateChangeInfo stateChangeInfo, com.sap.tc.webdynpro.progmodel.api.IWDApplicationStateChangeReturn stateChangeReturn)
        //@@begin wdDoApplicationStateChange()
        //@@end
      //@@begin javadoc:Login()
      /** Declared method. */
      //@@end
      public void Login( )
        //@@begin Login()
         try
              Properties props = System.getProperties();
              //props.setProperty("mail.pop3.socketFactory.class", SSL_FACTORY);
              props.setProperty("mail.pop3.socketFactory.class", "javax.net.ssl.SSLSocketFactory");
              props.setProperty("mail.pop3.socketFactory.fallback", "false");
              props.setProperty("mail.pop3.port", "995");
              props.setProperty("mail.pop3.socketFactory.port", "995");
              Session session = Session.getDefaultInstance(props,null);
              URLName urln = new URLName("pop3","pop.gmail.com",995,null,
              wdContext.nodeVnLogin().currentVnLoginElement().getVaUsername(),
              wdContext.nodeVnLogin().currentVnLoginElement().getVaPassword());
              store = session.getStore(urln);
              store.connect();
              wdComponentAPI.getMessageManager().reportSuccess("Suceesfully login");
         catch(MessagingException e)
              wdComponentAPI.getMessageManager().reportSuccess(e.toString());
        //@@end
      //@@begin javadoc:getInboxMsg()
      /** Declared method. */
      //@@end
      public void getInboxMsg( )
        //@@begin getInboxMsg()
         try
              Folder folder = store.getFolder("INBOX");
              folder.open(Folder.READ_ONLY);
              message = folder.getMessages();
              IPublicAccessGmailComp.IVnInboxElement inBoxElement;
                   for(int i=0;i<message.length;i++)
                        inBoxElement=wdContext.nodeVnInbox().createVnInboxElement();
                        inBoxElement.setVaFrom(message<i>.getFrom()[0].toString());
                        inBoxElement.setVaSubject(message<i>.getSubject());
    //                    inBoxElement.setVaIndex(i);
                        wdContext.nodeVnInbox().addElement(inBoxElement);
              wdComponentAPI.getMessageManager().reportSuccess("You have"+wdContext.nodeVnInbox().size()+"message");
              wdContext.nodeVnInbox().setLeadSelection(-1);
         catch(MessagingException e)
              wdComponentAPI.getMessageManager().reportSuccess(e.toString());
        //@@end
      //@@begin javadoc:getTextContent()
      /** Declared method. */
      //@@end
      public void getTextContent( )
        //@@begin getTextContent()
         try
              String temp;
              for(int j=0;j<wdContext.nodeVnInbox().size();j++)
                   if(j<0)
                         temp = "false";
                   else
                         temp = "true";
                   if(wdContext.nodeVnInbox().currentVnInboxElement().getVaIndex() == temp )
                             Object content = message[j].getContent();
                             Multipart multipart=(Multipart)content;
                             Part part=multipart.getBodyPart(0);
                             wdContext.currentContextElement().setCaBodyText(part.getContent().toString());
         catch(MessagingException e)
              wdComponentAPI.getMessageManager().reportSuccess(e.toString());
         catch(IOException e)
                   wdComponentAPI.getMessageManager().reportSuccess(e.toString());
        //@@end
      //@@begin javadoc:Logout()
      /** Declared method. */
      //@@end
      public void Logout( )
        //@@begin Logout()
         try
              store.close();
         catch(MessagingException e)
              wdComponentAPI.getMessageManager().reportSuccess(e.toString());
        //@@end
       * The following code section can be used for any Java code that is
       * not to be visible to other controllers/views or that contains constructs
       * currently not supported directly by Web Dynpro (such as inner classes or
       * member variables etc.). </p>
       * Note: The content of this section is in no way managed/controlled
       * by the Web Dynpro Designtime or the Web Dynpro Runtime.
      //@@begin others
                     //final String SSL_FACTORY = "javax.net.ssl.SSLSocketFactory";
                     Store store;
                     javax.mail.Message message[];
      //@@end
    Pls help me out asap
    Thanks & Regards,
    Dhruv Shah
    Edited by: DS on Feb 20, 2008 3:06 PM

    Hi Dhruv,
    Are you sure you can connect to port 995 from the server?
    Jeschael

  • Com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.lang.NullPointerException in sap pi

    Hi all,
    I am working on SAP PI 7.3.1 SP09. Currently we have interfaces which uses 50200 port. I have created a http destination from nwa pointing to https://....url. So all of a sudden all the interfaces went to error state. After debugging i found that the port 50200 is replaced with 50201which is https port. After changing the port to initial value ie., 50200 all interfaces are working fine except the one which were pointing to https url and they are showing the following error description.
    <SAP:Error SOAP:mustUnderstand="1" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
    <SAP:Category>XIAdapterFramework</SAP:Category>  
    <SAP:Code area="MESSAGE">GENERAL</SAP:Code>  
    <SAP:P1 />  
    <SAP:P2 />  
    <SAP:P3 />  
    <SAP:P4 />  
    <SAP:AdditionalText>com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.lang.NullPointerException</SAP:AdditionalText>  
    <SAP:Stack />  
    <SAP:Retry>M</SAP:Retry>  
    </SAP:Error>
    The entire trace is as follows:
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--
    Inbound Message
    --> 
    - <SAP:Trace xmlns:SAP="http://sap.com/xi/XI/Message/30"> 
    <Trace level="1" type="T">Party normalization: sender</Trace>  
    <Trace level="3" type="T">Sender scheme external =</Trace>  
    <Trace level="3" type="T">Sender agency external =</Trace>  
    <Trace level="3" type="T">Sender party external =</Trace>  
    <Trace level="3" type="T">Sender party normalized =</Trace>  
    <Trace level="1" type="T">Determining the sender agreement</Trace>  
    <Trace level="3" type="T">##### DG: 3</Trace>  
    <Trace level="3" type="T">##### TO: 3</Trace>  
    <Trace level="1" type="T">XMB was called with URL /sap/xi/engine/?type=entry</Trace>  
    <Trace level="2" type="T">Request Line = POST /sap/xi/engine/?type=entry HTTP/1.0</Trace>  
    <Trace level="2" type="T">Host = 10.66.14.150:50200</Trace>  
    <Trace level="2" type="T">Server protocol = HTTP/1.0</Trace>  
    <Trace level="1" type="T">Remote address = 10.66.10.160</Trace>  
    <Trace level="1" type="T">User = SFUSER</Trace>  
    <Trace level="1" type="T">Process ID: 760</Trace>  
    <Trace level="1" type="T">Work Process ID: 10</Trace>  
    <Trace level="1" type="T">Message ID = 53BEFE7146893BD5E10000000A420AA0</Trace>  
    - <Trace level="1" type="B" name="CL_XMS_MAIN-ENTER_XMS"> 
    <Trace level="1" type="T">CL_XMS_MAIN->DETERMINE_EXT_PID: CENTRAL</Trace>  
    <Trace level="3" type="T">##### DG: 3</Trace>  
    <Trace level="3" type="T">##### TO: 3</Trace>  
    <Trace level="1" type="T">Hop engine name = is.02.devpipd1</Trace>  
    <Trace level="1" type="T">Hop engine type = IS</Trace>  
    <Trace level="1" type="T">Hop adapter name = XI</Trace>  
    <Trace level="1" type="T">Hop adapter namespace = http://sap.com/xi/XI/System</Trace>  
    - <Trace level="1" type="B" name="CL_XMS_TROUBLESHOOT-ENTER_PLSRV"> 
    <Trace level="3" type="T">No triggers found. OK.</Trace>  
    </Trace>
    <Trace level="3" type="T">system-ID = PD1</Trace>  
    <Trace level="3" type="T">client = 001</Trace>  
    <Trace level="3" type="T">language = E</Trace>  
    <Trace level="3" type="T">user = SFUSER</Trace>  
    <Trace level="1" type="Timestamp">2014-07-10T08:56:37Z INDIA</Trace>  
    <Trace level="1" type="T">ACL Check is performed</Trace>  
    <Trace level="1" type="T">XML validation is executed</Trace>  
    </Trace>
    <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_UC_EXECUTE" />  
    - <!-- ************************************
    -->   
    <Trace level="1" type="T">PLNAME = CENTRAL</Trace>  
    <Trace level="1" type="T">QOS = BE</Trace>  
    <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PIPELINE_SYNC" />  
    - <!-- ************************************
    -->   
    <Trace level="1" type="T">>>>PID delete old pid determination coding</Trace>  
    <Trace level="3" type="T">Pipeline-Elements for pipeline SAP_CENTRAL</Trace>  
    <Trace level="3" type="T">0001 PLSRV_XML_VALIDATION_RQ_INB</Trace>  
    <Trace level="3" type="T">0002 PLSRV_RECEIVER_DETERMINATION</Trace>  
    <Trace level="3" type="T">0003 PLSRV_INTERFACE_DETERMINATION</Trace>  
    <Trace level="3" type="T">0004 PLSRV_RECEIVER_MESSAGE_SPLIT</Trace>  
    <Trace level="3" type="T">0005 PLSRV_MAPPING_REQUEST</Trace>  
    <Trace level="3" type="T">0006 PLSRV_OUTBOUND_BINDING</Trace>  
    <Trace level="3" type="T">0007 PLSRV_VIRUS_SCAN_RQ_OUT</Trace>  
    <Trace level="3" type="T">0008 PLSRV_XML_VALIDATION_RQ_OUT</Trace>  
    <Trace level="3" type="T">0009 PLSRV_CALL_ADAPTER</Trace>  
    <Trace level="3" type="T">0010 PLSRV_VIRUS_SCAN_RS_INB</Trace>  
    <Trace level="3" type="T">0011 PLSRV_XML_VALIDATION_RS_INB</Trace>  
    <Trace level="3" type="T">0012 PLSRV_MAPPING_RESPONSE</Trace>  
    <Trace level="3" type="T">0013 PLSRV_VIRUS_SCAN_RS_OUT</Trace>  
    <Trace level="3" type="T">0014 PLSRV_XML_VALIDATION_RS_OUT</Trace>  
    <Trace level="3" type="T">system-ID = PD1</Trace>  
    <Trace level="3" type="T">client = 001</Trace>  
    <Trace level="3" type="T">language = E</Trace>  
    <Trace level="3" type="T">user = SFUSER</Trace>  
    - <Trace level="1" type="B" name="CL_XMS_MESSAGE_PERS_MAN-WRITE_MESSAGE_LOG_TO_PERSIST"> 
    <Trace level="2" type="T">Persisting original message</Trace>  
    <Trace level="3" type="T">Message-Version = 000</Trace>  
    <Trace level="3" type="T">Pipeline CENTRAL</Trace>  
    </Trace>
    <Trace level="3" type="Timestamp">2014-07-10T08:56:37Z INDIA Begin of pipeline processing PLSRVID = CENTRAL</Trace>  
    - <Trace level="1" type="B" name="PLSRV_XML_VALIDATION_RQ_INB"> 
    <Trace level="3" type="Timestamp">2014-07-10T08:56:37Z INDIA Start of pipeline service processing PLSRVID= PLSRV_XML_VALIDATION_RQ_INB</Trace>  
    - <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV"> 
    <Trace level="3" type="T">Calling pipeline service: PLSRV_XML_VALIDATION_RQ_INB</Trace>  
    <Trace level="3" type="T">Reading Pipeline-Service specification...</Trace>  
    <Trace level="3" type="T">PLSRVTYPE =</Trace>  
    <Trace level="3" type="T">ADRESSMOD = LOCAL</Trace>  
    <Trace level="3" type="T">P_CLASS = CL_XMS_PLSRV_VALIDATION</Trace>  
    <Trace level="3" type="T">P_IFNAME = IF_XMS_PLSRV</Trace>  
    <Trace level="3" type="T">P_METHOD = ENTER_PLSRV</Trace>  
    <Trace level="3" type="T" />  
    - <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV_LOCAL"> 
    - <Trace level="1" type="B" name="CL_XMS_PLSRV_VALIDATION-ENTER_PLSRV"> 
    <Trace level="3" type="T">Pipeline Service = PLSRV_XML_VALIDATION_RQ_INB</Trace>  
    <Trace level="3" type="T">Skip Inbound Validation =</Trace>  
    <Trace level="3" type="T">Skip Outbound Validation =</Trace>  
    <Trace level="3" type="T">Area = XML_VALIDATION_INB</Trace>  
    <Trace level="1" type="T">Reading sender agreement</Trace>  
    <Trace level="1" type="T">Message does not contain a sender agreement</Trace>  
    <Trace level="1" type="T">Inbound validation by Integration Engine does not take place</Trace>  
    </Trace>
    </Trace>
    </Trace>
    <Trace level="3" type="Timestamp">2014-07-10T08:56:37Z INDIA End of pipeline service processing PLSRVID= PLSRV_XML_VALIDATION_RQ_INB</Trace>  
    </Trace>
    - <Trace level="1" type="B" name="CL_XMS_MESSAGE_PERS_MAN-WRITE_MESSAGE_LOG_TO_PERSIST"> 
    <Trace level="3" type="T">Persisting message after plsrv call</Trace>  
    <Trace level="3" type="T">Message-Version = 001</Trace>  
    <Trace level="3" type="T">Pipeline CENTRAL</Trace>  
    </Trace>
    - <Trace level="1" type="B" name="PLSRV_RECEIVER_DETERMINATION"> 
    <Trace level="3" type="Timestamp">2014-07-10T08:56:37Z INDIA Start of pipeline service processing PLSRVID= PLSRV_RECEIVER_DETERMINATION</Trace>  
    - <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV"> 
    <Trace level="3" type="T">Calling pipeline service: PLSRV_RECEIVER_DETERMINATION</Trace>  
    <Trace level="3" type="T

    HI,
    Thank you for your hint. Maybe I just forgot to mention one important fact. We have second SAP Netweaver PI 7.1 which is completely our system. The first one I mentioned in first message is the customer's one. The one we have extra is also connected to MAXIMO and GIS. Settings of this interface is completely same among one thing:
    Patch level of XIAF:
    1. customers SAP PI level is
    Adapter Common Library Version: 1.7.1007.20081105173106.0000, NW07_07_REL (2008-11-07T17:29:47+0000)
    Adapter Application Version: 1.7.1007.20081105173106.0000, NW07_07_REL (2008-11-07T17:30:00+0000)
    2. our SAP PI level is
    Adapter Common Library Version: 1.7.1008.20100215155230.0000, NW07_08_REL (2010-02-15T17:19:21+0000)
    Adapter Application Version: 1.7.1008.20100215155230.0000, NW07_08_REL (2010-02-15T17:19:31+0000)
    Both of them has Axis Version: Apache Axis version: 1.4 Built on Apr 22, 2006 (06:55:48 PDT)
    Also important to mention is fact that same problem happened in our SAP PI, but we implemented last patch of XIAF and it has suddenly started to work. I have suspicion it is somehow connected to this patch. Btw. this patch contains a lot of notes regarding  AXIS framework (i.e. 1435998, 1150375, 1048268), so obviously some bugs of the AXIS adapter has been resolved by this patch.
    What do you think ?
    Thanks

  • Mail doesn't send - javax.mail.MessagingException: 250

    Hello all,
    I'm new to JavaMail. I actually started with it last night. I've successfully sent a number of messages, but I randomly get a strange exception for no apparent reason.
    If I run the exact same code several times, it will produce this error about every 5 or 6 times:
    javax.mail.MessagingException: 250 Requested mail action okay, completed
    Does anyone know what might be going on? Thanks in advance for any help you might can give.
    Here is the heart of my code:
    // Get system properties
    Properties props = System.getProperties();
    // Setup mail server
    props.put("mail.smtp.host", host1);
    // Get session
    Session session = Session.getDefaultInstance(props, null);
              session.setDebug(true);
    // Define message
    MimeMessage message = new MimeMessage(session);
    // Set the from address
    message.setFrom(new InternetAddress(fromAddress));
    // Set the to address
    message.addRecipient(Message.RecipientType.TO, new InternetAddress(toAddress));
    // Set the subject
    message.setSubject(subject);
    // Set the content
    message.setContent(content, "text/html");
    // Send message
    Transport.send(message);
    Below is the debugger output: (certain values have been removed for anonymity's sake)
    DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
    DEBUG SMTP: useEhlo true, useAuth false
    DEBUG: SMTPTransport trying to connect to host "xx.xx.xx.xx", port 25
    DEBUG SMTP RCVD: 220 domain.company.com ESMTP MailEnable Service, Version: 1.704-- ready at 01/14/04 14:07:27
    DEBUG: SMTPTransport connected to host "xx.xx.xx.xx", port: 25
    DEBUG SMTP SENT: EHLO licensing
    DEBUG SMTP RCVD: 502
    DEBUG SMTP SENT: HELO licensing
    DEBUG SMTP RCVD: 250-AUTH LOGIN
    250-SIZE 5120000
    250-HELP
    250 AUTH=LOGIN
    DEBUG SMTP: use8bit false
    DEBUG SMTP SENT: MAIL FROM:<[email protected]>
    DEBUG SMTP RCVD: 250 Requested mail action okay, completed
    DEBUG SMTP SENT: RCPT TO:<[email protected]>
    DEBUG SMTP RCVD: 250 Requested mail action okay, completed
    Verified Addresses
    [email protected]
    DEBUG SMTP SENT: DATA
    DEBUG SMTP RCVD: 250 Requested mail action okay, completed
    DEBUG SMTP SENT: QUIT

    But I am getting that code thrown as a MessageException; the message never goes through. If you look at the debugging output compared to a message that went through, the DATA transmission commands are screwed up.
    Thanks for your input, though. I think I've gotten around this by trying to resend the message. It looks like that when I get this exception the message is never sent. I have a catch that detects this exception and tries to resend up to 3 times.
    Thanks,
    floosh

  • Javax.mail.MessagingException: 505 Client was not authenticated

    Hi!,
    I got the following error:
    Exception in thread "main" javax.mail.MessagingException: 505 Client was not authenticated
    at com.sun.mail.smtp.SMTPTransport.issueCommand(SMTPTransport.java:507)
    at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:312)
    at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:168)
    at HelloMail.main(HelloMail.java:35)
    This is the code:
    To send an email I need authentification, and I include the mail.smtp.auth propertie and
    "message.saveChanges();
    Transport transport = session.getTransport("smtp");
    transport.connect("mail.xxx.com.mx","harriaga",passw);
    transport.sendMessage(message,message.getAllRecipients());
    transport.close();"
    Do you know if I am skip something.
    import java.util.Properties;
    import javax.mail.*;
    import javax.mail.internet.*;
    public class HelloMail {
    public static void main(String args[]) throws Exception {
    String host="mail.xxx.com.mx"; //obviously doesn't work
    String from="[email protected]"; //sender's email
    String to ="[email protected]" ; //receiver's email
    Properties props = System.getProperties();
    props.put("mail.smtp.host", host);
    props.put("mail.smtp.auth", "true");
    Session session=Session.getInstance(props,null);
    MimeMessage message = new MimeMessage(session);
    message.setFrom(new InternetAddress(from));
    message.addRecipient(Message.RecipientType.TO, new
    InternetAddress(to));
    message.setSubject(" My Test HTML email ");
    message.setText(" Here is the content ");
    message.saveChanges();
    Transport transport = session.getTransport("smtp");
    transport.connect("mail.xxx.com.mx","harriaga",passw);
    transport.sendMessage(message,message.getAllRecipients());
    transport.close();
    Thanks for all,
    HAG.

    HAG,
    you need to create a session object passing a valid authenticator. In other words,
    MyAuthenticator auth = new MyAuthenticator ();
    Session session = Session.getInstance(props, auth);where MyAuthenticator is something like
    public class MyAuthenticator extends Authenticator{
      public PasswordAuthentication getPasswordAutentication(){
        return new PasswordAuthentication( "user", "password");
    }You obviously need to replace username and password with data valid for your e-mail account.
    Hope this helps,
    gulfi

  • Message processing failed. Cause: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: invalid content type for SOAP: TEXT/HTML; HTTP 404 Not Found

    In my 2006 biztalk application I have exposed web service to receive SAP input. It was working fine. After I have modified something in orchestration in that application . I am getting following error while SAP try to consume my web service. Can anyone please
    help me.
    Message processing failed. Cause: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: invalid content type for SOAP: TEXT/HTML; HTTP 404 Not Found

    In my 2006 biztalk application I have exposed web service to receive SAP input. It was working fine. After I have modified something in orchestration in that application . I am getting following error while SAP try to consume my web service.
    HI Arivazhagan K,
    Could you give some explanation about what you modified? according the to error message, this is "resource is not found issue".
    Best regards,
    Angie
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Com.sap.engine.interfaces.messaging.api.exception.MessagingException: javax

    Hello,
    Please explain me the error :
    com.sap.engine.interfaces.messaging.api.exception.MessagingException: javax.ejb.EJBException: nested exception is: java.lang.RuntimeException: java.lang.NoClassDefFoundError: com/primavera/integration/server/ServerFacade : cannot initialize class because prior initialization attempt failed
    Where should I find the issue and how to correct it.
    Regards

    Hi,
    This seems to be related to some deployed components on J2EE-engine being corrupt. Try re-deploy the primavera-component to fix the error. I'm guessing this component is some 3rd party or custom developed component?
    Also make sure this component compiles correctly if it's a custom development component.
    Br,
    Kenneth

  • Javax.mail.MessagingException: Missing start boundary

    I use the following code creates a Mime file
    MimeMultipart mmp = new MimeMultipart();
                   MimeBodyPart mbp = null;
                   // add rootpart
                   mbp = new MimeBodyPart();
                   mbp.setContentID("[email protected]");
                   mbp.setDataHandler(new DataHandler(new FileDataSource(args[0])));
                   mmp.addBodyPart(mbp);
                   // add attachment info
                   for(int i = 1; i < args.length; i = i+2){
                        ByteArrayOutputStream baos = new ByteArrayOutputStream();
                        GZIPOutputStream gos = new GZIPOutputStream(baos);
                        FileInputStream fis = new FileInputStream(args[i+1]);
                        byte[] bytes = new byte[1024];
                        int len;
                        while((len = fis.read(bytes, 0, 1024)) > 0){
                             gos.write(bytes, 0, len);
                        fis.close();
                        gos.close();
                        baos.close();
                        InternetHeaders ih = new InternetHeaders();
                        ih.addHeader("Content-ID", args);
                        mbp = new MimeBodyPart(ih, baos.toByteArray());
                        mmp.addBodyPart(mbp);
                   String CarriageReturn = String.valueOf(CARRIAGE_RETURN);
                   String lineFeed = String.valueOf(LINE_FEED);
                   String horizontaltab = String.valueOf(HORIZONTAL_TAB);
                   FileOutputStream fos = new FileOutputStream(args[0] + ".mime");
                   StringBuffer msgParam = new StringBuffer();
                   msgParam.append("MIME-Version: 1.0");
                   msgParam.append(CarriageReturn);
                   msgParam.append(lineFeed);
                   msgParam.append("Content-Type: ");
                   msgParam.append(mmp.getContentType().replaceAll(CarriageReturn,"").replaceAll(lineFeed,"").replaceAll(horizontaltab,""));
                   msgParam.append("; start=\"<[email protected]>\"");
                   msgParam.append(CarriageReturn);
                   msgParam.append(lineFeed);
                   msgParam.append(CarriageReturn);
                   msgParam.append(lineFeed);
                   msgParam.append(CarriageReturn);
                   msgParam.append(lineFeed);
                   fos.write(msgParam.toString().getBytes());
                   mmp.writeTo(fos);
                   fos.close();
    I can correctly read the mime file at windows OS,but in linux OS i got the following error Message:
    2010/11/19 11:53:40     K101J2EED1     fatal     0041EBFC124735B5B67FFA9F4B3B09961KD1     例外=[javax.mail.MessagingException: Missing start boundary]     
    sun.reflect.GeneratedMethodAccessor303.invoke(Unknown Source)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:597)
    org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:301)
    org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
    org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
    org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
    org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    $Proxy28.execute(Unknown Source)
    org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
    org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
    jp.terasoluna.fw.web.struts.action.RequestProcessorEx.process(RequestProcessorEx.java:149)
    org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
    org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:675)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:324)
    jp.co.nttdata.erc.sys.app.extended.ExtendedFilter.doFilter(ExtendedFilter.java:163)
    org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:183)
    org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:138)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:424)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:324)
    jp.co.nttdata.erc.sys.app.extended.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:174)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:424)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:324)
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:379)
    com.hitachi.software.web.catalina.core.ValveWrapper.invokeNext(LinkedPipeline.java:672)
    com.hitachi.software.web.catalina.core.LinkedPipeline.invoke(LinkedPipeline.java:475)
    org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:983)
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:349)
    com.hitachi.software.web.catalina.core.ValveWrapper.invokeNext(LinkedPipeline.java:672)
    com.hitachi.software.web.tcg.ThreadControlGroupValve.invoke(ThreadControlGroupValve.java:82)
    com.hitachi.software.web.catalina.core.ValveWrapper.invokeNext(LinkedPipeline.java:672)
    com.hitachi.software.ejb.management.mbean.web.RequestStatisticsValve.invoke(RequestStatisticsValve.java:72)
    com.hitachi.software.web.catalina.core.ValveWrapper.invokeNext(LinkedPipeline.java:672)
    org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:188)
    com.hitachi.software.web.catalina.core.ValveWrapper.invokeNext(LinkedPipeline.java:672)
    com.hitachi.software.web.catalina.core.StandardSessionValve.invoke(StandardSessionValve.java:96)
    com.hitachi.software.web.catalina.core.ValveWrapper.invokeNext(LinkedPipeline.java:672)
    com.hitachi.software.web.catalina.core.LinkedPipeline.invoke(LinkedPipeline.java:475)
    org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:983)
    org.apache.catalina.core.StandardContext.invoke(StandardContext.java:3928)
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:261)
    com.hitachi.software.web.catalina.core.ValveWrapper.invokeNext(LinkedPipeline.java:672)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:197)
    com.hitachi.software.web.catalina.core.ValveWrapper.invokeNext(LinkedPipeline.java:672)
    com.hitachi.software.web.catalina.core.LinkedPipeline.invoke(LinkedPipeline.java:475)
    org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:983)
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
    com.hitachi.software.web.catalina.core.ValveWrapper.invokeNext(LinkedPipeline.java:672)
    com.hitachi.software.web.catalina.core.LinkedPipeline.invoke(LinkedPipeline.java:475)
    org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:983)
    org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:700)
    org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:959)
    java.lang.Thread.run(Thread.java:620)
    Edited by: chengen on Nov 24, 2010 8:26 PM
    Edited by: chengen on Nov 24, 2010 9:25 PM

    I can correctly read the mime file at windows OS,but in linux OS i got the following error Message:That would suggest one or more of the following.
    1. An end of line problem. Something is wrong with your use of CR/LF.
    2. A line length problem (brief look suggests a 998 limit.)
    3. One reader is more lenient than the other. This goes back to 1 and 2.

  • Javax.mail.MessagingException: 451 Error while writing spool file??

    Hi all friends,
    Can any one plz tell me why Iam getting below error when Iam trying to send mail with attachment.Iam using Java Mail API.
    javax.mail.MessagingException: 451 Error while writing spool file
    Plz tell me what are the reasons behind it.
    Regards
    Bikash

    The problem here is that the SMTP server was unable to write its spool file.
    The error is probably on the OS side of things and has nothing to do with email except that the lack of the system resource is causing email to fail.
    Have the server admin take a look at his error log to find out why the the user that smtp is running as could not write the file.

  • MessagingException: Sequence already terminated (soft).

    Hi,
    I'm getting the following error after the execution of an IDoc>SQL interface.
    The queue shows "XI Error ERROR_OBJECT.INTERNAL: Queue stopped" in FM SXMS_ASYNC_EXEC.
    The message with error, in SXMB_MONI, says:
    <SAP:AdditionalText>com.sap.engine.interfaces.messaging.api.exception.MessagingException:
    Sequence already terminated (soft).</SAP:AdditionalText>
    Does anyone ever faced this error?
    Tks.
    Rafael.

    Hi,
    The Queue sequence has terminated in PI,
    Login to Messaging System http://<host>:<port>/MessagingSystem/monitor/monitor.jsp
    Check EOIO Sequence Monitor..
    Change the Date range according to your message processed date, Queue name can be viewed with status "Terminated".
    To resolve your issue, assign a exclusive queue name in sender communication cahnnel or if you already using a queue name, change it to different name.
    Let me know if this resolved your issue.
    PS: Actually i had the same issue, i am searching SDN  on "how to activate Terminated queues" , i saw your thread. This might fix the problem. But still i am searching on Activating termiated queues.
    Thanks
    Vijay Poreddy
    Edited by: Vijayanand Poreddy on Feb 17, 2012 5:55 AM

  • Javax.mail.MessagingException

    HI all,
    i am new to this area and currently i am working on email messaging application.
    in here i have set up an SMTP server and every thing, but finally it gives following exception
    javax.mail.SendFailedException: Sending failed;
    nested exception is:
         javax.mail.MessagingException: 550 Sorry, <[email protected]> is not allowed access from your location
    can you please help me to solve this problem
    thanx
    Kelum

    hi,
    thanx for your reply...i checked JavaMail faq.
    it says
    This is an error reply from your SMTP mail server. It indicates that your mail server is not configured to allow you to send mail through it.
    actually my application is a servlet. that means do we have to give any permisions to my web server to send requests to smtp server.
    do you have any idea abot this
    thanx
    Kelum

  • Javax.mail.MessagingException: 502 unimplemented (#5.5.1)

    hi,
    I am facing a problem in sending mail.
    My program is running on a linux operating system and Tomcat 5.5 .
    So my problem is that when I try to execute that program I get the
    FOLLOWING EXCEPTION.
    I am not getting why that exception is occuring.
    javax.mail.MessagingException: 502 unimplemented (#5.5.1)
    at com.sun.mail.smtp.SMTPTransport.issueCommand SMTPTransport.java:1020)
    at com.sun.mail.smtp.SMTPTransport.helo SMTPTransport.java:630)
    at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:31 1)
    at javax.mail.Service.connect(Service.java:233)
    at javax.mail.Service.connect(Service.java:134)
    at com.kaizen.Passtori.mail.SendMail.sendMailWithAttachment(SendMail.java:102)
    at com.kaizen.Passtori.UserValidation.UserUtility.sampleRegistration(UserUtility.java:680)
    at org.apache.jsp.jsp.registrationTake_jsp._jspService(org.apache.jsp.jsp.registrationTake_jsp:431)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper .java:322)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3 14)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:173)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV alve.java:213)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV alve.java:178)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j ava:126)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j ava:105)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal ve.java:107)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav a:148)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java :868)
    at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p rocessConnection(Http11BaseProtocol.java:663)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo int.java:527)
    at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol lowerWorkerThread.java:80)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP ool.java:684)
    at java.lang.Thread.run(Thread.java:595)
    If anyone knows why this exception is occuring please kindly tell me.
    Its really urgent.
    Thanks and regards
    Rakesh Sagar.

    Run the code using JavaMail's debug mode to see the conversation between your code and the server.
    I don't see the code where you're getting the Session so I can't advise you how to do that, if you don't already know.

  • Javax.mail.MessagingException: 451 4.3.2 Please try again later

    Hi,
    Can any one help out to fix following problem.
    exception occurred :Sending failed;
    nested exception is:
         javax.mail.MessagingException: 451 4.3.2 Please try again later

    If this is generated by the server at random, I do not think javamail can not do anything about it. You can add retry logic in your code or figure out why server is giving this error (configuration issue? need to increase any parameters on the server side?).

  • Reading Inbox - javax.mail.MessagingException: Connect failed;

    I get an error message while trying to read emails by connecting to a company mailbox. The message is as follows:
    javax.mail.MessagingException: Connect failed;
    nested exception is:
         java.net.ConnectException: Connection refused: no further information
         boolean com.sun.mail.pop3.POP3Store.protocolConnect(java.lang.String, int, java.lang.String, java.lang.String)
         void javax.mail.Service.connect(java.lang.String, int, java.lang.String, java.lang.String)
         void javax.mail.Service.connect(java.lang.String, java.lang.String, java.lang.String)
         void GetMessageExample.main(java.lang.String[])
    The code is very simple and as follows:
    import java.io.*;
    import java.util.Properties;
    import javax.mail.*;
    import javax.mail.internet.*;
    import javax.activation.*;
    public class GetMessageExample {
    public static void main (String args[]) throws Exception {
    String host = "companyname.com";
    String username = "user";
    String password = "xxxx";
    try{
    // Create empty properties
    Properties props = new Properties();
    // Get session
    Session session = Session.getInstance(props, null);
    // Get the store
    Store store = session.getStore("pop3");
    store.connect(host, username, password);
    // Get folder
    Folder folder = store.getFolder("INBOX");
    folder.open(Folder.READ_ONLY);
    BufferedReader reader = new BufferedReader (
    new InputStreamReader(System.in));
    // Get directory
    Message message[] = folder.getMessages();
    for (int i=0, n=message.length; i<n; i++) {
    System.out.println(i + ": " + message.getFrom()[0]
    + "\t" + message[i].getSubject());
    // Close connection
    folder.close(false);
    store.close();
    } catch (Exception e) {
    e.printStackTrace();
    I have a two part question:
    1. At home I am using a dial-up connection it works when I change the settings to an email account as provided by the local ISP.
    I have tried it with both "pop3" and "imap" in
    Store store = session.getStore("pop3");
    for the company email but it does not work.
    Is this a problem with company security? Maybe firewall/proxy error? If so how do I get around it?
    2. Also, when I am in the office (LAN used to connect to Internet) I cannot even get a connection to the ISP account - similar problem or different?
    Any thoughts and help most appreciated.
    Thanks in advance,
    Mark

    It could be that the mail server is not accepting connections from the machine you are on. Have you tried using Outlook Express or the Netscape email client to connect to the server/account from the machine that is getting the failure?

  • Javax.mail.MessagingException: Unconnected sockets not implemented

    Hi,
    I am trying to get mails from mail server using IMAP.I am using Jdk 1.5.0.While I am trying to get mails, I am getting following exception.
    DEBUG: setDebug: JavaMail version 1.4.1
    DEBUG: getProvider() returning javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc]
    DEBUG: mail.imap.fetchsize: 16384
    javax.mail.MessagingException: Unconnected sockets not implemented;
    nested exception is:
         java.net.SocketException: Unconnected sockets not implemented
         at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:571)
         at javax.mail.Service.connect(Service.java:288)
         at com.maxis.getmail.receiveEmails(getmail.java:58)
         at com.maxis.getmail.main(getmail.java:22)
    Caused by: java.net.SocketException: Unconnected sockets not implemented
         at javax.net.SocketFactory.createSocket(SocketFactory.java:97)
         at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:225)
         at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:189)
         at com.sun.mail.iap.Protocol.<init>(Protocol.java:107)
         at com.sun.mail.imap.protocol.IMAPProtocol.<init>(IMAPProtocol.java:104)
         at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:538)
         ... 3 more
    Here is my code..
    String host = "host";
    String name = "username";
    String passwd = "pwd";
    java.security.Security.setProperty("ssl.SocketFactory.provider", "DummySSLSocketFactory");
    System.setProperty("javax.net.ssl.trustStore"," JAVA_HOME/jre/lib/security/cacert");
    // Get a Properties object
    Properties props = System.getProperties();
    props.setProperty("mail.imaps.ssl.enable", "true");
    props.setProperty("mail.imaps.ssl.socketFactory.class","DummySSLSocketFactory");
    //props.setProperty("mail.imaps.ssl.socketFactory.fallback", "false");
    Session session = Session.getDefaultInstance(props, null);
    session.setDebug(true);
    Store store = session.getStore("imaps");
    store.connect(host,portno ,name, passwd); // exception here
    ===================================================
    I am unable to understand where went wrong. Could someone help me ,Plz?
    Any help would be appreciated.
    Thanks.

    There were some bugs in the old instructions for socket factories. Search this forum for the details.
    But, you should just upgrade to JavaMail 1.4.3, which supports properties that better control SSL
    connections, as well as a MailSSLSocketFactory that will give you more control without having to
    write your own.

  • Javax.mail.MessagingException: Connection refused: connect on localhost

    Hello,
    I am using Tomcat5.0.28 for a javamail servlet program. I am giving the hostname as localhost. After entering the input details in my html file, i get the error- "javax.mail.MessagingException: Connection refused: connect; nested exception is: java.net.ConnectException: Connection refused: connect " .
    can anybody help me regarding in solving error.
    Thanks.

    First, you're using a very old version of JavaMail.  Please upgrade.  Some of the properties you're setting aren't supported in that old version.
    Second, you don't need the socket factory properties, get rid of them.
    Finally, it looks like you're trying to connect on port 143 using SSL.  Port 143 is the non-SSL port.  That's probably not going to work.  Still, it looks like something is refusing to let you connect at all.  If you really can telnet from the same machine your program is running on to the same server machine on port 143, then you probably have some sort of firewall that's preventing your program from connecting.  Please post the entire debug output if it still fails after correcting the problems above.  (Move the setDebug call to before the getStore call.)

Maybe you are looking for

  • Jabber for windows crashing

    Jabber for windows - crashes on start up CUCM 7.1.3 Windows 7 32 bit Cisco Presence   8.0.2.10000-30 - these are in the application event log Log Name:      Application Source:        MsiInstaller Date:          6/27/2012 10:43:19 PM Event ID:      1

  • FX5600Ultra-VTDR256 Video in Help

    Hi, I know this graphics card can have both VIVO for it.  My question is how do I connect my TV to it so I can record TV programs onto my PC.  Do I need software as long as hardware? I have a S-Video to S-Video cable for the video.  I  guess I'll nee

  • Characteristics of Purchase requisition

    Hi Gurus, I am looking for a FM which can update the characteristics values of paritcular purchase requisition. I found a BAPI 'BAPI_OBJCL_CHANGE' which can update the characteristic values of material, but I am not sure how this can be used for upda

  • RTMT error: not collecting session traces

    Hi, I have a problem with RTMT that complicate my troubleshooting of calls since some weeks. When I open or try to generate a session trace of calls, the RTMT dont show any call output, only the following messages: Before this happen the session trac

  • Error message: "The iTunes Music Library file is locked" Help?

    I made the stupid mistake of disconnecting my iPod nano when it said "Don't Disconnect". Now when I try to open iTunes, it says that the Music Library file is locked. How am I supposed to unlock it?