Hi, I need your help for below error.
In our app we are using Java RFA to receive market data. When I send login request RFA shows "Failed connection:IndexOutOfBoundsException:
Please note that oOur ADS server does not receive any login message.
I am also seeing some strange un-readable characters in response message. Detail response message is shown below. Can anyone point out whats going wrong here? and how to interpret this error?
I am initializing my encoder with below mentioned size.
OMMEncoder encoder = ommPool.acquireEncoder();<br>encoder.initialize(OMMTypes.MSG, 50000);
Response message from RFA (using GenericOMMParser provided in RFA examples)
MESSAGE Msg Type: MsgType.STATUS_RESP Msg Model Type: LOGIN Indication Flags: Hint Flags: HAS_ATTRIB_INFO | HAS_STATE State: OPEN, SUSPECT, NONE, "Ø( yConnection to tkrmdsdev01.nomura.com:14002 failed in connection Tiger::RFAFeed: java.lang.IndexOutOfBoundsException: nullR&jitkarrF ApplicationId?215Position?10.199.92.165/MUMWD041460Role" AttribInfo Name: jitkarr NameType: 1 (USER_NAME) Attrib ELEMENT_LIST ELEMENT_ENTRY ApplicationId: Ø( yConnection to tkrmdsdev01.nomura.com:14002 failed in connection Tiger::RFAFeed: java.lang.IndexOutOfBoundsException: nullR&jitkarrF ApplicationId?215Position?10.199.92.165/MUMWD041460Role ELEMENT_ENTRY Position: Ø( yConnection to tkrmdsdev01.nomura.com:14002 failed in connection Tiger::RFAFeed: java.lang.IndexOutOfBoundsException: nullR&jitkarrF ApplicationId?215Position?10.199.92.165/MUMWD041460Role ELEMENT_ENTRY Role: 0 Payload: None
Hi @Umer Nalla
1. I am using RFA 6 and Java sdk 1.6
2. Standard example works perfectly fine.
In fact when I run my app from within Intelij, it works perfectly fine. However when I bundle app (with gradle) into a Java webstart WAR file then it fails and RFA gives above junk output.
Application logs correctly shows the configuration parameters like, server list, connection type RSSL etc.
Since issue does not occure while running from IDE (Intelij) I am not able to proceed ahead with debug or investigation.
May I get the LOGIN result when you run the application in Intelij?
I suspected that this problem might relate to character encoding.
Also, according to stackoverflow.com, there are some suggestions regarding gradle build encoding settings:
compileJava.options.encoding = 'UTF-8' tasks.withType(JavaCompile) { options.encoding = 'UTF-8' }
apply plugin: 'java' tasks.withType(JavaCompile) { options.encoding = 'UTF-8' } repositories { mavenCentral() } .... test { systemProperty "file.encoding", "utf-8" }
org.gradle.jvmargs='-Dfile.encoding=UTF-8'
A few questions:
Tutorial 6 - RDM; Login and event registration
If you have not tried with one of the examples or tutorials - please do so and report back the results here.
Why consumer application receives OMMMsg.MsgType=STATUS_RESP from RFA after it sucess connect to ADS
Can TREP/RFA Java API support 4 part name when requested data from ADS?
RFAj Toubleshout/unable to complete connection to Trep
Different response for item not available
Issue using service groups to return realtime or delayed data depending on user access