Smartstortools merge is failing
search cancel

Smartstortools merge is failing

book

Article ID: 192626

calendar_today

Updated On:

Products

CA Application Performance Management Agent (APM / Wily / Introscope) CA Application Performance Management (APM / Wily / Introscope) INTROSCOPE DX Application Performance Management

Issue/Introduction

We are trying to merge data from two collectors using the SmartStorTools merge function but it is failing:

$ ./SmartStorTools.sh merge /apm/dev/data /apm/coll1/data
Debug options:
    file:/tmp/.options not found
log4j:WARN No appenders could be found for logger (org.springframework.osgi.extender.internal.activator.ContextLoaderListener).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Merging /apm/dev/data into /apm/coll1/data
6/09/20 01:54:04 PM BST [INFO] [Manager] Initialization of metadata took 1 ms
6/09/20 01:54:04 PM BST [INFO] [Manager] Initialization of metadata took 0 ms
java.lang.NullPointerException
        at com.wily.introscope.em.smartstor.tools.fileapps.Merger.run(Merger.java:74)
        at com.wily.introscope.em.smartstor.tools.fileapps.Merger.main(Merger.java:283)
        at com.wily.introscope.em.smartstor.tools.SmartStorTools.main(SmartStorTools.java:64)
        at com.wily.introscope.eclipseapp.SmartStorTools.start(SmartStorTools.java:11)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
        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.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
        at org.eclipse.equinox.launcher.Main.main(Main.java:1212)

Environment

Release : 10.7.0

Component : Introscope

Cause

Whilst the source and destination folders specified in the command arguments were present in the environment they were not the location of the .data files. The IntroscopeEnterpriseManager.properties file had been modified and a custom location below the data folder had been specified therefore the .data files were in that location

introscope.enterprisemanager.smartstor.directory=data/stor
 
(default value is introscope.enterprisemanager.smartstor.directory=data)

Resolution

Re-executed the command to specify location of Smartstor data files correctly

$ ./SmartStorTools.sh merge /apm/dev/data/stor /apm/coll1/data/stor