Uploaded image for project: 'ERM Platform'
  1. ERM Platform
  2. ERM-1201

Editing Amendment causes error

    XMLWordPrintable

Details

    • ERM Sprint 101
    • Bienenvolk
    • Q3 2020 Bug Fix

    Description

      Overview:
      Steps to Reproduce:

      1. Create a License
      2. Add an Amendment to License and save it
      3. Go to edit Amendment
      4. Change data on amendment and save

      Expected Results:

      1. Amendment saves successfully

      Actual Results:

      1. Status 500 error
      {
        "error": 500,
        "message": "javax.persistence.EntityExistsException: A different object with the same identifier value was already associated with the session : [com.k_int.web.toolkit.refdata.RefdataValue#2c91809b7581764601758178a4c60010]",
        "stackTrace": [
          "org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:123)",
          "org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:181)",
          "org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:188)",
          "org.hibernate.internal.SessionImpl.doFlush(SessionImpl.java:1364)",
          "org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1347)",
          "org.grails.orm.hibernate.AbstractHibernateGormInstanceApi.flushSession(AbstractHibernateGormInstanceApi.groovy:285)",
          "java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)",
          "org.grails.orm.hibernate.AbstractHibernateGormInstanceApi$_performSave_closure3.doCall(AbstractHibernateGormInstanceApi.groovy:250)",
          "java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)",
          "org.grails.orm.hibernate.GrailsHibernateTemplate.doExecute(GrailsHibernateTemplate.java:297)",
          "org.grails.orm.hibernate.GrailsHibernateTemplate.execute(GrailsHibernateTemplate.java:241)",
          "org.grails.orm.hibernate.GrailsHibernateTemplate.execute(GrailsHibernateTemplate.java:120)",
          "org.grails.orm.hibernate.AbstractHibernateGormInstanceApi.performSave(AbstractHibernateGormInstanceApi.groovy:247)",
          "org.grails.orm.hibernate.AbstractHibernateGormInstanceApi.save(AbstractHibernateGormInstanceApi.groovy:164)",
          "org.grails.datastore.gorm.GormEntity$Trait$Helper.save(GormEntity.groovy:153)",
          "grails.rest.RestfulController.saveResource(RestfulController.groovy:297)",
          "java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)",
          "java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)",
          "com.k_int.web.toolkit.rest.TenantAwareRestfulController.saveResource(TenantAwareRestfulController.groovy:83)",
          "java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)",
          "java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)",
          "grails.rest.RestfulController.updateResource(RestfulController.groovy:307)",
          "java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)",
          "java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)",
          "com.k_int.web.toolkit.rest.TenantAwareRestfulController.updateResource(TenantAwareRestfulController.groovy:87)",
          "java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)",
          "java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)",
          "com.k_int.web.toolkit.rest.RestfulController.$tt__restfulController_update(RestfulController.groovy:74)",
          "java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)",
          "java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)",
          "java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)",
          "java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)",
          "grails.gorm.transactions.GrailsTransactionTemplate$2.doInTransaction(GrailsTransactionTemplate.groovy:94)",
          "org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140)",
          "grails.gorm.transactions.GrailsTransactionTemplate.execute(GrailsTransactionTemplate.groovy:91)",
          "java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)",
          "java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)",
          "com.k_int.web.toolkit.rest.TenantAwareRestfulController.$tt__tenantAwareRestfulController_update(TenantAwareRestfulController.groovy:52)",
          "java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)",
          "java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)",
          "grails.gorm.transactions.GrailsTransactionTemplate$2.doInTransaction(GrailsTransactionTemplate.groovy:94)",
          "org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140)",
          "grails.gorm.transactions.GrailsTransactionTemplate.execute(GrailsTransactionTemplate.groovy:91)",
          "java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)",
          "java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)",
          "java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)",
          "java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)",
          "grails.gorm.multitenancy.Tenants$_withId_closure2$_closure6.doCall(Tenants.groovy:265)",
          "org.grails.orm.hibernate.GrailsHibernateTemplate.doExecute(GrailsHibernateTemplate.java:297)",
          "org.grails.orm.hibernate.GrailsHibernateTemplate.execute(GrailsHibernateTemplate.java:241)",
          "org.grails.orm.hibernate.GrailsHibernateTemplate.executeWithNewSession(GrailsHibernateTemplate.java:153)",
          "org.grails.orm.hibernate.GrailsHibernateTemplate.executeWithExistingOrCreateNewSession(GrailsHibernateTemplate.java:207)",
          "org.grails.orm.hibernate.AbstractHibernateDatastore.withNewSession(AbstractHibernateDatastore.java:369)",
          "grails.gorm.multitenancy.Tenants$_withId_closure2.doCall(Tenants.groovy:258)",
          "grails.gorm.multitenancy.Tenants$CurrentTenant.withTenant(Tenants.groovy:358)",
          "grails.gorm.multitenancy.Tenants.withId(Tenants.groovy:236)",
          "org.grails.datastore.gorm.services.DefaultTenantService.withCurrent(DefaultTenantService.groovy:71)",
          "org.grails.core.DefaultGrailsControllerClass$MethodHandleInvoker.invoke(DefaultGrailsControllerClass.java:223)",
          "org.grails.core.DefaultGrailsControllerClass.invoke(DefaultGrailsControllerClass.java:188)",
          "org.grails.web.mapping.mvc.UrlMappingsInfoHandlerAdapter.handle(UrlMappingsInfoHandlerAdapter.groovy:90)",
          "org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1040)",
          "org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943)",
          "org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)",
          "org.springframework.web.servlet.FrameworkServlet.doPut(FrameworkServlet.java:920)",
          "org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)",
          "io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74)",
          "io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129)",
          "io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)",
          "io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)",
          "org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:320)",
          "org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:127)",
          "org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:91)",
          "org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)",
          "org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:119)",
          "grails.plugin.springsecurity.web.UpdateRequestContextHolderExceptionTranslationFilter.doFilter(UpdateRequestContextHolderExceptionTranslationFilter.groovy:64)",
          "org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)",
          "org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)",
          "grails.plugin.springsecurity.web.filter.GrailsAnonymousAuthenticationFilter.doFilter(GrailsAnonymousAuthenticationFilter.groovy:54)",
          "org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)",
          "org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:150)",
          "org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)",
          "org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:170)",
          "org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)",
          "org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:200)",
          "org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)",
          "grails.plugin.springsecurity.web.authentication.logout.MutableLogoutFilter.doFilter(MutableLogoutFilter.groovy:64)",
          "org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)",
          "org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:105)",
          "org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)",
          "grails.plugin.springsecurity.web.SecurityRequestHolderFilter.doFilter(SecurityRequestHolderFilter.groovy:58)",
          "org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)",
          "com.k_int.okapi.springsecurity.OkapiAuthenticationFilter.successfulAuthentication(OkapiAuthenticationFilter.groovy:87)",
          "org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:240)",
          "org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)",
          "org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:215)",
          "org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:178)",
          "io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)",
          "io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)",
          "org.grails.web.servlet.mvc.GrailsWebRequestFilter.doFilterInternal(GrailsWebRequestFilter.java:77)",
          "io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)",
          "io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)",
          "org.grails.web.filters.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:67)",
          "io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)",
          "io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)",
          "io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)",
          "io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)",
          "io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)",
          "io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)",
          "io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)",
          "io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)",
          "io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84)",
          "io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)",
          "io.undertow.servlet.handlers.ServletChain$1.handleRequest(ServletChain.java:68)",
          "io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)",
          "io.undertow.servlet.handlers.RedirectDirHandler.handleRequest(RedirectDirHandler.java:68)",
          "io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:132)",
          "io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)",
          "io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)",
          "io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)",
          "io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)",
          "io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)",
          "io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)",
          "io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)",
          "io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)",
          "io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)",
          "io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:269)",
          "io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:78)",
          "io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:133)",
          "io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:130)",
          "io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48)",
          "io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)",
          "io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:249)",
          "io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:78)",
          "io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:99)",
          "io.undertow.server.Connectors.executeRootHandler(Connectors.java:376)",
          "io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:830)",
          "java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)",
          "java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)",
          "java.base/java.lang.Thread.run(Thread.java:834)"
        ]
      }
      

      Additional Information:

      1. This issue does not exist on Goldenrod but does exist in Honeysuckle and current build

      URL:
      Interested parties:

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                ostephens Owen Stephens
                ostephens Owen Stephens
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases