[NETVIRT-1290] broken build due to StackOverflowError in xtend-maven-plugin Created: 01/Jun/18  Updated: 01/Jun/18  Resolved: 01/Jun/18

Status: Resolved
Project: netvirt
Component/s: None
Affects Version/s: None
Fix Version/s: Fluorine

Type: Bug Priority: Highest
Reporter: Michael Vorburger Assignee: Michael Vorburger
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File NETVIRT-1290.txt    
Issue Links:
Blocks
blocks TSC-101 MDSAL Fluorine API breakage window 3 Resolved

 Description   

when I locally build the current `master` of `netvirt/aclservice/impl` I'm hitting this (attached):

[INFO] --- xtend-maven-plugin:2.13.0:testCompile (default) @ aclservice-impl ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 03:26 min
[INFO] Finished at: 2018-06-01T11:43:00+02:00
[INFO] Final Memory: 156M/1668M
[INFO] ------------------------------------------------------------------------
---------------------------------------------------
(...)
---------------------------------------------------
Exception in thread "main" java.lang.StackOverflowError
	at org.eclipse.xtext.xbase.typesystem.references.LightweightTypeReferenceFactory.doVisitParameterizedTypeReference(LightweightTypeReferenceFactory.java:173)
	at org.eclipse.xtext.xbase.typesystem.references.LightweightTypeReferenceFactory.doVisitParameterizedTypeReference(LightweightTypeReferenceFactory.java:52)
	at org.eclipse.xtext.common.types.impl.JvmParameterizedTypeReferenceImplCustom.accept(JvmParameterizedTypeReferenceImplCustom.java:53)
	at org.eclipse.xtext.common.types.util.AbstractTypeReferenceVisitor.visit(AbstractTypeReferenceVisitor.java:34)
	at org.eclipse.xtext.xbase.typesystem.references.LightweightTypeReferenceFactory.toLightweightReference(LightweightTypeReferenceFactory.java:83)
	at org.eclipse.xtext.xbase.typesystem.references.StandardTypeReferenceOwner.toLightweightTypeReference(StandardTypeReferenceOwner.java:117)
	at org.eclipse.xtext.xbase.typesystem.util.DeclaratorTypeArgumentCollector.doVisitParameterizedTypeReference(DeclaratorTypeArgumentCollector.java:158)
	at org.eclipse.xtext.xbase.typesystem.util.DeclaratorTypeArgumentCollector.doVisitParameterizedTypeReference(DeclaratorTypeArgumentCollector.java:77)
	at org.eclipse.xtext.xbase.typesystem.util.DeclaratorTypeArgumentCollector.doVisitParameterizedTypeReference(DeclaratorTypeArgumentCollector.java:39)


 Comments   
Comment by Michael Vorburger [ 01/Jun/18 ]

This is a Blocker because it's not just happening locally, but also affecting autorelease (seen in integration multipatch fluorine 93 TSC-101), and verify jobs on Gerrits, e.g. netvirt verify fluorine 1296 (for c/72459/).

Comment by Michael Vorburger [ 01/Jun/18 ]

Bumping Xtend from 2.13.0 to 2.14.0 in https://git.opendaylight.org/gerrit/#/c/72550/ does not fix this.

Comment by Michael Vorburger [ 01/Jun/18 ]

https://github.com/eclipse/xtext-xtend/issues/461

Comment by Michael Vorburger [ 01/Jun/18 ]

While awaiting for progress on https://github.com/eclipse/xtext-xtend/issues/461 (and in my own case perhaps personally contributing further to that), it doesn't seem right to hold OpenDaylight hostage and block the netvirt/autorelease master build due to this blocking problem. Therefore, I think https://git.opendaylight.org/gerrit/#/c/72569/ would be a perhaps not ideal but fair "solution" to this in the very short-term, as in today?

Comment by Stephen Kitt [ 01/Jun/18 ]

This was caused by https://git.opendaylight.org/gerrit/72211 — reverting that allows Netvirt to build again.

Comment by Michael Vorburger [ 01/Jun/18 ]

As just commented in xtext-xtend/issues/461, we stronlgy suspect (thanks skitt) that c/72211 caused this.

c/72573 works around this problem by rewriting some Xtend as Java.

Generated at Wed Feb 07 20:23:42 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.