症状:
许多服务从 CA IdentityMinder 中暴露时,Axis2 会生成违反 JVM 编译规则的大存根类,并返回以下错误:
错误:代码对于 try 语句过大
解决方案:
当您收到这样的编译错误时,请执行要解决问题的以下步骤:
<samples_dir>\wsdl2java\src\tew6\wsdl
Axis2 采用以下格式生成存根类:
<Service_name>Stub.java
注意:从 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
编辑返回无错误。
|
版权所有 © 2013 CA。
保留所有权利。
|
|