[Dspace-tech] After upgrading to 3.2 Alert emails have started to fail

7 views
Skip to first unread message

Jason Cooper

unread,
Aug 26, 2015, 11:40:22 AM8/26/15
to dspac...@lists.sourceforge.net

Hi,

  After upgrading to version 3.2 of DSpace I have noticed in the logs that errors that try to send an email alert fail with the following error:

 

2013-08-02 10:02:51,325 WARN  org.dspace.app.webui.util.UIUtil @ Unable to send email alert

javax.mail.internet.AddressException: Illegal address in string ``''

        at javax.mail.internet.InternetAddress.<init>(InternetAddress.java:94)

        at org.dspace.core.Email.send(Email.java:302)

        at org.dspace.app.webui.util.UIUtil.sendAlert(UIUtil.java:419)

        at org.dspace.app.webui.servlet.InternalErrorServlet.doGet(InternalErrorServlet.java:54)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)

        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:691)

        at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:471)

        at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:403)

        at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)

        at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:364)

        at org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:213)

        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)

        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)

        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)

        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)

        at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200)

        at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)

        at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:775)

        at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:704)

        at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:897)

        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)

        at java.lang.Thread.run(Thread.java:724)

 

  Has anyone seen this error before and if so what was the cause and what did you have to do to fix it?

 

Regards,

  Jason Cooper.

helix84

unread,
Aug 26, 2015, 11:40:23 AM8/26/15
to Jason Cooper, dspac...@lists.sourceforge.net
What's your value of the mail.admin configuration property in
dspace.cfg? Seems like you have an empty string there.


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Jason Cooper

unread,
Aug 26, 2015, 11:40:27 AM8/26/15
to hel...@centrum.sk, dspac...@lists.sourceforge.net
Hi,
mail.admin had my email address in it, but alert.recipient didn't have an email address. I have now put my email address in for that one as well (in double quotes). Now I just need to get an error that would send an alert to test that I get the email.

Regards,
Jason.

helix84

unread,
Aug 26, 2015, 11:40:29 AM8/26/15
to Jason Cooper, dspac...@lists.sourceforge.net
Don't use quotes. This is what that section should look like:

mail.from.address = dspace-...@dspace.lboro.ac.uk

# Currently limited to one recipient!
feedback.recipient = J.L.C...@lboro.ac.uk

# General site administration (Webmaster) e-mail
mail.admin = J.L.C...@lboro.ac.uk

# Recipient for server errors and alerts
alert.recipient = J.L.C...@lboro.ac.uk

# Recipient for new user registration emails
registration.notify = J.L.C...@lboro.ac.uk


mail.from.address doesn't have to exist, but it has to be filled in (this is probably what's causing the problem). And you probably want to leave registration.notify empty.

Jason Cooper

unread,
Aug 26, 2015, 11:40:30 AM8/26/15
to hel...@centrum.sk, dspac...@lists.sourceforge.net

Hi,

  Thanks for the help.  I have removed the double quotes now from the config and will see if I get any errors/emails appear.

 

Regards,

  Jason.

 

From: ivan....@gmail.com [mailto:ivan....@gmail.com] On Behalf Of helix84
Sent: 02 August 2013 10:55
To: Jason Cooper
Cc: dspac...@lists.sourceforge.net
Subject: Re: [Dspace-tech] After upgrading to 3.2 Alert emails have started to fail

 

Don't use quotes. This is what that section should look like:

Reply all
Reply to author
Forward
0 new messages