Uploaded image for project: 'Service Design and Creation'
  1. Service Design and Creation
  2. SDC-3917

Error assigning substitution filter property to service input

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • Jakarta Release
    • Jakarta Release
    • None
    • None

      Following steps re-create this error:

      • Create a service
      • Create an input using the "Add Input" button in the Input tab of the Properties Assignment view
      • Go to the composition view and select the substitution filter tab (the right most tab on the right hand side)
      • Select "Add Substitution Filter"
      • Select:
        • any property
        • Function Type = Service Input
        • Service Input = the input created above
      • Click "Create"
      • Download the tosca template - an error is thrown

      For inputs created by selecting a property and using the "Declare Input" button there does not seem to be a problem. Also the inputs created automatically for the service do not seem to be a problem.

      Following exception seen in logs:

       

      2022-02-17T13:54:50.958Z||qtp733943822-184#DEBUG#o.o.s.b.s.e.DefaultExceptionMapper##toResponse - An error occurred:  java.lang.ClassCastException: class org.onap.sdc.tosca.services.StrictMapAppenderConstructor$1 cannot be cast to class java.util.List (org.onap.sdc.tosca.services.StrictMapAppenderConstructor$1 is in unnamed module of loader org.eclipse.jetty.webapp.WebAppClassLoader @518caac3; java.util.List is in module java.base of loader 'bootstrap')\n\tat org.openecomp.sdc.be.tosca.ToscaExportHandler.copySubstitutionFilterProperties(ToscaExportHandler.java:1659)\n\tat org.openecomp.sdc.be.tosca.ToscaExportHandler.convertToSubstitutionFilterComponent(ToscaExportHandler.java:1588)\n\tat org.openecomp.sdc.be.tosca.ToscaExportHandler.convertSubstitutionMappingFilter(ToscaExportHandler.java:474)\n\tat org.openecomp.sdc.be.tosca.ToscaExportHandler.createSubstitutionMapping(ToscaExportHandler.java:435)\n\tat org.openecomp.sdc.be.tosca.ToscaExportHandler.convertToscaTemplate(ToscaExportHandler.java:396)\n\tat org.openecomp.sdc.be.tosca.ToscaExportHandler.convertToToscaTemplate(ToscaExportHandler.java:301)\n\tat org.openecomp.sdc.be.tosca.ToscaExportHandler.exportComponent(ToscaExportHandler.java:215)\n\tat org.openecomp.sdc.be.components.impl.ArtifactsBusinessLogic.decodeToscaArtifactPayload(ArtifactsBusinessLogic.java:380)\n\tat org.openecomp.sdc.be.components.impl.ArtifactsBusinessLogic.generateNotSavedArtifact(ArtifactsBusinessLogic.java:630)\n\tat org.openecomp.sdc.be.components.impl.ArtifactsBusinessLogic.doAction(ArtifactsBusinessLogic.java:407)\n\tat org.openecomp.sdc.be.components.impl.ArtifactsBusinessLogic.validateAndHandleArtifact(ArtifactsBusinessLogic.java:291)\n\tat org.openecomp.sdc.be.components.impl.ArtifactsBusinessLogic.handleArtifactRequest(ArtifactsBusinessLogic.java:262)\n\tat org.openecomp.sdc.be.components.impl.ArtifactsBusinessLogic.handleArtifactRequest(ArtifactsBusinessLogic.java:271)\n\tat org.openecomp.sdc.be.components.impl.ArtifactsBusinessLogic.handleDownloadRequestById(ArtifactsBusinessLogic.java:703)\n\tat org.openecomp.sdc.be.servlets.ArtifactServlet.handleDownloadRequest(ArtifactServlet.java:691)\n\tat org.openecomp.sdc.be.servlets.ArtifactServlet.downloadServiceArtifactBase64_aroundBody16(ArtifactServlet.java:299)\n\tat org.openecomp.sdc.be.servlets.ArtifactServlet$AjcClosure17.run(ArtifactServlet.java:1)\n\tat org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:167)\n\tat com.jcabi.aspects.aj.MethodLogger.wrap(MethodLogger.java:212)\n\tat com.jcabi.aspects.aj.MethodLogger.ajc$inlineAccessMethod$com_jcabi_aspects_aj_MethodLogger$com_jcabi_aspects_aj_MethodLogger$wrap(MethodLogger.java:1)\n\tat com.jcabi.aspects.aj.MethodLogger.wrapClass(MethodLogger.java:136)\n\tat org.openecomp.sdc.be.servlets.ArtifactServlet.downloadServiceArtifactBase64(ArtifactServlet.java:295)\n\tat org.openecomp.sdc.be.servlets.ArtifactServlet$$FastClassBySpringCGLIB$$7826dcd4.invoke(<generated>)\n\tat org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)\n\tat org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:779)\n\tat org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n\tat org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:750)\n\tat org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:58)\n\tat org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:175)\n\tat org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:750)\n\tat org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)\n\tat org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n\tat org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:750)\n\tat org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:692)\n\tat org.openecomp.sdc.be.servlets.ArtifactServlet$$EnhancerBySpringCGLIB$$56b9dcd.downloadServiceArtifactBase64(<generated>)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)\n\tat java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)\n\tat java.base/java.lang.reflect.Method.invoke(Unknown Source)\n\tat org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory.lambda$static$0(ResourceMethodInvocationHandlerFactory.java:52)\n\tat org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:124)\n\tat org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:167)\n\tat org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:176)\n\tat org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:79)\n\tat org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:475)\n\tat org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:397)\n\tat org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:81)\n\tat org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:255)\n\tat org.glassfish.jersey.internal.Errors$1.call(Errors.java:248)\n\tat org.glassfish.jersey.internal.Errors$1.call(Errors.java:244)\n\tat org.glassfish.jersey.internal.Errors.process(Errors.java:292)\n\tat org.glassfish.jersey.internal.Errors.process(Errors.java:274)\n\tat org.glassfish.jersey.internal.Errors.process(Errors.java:244)\n\tat org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:265)\n\tat org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:234)\n\tat org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:680)\n\tat org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:394)\n\tat org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:346)\n\tat org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:366)\n\tat org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:319)\n\tat org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:205)\n\tat org.eclipse.jetty.servlet.ServletHolder$NotAsync.service(ServletHolder.java:1459)\n\tat org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:799)\n\tat org.eclipse.jetty.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1626)\n\tat org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:228)\n\tat org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)\n\tat org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)\n\tat org.togglz.servlet.TogglzFilter.doFilter(TogglzFilter.java:100)\n\tat org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)\n\tat org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)\n\tat org.openecomp.sdc.be.filters.ReqValidationFilter.doFilter(ReqValidationFilter.java:72)\n\tat org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:358)\n\tat org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:271)\n\tat org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)\n\tat org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)\n\tat org.openecomp.sdc.be.filters.GatewayFilter.doFilter(GatewayFilter.java:71)\n\tat org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:358)\n\tat org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:271)\n\tat org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:201)\n\tat org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)\n\tat org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:548)\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)\n\tat org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:602)\n\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)\n\tat org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)\n\tat org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1624)\n\tat org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)\n\tat org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1435)\n\tat org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)\n\tat org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:501)\n\tat org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1594)\n\tat org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)\n\tat org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1350)\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)\n\tat org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:191)\n\tat org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:146)\n\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)\n\tat org.eclipse.jetty.server.Server.handle(Server.java:516)\n\tat org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:388)\n\tat org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:633)\n\tat org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:380)\n\tat org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277)\n\tat org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)\n\tat org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)\n\tat org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)\n\tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336)\n\tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313)\n\tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171)\n\tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129)\n\tat org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:383)\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:882)\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1036)\n\tat java.base/java.lang.Thread.run(Unknown Source)\n|^
      

            JvD_Ericsson JEFF VAN DAM
            JvD_Ericsson JEFF VAN DAM
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: