Distributed Data Object Error Codes

NOTE

This topic describes only module-specific error codes. For details about universal error codes, see Universal Error Codes.

15400001 Failed to Create the In-Memory Database

Error Message

Failed to create the in-memory database.

Description

This error code is reported if the in-memory database creation fails.

Possible Causes

The same session ID is set for another distributed data object.

Solution

Use genSessionId to generate a random session ID to avoid using an existing session ID.

15400002 Incorrect Parameter

Error Message

Parameter error.

Description

  1. This error code is reported if the assetKey parameter is invalid. For example, the value is an empty string ("").

  2. This error code is reported if the uri parameter is invalid. For example, the value is an empty string ("").

  3. This error code is reported if the uris parameter is invalid. For example, the number of elements in the uris array exceeds 50.

Possible Causes

  1. The property name corresponding to the asset type in the distributed data object is invalid. For example, it is set to null, undefined, or '' (empty string).

  2. The distributed URI required by the asset to be set is invalid. For example, it is set to null, undefined, or '' (empty string).

  3. The uris array for storing the asset to be set is empty or the number of elements in the array is greater than 50.

  4. One or more URIs in the uris array are invalid. For example, they are set to null, undefined, or '' (empty string).

Solution

  1. Define a correct property name, for example, 'file'.

  2. Define a correct distributed URI, for example, "file://docs/storage/Users/username/tmp.txt".

  3. Pass in correct distributed URIs in the uris array, whose elements are within the valid range, for example, ["file://docs/storage/Users/username/tmp.txt", "file://com.example.demo/data/storage/el2/base/files/test.txt"].

  4. Ensure that each URI in the uris array is correct.

15400003 sessionId Already Set

Error Message

The sessionId of the distributed object has been set.

Description

This error code is reported if sessionId of the distributed data object has been set.

Possible Causes

The sessionId has been set for the distributed data object.

Solution

Use setSessionId to cancel the existing sessionId and then set the asset or asset array.