Uploaded image for project: 'Policy Framework'
  1. Policy Framework
  2. POLICY-1160

meet nullPointer exception based on the new schema of HPA capability requirement

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • Casablanca Release
    • Casablanca Release
    • None
    • None
    • Casablanca-RC0 (09/20-10/11)

      the latest specifying HPA capability requirements' format of TOSCA VNFD defined as:
      https://wiki.onap.org/display/DW/Specifying+HPA+Capability+Requirements+using+TOSCA-based+VNF+Descriptors
      have been changed, so the parse code needs update and also need add judgement to avoid null pointer.
      2018-09-30T09:43:53.008+00:00||POLICY-500I INFO: the memoryPageSize =

      {"schemaVersion": "0", "schemaSelector": "", "hardwarePlatform": "generic", "mandatory": "true", "configurationValue": "2 MB"}

      2018-09-30T09:43:53.010+00:00||POLICY-500I INFO: the retMap =

      {schemaVersion=0, hardwarePlatform=generic, schemaSelector=, mandatory=true, configurationValue=2 MB}

      2018-09-30T09:43:53.010+00:00||Error exception occured when fetching with Cambria Client:null
      2018-09-30T09:43:53.010+00:00||Error exception occured when fetching with Cambria Client:null
      2018-09-30T09:43:53.012+00:00||Error exception occured when fetching with Cambria Client:null
      java.lang.NullPointerException: null
      at org.onap.policy.distribution.reception.decoding.pdpx.ExtractFromNode.generateHugePages(ExtractFromNode.java:233)
      at org.onap.policy.distribution.reception.decoding.pdpx.ExtractFromNode.extractInfoVdu(ExtractFromNode.java:142)
      at org.onap.policy.distribution.reception.decoding.pdpx.ExtractFromNode.extractInfo(ExtractFromNode.java:108)
      at org.onap.policy.distribution.reception.decoding.pdpx.PolicyDecoderCsarPdpx.decode(PolicyDecoderCsarPdpx.java:59)
      at org.onap.policy.distribution.reception.decoding.pdpx.PolicyDecoderCsarPdpx.decode(PolicyDecoderCsarPdpx.java:44)
      at org.onap.policy.distribution.reception.handling.AbstractReceptionHandler.inputReceived(AbstractReceptionHandler.java:80)
      at org.onap.policy.distribution.reception.handling.sdc.SdcReceptionHandler.processCsarServiceArtifacts(SdcReceptionHandler.java:201)
      at org.onap.policy.distribution.reception.handling.sdc.SdcReceptionHandler.activateCallback(SdcReceptionHandler.java:90)
      at org.onap.sdc.impl.NotificationConsumer.run(NotificationConsumer.java:71)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      at java.lang.Thread.run(Thread.java:748)

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

              Created:
              Updated:
              Resolved: