Dear Dspace General,

 

I am having a real problem getting email to work from DSpace.

 

When I try and register a new user I am getting the 'Internal Error has occurred...' message

 

The logs show the error as:

 

2008-03-12 16:39:08,549 WARN  org.dspace.app.webui.util.UIUtil @ Unable to send email alert
java.lang.NullPointerException
        at java.util.Hashtable.put(Hashtable.java:393)
        at org.dspace.core.Email.send(Email.java:257)
        at org.dspace.app.webui.util.UIUtil.sendAlert(UIUtil.java:559)
        at org.dspace.app.webui.servlet.InternalErrorServlet.doGet(InternalErrorServlet.java:86)
        at org.dspace.app.webui.servlet.InternalErrorServlet.doPost(InternalErrorServlet.java:94)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
        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:679)
        at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
        at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:399)
        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:174)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
        at java.lang.Thread.run(Thread.java:534)

 

My config file looks like this:

 

##### Email settings ######

# SMTP mail server
lsntex3.swan.ac.uk

# SMTP mail server authentication username and password (if required)
# mail.server.username = myusername
# mail.server.password = mypassword

# From address for mail
mail.from.address = a.l.roberts@swansea.ac.uk

# Currently limited to one recipient!
feedback.recipient = a.l.roberts@swansea.ac.uk

# General site administration (Webmaster) e-mail
mail.admin = a.l.roberts@swansea.ac.uk

# Recipient for server errors and alerts
alert.recipient = a.l.roberts@swansea.ac.uk

I notice the only other person to have this problem on the list had an issue with the wrong java version.

 

My version is the 1.4 one from Sun Systems with the apache compatibility package installed:

 

ts-repo1:# java -version
java version "1.4.2_13"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_13-b06)
Java HotSpot(TM) Client VM (build 1.4.2_13-b06, mixed mode)

 

Platform details are:

 

SLES 10.1

Tomcat 5.5

 

I thought the error may have occurred because I was running tomcat as root and had built dspace as the dspace user. So I rebuilt dspace as root, but this did not cure the problem. I have no idea what the problem is. The mail server works fine for other apps and the firewall is not blocking port 25...

 

If anyone can help I'd appreciate it

 

regards

Alexander

 

Mr. Alexander Roberts

Web Development Officer

Library and Information Services

Swansea University/Prifysgol Abertawe

+44 (0)1792 513239