Uploaded image for project: 'Common Controller SDK'
  1. Common Controller SDK
  2. CCSDK-1518

ExecutionServiceHandler exception handler silently crashes execution as localizedMessage was null

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • El Alto Release
    • El Alto Release
    • None
    • This results in a missing status, and then fails on inserting null value in null-constrainted column.

       

       

      We've observed a silent crash in CDS execution on failure which didn't pass a response upwards, resulting in a silent crash.

       

      at java.lang.Thread.run(Thread.java:748)

      2019-07-22 20:23:29,743|||reactor-http-epoll-40||||ERROR||||||| [899fd60b] 500 Server Error for HTTP POST "/api/v1/execution-service/process"

      java.lang.IllegalStateException: e.localizedMessage must not be null

      at org.onap.ccsdk.cds.blueprintsprocessor.selfservice.api.ExecutionServiceHandler.doProcess(ExecutionServiceHandler.kt:121)

      at org.onap.ccsdk.cds.blueprintsprocessor.selfservice.api.ExecutionServiceHandler$doProcess$1.invokeSuspend(ExecutionServiceHandler.kt)

      at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:32)

      at kotlinx.coroutines.DispatchedTask.run(Dispatched.kt:233)

      at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.kt:116)

      at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:76)

      at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:53)

      at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source)

      at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:35)

      at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source)

      at org.onap.ccsdk.cds.blueprintsprocessor.selfservice.api.ExecutionServiceController.process(ExecutionServiceController.kt:87)

      at sun.reflect.GeneratedMethodAccessor164.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:498)

      at org.springframework.web.reactive.result.method.InvocableHandlerMethod.lambda$invoke$0(InvocableHandlerMethod.java:139)

      at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:118)

      at reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:1505)

      at reactor.core.publisher.MonoZip$ZipCoordinator.signal(MonoZip.java:247)

      at reactor.core.publisher.MonoZip$ZipInner.onNext(MonoZip.java:329)

      at reactor.core.publisher.FluxPeek$PeekSubscriber.onNext(FluxPeek.java:192)

      at reactor.core.publisher.FluxDefaultIfEmpty$DefaultIfEmptySubscriber.onNext(FluxDefaultIfEmpty.java:92)

      at reactor.core.publisher.FluxSwitchIfEmpty$SwitchIfEmptySubscriber.onNext(FluxSwitchIfEmpty.java:67)

      at reactor.core.publisher.FluxOnErrorResume$ResumeSubscriber.onNext(FluxOnErrorResume.java:73)

      at reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:1505)

      at reactor.core.publisher.MonoSingle$SingleSubscriber.onComplete(MonoSingle.java:171)

      at reactor.core.publisher.FluxFlatMap$FlatMapMain.checkTerminated(FluxFlatMap.java:794)

      at reactor.core.publisher.FluxFlatMap$FlatMapMain.drainLoop(FluxFlatMap.java:560)

      at reactor.core.publisher.FluxFlatMap$FlatMapMain.drain(FluxFlatMap.java:540)

      at reactor.core.publisher.FluxFlatMap$FlatMapMain.onComplete(FluxFlatMap.java:426)

      at reactor.core.publisher.FluxFlatMap$FlatMapMain.checkTerminated(FluxFlatMap.java:794)

      at reactor.core.publisher.FluxFlatMap$FlatMapMain.drainLoop(FluxFlatMap.java:560)

      at reactor.core.publisher.FluxFlatMap$FlatMapMain.drain(FluxFlatMap.java:540)

      at reactor.core.publisher.FluxFlatMap$FlatMapMain.onComplete(FluxFlatMap.java:426)

      at reactor.core.publisher.DrainUtils.postCompleteDrain(DrainUtils.java:131)

      at reactor.core.publisher.DrainUtils.postComplete(DrainUtils.java:186)

      at reactor.core.publisher.FluxMapSignal$FluxMapSignalSubscriber.onComplete(FluxMapSignal.java:213)

      at reactor.core.publisher.FluxMap$MapSubscriber.onComplete(FluxMap.java:136)

      at reactor.core.publisher.FluxPeek$PeekSubscriber.onComplete(FluxPeek.java:252)

      at reactor.core.publisher.FluxMap$MapSubscriber.onComplete(FluxMap.java:136)

      at reactor.netty.channel.FluxReceive.terminateReceiver(FluxReceive.java:372)

      at reactor.netty.channel.FluxReceive.drainReceiver(FluxReceive.java:196)

      at reactor.netty.channel.FluxReceive.onInboundComplete(FluxReceive.java:337)

      at reactor.netty.channel.ChannelOperations.onInboundComplete(ChannelOperations.java:334)

      at reactor.netty.http.server.HttpServerOperations.onInboundNext(HttpServerOperations.java:453)

      at reactor.netty.channel.ChannelOperationsHandler.channelRead(ChannelOperationsHandler.java:141)

      at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)

      at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)

      at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)

      at reactor.netty.http.server.HttpTrafficHandler.channelRead(HttpTrafficHandler.java:191)

      at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)

      at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)

      at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)

      at io.netty.channel.CombinedChannelDuplexHandler$DelegatingChannelHandlerContext.fireChannelRead(CombinedChannelDuplexHandler.java:438)

      at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:323)

      at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:297)

      at io.netty.channel.CombinedChannelDuplexHandler.channelRead(CombinedChannelDuplexHandler.java:253)

      at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)

      at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)

      at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)

      at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1408)

      at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)

      at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)

      at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:930)

      at io.netty.channel.epoll.AbstractEpollStreamChannel$EpollStreamUnsafe.epollInReady(AbstractEpollStreamChannel.java:799)

      at io.netty.channel.epoll.EpollEventLoop.processReady(EpollEventLoop.java:427)

      at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:328)

      at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:905)

      at java.lang.Thread.run(Thread.java:748)

      2019-07-22 20:24:44,692|||reactor-http-epoll-40||||INFO||||||| processing request id 1234

      2019-07-22 20:24:44,693|||reactor-http-epoll-40||||INFO||||||| cba file name(prouter_acl), version(1.0.3) already present(/opt/app/onap/blueprints/deploy/prouter_acl/1.0.3)

      2019-07-22 20:24:44,693|||reactor-http-epoll-40||||INFO||||||| blueprint base path /opt/app/onap/blueprints/deploy/prouter_acl/1.0.3

      2019-07-22 20:24:44,818|||reactor-http-epoll-40||||INFO||||||| Reading blueprint path(/opt/app/onap/blueprints/deploy/prouter_acl/1.0.3) and entry definition file (Definitions/prouter_acl.json)

      2019-07-22 20:24:44,859|||reactor-http-epoll-40||||INFO||||||| assign workflow config-assign input value ({P A R A M E T E R S}})

      2019-07-22 20:24:44,865|||reactor-http-epoll-40||||INFO||||||| Executing workflow(config-assign) NodeTemplate(config-assign-workflow), derived from(tosca.nodes.Workflow)

      2019-07-22 20:24:44,865|||reactor-http-epoll-40||||INFO||||||| Executing workflow(config-assign) directed graph NodeTemplate(config-assign-workflow)

      2019-07-22 20:24:44,866|||reactor-http-epoll-40||||INFO||||||| Executing directed graph (/opt/app/onap/blueprints/deploy/prouter_acl/1.0.3/Plans/DryRun.xml)

      2019-07-22 20:24:45,036|||reactor-http-epoll-40||||INFO||||||| Schema path file:/opt/app/onap/lib/org.onap.ccsdk.sli.core-sli-common-0.5.0-20190717.204510-11.jar!/svclogic.xsd

      2019-07-22 20:24:45,044|||reactor-http-epoll-40||||INFO||||||| About to execute graph SvcLogicGraph [module=CONFIG, rpc=DryRun, mode=sync, version=1.0.0, md5sum=062fd4454c7887ac10a8f85cef9c31e3]

      2019-07-22 20:24:45,045|||reactor-http-epoll-40||||INFO||||||| About to execute node # 1 (block)

      2019-07-22 20:24:45,045|||reactor-http-epoll-40||||INFO||||||| executing node template(config-assign) component(component-resource-resolution) interface(ResourceResolutionComponent) operation(process)

      2019-07-22 20:24:45,046|||reactor-http-epoll-40||||INFO||||||| preparing request id(1234) for workflow(config-assign) step(config-assign)

      2019-07-22 20:24:45,046|||reactor-http-epoll-40||||INFO||||||| resolveNodeTemplateInterfaceOperationInputs for node template (config-assign),interface name (ResourceResolutionComponent), operationName(process)

      2019-07-22 20:24:45,046|||reactor-http-epoll-40||||INFO||||||| input definition for node template (config-assign), values ({resolution-key=

      {"get_input":"resolution-key"}

      , store-result=true, artifact-prefix-names=["access-list"]})

      2019-07-22 20:24:45,047|||reactor-http-epoll-40||||INFO||||||| Resolving resource for template artifact(access-list-template) with resource assignment artifact(access-list-mapping)

      2019-07-22 20:24:45,119|||reactor-http-epoll-40||||INFO||||||| Assignments ([[name=accessname, status=null, property=, dictionaryName=input-source, dictionarySource=input], [name=seqnum, status=null, property=, dictionaryName=input-source, dictionarySource=input], [name=ipentry, status=null, property=, dictionaryName=input-source, dictionarySource=input]])

      2019-07-22 20:24:45,119|||reactor-http-epoll-40||||INFO||||||| Sorted Sequenced Assignments ([[name=*, status=null, property=, dictionaryName=null, dictionarySource=null], [name=ipentry, status=null, property=, dictionaryName=input-source, dictionarySource=input], [name=seqnum, status=null, property=, dictionaryName=input-source, dictionarySource=input], [name=accessname, status=null, property=, dictionaryName=input-source, dictionarySource=input]])

      2019-07-22 20:24:45,119|||reactor-http-epoll-40||||INFO||||||| Batched Sequence : ([[[name=*, status=null, property=, dictionaryName=null, dictionarySource=null]], [[name=ipentry, status=null, property=, dictionaryName=input-source, dictionarySource=input], [name=seqnum, status=null, property=, dictionaryName=input-source, dictionarySource=input], [name=accessname, status=null, property=, dictionaryName=input-source, dictionarySource=input]]])

      2019-07-22 20:24:45,121|||reactor-http-epoll-40||||INFO||||||| input source template key (seqnum) found from input and value is ("20")

      2019-07-22 20:24:45,121|||reactor-http-epoll-40||||INFO||||||| Setting Resource Value ("20") for Resource Name (seqnum) of type (string)

      2019-07-22 20:24:45,121|||reactor-http-epoll-40||||INFO||||||| input source template key (accessname) found from input and value is ("98")

      2019-07-22 20:24:45,121|||reactor-http-epoll-40||||INFO||||||| Setting Resource Value ("98") for Resource Name (accessname) of type (string)

      2019-07-22 20:24:45,169|||DefaultDispatcher-worker-24||||ERROR||||||| (conn=44959) Column 'status' cannot be null

      2019-07-22 20:24:45,206|||reactor-http-epoll-40||||ERROR||||||| Fail in processing seqnum

      kotlinx.coroutines.JobCancellationException: Parent job is Cancelling

      Caused by: org.onap.ccsdk.cds.controllerblueprints.core.BluePrintException: Failed to store resource resolution result.

      at org.onap.ccsdk.cds.blueprintsprocessor.functions.resource.resolution.db.ResourceResolutionDBService$write$4.invokeSuspend(ResourceResolutionDBService.kt:175)

      at org.onap.ccsdk.cds.blueprintsprocessor.functions.resource.resolution.db.ResourceResolutionDBService$write$4.invoke(ResourceResolutionDBService.kt)

      at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:91)

      at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:146)

      at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)

      at org.onap.ccsdk.cds.blueprintsprocessor.functions.resource.resolution.db.ResourceResolutionDBService.write(ResourceResolutionDBService.kt:150)

      at org.onap.ccsdk.cds.blueprintsprocessor.functions.resource.resolution.db.ResourceResolutionDBService$write$2.invokeSuspend(ResourceResolutionDBService.kt:133)

      at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:32)

      at kotlinx.coroutines.DispatchedTask.run(Dispatched.kt:233)

      at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:594)

      at kotlinx.coroutines.scheduling.CoroutineScheduler.access$runSafely(CoroutineScheduler.kt:60)

      at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:742)

      Caused by: org.springframework.dao.DataIntegrityViolationException: could not execute statement; SQL [n/a]; constraint [null]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement

      at org.springframework.orm.jpa.vendor.HibernateJpaDialect.convertHibernateAccessException(HibernateJpaDialect.java:296)

      at org.springframework.orm.jpa.vendor.HibernateJpaDialect.translateExceptionIfPossible(HibernateJpaDialect.java:253)

      at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.translateExceptionIfPossible(AbstractEntityManagerFactoryBean.java:527)

      at org.springframework.dao.support.ChainedPersistenceExceptionTranslator.translateExceptionIfPossible(ChainedPersistenceExceptionTranslator.java:61)

      at org.springframework.dao.support.DataAccessUtils.translateIfNecessary(DataAccessUtils.java:242)

      at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:153)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)

      at org.springframework.data.jpa.repository.support.CrudMethodMetadataPostProcessor$CrudMethodMetadataPopulatingMethodInterceptor.invoke(CrudMethodMetadataPostProcessor.java:135)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)

      at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:93)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)

      at org.springframework.data.repository.core.support.SurroundingTransactionDetectorMethodInterceptor.invoke(SurroundingTransactionDetectorMethodInterceptor.java:61)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)

      at org.springframework.data.repository.core.support.MethodInvocationValidator.invoke(MethodInvocationValidator.java:99)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)

      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)

      at com.sun.proxy.$Proxy141.saveAndFlush(Unknown Source)

      at org.onap.ccsdk.cds.blueprintsprocessor.functions.resource.resolution.db.ResourceResolutionDBService$write$4.invokeSuspend(ResourceResolutionDBService.kt:173)

      ... 11 common frames omitted

      Caused by: org.hibernate.exception.ConstraintViolationException: could not execute statement

      at org.hibernate.exception.internal.SQLExceptionTypeDelegate.convert(SQLExceptionTypeDelegate.java:59)

      at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:42)

      at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:113)

      at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:99)

      at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate(ResultSetReturnImpl.java:178)

      at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:3176)

      at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:3690)

      at org.hibernate.action.internal.EntityInsertAction.execute(EntityInsertAction.java:90)

      at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:604)

      at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:478)

      at org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:356)

      at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:39)

      at org.hibernate.internal.SessionImpl.doFlush(SessionImpl.java:1454)

      at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1440)

      at sun.reflect.GeneratedMethodAccessor134.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:498)

      at org.springframework.orm.jpa.SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke(SharedEntityManagerCreator.java:308)

      at com.sun.proxy.$Proxy130.flush(Unknown Source)

      at org.springframework.data.jpa.repository.support.SimpleJpaRepository.flush(SimpleJpaRepository.java:533)

      at org.springframework.data.jpa.repository.support.SimpleJpaRepository.saveAndFlush(SimpleJpaRepository.java:504)

      at sun.reflect.GeneratedMethodAccessor131.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:498)

      at org.springframework.data.repository.core.support.RepositoryComposition$RepositoryFragments.invoke(RepositoryComposition.java:359)

      at org.springframework.data.repository.core.support.RepositoryComposition.invoke(RepositoryComposition.java:200)

      at org.springframework.data.repository.core.support.RepositoryFactorySupport$ImplementationMethodExecutionInterceptor.invoke(RepositoryFactorySupport.java:644)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)

      at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.doInvoke(RepositoryFactorySupport.java:608)

      at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.lambda$invoke$3(RepositoryFactorySupport.java:595)

      at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:595)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)

      at org.springframework.data.projection.DefaultMethodInvokingMethodInterceptor.invoke(DefaultMethodInvokingMethodInterceptor.java:59)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)

      at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:294)

      at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:98)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)

      at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:139)

      ... 23 common frames omitted

      Caused by: java.sql.SQLIntegrityConstraintViolationException: (conn=44959) Column 'status' cannot be null

      at org.mariadb.jdbc.internal.util.exceptions.ExceptionMapper.get(ExceptionMapper.java:229)

      at org.mariadb.jdbc.internal.util.exceptions.ExceptionMapper.getException(ExceptionMapper.java:165)

      at org.mariadb.jdbc.MariaDbStatement.executeExceptionEpilogue(MariaDbStatement.java:238)

      at org.mariadb.jdbc.MariaDbPreparedStatementClient.executeInternal(MariaDbPreparedStatementClient.java:232)

      at org.mariadb.jdbc.MariaDbPreparedStatementClient.execute(MariaDbPreparedStatementClient.java:159)

      at org.mariadb.jdbc.MariaDbPreparedStatementClient.executeUpdate(MariaDbPreparedStatementClient.java:194)

      at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate(ResultSetReturnImpl.java:175)

      ... 56 common frames omitted

      Caused by: java.sql.SQLException: Column 'status' cannot be null

      Query is: insert into RESOURCE_RESOLUTION (artifact_name, blueprint_name, blueprint_version, creation_date, dictionary_name, dictionary_status, dictionary_version, name, occurrence, resolution_key, resource_id, resource_type, status, value, resource_resolution_id) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?), parameters ['access-list','prouter_acl','1.0.3','2019-07-22 20:24:45.121','input-source','input',0,'ipentry',1,'harman-11','','',<null>,<Reader>,'f920fdc7-8de7-42e1-9083-f09683617ea6']

      java thread: DefaultDispatcher-worker-24

      at org.mariadb.jdbc.internal.util.LogQueryTool.exceptionWithQuery(LogQueryTool.java:163)

      at org.mariadb.jdbc.internal.protocol.AbstractQueryProtocol.executeQuery(AbstractQueryProtocol.java:280)

      at org.mariadb.jdbc.MariaDbPreparedStatementClient.executeInternal(MariaDbPreparedStatementClient.java:223)

      ... 59 common frames omitted

      2019-07-22 20:24:45,218|||reactor-http-epoll-40||||ERROR||||||| Fail in processing accessname

      kotlinx.coroutines.JobCancellationException: Parent job is Cancelling

      Caused by: org.onap.ccsdk.cds.controllerblueprints.core.BluePrintException: Failed to store resource resolution result.

      at org.onap.ccsdk.cds.blueprintsprocessor.functions.resource.resolution.db.ResourceResolutionDBService$write$4.invokeSuspend(ResourceResolutionDBService.kt:175)

      at org.onap.ccsdk.cds.blueprintsprocessor.functions.resource.resolution.db.ResourceResolutionDBService$write$4.invoke(ResourceResolutionDBService.kt)

      at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:91)

      at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:146)

      at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)

      at org.onap.ccsdk.cds.blueprintsprocessor.functions.resource.resolution.db.ResourceResolutionDBService.write(ResourceResolutionDBService.kt:150)

      at org.onap.ccsdk.cds.blueprintsprocessor.functions.resource.resolution.db.ResourceResolutionDBService$write$2.invokeSuspend(ResourceResolutionDBService.kt:133)

      at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:32)

      at kotlinx.coroutines.DispatchedTask.run(Dispatched.kt:233)

      at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:594)

      at kotlinx.coroutines.scheduling.CoroutineScheduler.access$runSafely(CoroutineScheduler.kt:60)

      at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:742)

      Caused by: org.springframework.dao.DataIntegrityViolationException: could not execute statement; SQL [n/a]; constraint [null]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement

      at org.springframework.orm.jpa.vendor.HibernateJpaDialect.convertHibernateAccessException(HibernateJpaDialect.java:296)

      at org.springframework.orm.jpa.vendor.HibernateJpaDialect.translateExceptionIfPossible(HibernateJpaDialect.java:253)

      at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.translateExceptionIfPossible(AbstractEntityManagerFactoryBean.java:527)

      at org.springframework.dao.support.ChainedPersistenceExceptionTranslator.translateExceptionIfPossible(ChainedPersistenceExceptionTranslator.java:61)

      at org.springframework.dao.support.DataAccessUtils.translateIfNecessary(DataAccessUtils.java:242)

      at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:153)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)

      at org.springframework.data.jpa.repository.support.CrudMethodMetadataPostProcessor$CrudMethodMetadataPopulatingMethodInterceptor.invoke(CrudMethodMetadataPostProcessor.java:135)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)

      at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:93)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)

      at org.springframework.data.repository.core.support.SurroundingTransactionDetectorMethodInterceptor.invoke(SurroundingTransactionDetectorMethodInterceptor.java:61)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)

      at org.springframework.data.repository.core.support.MethodInvocationValidator.invoke(MethodInvocationValidator.java:99)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)

       

       

            omimtl omimtl
            omimtl omimtl
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: