During application startup we started seeing random instances of the application going into a state where every time the user tries to login after the initial application login/data dictionary download they would get a null pointer on this line.
Error:
Caused by: java.lang.NullPointerException: null at com.reuters.rfa.internal.rwf.RwfEncoder.initialize(Unknown Source)
Code in question:
ommEncoder.initialize(OMMTypes.MSG, 5000);
ommMsg = ommPool.acquireMsg();
ommMsg.setMsgType(OMMMsg.MsgType.REQUEST);
ommMsg.setMsgModelType(RDMMsgTypes.LOGIN);
ommMsg.setIndicationFlags(OMMMsg.Indication.REFRESH);
ommMsg.setAttribInfo(null, credential.getUserName(), RDMUser.NameType.USER_NAME);
ommEncoder.encodeMsgInit(ommMsg, OMMTypes.ELEMENT_LIST, OMMTypes.NO_DATA);
ommEncoder.encodeElementListInit(OMMElementList.HAS_STANDARD_DATA, (short) 0, (short) 0);
ommEncoder.encodeElementEntryInit(RDMUser.Attrib.ApplicationId, OMMTypes.ASCII_STRING);
Any knowledge of what is inside this method that could be null would help a lot in troubleshooting this issue.
rfa version: rfa-8.0.1.E3