steve zhou created GROOVY-8232: ---------------------------------- Summary: I got a LinkageError after upgrading groovy to the latest version Key: GROOVY-8232 URL: https://issues.apache.org/jira/browse/GROOVY-8232 Project: Groovy Issue Type: Bug Components: groovy-runtime Affects Versions: 2.4.11 Reporter: steve zhou Fix For: 2.5.0-beta-2 Attachments: BUG截图1.png
I got a LinkageError after upgrading groovy to the latest version. There is no problem if I use version 2.1.1 Detail logs: Caught: java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method "org.apache.xerces.dom.NodeImpl.getChildNodes()Lorg/w3c/dom/NodeList;" the class loader (instance of org/codehaus/groovy/tools/RootLoader) of the current class, org/apache/xerces/dom/NodeImpl, and the class loader (instance of <bootloader>) for interface org/w3c/dom/Node have different Class objects for the type org/w3c/dom/NodeList used in the signature java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method "org.apache.xerces.dom.NodeImpl.getChildNodes()Lorg/w3c/dom/NodeList;" the class loader (instance of org/codehaus/groovy/tools/RootLoader) of the current class, org/apache/xerces/dom/NodeImpl, and the class loader (instance of <bootloader>) for interface org/w3c/dom/Node have different Class objects for the type org/w3c/dom/NodeList used in the signature at org.apache.xerces.parsers.AbstractDOMParser.startDocument(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.startDocument(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl.startEntity(Unknown Source) at org.apache.xerces.impl.XMLVersionDetector.startDocumentParsing(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.DOMParser.parse(Unknown Source) at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source) at org.apache.poi.util.DocumentHelper.readDocument(DocumentHelper.java:140) at org.apache.poi.openxml4j.opc.internal.ContentTypeManager.parseContentTypesFile(ContentTypeManager.java:374) at org.apache.poi.openxml4j.opc.internal.ContentTypeManager.<init>(ContentTypeManager.java:100) at org.apache.poi.openxml4j.opc.internal.ZipContentTypeManager.<init>(ZipContentTypeManager.java:54) at org.apache.poi.openxml4j.opc.ZipPackage.getPartsImpl(ZipPackage.java:253) at org.apache.poi.openxml4j.opc.OPCPackage.getParts(OPCPackage.java:758) at org.apache.poi.openxml4j.opc.OPCPackage.open(OPCPackage.java:298) at org.apache.poi.ss.usermodel.WorkbookFactory.create(WorkbookFactory.java:264) at org.apache.poi.ss.usermodel.WorkbookFactory.create(WorkbookFactory.java:226) at org.apache.poi.ss.usermodel.WorkbookFactory.create(WorkbookFactory.java:205) at org.apache.poi.ss.usermodel.WorkbookFactory$create.call(Unknown Source) at common.utils.ExcelUtils.getExcel(ExcelUtils.groovy:30) at common.utils.ExcelUtils$getExcel.call(Unknown Source) at common.utils.ExcelFeatureUtils.<init>(ExcelFeatureUtils.groovy:41) at common.utils.ConvertFeature$_format_closure1.doCall(ConvertFeature.groovy:40) at common.utils.ConvertFeature.format(ConvertFeature.groovy:37) at common.utils.ConvertFeature$format.call(Unknown Source) at test.run(test.groovy:31) -- This message was sent by Atlassian JIRA (v6.4.14#64029)