Symptom:
When many services is exposed from CA Identity Manager, Axis2 generates large stub class violating the JVM compilation rule and it returns the following error:
error: code too large for try statement
Solution:
When you receive such compilation error, perform the following steps to resolve:
<samples_dir>\wsdl2java\src\tew6\wsdl
Axis2 generates the stub class in the following format:
<Service_name>Stub.java
Note: Retrieve the service name from WSDL.
public org.apache.xmlbeans.Xmlobject fromOM (
org.apache.axiom.om.OMElement param,
java.lang.Class type,
java.util.Map extraNamespaces) throws
org.apache.axis2.AxisFault {
try {
.......
.......
.......
}catch (java.lang.Exception e) {
throw org.apache.axis2.AxisFault.makeFault(e);
}
return null;
}
public org.apache.xmlbeans.Xmlobject fromOM (
org.apache.axiom.om.OMElement param,
java.lang.Class type,
java.util.Map extraNamespaces) throws
org.apache.axis2.AxisFault {
try {
.......
.......
.......
}catch (java.lang.Exception e) {
throw org.apache.axis2.AxisFault.makeFault(e);
}
//invoking the new method
return this. fromOMExtended(param, type, extraNamespaces);
}
sample_dir_location> ant -Dnowsdlgen=true
The compilation returns no error.
|
Copyright © 2015 CA Technologies.
All rights reserved.
|
|