Quantcast
Channel: VMware Communities : All Content - vSphere Management SDK
Viewing all articles
Browse latest Browse all 1860

"code too large" - Javac complains about VimServiceStub.populateFaults method (generated by Axis2 wsdl2java)

$
0
0

Hi,

 

I am trying to genreate jar file from java classes by compiling the Vsphere wsd, using the Axis2 wsdl2java utility.

 

 

Java complains that the code is tool large for method populateFaults in VimServiceStub

 

 

 

 

vim25\vim25service\VimServiceStub.java:4552: code too large

 

 

 

 

javac     private void populateFaults(){

javac                  ^

 

 

 

 

Looks like there is a 64k limit on the method byte size code in java. This method came upto 4000 lines approximately, and it was trying to build the exception to fault map

 

 

 

 

Did anyone face this issue? I am using javac 1.6.0_14

 

 

 

 

Currently, I split this method manually, into two parts and calling them separately.

 

 

 

 

However, I can't rely on this manual intervention, and I would like to automate the whole process.

 

 

 

 

Let me know if you have any hints/ideas on how to solve this issue

 

 

 

 

Thank you


Viewing all articles
Browse latest Browse all 1860

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>