Hi, sorry to be lame but I literally have no time to scour JIRA for defects
right now but I thought to forward a problem encountered in my initial
experience setting up a 2.9.1 wiki. Not sure if this has been reported
previously, just thought I'd alert the team to a potential problem.

First, while I've used JSPWiki for many years now I thought I'd try
following
the README's "Really simple installation" instructions, and I must say
there's a fair bit of assumption in the current documentation about that
Install.jsp simply working, such as the lack of 'pages' directory in the
war
file, permissions settings, etc. I was in the end able to get things up and
running but I don't think it would work for a neophyte. Not yet.

But leaving that aside, my real reason for writing is that upon creating a
first user I tried navigating to the Preferences page after creating the
user
and found the following:

    JSPWiki has detected an error

    Error Message
        in is null

    Exception
        java.lang.NullPointerException
    Place where detected
        java.util.zip.ZipInputStream.(), line 100

On looking in the log it turns out that the login sequence failed because
my
server doesn't have mail configured. I don't know if this is considered a
defect or not, but to my mind it probably should be, i.e., that the
inability
to send out a confirmation email shouldn't then disable use of the wiki for
a user. It either should fail silently or check to see if mail is available
and
if not, then fail silently, throwing an exception (but not disabling further
use of the wiki) and writing to the log.

In any case, the defaults set in jspwiki.properties for 2.9.1 currently has
it
breaking. If this is not considered a bug then perhaps some documentation
(in jspwiki.properties) on how to disable mail notification would be
helpful.

Thanks,

Ichiro

------------------------------- jspwiki.log
-----------------------------------

2013-06-02 23:41:20,297 [http-bio-8080-exec-1] INFO
org.apache.wiki.auth.user.AbstractUserDatabase Wiki:/wiki/Login.jsp Wiki:
http://localhost:8080/wiki/Login.jsp - Creating new user furusato
2013-06-02 23:41:20,304 [http-bio-8080-exec-1] WARN
org.apache.wiki.util.MailUtil Wiki:/wiki/Login.jsp Wiki:
http://localhost:8080/wiki/Login.jsp - JNDI mail session initialization
error: Name [mail/Session] is not bound in this Context. U
2013-06-02 23:41:20,304 [http-bio-8080-exec-1] INFO
org.apache.wiki.util.MailUtil Wiki:/wiki/Login.jsp Wiki:
http://localhost:8080/wiki/Login.jsp - Unable to get a mail session via
JNDI, will use custom settings at least until next startup
2013-06-02 23:41:20,345 [http-bio-8080-exec-1] ERROR
org.apache.wiki.util.MailUtil Wiki:/wiki/Login.jsp Wiki:
http://localhost:8080/wiki/Login.jsp - javax.mail.MessagingException: Could
not connect to SMTP host: 127.0.0.1, port: 25;
  nested exception is:
    java.net.ConnectException: Connection refused
2013-06-02 23:41:20,345 [http-bio-8080-exec-1] ERROR
org.apache.wiki.auth.UserManager Wiki:/wiki/Login.jsp Wiki:
http://localhost:8080/wiki/Login.jsp - Could not send registration
confirmation e-mail. Is the e-mail server running?
javax.mail.MessagingException: Could not connect to SMTP host: 127.0.0.1,
port: 25;
  nested exception is:
    java.net.ConnectException: Connection refused
    at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1282)
    at
com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370)
    at javax.mail.Service.connect(Service.java:275)
    [...]

Reply via email to