While debugging, the value of any OmmArray is:
ErrorException occurred: com.sun.jdi.InvocationException occurred invoking method..
Usually, not defining toString() method causes this error in the debug mode. However, the toString() method is defined in OmmArrayImpl that implements OmmArray, and is used by EmaFactory to return a new OmmArray.
A bug is blocking me and I can't find it due to this reason.
Any help?
Thanks
Edit: additional info:
EMA 3.2.2.0, Java 1.8 with Maven, Windows 10
The problem occurs while creating dynamic OmmConsumers, here is a small piece of code that briefs the code I have:
fields_array.add(EmaFactory.createOmmArrayEntry().intValue(13));
fields_array.add(EmaFactory.createOmmArrayEntry().intValue(14));
batch_array.add(EmaFactory.createOmmArrayEntry().ascii("EUR="));
batch_array.add(EmaFactory.createOmmArrayEntry().ascii("GBP="));
ElementList customView = EmaFactory.createElementList();
customView.add(EmaFactory.createElementEntry().array(EmaRdm.ENAME_BATCH_ITEM_LIST, batch_array));
customView.add(EmaFactory.createElementEntry().uintValue(EmaRdm.ENAME_VIEW_TYPE, 1));
customView.add(EmaFactory.createElementEntry().array(EmaRdm.ENAME_VIEW_DATA, field_array));
consumer.registerClient(EmaFactory.createReqMsg().serviceName(serviceName).payload(customView), new AppClient());
}
The code above might work, however, my actual code is more complex but avoided posting it because it's long and might be not important for the question. Please don't hesitate to ask for it if necessary.
Since running the code I have results in an error, I'm using debug mode to investigate and find the bug. It is something related to the fields_array and the only way to solve it is to check it's value during debug mode. And that is not possible due the above error.