[Dspace-general] dspace email problem

Roberts A.L. A.L.Roberts at swansea.ac.uk
Thu Mar 13 06:23:46 EDT 2008


Dear list,

Many thanks for the replies, seems I'd gone a bit 'config file blind'
and ommitted the 'mail.server=' part of the config setting through
numerous re-builds. Thanks to Stuart below for the answer. Now working.

AL
-----Original Message-----
From: Stuart Lewis [mailto:sdl at aber.ac.uk] 
Sent: 13 March 2008 09:51
To: Roberts A.L.; Chris Yates
Subject: Re: [Dspace-general] dspace email problem

Hi Alex,

What happens if you replace:

# SMTP mail server
lsntex3.swan.ac.uk

With

# SMTP mail server
mail.server=lsntex3.swan.ac.uk

Thanks,


Stuart

13/3/08 09:37, "Roberts A.L." <A.L.Roberts at swansea.ac.uk> wrote:

> 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(InternalErrorSer
vlet.j
> ava:86)
>         at 
>
org.dspace.app.webui.servlet.InternalErrorServlet.doPost(InternalErrorSe
rvlet.
> 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(Applica
tionFi
> lterChain.java:269)
>         at 
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChai
> n.java:188)
>         at 
>
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc
her.ja
> va:679)
>         at 
>
org.apache.catalina.core.ApplicationDispatcher.processRequest(Applicatio
nDispa
> tcher.java:463)
>         at 
>
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDisp
atcher
> .java:399)
>         at 
>
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispat
cher.j
> ava:301)
>         at 
>
org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java
:364)
>         at 
>
org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.j
ava:21
> 3)
>         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:1
> 08)
>         at 
>
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1
74)
>         at 
>
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:87
4)
>         at 
>
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc
essCon
> nection(Http11BaseProtocol.java:665)
>         at 
>
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint
.java:
> 528)
>         at 
>
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow
erWork
> erThread.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 at swansea.ac.uk
> # Currently limited to one recipient!
> feedback.recipient = a.l.roberts at swansea.ac.uk
> # General site administration (Webmaster) e-mail
> mail.admin = a.l.roberts at swansea.ac.uk
> # Recipient for server errors and alerts
> alert.recipient = a.l.roberts at 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
>  
> 
> 
> _______________________________________________
> Dspace-general mailing list
> Dspace-general at mit.edu
> http://mailman.mit.edu/mailman/listinfo/dspace-general






More information about the Dspace-general mailing list