Message |
[+]
Avaya Orchestration Designer
» execute json post request receiving exception , 10/06/2021 03:45:36
» Go to message
|
|
I made some code changes based on example I found at the following web site https://www.programmersought.com/article/83981813280/
and it helped me to fix the problem.
In addition I replaced JRE Home to use jdk1.7.0_80 which is similar to what is installed at tomcat server and it works.
Thanks for the hint you gave me
Idan
|
|
[+]
Avaya Orchestration Designer
» execute json post request receiving exception , 10/06/2021 00:53:29
» Go to message
|
|
H,
I have similar version developed by OD and installed at tomcat server contains same web service call to same web server which works, but unfortunately I don't have the source code to find what is wrong at my code. so I guess I don't need to change Java version at EPM.
Any other idea why it's not working ?
Thanks
Idan.
|
|
[+]
Avaya Orchestration Designer
» execute json post request receiving exception , 09/06/2021 11:44:35
» Go to message
|
|
Hi,
When execute HttpResponse response = httpclient.execute(request); from orchestration designer simulator at my pc (version 7.0.1.0804) to customer web service working fine and getting data information
when deploying project to tomcat application server (version 7.0.55) and making test getting the following exception:
javax.net.ssl.SSLException: Received fatal alert: protocol_version
at sun.security.ssl.Alerts.getSSLException(Alerts.java:208)
at sun.security.ssl.Alerts.getSSLException(Alerts.java:154)
at sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1979)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1086)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1332)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1359)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1343)
at org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:394)
at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:353)
at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:134)
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353)
at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380)
at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184)
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88)
at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:107)
at flow.GetReportDetails_WS.servletImplementation(GetReportDetails_WS.java:112)
at com.avaya.sce.runtime.BasicServlet.handleRequest(BasicServlet.java:99)
at com.avaya.sce.runtime.AppServlet.processRequest(AppServlet.java:96)
at com.avaya.sce.runtime.SCEServlet.requestHandler(SCEServlet.java:285)
at com.avaya.sce.runtime.SCEServlet.doPost(SCEServlet.java:190)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:486)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:411)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338)
at com.avaya.sce.runtime.SCEServlet.forward(SCEServlet.java:1364)
at com.avaya.sce.runtime.Data.evaluateActions(Data.java:211)
at flow.SetWSParams.executeDataActions(SetWSParams.java:83)
at com.avaya.sce.runtime.Data.handleRequest(Data.java:104)
at com.avaya.sce.runtime.AppServlet.processRequest(AppServlet.java:96)
at com.avaya.sce.runtime.SCEServlet.requestHandler(SCEServlet.java:285)
at com.avaya.sce.runtime.SCEServlet.doPost(SCEServlet.java:190)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:486)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:411)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338)
at com.avaya.sce.runtime.SCEServlet.forward(SCEServlet.java:1364)
at com.avaya.sce.runtime.Data.handleRequest(Data.java:153)
at com.avaya.sce.runtime.AppServlet.processRequest(AppServlet.java:96)
at com.avaya.sce.runtime.SCEServlet.requestHandler(SCEServlet.java:285)
at com.avaya.sce.runtime.SCEServlet.doPost(SCEServlet.java:190)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
the following is servlet code for your review:
public void servletImplementation(com.avaya.sce.runtimecommon.SCESession mySession) {
IVariableField incoming_number = mySession.getVariableField(IProjectVariables.CALLED__NUM);
IVariableField reportNumber = mySession.getVariableField(IProjectVariables.REPORT__NUM);
IVariableField retCode = mySession.getVariableField(IProjectVariables.RET__CODE);
// System.setProperty("https.protocols", "TLSv1,TLSv1.1,TLSv1.2");
try {
System.out.println("GetReportDetails_WS , Before SSLContext");
SSLContext sslContext = null;
try {
sslContext = SSLContext.getInstance("TLSv1.2");
} catch (NoSuchAlgorithmException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
try {
sslContext.init(null, null, null);
} catch (KeyManagementException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
SSLContext.setDefault(sslContext);
CloseableHttpClient httpclient = HttpClientBuilder
.create()
.build();
System.out.println("GetReportDetails_WS , SET HttpPost request");
HttpPost request = new HttpPost("https://pay24.co.il/WCF/RestIvr/RestIvrService.svc/GetReportDetails");
//String bodyContent = "{\"IncomingNumber\":\"0747642910\", \"ReportNumber\":\"109\"}";
String bodyContent = "{\"IncomingNumber\":\"" + incoming_number.getStringValue() + "\", \"ReportNumber\":\"" + reportNumber.getStringValue() + "\"}";
System.out.println("GetReportDetails_WS , SET bodyContent == " + bodyContent);
StringEntity requestBody = new StringEntity(bodyContent);
request.setEntity(requestBody);
request.setHeader("Content-Type", "application/json");
System.out.println("GetReportDetails_WS , execute request " );
HttpResponse response = httpclient.execute(request);
System.out.println(response.getStatusLine().getStatusCode());
String responseJSON = EntityUtils.toString(response.getEntity());
if (responseJSON.isEmpty()){
retCode.setValue("0");
return;
}else{
StringTokenizer st = new StringTokenizer(responseJSON);
String key = st.nextToken("{\"");
String value = st.nextToken(":\"");
System.out.println("KEY is : " + key);
System.out.println("Value is : " + value);
retCode.setValue(value);
return;
}
} catch (ClientProtocolException e) {
System.out.println("GetReportDetails_WS , ClientProtocolException " );
e.printStackTrace();
}catch (IOException e) {
System.out.println("GetReportDetails_WS , IOException " );
e.printStackTrace();
} //finally {
// request.releaseConnection();
//}
}
I have install certificate at tomcat server also the same jar files under tomcat lib
java version install at tomcat server:
java version "1.7.0_75"
OpenJDK Runtime Environment (rhel-2.5.4.0.el6_6-x86_64 u75-b13)
OpenJDK 64-Bit Server VM (build 24.75-b04, mixed mode)
java version at orchestration designer jre1.8.0_261
any idea what might cause this issue ?
Thanks
Idan
|
|
[+]
Avaya Aura Contact Center APIs
» We need to get real time information using Unicast messages, 17/03/2020 10:03:01
» Go to message
|
|
Hi,
We developed real time .Net application which can get real time information from RSM using multicast messages.
We have a customer which not allow multicast in his netwrok and we need to implement our application to work in Unicast mode.
Can you recommaned which API can support it and if it can be done in .Net programing.
Thanks
Idan
|
|
[+]
Avaya Client SDK - General
» sending text message (like runing banner) to VANTAGE phone and change VANTAGE wallpaper image, 25/02/2020 10:12:26
» Go to message
|
|
Hi,
I got request from a customer to be able sending text message (like runing banner) to VANTAGE phone and change VANTAGE wallpaper image.
Is this suppored by SDK ?
if yes do you have sample application which we can use or some guide for that ?
Thanks
Idan
|
|
[+]
Avaya Aura Contact Center APIs
» Is there any way to link between IP OFFICE CallID which produced by TAPI Rel. 2.0 and ACCS callID ?, 01/09/2016 07:38:06
» Go to message
|
|
Is there any way to link between IP OFFICE CallID which produced by TAPI Rel. 2.0 and ACCS callID ?
|
|
[+]
Avaya Orchestration Designer
» when calling REST web service using GET HTTP Method it seems calling same call twice instead of one , 01/08/2016 10:35:04
» Go to message
|
|
The ISP changed the content type in the server side to: application/json and it solved the problem.
Thanks for your help
|
|
[+]
Avaya Orchestration Designer
» when calling REST web service using GET HTTP Method it seems calling same call twice instead of one , 31/07/2016 04:25:36
» Go to message
|
|
|
|
[+]
Avaya Orchestration Designer
» when calling REST web service using GET HTTP Method it seems calling same call twice instead of one , 31/07/2016 02:20:08
» Go to message
|
|
attached rest screen shoot
|
|
[+]
Avaya Orchestration Designer
» when calling REST web service using GET HTTP Method it seems calling same call twice instead of one , 28/07/2016 10:15:43
» Go to message
|
|
Thanks.
Can you advice how to fix it ?
|
|
[+]
Avaya Orchestration Designer
» when calling REST web service using GET HTTP Method it seems calling same call twice instead of one , 28/07/2016 07:56:30
» Go to message
|
|
HI,
when calling REST web service using GET HTTP Method it seems calling same call twice instead of one time.
In the Tomact logs I see it calls just one time but in the web server side I see it calls the WS more than one time.
Any idea why , and what I should do in order to verify it calls just one time ?
Thanks,
Idan
|
|
[+]
Avaya Orchestration Designer
» Using localization Bunddle is not working, 06/04/2016 10:18:06
» Go to message
|
|
hi,
When I redeployed the runtimeconfig.war file and runtimeSupportTomcat7.zip file to app server it's now working.
I guess the certificate is part of this 2 files.
Thanks
Idan
|
|
[+]
Avaya Orchestration Designer
» Using localization Bunddle is not working, 06/04/2016 06:31:46
» Go to message
|
|
Thanks.
The problem is not in the OD (the certificate is already installed there) it's in the App server which installed at EPM server.
how I installed the certificate in the app server ?
|
|
[+]
Avaya Orchestration Designer
» Using localization Bunddle is not working, 06/04/2016 06:01:42
» Go to message
|
|
I don't see in the posts how to get the certificate in order to install it ?
|
|
[+]
Avaya Orchestration Designer
» Using localization Bunddle is not working, 06/04/2016 05:12:17
» Go to message
|
|
Hi,
I made some test calls, and I see on trace log that I'm getting error when trying to connect customer Web Service as follow:
- 5222AFF2F71E48F6008C8EEFCB63758C:/MagarCC_Payment : Assigning [A9_1_GetStubDetails:value] to [StubCode]
- 5222AFF2F71E48F6008C8EEFCB63758C:/MagarCC_Payment : Using SCESession 5222AFF2F71E48F6008C8EEFCB63758C:/MagarCC_Payment servlet : GetStubDetail
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1904)
at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:279)
......
Any idea what it means
(That maybe why I cant here something because I don't getting data .... )
Thanks,
Idan
|
|