commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Yandell" <flame...@gmail.com>
Subject Re: [email] trunk build hangs during unit tests
Date Fri, 27 Oct 2006 19:15:23 GMT
It's a threading issue in Dumbster 1.6 - the only change since 1.6 in
their CVS is a fix to this. If the socket creation returns too quickly
(Mac's must be good at that) then the notification is too early and it
hangs:

2005-04-14 07:09  jasonkitchen

    * src/com/dumbster/smtp/SimpleSmtpServer.java: Move thread start
      inside of synchronized block to prevent notifications being sent
      before anyone is waiting.

I've posted on their forum asking for a new release. Jon Stevens has
also posted there and mentioned that he's created a "Wiser" project
(http://subethasmtp.tigris.org/wiser.html). If there's no release form
Dumbster then I'll look into getting Wiser uploaded to the maven
repo's.

Hen

On 10/17/06, Henri Yandell <flamefew@gmail.com> wrote:
> Very likely, otherwise it would have been Linux. I wouldn't be
> surprised if I'd tried both.
>
> Hen
>
> On 10/17/06, Dion Gillard <dion.gillard@gmail.com> wrote:
> > I have a Mac at home and will give it a go there.
> >
> > Thanks for raising this and narrowing it down.
> >
> > Henri, were you running your tests on a Mac too?
> >
> > On 10/18/06, Bjorn Townsend <bjorn@sourcelabs.com> wrote:
> > > I don't receive any errors to that effect, but if I try to telnet to
> > > the port given in EmailConfiguration.java while the test is hanging
> > > the connection is refused.
> > >
> > > I just tried building commons-email on another machine and it worked
> > > out of the box, so I guess it must be an environmental issue.  The
> > > test is hanging on OSX 10.4.8 and is working on a Linux machine, so I
> > > suspect that the Dumbster SimpleSmtpServer doesn't play well with the
> > > Mac environment for whatever reason.
> > >
> > > On Oct 17, 2006, at 7:42 AM  October 17, Dion Gillard wrote:
> > >
> > > > Does the mail server used in the tests come up ok, i.e. is it
> > > > listening for requests?
> > > >
> > > > On 10/16/06, Bjorn Townsend <bjorn@sourcelabs.com> wrote:
> > > >>
> > > >> Hello all,
> > > >>
> > > >> I'm trying to build commons-email from the source available via the
> > > >> SVN trunk, and while it compiles fine it seems to be hanging when
it
> > > >> hits the unit tests:
> > > >>
> > > >> test:test:
> > > >>      [junit] Running org.apache.commons.mail.DefaultAuthenticatorTest
> > > >>      [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed:
> > > >> 0.193 sec
> > > >>      [junit] Running org.apache.commons.mail.EmailAttachmentTest
> > > >>      [junit] Tests run: 5, Failures: 0, Errors: 0, Time elapsed:
> > > >> 3.512 sec
> > > >>      [junit] Running org.apache.commons.mail.EmailTest
> > > >>
> > > >> (it just hangs there until the build is cancelled).
> > > >>
> > > >> I see that Henri mentioned this problem on the list back in May:
> > > >>
> > > >> http://comments.gmane.org/gmane.comp.jakarta.commons.devel/83199
> > > >>
> > > >> but I haven't been able to find any other list traffic about it. Is
> > > >> there a workaround, am I doing something wrong, or is this an
> > > >> outstanding issue?
> > > >>
> > > >> Thanks,
> > > >> Bjorn
> > > >>
> > > >>
> > > >
> > > >
> > > > --
> > > > http://www.multitask.com.au/people/dion/
> > > > Rule of Acquisition #91: Hear all, trust nothing.
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> > > >
> > >
> > >
> > >
> > >
> >
> >
> > --
> > http://www.multitask.com.au/people/dion/
> > Rule of Acquisition #91: Hear all, trust nothing.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> >
> >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message