teammates.common.exception.EntityAlreadyExistsException: Trying to create a Instructor that exists: LC0154-DARCHFT1A01AY1617S1/CHIA_SU_SHYNG@SP.EDU.SG

GitHub | damithc | 4 months ago
  1. 0

    Error alert email has very long subject

    GitHub | 4 months ago | damithc
    teammates.common.exception.EntityAlreadyExistsException: Trying to create a Instructor that exists: LC0154-DARCHFT1A01AY1617S1/CHIA_SU_SHYNG@SP.EDU.SG
  2. 0

    instructorCreateCourse: make the operation atomic

    GitHub | 3 years ago | damithc
    teammates.common.exception.EntityAlreadyExistsException: Trying to create a Instructor that exists: juvxxxxxxx, HRMxxxx
  3. 0

    Some test cases in AccountsDbTest fail due to dependencies to other test case

    GitHub | 3 years ago | damithc
    teammates.common.exception.EntityAlreadyExistsException: Trying to create a Student that exists: valid-course/valid@email.com
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. teammates.common.exception.EntityAlreadyExistsException

      Trying to create a Instructor that exists: LC0154-DARCHFT1A01AY1617S1/CHIA_SU_SHYNG@SP.EDU.SG

      at teammates.storage.api.EntitiesDb.createEntity()
    2. teammates.storage.api
      InstructorsDb.createInstructor
      1. teammates.storage.api.EntitiesDb.createEntity(EntitiesDb.java:72)
      2. teammates.storage.api.InstructorsDb.createInstructor(InstructorsDb.java:132)
      2 frames
    3. teammates.logic.core
      CoursesLogic.createCourseAndInstructor
      1. teammates.logic.core.InstructorsLogic.createInstructor(InstructorsLogic.java:82)
      2. teammates.logic.core.CoursesLogic.createCourseAndInstructor(CoursesLogic.java:109)
      2 frames
    4. teammates.logic.api
      Logic.createCourseAndInstructor
      1. teammates.logic.api.Logic.createCourseAndInstructor(Logic.java:640)
      1 frame
    5. teammates.ui.controller
      ControllerServlet.doGet
      1. teammates.ui.controller.InstructorCourseAddAction.createCourse(InstructorCourseAddAction.java:94)
      2. teammates.ui.controller.InstructorCourseAddAction.execute(InstructorCourseAddAction.java:39)
      3. teammates.ui.controller.Action.executeAndPostProcess(Action.java:344)
      4. teammates.ui.controller.ControllerServlet.doPost(ControllerServlet.java:64)
      5. teammates.ui.controller.ControllerServlet.doGet(ControllerServlet.java:43)
      5 frames
    6. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      2 frames
    7. Jetty Server
      ServletHandler$CachedChain.doFilter
      1. org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
      2. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
      2 frames
    8. teammates.storage.datastore
      DatastoreFilter.doFilter
      1. teammates.storage.datastore.DatastoreFilter.doFilter(DatastoreFilter.java:29)
      1 frame
    9. Jetty Server
      ServletHandler$CachedChain.doFilter
      1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
      1 frame
    10. Google AppEngine
      AppstatsFilter.doFilter
      1. com.google.appengine.tools.appstats.AppstatsFilter.doFilter(AppstatsFilter.java:143)
      1 frame
    11. Jetty Server
      ServletHandler$CachedChain.doFilter
      1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
      1 frame
    12. Google AppEngine
      ParseBlobUploadFilter.doFilter
      1. com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter(ParseBlobUploadFilter.java:125)
      1 frame
    13. Jetty Server
      ServletHandler$CachedChain.doFilter
      1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
      1 frame
    14. com.google.apphosting
      SaveSessionFilter.doFilter
      1. com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionFilter.java:37)
      1 frame
    15. Jetty Server
      ServletHandler$CachedChain.doFilter
      1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
      1 frame
    16. Google AppEngine
      JdbcMySqlConnectionCleanupFilter.doFilter
      1. com.google.apphosting.utils.servlet.JdbcMySqlConnectionCleanupFilter.doFilter(JdbcMySqlConnectionCleanupFilter.java:60)
      1 frame
    17. Jetty Server
      ServletHandler$CachedChain.doFilter
      1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
      1 frame
    18. Google AppEngine
      TransactionCleanupFilter.doFilter
      1. com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:50)
      1 frame
    19. Jetty Server
      WebAppContext.handle
      1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
      2. org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
      3. org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
      4. org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
      5. org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
      6. org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
      6 frames
    20. com.google.apphosting
      AppVersionHandlerMap.handle
      1. com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionHandlerMap.java:260)
      1 frame
    21. Jetty Server
      HttpConnection$RequestHandler.headerComplete
      1. org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
      2. org.mortbay.jetty.Server.handle(Server.java:326)
      3. org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
      4. org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)
      4 frames
    22. com.google.apphosting
      RpcRequestParser.parseAvailable
      1. com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable(RpcRequestParser.java:78)
      1 frame
    23. Jetty Server
      HttpConnection.handle
      1. org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
      1 frame
    24. com.google.apphosting
      JettyServletEngineAdapter.serviceRequest
      1. com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:148)
      1 frame
    25. appengine-managed-runtime
      JavaRuntime$RequestRunnable.run
      1. com.google.apphosting.runtime.JavaRuntime$RequestRunnable.run(JavaRuntime.java:504)
      1 frame
    26. Google tracing
      TraceContext$TraceContextRunnable.run
      1. com.google.tracing.TraceContext$TraceContextRunnable.runInContext(TraceContext.java:446)
      2. com.google.tracing.TraceContext$TraceContextRunnable$1.run(TraceContext.java:453)
      3. com.google.tracing.CurrentContext.runInContext(CurrentContext.java:276)
      4. com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContextNoUnref(TraceContext.java:312)
      5. com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContext(TraceContext.java:304)
      6. com.google.tracing.TraceContext$TraceContextRunnable.run(TraceContext.java:450)
      6 frames
    27. appengine-managed-runtime
      ThreadGroupPool$PoolEntry.run
      1. com.google.apphosting.runtime.ThreadGroupPool$PoolEntry.run(ThreadGroupPool.java:235)
      1 frame
    28. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame