[Dspace-tech] dspace 1.8.2 : registering error

32 views
Skip to first unread message

François Lefebvre

unread,
Aug 26, 2015, 9:53:25 AM8/26/15
to dspac...@lists.sourceforge.net
Hi,

I'm a new dspace user.
I've installed dspace 1.8.2 and I have an error when I try to register a
user with the jspui interface.


I'm using LDAP authentication et password, so in the authentication.cfg
file I have :

plugin.sequence.org.dspace.authenticate.AuthenticationMethod = \
org.dspace.authenticate.PasswordAuthentication, \
org.dspace.authenticate.LDAPAuthentication



So with LDAP user, all is OK.

When I try to subscribe ( the /register page ), I send the form an
dspace displays "An internal server error".

This is what I'm getting by mail :

The first one :

An internal server error occurred onhttp://iris.univ-lille1.fr/jspui:

Date: 26/09/12 16:43
Session ID: 76B9E5504639E1D3FB64A8FBCC6512DA
User: Anonymous
IP address: xxxxxxxxxxxxxxxxxxxxxxxxx

-- URL Was:http://iris.univ-lille1.fr/jspui//register
-- Method: GET
-- Parameters were:


Exception:
java.lang.IllegalStateException: Impossible d'utiliser faire-suivre (forward) après que la réponse ait été envoyée
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:312)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
at org.dspace.app.webui.util.JSPManager.showJSP(JSPManager.java:60)
at org.dspace.app.webui.servlet.RegisterServlet.doDSGet(RegisterServlet.java:101)
at org.dspace.app.webui.servlet.DSpaceServlet.processRequest(DSpaceServlet.java:119)
at org.dspace.app.webui.servlet.DSpaceServlet.doGet(DSpaceServlet.java:67)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.dspace.utils.servlet.DSpaceWebappServletFilter.doFilter(DSpaceWebappServletFilter.java:78)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:776)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:705)
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:898)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
at java.lang.Thread.run(Thread.java:636)


The second one :

An internal server error occurred onhttp://iris.univ-lille1.fr/jspui:

Date: 26/09/12 16:43
Session ID: 76B9E5504639E1D3FB64A8FBCC6512DA
User: Anonymous
IP address: xxxxxxxxxxxxxxxxxxx

-- URL Was:http://iris.univ-lille1.fr/jspui//register
-- Method: POST
-- Parameters were:
-- submit: "S'enregistrer"
-- email:"bu-infor@......."
-- netid: "buinfo"
-- password: "thepassword"
-- step: "1"


Exception:
java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:411)
at org.dspace.app.webui.servlet.RegisterServlet.processEnterEmail(RegisterServlet.java:298)
at org.dspace.app.webui.servlet.RegisterServlet.doDSPost(RegisterServlet.java:172)
at org.dspace.app.webui.servlet.DSpaceServlet.processRequest(DSpaceServlet.java:115)
at org.dspace.app.webui.servlet.DSpaceServlet.doPost(DSpaceServlet.java:73)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.dspace.utils.servlet.DSpaceWebappServletFilter.doFilter(DSpaceWebappServletFilter.java:78)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:776)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:705)
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:898)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
at java.lang.Thread.run(Thread.java:636)




Could you help me ?

Thanks



--
Cordialement.


François Lefebvre
Bibliothèque Universitaire de Lille 1 - bât A4/A5
Cité Scientifique - B.P. 30155
59653 VILLENEUVE D'ASCQ CEDEX
Tél.: 03.20.33.60.73

francois_lefebvre.vcf

François Lefebvre

unread,
Aug 26, 2015, 9:53:33 AM8/26/15
to dspac...@lists.sourceforge.net
Hi,

I'm still looking about this error. Any ideas ?

In the mailing archives, I found a similar post but there is no solution.
Someone wrote that he doesn't understand why there are 2 authentications.

For me, we need both because we've got 2 kinds of population : from the university and the others. So the others must not appear in our LDAP.


I put the logs in DEBUG mode, but I don't see something which help me.


thanks.
------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________ DSpace-tech mailing list DSpac...@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
francois_lefebvre.vcf

Bram Luyten

unread,
Aug 26, 2015, 9:53:34 AM8/26/15
to François Lefebvre, dspac...@lists.sourceforge.net
Hi François,

you might be suffering from a DSpace bug.

Does it work when you configure following values in dspace.cfg

ldap.provider_url
ldap.id_field
ldap.search_context

I know that they *should* be in authentication-ldap.cfg, but the bug you might be facing still expects them to be in dspace.cfg.

If this works, we should check whether this has already officially been filed as a bug in JIRA.

best regards,

Bram

