Skip to main content
Participant
January 26, 2018
Question

CF2016: Intermittent error accessing webservices using cfinvoke wsversion="1"

  • January 26, 2018
  • 1 reply
  • 610 views

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"

  1. java.io.IOException: Unable to load bytecode for class "localhost.ReportsServiceSoapStub" at org.apache.axis.utils.bytecode.ClassReader.getBytes(ClassReader.java:83) at org.apache.axis.utils.bytecode.ParamReader.<init>(ParamReader.java:55) at coldfusion.xml.rpc.MethodParam.<init>(MethodParam.java:23) at coldfusion.xml.rpc.ServiceInfo$1.run(ServiceInfo.java:140) at java.security.AccessController.doPrivileged(Native Method) at coldfusion.xml.rpc.ServiceInfo.getParamInfo(ServiceInfo.java:135) at coldfusion.xml.rpc.Axis1ServiceInfo.getServiceProxy(Axis1ServiceInfo.java:179) at coldfusion.xml.rpc.XmlRpcServiceImpl.getWebServiceProxy(XmlRpcServiceImpl.java:818) at

Code:

<cfinvoke webservice="#WEB_SERVICE#"  method="Render" argumentcollection="#vars#" refreshwsdl="true" wsversion="1">

</cfinvoke>

Server:

ColdFusion 2016 running on Windows server 2012 R2

This topic has been closed for replies.

1 reply

Participant
January 31, 2018

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.