tracker issue : CF-4200898

select a category, or use search below
(searches all categories and all time range)

Unable to create object from (netSuite) WSDL

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/NotABug

Reporter/Name(from Bugbase): Shirak Avakian / Shirak Avakian ()

Created: 01/29/2018

Components: Web Services

Versions: 2016,11.0,13.0

Failure Type: Non Functioning

Found In Build/Fixed In Build: 2016.0.05.303689 /

Priority/Frequency: Normal / All users will encounter

Locale/System: English / Windows 8.1/64bit

Vote Count: 0

Problem Description:
ColdFusion is taking forever to create objects for netSuite WSDL "". Eventually will throw and error. I was able to create stub data using another language like dotNet with no issue. 

Steps to Reproduce:
copy and paste this code to any cfm file and run it
ws = createobject('webservice','');

Actual Result:
coldfusion.jsp.CompilationFailedException: Errors reported by Java compiler: C:/ColdFusion2016/cfusion/stubs/WS_-1511814863_2/src/com/netsuite/webservices/platform/common_2017_2/ error: code too large for try statement
 } catch ( e) {
 C:/ColdFusion2016/cfusion/stubs/WS_-1511814863_2/src/com/netsuite/webservices/platform/common_2017_2/ error: code too large
 public static TransactionSearchRowBasic parse( reader) throws java.lang.Exception{
 Note: C:/ColdFusion2016/cfusion/stubs/WS_-1511814863_2/src/com/netsuite/webservices/platform_2017_2/ uses unchecked or unsafe operations.
 Note: Recompile with -Xlint:unchecked for details.
 2 errors
Expected Result:
Return the wsdl object
Any Workarounds:



Please use the following code. <cfscript> ws = createobject('webservice','',\{refreshwsdl=true,wsversion=1}); writeDump(ws); </cfscript>   With Axis2 the code generated by AXIS2 library is crossing the Java limit to compile the code. In the scenario where we are seeing the function size in more than 16500 lines.   If Axis1 is used to create the stub, the function size is within the limits of java compiler.
Comment by Poonam Jain
29853 | October 26, 2018 07:46:34 AM GMT
Hi Shirak  Any update on this?
Comment by Poonam Jain
29870 | October 29, 2018 05:15:20 AM GMT
Hi Poonam, Using version 1 solved the problem. Thanks.
Comment by Shirak Avakian
29872 | October 29, 2018 07:10:43 AM GMT