--
logo 
Bram Luyten @mire
2888 Loker Avenue East, Suite 315, Carlsbad, CA. 92010
Esperantolaan 4, Heverlee 3001, Belgium
 www.atmire.com



------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html

François Lefebvre

unread,
Aug 26, 2015, 9:53:35 AM8/26/15
to dspac...@lists.sourceforge.net
Hi,

Thanks for your answer.
I think I found a beginning of a solution :

In RegisterServlet.java ( line 298 ), Dspace try to add new users in the LDAP. But He can't.
So, to avoid this, I play with the conditions. I change the JSP new-ldap-user.
In this file, you can write your mail only. So, if your netid is empty, you don't enter in this condition, so you add your new users in the dspace DB and not your LDAP.


So registration works.


The second point is :
Each time I click on the link "become a new user", I receive a error by mail :

at org.dspace.app.webui.servlet.RegisterServlet.doDSGet(RegisterServlet.java:101)


The source code is :

// Registering a new user
                if (ldap_enabled)
                {
                    JSPManager.showJSP(request, response, "/register/new-ldap-user.jsp");
                }
                JSPManager.showJSP(request, response, "/register/new-user.jsp");


So : LDAP is enabled, so the new-ldap-user.jsp is called.
But, new-user.jsp too ! 


I don't want to change the source code. Is there a way to make a new-user.jsp empty ?

<% return 0; %> or something like that ?


Thanks.
francois_lefebvre.vcf

Pottinger, Hardy J.

unread,
Aug 26, 2015, 9:53:38 AM8/26/15
to dspac...@lists.sourceforge.net
Hi, François, it's possible the problem you have found may have something
to do with this issue:

https://jira.duraspace.org/browse/DS-1007

But, I think it's likely you've found a new issue specific to the LDAP
AuthN code. I'd suggest opening a Jira ticket for this issue

http://jira.dspace.org/

and include any patches/workarounds you find which help with the problem.
This will help us track down, and possibly fix, the problem. Posting
workarounds in a Jira ticket will help others who may encounter the issue.

Thanks!

--
HARDY POTTINGER <potti...@umsystem.edu>
University of Missouri Library Systems
http://lso.umsystem.edu/~pottingerhj/
https://MOspace.umsystem.edu/
"No matter how far down the wrong road you've gone,
turn back." --Turkish proverb






On 9/27/12 6:37 AM, "François Lefebvre" <francois...@univ-lille1.fr>
wrote:

>
>
>
>Hi,
>
>Bram Luyten@mire
>2888 Loker Avenue East, Suite 315, Carlsbad, CA. 92010
>Esperantolaan 4, Heverlee 3001, Belgium
> <http://www.atmire.com/>www.atmire.com
><http://atmire.com/website/?q=services&utm_source=emailfooter&utm_medium=e
>mail&utm_campaign=braml>
>-- email:"bu-infor@......." <mailto:bu-infor@.......>
> at
>org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
> at
>org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)
> at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:776)
> at
>org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:70
>5)
> at
>org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.ja
>va:898)
> at
>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.j
>ava:690)
> at java.lang.Thread.run(Thread.java:636)
>
>
>
>
>Could you help me ?
>
>Thanks
>
>
>
>
>
>--------------------------------------------------------------------------
>----
>Live Security Virtual Conference
>Exclusive live event will cover all the ways today's security and
>threat landscape has changed and how IT managers can respond. Discussions
>will include endpoint security, mobile security and the latest in malware
>threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>_______________________________________________
>DSpace-tech mailing list
>DSpace-tech@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listi
>nfo/dspace-tech

François Lefebvre

unread,
Aug 26, 2015, 9:53:45 AM8/26/15
to dspac...@lists.sourceforge.net
Hi,

So I found the solutions.

In my case, with LDAP and passord authentication, you need to :

* For password registration ( and not LDAP registration ):
You need to change the JSP new-ldap-user :
Put the netid et password form hidden :
<input type="hidden" name="netid">
<input type="hidden" name="password">

Let only show the mail form.

Dspace will send to the user an email to activate his account. And in
this page, I will have to fill his name, surname, password.



But, the administrator will receive by mail a non blocking error because
Dspace tries to show 2 JSP : new-ldap-user and new-user

To avoid this, you need to change the source code of dspace in :
\dspace-1.8.2-src-release\dspace-jspui\dspace-jspui-api\src\main\java\org\dspace\app\webui\servlet\RegisterServlet.java

Line 101 : comment this : JSPManager.showJSP(request, response,
"/register/new-user.jsp");



Deploy Dspace and that's all.
francois_lefebvre.vcf
Reply all
Reply to author
Forward
0 new messages