Uploaded image for project: 'JBoss Developer Materials'
  1. JBoss Developer Materials
  2. JDF-103

internal server error - HTTP 500 after trying to register a member with the existing e-mail

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • None
    • quickstarts
    • None
    • Hide

      1. register the member normally
      2. register him once again
      3. see the error

      Show
      1. register the member normally 2. register him once again 3. see the error
    • Medium

      I am doing functional tests for https://github.com/jboss-eap/wfk-archetypes. The quickstart application crashes after trying to register an user with the e-mail address which already exists from the previous member registration. HTTP code 500 and exception stack of AS is shown to me. This issue is solved in other examples by showing of appropriate error message right to the registration button.

      actual error:

      exception
      
      org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.transaction.UnexpectedRollbackException: JTA transaction unexpectedly rolled back (maybe due to a timeout); nested exception is javax.transaction.RollbackException: ARJUNA016053: Could not commit transaction.
      	org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:894)
      	org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:789)
      	javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
      	javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
      root cause
      
      org.springframework.transaction.UnexpectedRollbackException: JTA transaction unexpectedly rolled back (maybe due to a timeout); nested exception is javax.transaction.RollbackException: ARJUNA016053: Could not commit transaction.
      	org.springframework.transaction.jta.JtaTransactionManager.doCommit(JtaTransactionManager.java:1013)
      	org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:754)
      	org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:723)
      	org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:393)
      	org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:120)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      	org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
      	$Proxy103.register(Unknown Source)
      	org.jboss.wfk.test.spring.mvc.MemberController.registerNewMember(MemberController.java:34)
      	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	java.lang.reflect.Method.invoke(Method.java:601)
      	org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:213)
      	org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:126)
      	org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:96)
      	org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:617)
      	org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:578)
      	org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80)
      	org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)
      	org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
      	org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
      	org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:789)
      	javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
      	javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
      

            marius.bogoevici Marius Bogoevici (Inactive)
            smikloso Stefan Miklosovic (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: