Seshu

The Code highlighted in the red below is throwing null poiint exception due to 
file Not found / File name not given  and due to which MSO is not able to 
reload the CloudConfig


File 
/mso/adapters/mso-adapter-utils/src/main/java/org/openecomp/mso/cloud/CloudConfigFactory.java



    public void reloadCloudConfig () {



        try {

            if (!rwl.writeLock ().tryLock () && !rwl.writeLock ().tryLock (30L, 
TimeUnit.SECONDS)) {

                LOGGER.debug ("Busy write lock on mso cloud config factory, 
skipping the reloading");

                return;

            }

        } catch (InterruptedException e1) {

            LOGGER.debug ("Interrupted while trying to acquire write lock on 
cloud config factory, skipping the reloading");

            Thread.currentThread ().interrupt ();

            return;

        }

        try {

            //LOGGER.debug ("Processing a reload of the mso properties file 
entries");

            try {



                if (refreshTimer <= 1) {

                    CloudConfig oldCloudConfig = null;

                    if (cloudConfigCache.isValidCloudConfig()) {

                        oldCloudConfig = cloudConfigCache.clone();

                    }

                    cloudConfigCache.reloadPropertiesFile ();

                    refreshTimer = cloudConfigCache.refreshTimerInMinutes;

                    if (!cloudConfigCache.equals(oldCloudConfig)) {

                        LOGGER.info (MessageEnum.RA_CONFIG_LOAD, 
prefixMsoPropertiesPath + cloudConfigCache.configFilePath, "", "");

                    }



                } else {

                    --refreshTimer;

                }



            }


for your quick reference - stack trace of the code is as below

at org.openecomp.mso.cloud.CloudConfig.loadCloudConfig(CloudConfig.java:183) - 
at 
org.openecomp.mso.cloud.CloudConfig.reloadPropertiesFile(CloudConfig.java:169) 
- at 
org.openecomp.mso.cloud.CloudConfigFactory.reloadCloudConfig(CloudConfigFactory.java:151)
 -


Can you pls help

with best regards
gaurav
_______________________________________________
onap-discuss mailing list
onap-discuss@lists.onap.org
https://lists.onap.org/mailman/listinfo/onap-discuss

Reply via email to