-
Bug
-
Resolution: Done
-
Medium
-
Dublin Release, El Alto Release
-
None
In case the user would upload a python script, which should be executed with Jython, and it would contain syntax errors, the caller of the blueprints processor should get this error.
The message returned is "null" ..
The error inside the blueprintprocessor:
16:53:40.487 [reactor-http-nio-3] INFO c.o.c.c.b.selfservice.api.ExecutionServiceHandler - processing request id 123456 16:53:40.487 [reactor-http-nio-3] INFO c.o.c.c.b.db.BlueprintProcessorCatalogServiceImpl - cba file name(use_netconf), version(1.0.1) already present(/Users/olegmit/git/cds-jul12/blueprints/deploy/use_netconf/1.0.1) 16:53:40.487 [reactor-http-nio-3] INFO c.o.c.c.b.selfservice.api.ExecutionServiceHandler - blueprint base path blueprints/deploy/use_netconf/1.0.1 16:53:40.488 [reactor-http-nio-3] INFO c.o.c.c.c.c.utils.BluePrintMetadataUtils$Companion - Reading blueprint path(blueprints/deploy/use_netconf/1.0.1) and entry definition file (Definitions/use_netconf.json) 16:53:40.491 [reactor-http-nio-3] INFO c.o.c.c.c.core.service.BluePrintRuntimeService - assign workflow config-deploy input value ({"operation":"get_config"}) 16:53:40.491 [reactor-http-nio-3] INFO o.o.c.c.b.s.w.BluePrintWorkflowExecutionServiceImpl - Executing workflow(config-deploy) NodeTemplate(config-deploy), derived from(tosca.nodes.Component) 16:53:40.491 [reactor-http-nio-3] INFO o.o.c.c.b.s.workflow.NodeTemplateExecutionService - executing node template(config-deploy) component(component-netconf-executor) interface(ComponentNetconfExecutor) operation(process) 16:53:40.491 [reactor-http-nio-3] INFO o.o.c.c.b.s.execution.AbstractComponentFunction - preparing request id(123456) for workflow(config-deploy) step(config-deploy) 16:53:40.491 [reactor-http-nio-3] INFO c.o.c.c.c.core.service.BluePrintRuntimeService - resolveNodeTemplateInterfaceOperationInputs for node template (config-deploy),interface name (ComponentNetconfExecutor), operationName(process) 16:53:40.491 [reactor-http-nio-3] INFO c.o.c.c.c.core.service.BluePrintRuntimeService - input definition for node template (config-deploy), values ({script-type="jython", script-class-reference="Scripts/python/ConfigDeploy.py", instance-dependencies=[]}) 16:53:40.491 [reactor-http-nio-3] INFO o.o.c.c.b.s.e.ComponentFunctionScriptingService - creating component function of script type(jython), reference name(Scripts/python/ConfigDeploy.py) and instanceDependencies([resource-resolution-service]) 16:53:40.491 [reactor-http-nio-3] INFO o.o.c.c.b.s.e.scripts.BlueprintJythonService - Getting Jython Script Class(ConfigDeploy) 16:53:40.494 [reactor-http-nio-3] ERROR o.o.c.c.b.s.execution.AbstractComponentFunction - failed in config-deploy : null org.python.core.PySyntaxError: null at org.python.core.ParserFacade.fixParseError(ParserFacade.java:95) at org.python.core.ParserFacade.parse(ParserFacade.java:205) at org.python.core.Py.compile_flags(Py.java:2205) at org.python.util.PythonInterpreter.exec(PythonInterpreter.java:267) at org.onap.ccsdk.cds.blueprintsprocessor.services.execution.scripts.BlueprintPythonInterpreterProxy.getPythonInstance(BlueprintPythonInterpreterProxy.kt:31) at org.onap.ccsdk.cds.blueprintsprocessor.services.execution.scripts.BlueprintPythonHost.getPythonComponent(BlueprintPythonHost.kt:42) at org.onap.ccsdk.cds.blueprintsprocessor.services.execution.scripts.BlueprintJythonService.jythonComponentInstance(BlueprintJythonService.kt:135) at org.onap.ccsdk.cds.blueprintsprocessor.services.execution.ComponentFunctionScriptingService.scriptInstance(ComponentFunctionScriptingService.kt:80) at org.onap.ccsdk.cds.blueprintsprocessor.services.execution.ComponentFunctionScriptingService.scriptInstance(ComponentFunctionScriptingService.kt:44) at org.onap.ccsdk.cds.blueprintsprocessor.functions.netconf.executor.ComponentNetconfExecutor.processNB$suspendImpl(ComponentNetconfExecutor.kt:57) at org.onap.ccsdk.cds.blueprintsprocessor.functions.netconf.executor.ComponentNetconfExecutor.processNB(ComponentNetconfExecutor.kt) at org.onap.ccsdk.cds.blueprintsprocessor.functions.netconf.executor.ComponentNetconfExecutor.processNB(ComponentNetconfExecutor.kt:33) at org.onap.ccsdk.cds.blueprintsprocessor.services.execution.AbstractComponentFunction.applyNB$suspendImpl(AbstractComponentFunction.kt:121) at org.onap.ccsdk.cds.blueprintsprocessor.services.execution.AbstractComponentFunction.applyNB(AbstractComponentFunction.kt) at org.onap.ccsdk.cds.blueprintsprocessor.services.workflow.NodeTemplateExecutionService.executeNodeTemplate(NodeTemplateExecutionService.kt:75) at org.onap.ccsdk.cds.blueprintsprocessor.services.workflow.ComponentWorkflowExecutionService.executeBluePrintWorkflow$suspendImpl(ComponentWorkflowExecutionService.kt:41) at org.onap.ccsdk.cds.blueprintsprocessor.services.workflow.ComponentWorkflowExecutionService.executeBluePrintWorkflow(ComponentWorkflowExecutionService.kt) at org.onap.ccsdk.cds.blueprintsprocessor.services.workflow.BluePrintWorkflowExecutionServiceImpl.executeBluePrintWorkflow$suspendImpl(BluePrintWorkflowExecutionServiceImpl.kt:64) at org.onap.ccsdk.cds.blueprintsprocessor.services.workflow.BluePrintWorkflowExecutionServiceImpl.executeBluePrintWorkflow(BluePrintWorkflowExecutionServiceImpl.kt) at org.onap.ccsdk.cds.blueprintsprocessor.services.workflow.BluePrintWorkflowExecutionServiceImpl.executeBluePrintWorkflow(BluePrintWorkflowExecutionServiceImpl.kt:31) at org.onap.ccsdk.cds.blueprintsprocessor.selfservice.api.ExecutionServiceHandler.doProcess(ExecutionServiceHandler.kt:110) at org.onap.ccsdk.cds.blueprintsprocessor.selfservice.api.ExecutionServiceController$process$1.invokeSuspend(ExecutionServiceController.kt:91) 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.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 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.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:163) at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:677) at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:612) at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:529) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:491) at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:905) at java.lang.Thread.run(Thread.java:748) 16:53:40.494 [reactor-http-nio-3] INFO o.o.c.c.b.s.execution.AbstractComponentFunction - Preparing Response... 16:53:40.494 [reactor-http-nio-3] INFO c.o.c.c.c.core.service.BluePrintRuntimeService - resolveNodeTemplateInterfaceOperationOutputs for node template (config-deploy),interface name (ComponentNetconfExecutor), operationName(process) 16:53:40.494 [reactor-http-nio-3] INFO c.o.c.c.c.core.service.BluePrintRuntimeService - resolveWorkflowOutputs for workflow(config-deploy)