groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "steve zhou (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (GROOVY-8232) I got a LinkageError after upgrading groovy to the latest version
Date Fri, 16 Jun 2017 07:25:00 GMT

    [ https://issues.apache.org/jira/browse/GROOVY-8232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16051515#comment-16051515
] 

steve zhou commented on GROOVY-8232:
------------------------------------

I ran script in a groovy script file using default bootloader,so I got the error.it works
well with the earlier version.
now I copy my scripts to the Main function of groovy class,and then run the main   success
Thank you so much!

> 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
>         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)

Mime
View raw message