User already exists Exception not caught for OpenId

Create issue
Issue #2463 resolved
Stephan Doerfel created an issue

(replaced username with XYZ)

[2015-03-25 08:11:40,166] [ERROR] [org.bibsonomy.webapp.util.spring.controller.MinimalisticControllerSpringWrapper] - Could not complete controller (general exception) for request /registerOpenID?null with r
eferer http://www.bibsonomy.org/registerOpenID?step=2
org.bibsonomy.common.exceptions.ValidationException: user XYZ already exists
        at org.bibsonomy.database.DBLogic.storeUser(DBLogic.java:1777)
        at org.bibsonomy.database.DBLogic.createUser(DBLogic.java:1669)
        at org.bibsonomy.webapp.controller.actions.AbstractUserIDRegistrationController.workOn(AbstractUserIDRegistrationController.java:199)
        at org.bibsonomy.webapp.controller.actions.AbstractUserIDRegistrationController.workOn(AbstractUserIDRegistrationController.java:67)
        at org.bibsonomy.webapp.util.spring.controller.MinimalisticControllerSpringWrapper.handleRequestInternal(MinimalisticControllerSpringWrapper.java:230)
        at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
        at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
        at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)
        at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
        at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
        at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:789)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

Comments (14)

  1. Thomas Niebler

    Does this error still exist? I just tried it and it does work, both locally and in the productive system.

  2. Daniel Zoller

    build a multithreaded tool that tries to register the same user

    or just catch the exception :)

  3. Log in to comment