Please login or register to access secure site features.

Note: By continuing to use DevConnect Program Services you agree to our latest Registered Member Terms.

Sign in using DevConnect ID

Forgot password?

Trouble logging in?

Submit a ticket for Registration Support.

I have an SSO ID

?
sign in

Don't have a DevConnect or SSO ID ?

Create a DevConnect account or join the program.

register now
^
Forum Index » Avaya Orchestration Designer » REST - Exception java.lang.Exception: java.lang.NoSuchMethodError:   XML
 
Author Message
JNemani



Joined: 06/04/2017 10:03:12
Messages: 42
Offline

Hello,

I have a very basic speech flow that contains a start, a rest call and an exit.

When I run this app locally on my OD 7.2 environment, it works fine:
01/07/2021 08:56:08:224 INFO - 29287CE7B0BD6832B13A423FC85F9399:/Rest_Test : Starting REST web service operation [restAuth2]
01/07/2021 08:56:09:246 INFO - 29287CE7B0BD6832B13A423FC85F9399:/Rest_Test : Using No Authentication for web service call, keystore : file:/ on port : 443
01/07/2021 08:56:09:256 DEBUG - 29287CE7B0BD6832B13A423FC85F9399:/Rest_Test : Web Service Request -> https://ea-mule-dev.corpadds.com/cea-ivr-sfdc-ivrprocess/v1/authenticate
01/07/2021 08:56:12:715 DEBUG - 29287CE7B0BD6832B13A423FC85F9399:/Rest_Test : Storing [{"result":"Success","message":"Authentication Response","info":{"status":"Active","platform":"Blue","payrollseason":"RegularSeason"}}] to: resultAuthentication
01/07/2021 08:56:12:716 DEBUG - 29287CE7B0BD6832B13A423FC85F9399:/Rest_Test : Web Service Reply <- {"result":"Success","message":"Authentication Response","info":{"status":"Active","platform":"Blue","payrollseason":"RegularSeason"}}


I then deploy the app to the server, dial into it and it throws an error
01/07/2021 09:03:57:755 ERROR - 14CCA4F3751B1B9436A78EE5FB97FD87:/Rest_Test : session id:atc1ava9mpp01-2021182140356-14 | Error processing request
EXCEPTION>
java.lang.Exception: java.lang.NoSuchMethodError: com.avaya.sce.runtimecommon.config.ICertificateKeystoreConfig.getProtocolForPort(Ljava/lang/String;ZI)Lorg/apache/commons/httpclient/protocol/Protocol;
at com.avaya.sce.runtime.AppServlet.processRequest(AppServlet.java:130)
at com.avaya.sce.runtime.SCEServlet.requestHandler(SCEServlet.java:247)
at com.avaya.sce.runtime.SCEServlet.doPost(SCEServlet.java:148)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:94)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:620)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:502)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1132)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:684)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1539)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1495)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NoSuchMethodError: com.avaya.sce.runtimecommon.config.ICertificateKeystoreConfig.getProtocolForPort(Ljava/lang/String;ZI)Lorg/apache/commons/httpclient/protocol/Protocol;
at com.avaya.sce.runtime.connectivity.restws.CallService.configureAuthentication(CallService.java:442)
at com.avaya.sce.runtime.connectivity.restws.Axis2RestStub.execute(Axis2RestStub.java:146)
at com.avaya.sce.runtime.connectivity.restws.CallService.execute(CallService.java:361)
at com.avaya.sce.runtime.Data.evaluateActions(Data.java:228)
at flow.restAuthentication.executeDataActions(restAuthentication.java:93)
at com.avaya.sce.runtime.Data.handleRequest(Data.java:121)
at com.avaya.sce.runtime.AppServlet.processRequest(AppServlet.java:96)
... 24 more

I've attached screenshots of both logs as well as the REST connector details if that helps.

[Thumb - rest Part 1.JPG]
 Filename rest Part 1.JPG [Disk] Download
 Description No description given
 Filesize 71 Kbytes
 Downloaded:  82 time(s)

This message was edited 1 time. Last update was at 01/07/2021 09:19:17

JNemani



Joined: 06/04/2017 10:03:12
Messages: 42
Offline

one more file
[Thumb - rest Part 2.JPG]
 Filename rest Part 2.JPG [Disk] Download
 Description No description given
 Filesize 54 Kbytes
 Downloaded:  79 time(s)

JNemani



Joined: 06/04/2017 10:03:12
Messages: 42
Offline

I had to mod the log files sorry about that.
 Filename Ran Locally.txt [Disk] Download
 Description No description given
 Filesize 9 Kbytes
 Downloaded:  75 time(s)

 Filename Ran on Server.txt [Disk] Download
 Description No description given
 Filesize 10 Kbytes
 Downloaded:  74 time(s)

WilsonYu



Joined: 06/11/2013 14:29:24
Messages: 3858
Online

Can you take a look at the version of the scertcommon jar file (Tomcat/lib) and scert jar (WEB-INF/lib) file. I think they are out of sync.
JNemani



Joined: 06/04/2017 10:03:12
Messages: 42
Offline

Thank you for your assistance.
There were 2 scertcommon_xxx in the tomcat/lib folder. I removed one, restarted tomcat and now the application works.
 
 
Go to: