tracker issue : CF-4200898

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

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 "https://webservices.netsuite.com/wsdl/v2017_2_0/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','https://webservices.netsuite.com/wsdl/v2017_2_0/netsuite.wsdl');
	writeDump(ws);abort;

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/TransactionSearchRowBasic.java:58213: error: code too large for try statement
 } catch (javax.xml.stream.XMLStreamException e) {
 ^
 C:/ColdFusion2016/cfusion/stubs/WS_-1511814863_2/src/com/netsuite/webservices/platform/common_2017_2/TransactionSearchRowBasic.java:41526: error: code too large
 public static TransactionSearchRowBasic parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
 ^
 Note: C:/ColdFusion2016/cfusion/stubs/WS_-1511814863_2/src/com/netsuite/webservices/platform_2017_2/NetSuiteServiceStub.java uses unchecked or unsafe operations.
 Note: Recompile with -Xlint:unchecked for details.
 2 errors
 .
Expected Result:
Return the wsdl object
Any Workarounds:
no

Attachments:

Comments:

Please use the following code. <cfscript> ws = createobject('webservice','https://webservices.netsuite.com/wsdl/v2017_2_0/netsuite.wsdl',\{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