• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

New Here ,
Jan 26, 2018 Jan 26, 2018

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"

  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

Views

542

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 31, 2018 Jan 31, 2018

Copy link to clipboard

Copied

LATEST

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation