Hello Ivy supporters
I have a trouble when use the WebService component to send a SOAP request
Below is the exception
Caused by: java.lang.RuntimeException: Failed to resolve port 'IncaMailPort' from ch.incamail.soap._3_0.definition.client.IncaMailService@175a5744
at ch.ivyteam.ivy.webservice.exec.cxf.internal.client.CxfClientBuilder.createClientInstance(CxfClientBuilder.java:82)
at ch.ivyteam.ivy.webservice.exec.cxf.internal.client.CxfClientBuilder.createClient(CxfClientBuilder.java:67)
at ch.ivyteam.ivy.webservice.exec.cxf.internal.client.CxfClientBuilder.toClient(CxfClientBuilder.java:128)
at ch.ivyteam.ivy.webservice.exec.cxf.WebServiceClientCallCXF.execute(WebServiceClientCallCXF.java:59)
at ch.ivyteam.ivy.bpm.exec.internal.activity.webservicecall.WebServiceCallRequest.lambda$0(WebServiceCallRequest.java:92)
at ch.ivyteam.ivy.bpm.exec.internal.activity.webservicecall.WebServiceCallRequest.withStopWatch(WebServiceCallRequest.java:106)
at ch.ivyteam.ivy.bpm.exec.internal.activity.webservicecall.WebServiceCallRequest.executeCalls(WebServiceCallRequest.java:92)
at ch.ivyteam.ivy.bpm.exec.internal.activity.webservicecall.WebServiceCallRequest.execute(WebServiceCallRequest.java:73)
at ch.ivyteam.ivy.bpm.exec.internal.activity.webservicecall.WebServiceCallRequest.executeWebServiceCall(WebServiceCallRequest.java:49)
at ch.ivyteam.ivy.bpm.exec.internal.activity.webservicecall.WebserviceCallBackgroundOperation.execute(WebserviceCallBackgroundOperation.java:58)
at ch.ivyteam.ivy.bpm.engine.internal.background.wrapper.BackgroundOperationWrapper.execute(BackgroundOperationWrapper.java:21)
at ch.ivyteam.ivy.bpm.engine.internal.background.wrapper.ExecuteBackgroundOperationInRequestThreadContextWrapper.execute(ExecuteBackgroundOperationInRequestThreadContextWrapper.java:22)
at ch.ivyteam.ivy.bpm.engine.internal.background.BackgroundTask.call(BackgroundTask.java:37)
at ch.ivyteam.ivy.bpm.engine.internal.background.BackgroundTask.call(BackgroundTask.java:1)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
... 1 more
Caused by: java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at ch.ivyteam.ivy.webservice.exec.cxf.internal.client.CxfClientBuilder.createClientInstance(CxfClientBuilder.java:80)
... 19 more
Caused by: java.lang.IllegalStateException: Stopwatch is not running.
at org.apache.commons.lang3.time.StopWatch.stop(StopWatch.java:549)
at ch.ivyteam.ivy.webservice.exec.cxf.internal.client.CxfCreateTracer.handleEvent(CxfCreateTracer.java:24)
at org.apache.cxf.service.factory.AbstractServiceFactoryBean.sendEvent(AbstractServiceFactoryBean.java:73)
at org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBean.java:180)
at org.apache.cxf.jaxws.JaxWsProxyFactoryBean.create(JaxWsProxyFactoryBean.java:142)
at org.apache.cxf.jaxws.ServiceImpl.createPort(ServiceImpl.java:492)
at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:358)
at javax.xml.ws.Service.getPort(Service.java:211)
at ch.incamail.soap._3_0.definition.client.IncaMailService.getIncaMailPort(IncaMailService.java:97)
... 24 more
Do you guys know what is the problem or any case could lead to this issue?
FYI it doesn't happen frequently I cannot reproduce it all the time, but at the time I got this error is when I tried to send two request at the same time
Last year we also got this exception once but that's when we do the wrong configuraion. It's gone after Reguël Wermelinger supported us until now this happens again
Please reference this thread if you want to get more info about what we are using sofar
https://community.axonivy.com/d/128-classnotfound-comsunxmlinternalwsspiproviderimpl/4
Thanks and best regards,
Huy Tran