MustGather: JavaMail
 Technote (troubleshooting)
 
Problem(Abstract)
Collecting data for problems with the IBM® WebSphere® Application Server JavaMail component. Gathering this MustGather information before calling IBM support will help you understand the problem and save time analyzing the data.
 
Resolving the problem
If you already contacted support, continue to the JavaMail MustGather information. Otherwise, click MustGather: Read First for all WebSphere Application Server Products.

The debugger must be run on the mail session in question to troubleshoot JavaMail problems. Use the following instructions to gather that information.

Engaging debug for your JavaMail session

  1. From the Application Server administrative console:
    select Resources > Mail Providers > Built-In Mail Provider > Mail Sessions.

  2. Select the JavaMail session that you want to debug.

  3. At the bottom of the pane, select Enable debug mode (see screenshot below).

  4. Click Apply.

  5. Save the change to the master configuration.

  6. Stop the Application Server.

  7. While the Application Server is stopped, remove the present log files located in the logs directory under your WebSphere Install Home, or save these files in another location.

  8. Restart the Application Server.

  9. Run your mail application and note the exact time when the error occurs.



When you finish your debugging session, reverse the preceding process to disable the debugger. This avoids generating a larger file than normal.

Note: You must stop your Application Server again to remove the debug option.

Collect the SystemOut.log, the StandardOut.log and the SystemErr.log from the logs directory, then follow instructions in Submitting Diagnostic Information to IBM Technical Support for Problem Determination.


Note:
If using JavaMail and the information is hardcoded instead of creating a mail session in the administrative console, then this procedure is not supported. If the information is hardcoded, Application Server features are not being used, only the Application Server JRE is, and you are responsible for your own code. In this case there is no mail session on which to set the debugger.

If this is the case, go into the object you created that contains the JavaMail properties and set the property mail.debug = true. This produces a file containing the debug information. You can use this file to see what code you must change to correct your problem.
 
Related information
Submitting information to IBM Support
Steps to getting support
MustGather: Read first
Troubleshooting guide
 
 
Cross Reference information
Segment Product Component Platform Version Edition
Application Servers Runtimes for Java Technology Java SDK
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > Java Message Service (JMS)
Operating system(s): Windows
Software version: 6.0
Software edition:
Reference #: 1204196
IBM Group: Software Group
Modified date: Feb 16, 2007