----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
Greg,
Thanks for offering input. I'm using the Sun JVM 1.2 on Solaris. Below
is basically what my code is doing:
public void send(String to,
String from,
String subject,
String body)
{
Properties props = new Properties();
props.put("mail.smtp.host", mailHost);
Session session = Session.getDefaultInstance(props, null);
try
{
Message msg = new MimeMessage(session);
msg.setFrom(new InternetAddress(from));
InternetAddress[] address = { new InternetAddress(to)};
msg.setRecipients(Message.RecipientType.TO, address);
msg.setSubject(subject);
msg.setSentDate(new Date());
msg.setText(body);
Transport.send(msg);
}
catch(MessagingException e)
{
}
Thanks for looking at it.
Duane
On Wed, 26 Apr 2000, Gregory Krasnow wrote:
> ----------------------------------------------------------------
> BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
> WHEN YOU POST, include all relevant version numbers, log files,
> and configuration files. Don't make us guess your problem!!!
> ----------------------------------------------------------------
>
> some more information is needed... like what your code is doing.
>
> a segv means that you crashed your JVM.
>
> I have not had any problems using javamail with jserv 1.1
>
> - Greg
>
> -----Original Message-----
> From: Duane Gran [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 26, 2000 5:23 PM
> To: Java Apache Users
> Subject: JavaMail segmentation violation
>
>
> ----------------------------------------------------------------
> BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
> WHEN YOU POST, include all relevant version numbers, log files,
> and configuration files. Don't make us guess your problem!!!
> ----------------------------------------------------------------
>
> I am having a problem with JavaMail and servlets on JServ 1.1. Generally
> servlets behave just fine, but this one is misbehaving.
>
> I have a very simple Servlet to send a test message. When run from the
> shell
> it works fine, but from a Servlet I get a segmentation fault. My classpath
> is
> identical to the JServ classpath. Below is the output in the mod_jserv.log:
>
> SIGSEGV 11 segmentation violation
> si_signo [11]: SEGV
> si_errno [0]:
> si_code [1]: SEGV_MAPERR [addr: 0xc]
>
> stackpointer=F108FF10
> "Thread-324" (TID:0x89b6f8, sys_thread_t:0x89b638, state:CW, thread_t:
> t@330,
> th
> readID:0xf1061dc8, stack_bottom:0xf1062000, stack_size:0x20000) prio=5
>
> [1] java.lang.Thread.sleep(Native Method)
> [2] org.apache.jserv.JServServletManager.run(JServServletManager.java:998)
> [3] java.lang.Thread.run(Thread.java:478)
>
> It actually goes on for a long while. I can provide the whole log entry
> (nearly 50 lines long) if it helps, but could anyone shed some light on
> this?
> Thanks!
>
> Duane Gran
>
>
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Archives and Other: <http://java.apache.org/main/mail.html>
> Problems?: [EMAIL PROTECTED]
>
>
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Archives and Other: <http://java.apache.org/main/mail.html>
> Problems?: [EMAIL PROTECTED]
>
>
---
Senior Webmaster - Unix Administrator
SpinWeb Net Designs - Advanced Web Development & Hosting
(202) 427-8044 - http://www.spinweb.net
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]