2014-09-11 56 views
0

时当我的WebSphere应用程序试图拨打电话到WebService“转移目标偏移量短期过大”,我得到异常:的Websphere例外使用WebServices的

javax.xml.ws.soap.SOAPFaultException: com.ibm.xtq.bcel.generic.ClassGenException: Branch target offset too large for short 
    at org.apache.axis2.jaxws.marshaller.impl.alt.MethodMarshallerUtils.createSystemException(MethodMarshallerUtils.java:1363) 
    at org.apache.axis2.jaxws.marshaller.impl.alt.MethodMarshallerUtils.demarshalFaultResponse(MethodMarshallerUtils.java:1089) 

,我读了XL-TXE-J can be configured莫名其妙,但我不知道这是否与我的错误相关。我也没有想法,我应该配置它。

我该如何解决这个问题?

回答

1

我不知道为什么,但将com.ibm.xml.xlxp.jaxb.opti.level JVM属性设置为1使问题消失。

您可以在您的WebSphere配置它:

应用程序服务器> [yourserver]>进程定义> Java虚拟机>定制属性

Documentation