"Decoding of just encoded object in the same application is not supported"/Exception Type='OmmInvali

While create RefreshMsg object in BDD Cucumber Integration test suite, why do I keep getting the error "Decoding of just encoded object in the same application is not supported"/Exception Type='OmmInvalidUsageException', Text='Attempt to fieldList() while actual data type is NoData' while reading the RefreshMsg object? What is the solution to create and RefreshMsg object in Java integration tests?

Best Answer

Answers

  • Hi,

    The Unit test examples in the SDK directory are not getting compiled on my machine.
    Also, please provide a Java equivalent of C++ encoder as the Java code through which we tried to decode the RefreshMsg object does not work.


  • Hello @dimple.shah,

    Are you using a supported build environment. The RTSDK provides gradle build files, and the build file has a target to compile the unit tests as well.

    To see an example of how to encode and decode Refresh message in Java, please see the RefreshMsg Tests file..