Re: Concurrent builds on master are broken

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: Concurrent builds on master are broken

Guillaume Nodet
Ah, it seems the underlying exception is swallowed.
I think the main reason is that DefaultTransformerContext does not use a
ConcurrentHashMap.

java.util.ConcurrentModificationException
at java.base/java.util.HashMap.computeIfAbsent(HashMap.java:1134)
at
org.apache.maven.model.building.DefaultModelBuilder$DefaultTransformerContextBuilder$1.getRawModel(DefaultModelBuilder.java:1827)
at
org.apache.maven.model.building.DefaultBuildPomXMLFilterFactory.lambda$getDependencyKeyToVersionMapper$3(DefaultBuildPomXMLFilterFactory.java:67)
at
org.apache.maven.xml.sax.filter.ReactorDependencyXMLFilter.getVersion(ReactorDependencyXMLFilter.java:156)
at
org.apache.maven.xml.sax.filter.ReactorDependencyXMLFilter.endElement(ReactorDependencyXMLFilter.java:112)
at
java.xml/org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:570)
at
java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:610)
at
java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1718)
at
java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2883)
at
java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:605)
at
java.xml/com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:112)
at
java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:534)
at
java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:888)
at
java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:824)
at
java.xml/com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
at
java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1216)
at java.xml/org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:357)
at java.xml/org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:357)
at java.xml/org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:357)
at java.xml/org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:357)
at
java.xml/com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transformIdentity(TransformerImpl.java:687)
at
java.xml/com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:774)
at
java.xml/com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:370)
at
org.apache.maven.model.building.AbstractModelSourceTransformer.lambda$transform$1(AbstractModelSourceTransformer.java:157)
at java.base/java.lang.Thread.run(Thread.java:834)


Le lun. 8 févr. 2021 à 17:16, Guillaume Nodet <[hidden email]> a écrit :

> It seems concurrent builds are somewhat broken on master.
> I end up with lots of exceptions, see below.
> Any idea where to look at ?
>
> Cheers,
> Guillaume Nodet
>
> [ERROR]     input contained no data
> java.io.EOFException: input contained no data
>     at org.codehaus.plexus.util.xml.pull.MXParser.fillBuf
> (MXParser.java:3694)
>     at org.codehaus.plexus.util.xml.pull.MXParser.more (MXParser.java:3776)
>     at org.codehaus.plexus.util.xml.pull.MXParser.parseProlog
> (MXParser.java:1717)
>     at org.codehaus.plexus.util.xml.pull.MXParser.nextImpl
> (MXParser.java:1700)
>     at org.codehaus.plexus.util.xml.pull.MXParser.next (MXParser.java:1319)
>     at org.apache.maven.model.io.xpp3.MavenXpp3Reader.read
> (MavenXpp3Reader.java:3876)
>     at org.apache.maven.model.io.xpp3.MavenXpp3Reader.read
> (MavenXpp3Reader.java:595)
>     at org.apache.maven.model.io.DefaultModelReader.read
> (DefaultModelReader.java:151)
>     at org.apache.maven.model.io.DefaultModelReader.read
> (DefaultModelReader.java:118)
>     at org.apache.maven.model.io.DefaultModelReader.read
> (DefaultModelReader.java:90)
>     at org.apache.maven.model.building.DefaultModelProcessor.read
> (DefaultModelProcessor.java:97)
>     at org.apache.maven.model.building.DefaultModelBuilder.readRawModel
> (DefaultModelBuilder.java:743)
>     at
> org.apache.maven.model.building.DefaultModelBuilder.readEffectiveModel
> (DefaultModelBuilder.java:364)
>     at org.apache.maven.model.building.DefaultModelBuilder.build
> (DefaultModelBuilder.java:506)
>     at org.apache.maven.model.building.DefaultModelBuilder.build
> (DefaultModelBuilder.java:494)
>     at org.apache.maven.project.DefaultProjectBuilder.build
> (DefaultProjectBuilder.java:619)
>     at org.apache.maven.project.DefaultProjectBuilder.build
> (DefaultProjectBuilder.java:634)
>     at org.apache.maven.project.DefaultProjectBuilder.build
> (DefaultProjectBuilder.java:401)
>     at
> org.apache.maven.project.collector.DefaultProjectsSelector.selectProjects
> (DefaultProjectsSelector.java:63)
>     at
> org.apache.maven.project.collector.MultiModuleCollectionStrategy.collectProjects
> (MultiModuleCollectionStrategy.java:71)
>     at
> org.apache.maven.graph.DefaultGraphBuilder.getProjectsForMavenReactor
> (DefaultGraphBuilder.java:426)
>     at org.apache.maven.graph.DefaultGraphBuilder.build
> (DefaultGraphBuilder.java:97)
>     at org.apache.maven.DefaultMaven.buildGraph (DefaultMaven.java:647)
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:244)
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:217)
>     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:130)
>     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:980)
>     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:294)
>     at org.apache.maven.cli.MavenCli.main (MavenCli.java:198)
>     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native
> Method)
>     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke
> (NativeMethodAccessorImpl.java:62)
>     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke (Method.java:566)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced
> (Launcher.java:282)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launch
> (Launcher.java:225)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode
> (Launcher.java:406)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.main
> (Launcher.java:347)
>
>
>
> --
> ------------------------
> Guillaume Nodet
>
>

--
------------------------
Guillaume Nodet