×
Discuss about OFS, Temenos Connectors, Various OFS modes, OFS with Versions, OFS performance, Logging, EB.PHANTOM, OFS.SOURCE etc…
Unable to send message to T24 from Java client
- gurussk
- Topic Author
- Offline
- New Member
Less
More
- Posts: 8
- Thank you received: 0
9 years 10 months ago #17047
by gurussk
Unable to send message to T24 from Java client was created by gurussk
Dear all,
I am using TCClient and TCServer combo to send messages to T24 from Java client, the below is java code I have Used
try {
TCCFactory tccfactory = TCCFactory.getInstance();
TCConnection tcconnection = tccfactory
.createTCConnection("Browser.2");
tcconnection.setMaximumRetryCount(3);
tcconnection.setRetryInterval(10);
boolean flag = tcconnection.ping();
TCRequest tcrequest = null;
//String s3 = "ENQUIRY.SELECT,,SUSER1/123456,SIGN-ON-TEST3,SIGN.ON.NAME:EQ=";
String s2 = "FUNDS.TRANSFER,/I/PROCESS,SUSER1/123456,,TRANSACTION.TYPE=OT22,DEBIT.ACCT.NO=15512,DEBIT.CURRENCY=USD,DEBIT.AMOUNT=100,CREDIT.ACCT.NO=23752,BEN.BANK:1:1=999999";
tcrequest = tccfactory.createOfsRequest(s2, false);
TCResponse tcresponse = null;
System.out.println("Reqeust -->"+s2);
tcresponse = tcrequest.send(tcconnection);
System.out.println("Response --->"+tcresponse.getOFSString());
String s5 = null;
Object obj = null;
long l1 = tcresponse.getErrorCode();
if (l1 != 0L) {
String s7 = tcresponse.getErrorMessage();
s = "Error: Bad OFS Response";
}
} catch (Exception e) {
System.out.println("Error:" + e);
}
If I use Browser.1 Listener , I am able send message successfully and able to get response but if I user some other Listener such as Browser.2
I am getting the below error. I have compare both listener setup in tcserver.xml but didn't find any difference, both Browser.1 and Browser.2 launched successfully after starting TCServer.
Error:com.temenos.tocf.tcc.TCClientException: Failed to create connection. : com.temenos.tocf.tcc.TCConnectionImplStamped Channel Browser.2 not opened: Error while trying to open channel with TEMENOS CONNECTOR SERVER
Remote error exception at (NETWORK / GC_SERVER)
No further information in linked exceptions.
I am using TCClient and TCServer combo to send messages to T24 from Java client, the below is java code I have Used
try {
TCCFactory tccfactory = TCCFactory.getInstance();
TCConnection tcconnection = tccfactory
.createTCConnection("Browser.2");
tcconnection.setMaximumRetryCount(3);
tcconnection.setRetryInterval(10);
boolean flag = tcconnection.ping();
TCRequest tcrequest = null;
//String s3 = "ENQUIRY.SELECT,,SUSER1/123456,SIGN-ON-TEST3,SIGN.ON.NAME:EQ=";
String s2 = "FUNDS.TRANSFER,/I/PROCESS,SUSER1/123456,,TRANSACTION.TYPE=OT22,DEBIT.ACCT.NO=15512,DEBIT.CURRENCY=USD,DEBIT.AMOUNT=100,CREDIT.ACCT.NO=23752,BEN.BANK:1:1=999999";
tcrequest = tccfactory.createOfsRequest(s2, false);
TCResponse tcresponse = null;
System.out.println("Reqeust -->"+s2);
tcresponse = tcrequest.send(tcconnection);
System.out.println("Response --->"+tcresponse.getOFSString());
String s5 = null;
Object obj = null;
long l1 = tcresponse.getErrorCode();
if (l1 != 0L) {
String s7 = tcresponse.getErrorMessage();
s = "Error: Bad OFS Response";
}
} catch (Exception e) {
System.out.println("Error:" + e);
}
If I use Browser.1 Listener , I am able send message successfully and able to get response but if I user some other Listener such as Browser.2
I am getting the below error. I have compare both listener setup in tcserver.xml but didn't find any difference, both Browser.1 and Browser.2 launched successfully after starting TCServer.
Error:com.temenos.tocf.tcc.TCClientException: Failed to create connection. : com.temenos.tocf.tcc.TCConnectionImplStamped Channel Browser.2 not opened: Error while trying to open channel with TEMENOS CONNECTOR SERVER
Remote error exception at (NETWORK / GC_SERVER)
No further information in linked exceptions.
Please Log in or Create an account to join the conversation.
- Valleyman1
- Visitor
9 years 9 months ago #17278
by Valleyman1
Replied by Valleyman1 on topic Unable to send message to T24 from Java client
Can you post the config file for both browsers and the full error log.
Please Log in or Create an account to join the conversation.
- T24_SATHISH
- Offline
- New Member
Less
More
- Posts: 16
- Thank you received: 3
9 years 9 months ago #17351
by T24_SATHISH
Replied by T24_SATHISH on topic Unable to send message to T24 from Java client
which version of tcserver you are using ?
Please Log in or Create an account to join the conversation.
- gurussk
- Topic Author
- Offline
- New Member
Less
More
- Posts: 8
- Thank you received: 0
9 years 8 months ago #17465
by gurussk
Replied by gurussk on topic Unable to send message to T24 from Java client
we are using TCServer 1.5.2.
Please Log in or Create an account to join the conversation.
- MONIR
- Offline
- Junior Member
Less
More
- Posts: 22
- Thank you received: 0
5 years 10 months ago #22068
by MONIR
Replied by MONIR on topic Unable to send message to T24 from Java client
Hi gurussk
I am also doing the same job. can you share your full java program with jar files. the error is xception in thread "main" java.lang.NoClassDefFoundError: com/temenos/tocf/common/Environment
at com.temenos.tocf.tcc.TCCFactoryImpl.<clinit>(TCCFactoryImpl.java:10)
I am also doing the same job. can you share your full java program with jar files. the error is xception in thread "main" java.lang.NoClassDefFoundError: com/temenos/tocf/common/Environment
at com.temenos.tocf.tcc.TCCFactoryImpl.<clinit>(TCCFactoryImpl.java:10)
Dear all,
I am using TCClient and TCServer combo to send messages to T24 from Java client, the below is java code I have Used
try {
TCCFactory tccfactory = TCCFactory.getInstance();
TCConnection tcconnection = tccfactory
.createTCConnection("Browser.2");
tcconnection.setMaximumRetryCount(3);
tcconnection.setRetryInterval(10);
boolean flag = tcconnection.ping();
TCRequest tcrequest = null;
//String s3 = "ENQUIRY.SELECT,,SUSER1/123456,SIGN-ON-TEST3,SIGN.ON.NAME:EQ=";
String s2 = "FUNDS.TRANSFER,/I/PROCESS,SUSER1/123456,,TRANSACTION.TYPE=OT22,DEBIT.ACCT.NO=15512,DEBIT.CURRENCY=USD,DEBIT.AMOUNT=100,CREDIT.ACCT.NO=23752,BEN.BANK:1:1=999999";
tcrequest = tccfactory.createOfsRequest(s2, false);
TCResponse tcresponse = null;
System.out.println("Reqeust -->"+s2);
tcresponse = tcrequest.send(tcconnection);
System.out.println("Response --->"+tcresponse.getOFSString());
String s5 = null;
Object obj = null;
long l1 = tcresponse.getErrorCode();
if (l1 != 0L) {
String s7 = tcresponse.getErrorMessage();
s = "Error: Bad OFS Response";
}
} catch (Exception e) {
System.out.println("Error:" + e);
}
If I use Browser.1 Listener , I am able send message successfully and able to get response but if I user some other Listener such as Browser.2
I am getting the below error. I have compare both listener setup in tcserver.xml but didn't find any difference, both Browser.1 and Browser.2 launched successfully after starting TCServer.
Error:com.temenos.tocf.tcc.TCClientException: Failed to create connection. : com.temenos.tocf.tcc.TCConnectionImplStamped Channel Browser.2 not opened: Error while trying to open channel with TEMENOS CONNECTOR SERVER
Remote error exception at (NETWORK / GC_SERVER)
No further information in linked exceptions.
Please Log in or Create an account to join the conversation.
Time to create page: 0.074 seconds