-
-
Save anonymous/d83b146aff5a408a2704 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
io.apiman.manager.api.core.exceptions.StorageException: javax.persistence.RollbackException: Error while committing the transaction | |
io.apiman.manager.api.rest.contract.exceptions.SystemErrorException: io.apiman.manager.api.core.exceptions.StorageException: javax.persistence.RollbackException: Error while committing the transaction | |
at io.apiman.manager.api.rest.impl.OrganizationResourceImpl.createContract(OrganizationResourceImpl.java:639) | |
at io.apiman.manager.api.rest.impl.OrganizationResourceImpl$Proxy$_$$_WeldClientProxy.createContract(Unknown Source) | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:606) | |
at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:137) | |
at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:296) | |
at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:250) | |
at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:237) | |
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356) | |
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:179) | |
at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:220) | |
at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:56) | |
at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:51) | |
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) | |
at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85) | |
at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:130) | |
at io.apiman.manager.api.security.impl.DefaultSecurityContextFilter.doFilter(DefaultSecurityContextFilter.java:56) | |
at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60) | |
at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132) | |
at org.overlord.commons.gwt.server.filters.SimpleCorsFilter.doFilter(SimpleCorsFilter.java:71) | |
at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60) | |
at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132) | |
at org.overlord.commons.i18n.server.filters.LocaleFilter.doFilter(LocaleFilter.java:61) | |
at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60) | |
at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132) | |
at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:85) | |
at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:61) | |
at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36) | |
at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78) | |
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) | |
at org.keycloak.adapters.undertow.UndertowAuthenticatedActionsHandler.handleRequest(UndertowAuthenticatedActionsHandler.java:66) | |
at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131) | |
at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:56) | |
at io.undertow.server.handlers.DisableCacheHandler.handleRequest(DisableCacheHandler.java:33) | |
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) | |
at io.undertow.security.handlers.AuthenticationConstraintHandler.handleRequest(AuthenticationConstraintHandler.java:51) | |
at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45) | |
at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:63) | |
at io.undertow.servlet.handlers.security.ServletSecurityConstraintHandler.handleRequest(ServletSecurityConstraintHandler.java:56) | |
at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58) | |
at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:70) | |
at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76) | |
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) | |
at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61) | |
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) | |
at org.keycloak.adapters.undertow.ServletPreAuthActionsHandler.handleRequest(ServletPreAuthActionsHandler.java:69) | |
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) | |
at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:261) | |
at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:247) | |
at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:76) | |
at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:166) | |
at io.undertow.server.Connectors.executeRootHandler(Connectors.java:197) | |
at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:759) | |
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) | |
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) | |
at java.lang.Thread.run(Thread.java:744) | |
Caused by: io.apiman.manager.api.core.exceptions.StorageException: javax.persistence.RollbackException: Error while committing the transaction | |
at io.apiman.manager.api.jpa.AbstractJpaStorage.commitTx(AbstractJpaStorage.java:92) | |
at io.apiman.manager.api.jpa.JpaStorage.commitTx(JpaStorage.java:107) | |
at io.apiman.manager.api.jpa.JpaStorage$Proxy$_$$_WeldClientProxy.commitTx(Unknown Source) | |
at io.apiman.manager.api.rest.impl.OrganizationResourceImpl.createContract(OrganizationResourceImpl.java:632) | |
... 57 more | |
Caused by: javax.persistence.RollbackException: Error while committing the transaction | |
at org.hibernate.jpa.internal.TransactionImpl.commit(TransactionImpl.java:94) | |
at io.apiman.manager.api.jpa.AbstractJpaStorage.commitTx(AbstractJpaStorage.java:85) | |
... 60 more | |
Caused by: javax.persistence.PersistenceException: org.hibernate.exception.ConstraintViolationException: could not execute statement | |
at org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1763) | |
at org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1677) | |
at org.hibernate.jpa.internal.TransactionImpl.commit(TransactionImpl.java:82) | |
... 61 more | |
Caused by: org.hibernate.exception.ConstraintViolationException: could not execute statement | |
at org.hibernate.exception.internal.SQLStateConversionDelegate.convert(SQLStateConversionDelegate.java:129) | |
at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:49) | |
at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:126) | |
at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:112) | |
at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate(ResultSetReturnImpl.java:211) | |
at org.hibernate.engine.jdbc.batch.internal.NonBatchingBatch.addToBatch(NonBatchingBatch.java:62) | |
at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:3124) | |
at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:3581) | |
at org.hibernate.action.internal.EntityInsertAction.execute(EntityInsertAction.java:104) | |
at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:463) | |
at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:349) | |
at org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:350) | |
at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:56) | |
at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1222) | |
at org.hibernate.internal.SessionImpl.managedFlush(SessionImpl.java:425) | |
at org.hibernate.engine.transaction.internal.jdbc.JdbcTransaction.beforeTransactionCommit(JdbcTransaction.java:101) | |
at org.hibernate.engine.transaction.spi.AbstractTransactionImpl.commit(AbstractTransactionImpl.java:177) | |
at org.hibernate.jpa.internal.TransactionImpl.commit(TransactionImpl.java:77) | |
... 61 more | |
Caused by: org.h2.jdbc.JdbcSQLException: Unique index or primary key violation: "UK_I3BQ88CAWO5MI1KF3PK8FKVSM_INDEX_8 ON PUBLIC.CONTRACTS(APPV_ID, SVCV_ID, PLANV_ID) VALUES ( /* key:24 */ null, null, null, null, 16, 4, 9)"; SQL statement: | |
insert into contracts (apikey, appv_id, createdBy, createdOn, planv_id, svcv_id, id) values (?, ?, ?, ?, ?, ?, ?) [23505-173] | |
at org.h2.message.DbException.getJdbcSQLException(DbException.java:331) | |
at org.h2.message.DbException.get(DbException.java:171) | |
at org.h2.message.DbException.get(DbException.java:148) | |
at org.h2.index.BaseIndex.getDuplicateKeyException(BaseIndex.java:101) | |
at org.h2.index.PageBtree.find(PageBtree.java:121) | |
at org.h2.index.PageBtreeLeaf.addRow(PageBtreeLeaf.java:148) | |
at org.h2.index.PageBtreeLeaf.addRowTry(PageBtreeLeaf.java:101) | |
at org.h2.index.PageBtreeIndex.addRow(PageBtreeIndex.java:95) | |
at org.h2.index.PageBtreeIndex.add(PageBtreeIndex.java:86) | |
at org.h2.index.MultiVersionIndex.add(MultiVersionIndex.java:52) | |
at org.h2.table.RegularTable.addRow(RegularTable.java:125) | |
at org.h2.command.dml.Insert.insertRows(Insert.java:127) | |
at org.h2.command.dml.Insert.update(Insert.java:86) | |
at org.h2.command.CommandContainer.update(CommandContainer.java:79) | |
at org.h2.command.Command.executeUpdate(Command.java:235) | |
at org.h2.jdbc.JdbcPreparedStatement.executeUpdateInternal(JdbcPreparedStatement.java:154) | |
at org.h2.jdbc.JdbcPreparedStatement.executeUpdate(JdbcPreparedStatement.java:140) | |
at org.jboss.jca.adapters.jdbc.WrappedPreparedStatement.executeUpdate(WrappedPreparedStatement.java:493) | |
at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate(ResultSetReturnImpl.java:208) | |
... 74 more |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment