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

Listing distributions (/services/{distributionId}/distribution/) fails with ClassCastException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • New Delhi Release
    • New Delhi Release
    • SDC
    • None

      java.lang.ClassCastException: class java.lang.Long cannot be cast to class java.lang.String (java.lang.Long and java.lang.String are in module java.base of loader 'bootstrap')
              at org.openecomp.sdc.be.components.impl.DistributionMonitoringBusinessLogic.lambda$handleAuditingDaoResponse$0(DistributionMonitoringBusinessLogic.java:143)
              at java.base/java.util.Optional.ifPresent(Unknown Source)
              at org.openecomp.sdc.be.components.impl.DistributionMonitoringBusinessLogic.handleAuditingDaoResponse(DistributionMonitoringBusinessLogic.java:143)
              at org.openecomp.sdc.be.components.impl.DistributionMonitoringBusinessLogic.getListOfDistributionServiceStatus(DistributionMonitoringBusinessLogic.java:103)
              at org.openecomp.sdc.be.servlets.DistributionServiceServlet.getServiceById_aroundBody0(DistributionServiceServlet.java:89)
              at org.openecomp.sdc.be.servlets.DistributionServiceServlet$AjcClosure1.run(DistributionServiceServlet.java:1)
              at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:179)
              at com.jcabi.aspects.aj.MethodLogger.wrap(MethodLogger.java:207)
              at com.jcabi.aspects.aj.MethodLogger.ajc$inlineAccessMethod$com_jcabi_aspects_aj_MethodLogger$com_jcabi_aspects_aj_MethodLogger$wrap(MethodLogger.java:1)
              at com.jcabi.aspects.aj.MethodLogger.wrapClass(MethodLogger.java:136)
              at org.openecomp.sdc.be.servlets.DistributionServiceServlet.getServiceById(DistributionServiceServlet.java:85)
              at jdk.internal.reflect.GeneratedMethodAccessor615.invoke(Unknown Source)
              at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
              at java.base/java.lang.reflect.Method.invoke(Unknown Source)
      

            fostkamp Fiete Ostkamp
            fostkamp Fiete Ostkamp
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: