Coder Social home page Coder Social logo

hulaki's People

Contributors

saksham avatar

Stargazers

 avatar

Watchers

 avatar  avatar

hulaki's Issues

SMTP can't be restarted predictably

SmtpServerTests are failing because the server can't be restarted predictably

00:04:38,712: Starting SMTP server on port: 2500...
00:04:40,887: Stopping SMTP server...
Exception in thread "Thread-0" com.dumbster.smtp.exceptions.SmtpException: java.net.BindException: Address already in use: bind
    at com.dumbster.smtp.transport.SmtpServer.run(SmtpServer.java:77)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.net.BindException: Address already in use: bind
    at sun.nio.ch.Net.bind0(Native Method)
    at sun.nio.ch.Net.bind(Net.java:444)
    at sun.nio.ch.Net.bind(Net.java:436)
    at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:214)
    at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
    at io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:104)
    at io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:464)
    at io.netty.channel.DefaultChannelPipeline$HeadHandler.bind(DefaultChannelPipeline.java:1032)
    at io.netty.channel.ChannelHandlerInvokerUtil.invokeBindNow(ChannelHandlerInvokerUtil.java:99)
    at io.netty.channel.DefaultChannelHandlerInvoker.invokeBind(DefaultChannelHandlerInvoker.java:196)
    at io.netty.channel.DefaultChannelHandlerContext.bind(DefaultChannelHandlerContext.java:366)
    at io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:898)
    at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:189)
    at io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:309)
    at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:318)
    at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:353)
    at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:794)
    ... 1 more
00:04:45,352: Stopped SMTP server
java.lang.IllegalArgumentException: [Assertion failed] - this expression must be true
    at org.springframework.util.Assert.isTrue(Assert.java:65)
    at org.springframework.util.Assert.isTrue(Assert.java:77)
    at com.dumbster.smtp.transport.SmtpServer.start(SmtpServer.java:49)
    at com.dumbster.smtp.transport.SmtpServerTest.startSmtpServer(SmtpServerTest.java:207)
    at com.dumbster.smtp.transport.SmtpServerTest.setUp(SmtpServerTest.java:46)

Process finished with exit code 0

Notes

  • The assertion directly after starting server is failing. The synchronization of SMTP server should be done in the same way as that for the API server.

Cleanup tests

  • Currently the test uses way too many overloads of sendEmail method. Make them use EmailSender

SmtpMessagesTest fails when all tests are run

SmtpMessagesTest fails when all tests are run, especially the test that use special characters. Surprisingly, the test passes when I run only the tests from the class.

This might be issue related to

  • encoding bytes from netty using UTF-8 and that from email might be different
  • dirtied spring context

Rename Storages to DAO

All storage classes and methods could be renamed to DAO because the abstraction layer is actually a DAO

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.