Copy link to clipboard
Copied
Hello Team,
We are facing an intermittent issue while accessing a web service from ColdFusion using cfinvoke.
Error 1:
Cannot generate stub objects for web service invocation. Name: https://*****/WebService.asmx?wsdl. WSDL: https://****/WebService.asmx?wsdl. java.io.FileNotFoundException: K:\***\stubs\WS_-1969018290_1\localhost\WebService.java (Access is denied) It is recommended that you use a web browser to retrieve and examine the requested WSDL document to ensure it is correct. If the requested WSDL document cannot be retrieved or is dynamically generated, it is likely that the target web service has programming errors. <br>The error occurred on line 287. |
Error 2:
Unable to load bytecode for class "localhost.ReportsServiceSoapStub" |
|
Code:
<cfinvoke webservice="#WEB_SERVICE#" method="Render" argumentcollection="#vars#" refreshwsdl="true" wsversion="1">
</cfinvoke>
Server:
ColdFusion 2016 running on Windows server 2012 R2
Copy link to clipboard
Copied
We have found the root issue that is causing this. with refreshwsdl="true", ColdFusion service is creating the stubs on every request. This has led to the errors mentioned above [Error 1 and Error 2] caused mainly because of accessing the stubs when it is being deleted by CF service.
I will post more about this after monitoring for a week.