fashchina 2016-07-19 23:21 采纳率: 0%
浏览 876

JBOSS7部署EAR出现 java.lang.VerifyError

EAR中,有EJB和WAR工程,war中的servlet调用EJB提示下面错误:
GatewayService threw exception: java.lang.VerifyError: (class: xxx/xxx/xxx, method: init signature: ()V) Incompatible object argument for function call

在EAR的LIB目录下,存在包含xxx/xxx/xxx的jar,并且初步进行check,没有发现存在相同名称的类。xxx/xxx/xx部分代码如下:

import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintStream;
import java.io.Serializable;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Hashtable;
import java.util.Iterator;
import java.util.List;
import java.util.Properties;
import java.util.Set;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import org.apache.xerces.parsers.AbstractDOMParser;
import org.apache.xerces.parsers.DOMParser;
import org.apache.xml.serialize.BaseMarkupSerializer;
import org.apache.xml.serialize.OutputFormat;
import org.apache.xml.serialize.XMLSerializer;
import org.hibernate.lob.SerializableBlob;
import org.w3c.dom.DOMImplementation;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.w3c.dom.Text;
import org.xml.sax.InputSource;
import slot.base64.Base64Encoder;
import slot.common.Log;
import slot.exception.GeneralException;
import slot.util.DateUtil;

public class MessageObject
implements MsgConstant, Serializable
{
private DOMParser parser = new DOMParser();
private Document document;
private DocumentBuilder builder = null;
private Element root;
private Node header = null;
private Node extAttrs = null;
private Node request = null;
private Node response = null;
private Node body = null;
private boolean bindingRequest = false;
static Class class$0;

public MessageObject()
{
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
try {
this.builder = factory.newDocumentBuilder();
DOMImplementation impl = this.builder.getDOMImplementation();

  this.document = impl.createDocument(null, "Message", null);

  this.root = this.document.getDocumentElement();

  this.header = setChildValueByName(this.root, "", "Header");
  this.body = setChildValueByName(this.root, "", "Body");

  this.extAttrs = setChildValueByName(this.header, "", "ext_attributes");

  this.request = setChildValueByName(this.body, "", "request");

  this.response = setChildValueByName(this.body, "", "response");

  impl = null;
  this.builder = null;
}
catch (Exception e) {
  e.printStackTrace();
}

}

public MessageObject(byte[] bytesinput)
throws Exception
{
ByteArrayInputStream bais = new ByteArrayInputStream(bytesinput);
InputSource ins = new InputSource(bais);
ins.setEncoding("UTF-8");

this.parser.parse(ins);
bais.close();
ins = null;
init();

}

在调用 MessageObject(byte[] bytesinput)构造函数出现上面的错误,无解。。。

  • 写回答

1条回答

  • 关注
    评论

报告相同问题?

悬赏问题

  • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建
  • ¥15 数据可视化Python
  • ¥15 要给毕业设计添加扫码登录的功能!!有偿
  • ¥15 kafka 分区副本增加会导致消息丢失或者不可用吗?
  • ¥15 微信公众号自制会员卡没有收款渠道啊
  • ¥15 stable diffusion
  • ¥100 Jenkins自动化部署—悬赏100元
  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