uniexp tool fails with error "get all nodes issue"
search cancel

uniexp tool fails with error "get all nodes issue"

book

Article ID: 118383

calendar_today

Updated On:

Products

CA Automic Dollar Universe

Issue/Introduction

When launching the command "uniexp" to export objects from a DUAS node declared in a UVMS, the command hungs and eventualy fails with the following output:

Command:-./uniexp -area X -company COMPANY -file /tmp/extract.xml -login UVC_LOGIN -pwd UVC_PASSWORD -mshost UVMS_HOSTNAME -msport UVMS_PORT -node DUAS_NODE –full

get all nodes issue : read: server closed the connection unexpectedly (see log for more details)
DATE [ERROR]  :get all nodes issue
 [java.lang.reflect.UndeclaredThrowableException]
java.lang.reflect.UndeclaredThrowableException
        at com.sun.proxy.$Proxy0.getAllNodes(Unknown Source)
        at com.orsyp.ExportImportCommon.getNodeListFromServer(ExportImportCommon.java:2803)
        at com.orsyp.ExportImportCommon.getNodeProduct(ExportImportCommon.java:2843)
        at com.orsyp.ExportImportCommon.executeAfterAuth(ExportImportCommon.java:199)
        at com.orsyp.ExportCmd.executeAfterAuth(ExportCmd.java:35)
        at com.orsyp.central.AbstractCommonCommand.execute(AbstractCommonCommand.java:689)
        at com.orsyp.ExportCmd.work(ExportCmd.java:239)
        at com.orsyp.ExportCmd.main(ExportCmd.java:212)
Caused by: com.orsyp.UniverseException: read: server closed the connection unexpectedly
        at com.orsyp.comm.client.ServiceInvocationHandler.invoke(ServiceInvocationHandler.java:98)
        ... 8 more
Caused by: java.io.IOException: Cannot read message
        at com.orsyp.util.io.CompressedBlockInputStream.readAndDecompress(CompressedBlockInputStream.java:107)
        at com.orsyp.util.io.CompressedBlockInputStream.read(CompressedBlockInputStream.java:166)
        at java.io.ObjectInputStream$PeekInputStream.read(ObjectInputStream.java:2663)
        at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2679)
        at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:3156)
        at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:862)
        at java.io.ObjectInputStream.<init>(ObjectInputStream.java:358)
        at com.orsyp.comm.client.ServiceInvocationHandler.readResponse(ServiceInvocationHandler.java:143)
        at com.orsyp.comm.client.ServiceInvocationHandler.invoke(ServiceInvocationHandler.java:91)
        ... 8 more
Caused by: java.lang.OutOfMemoryError: Java heap space
        at com.orsyp.util.io.CompressedBlockInputStream.readAndDecompress(CompressedBlockInputStream.java:98)
        ... 16 more
Cannot execute command: : read: server closed the connection unexpectedly (see log for more details)

Environment

UVMS or DU_UPGRADE_TOOLKIT command "uniimp"

Cause

The UVMS_HOSTNAME and UVMS_PORT were targeting a UVMS on version 3, whereas the tool can only be launched against UVMS at the same level as the toolkit ( 6.9.41).

Resolution

Launch the uniexp tool against a supported UVMS on the same version level as the du_upgrade_toolkit.
In this case, there was a v3 UVMS listening in one port and a v6 UVMS listening in another port, we simply had to modify the port in the command uniexp.