Closed kdopen closed 4 years ago
Hello,
I just tried to build master/HEAD
(db2e55e0576dd479e8ab50ff153c9a969e211791) following the wiki, and it works for me.
My environment:
mvn -v
Apache Maven 3.6.0
Maven home: /usr/share/maven
Java version: 1.8.0_222, vendor: Private Build, runtime: /usr/lib/jvm/java-8-openjdk-amd64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "5.0.0-37-generic", arch: "amd64", family: "unix"
cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.2 LTS"
The problem is reproducible when building the tool behind a proxy, without the proxies
section configured in the maven settings.xml.
Now the wiki is updated:
https://github.com/GENIVI/franca_ara_tools/wiki/FARACON-Developer-Guide#31-configure-a-proxy
However, I feel we need to find a way for maven to be more explicit about not having been able to download a dependency (something like the REQUIRED
keyword in cmake's find_package
directive)
The only problem is ... I don't have a proxy configured
The only problem is ... I don't have a proxy configured
I understand that the problem is solved and the issue can be closed?
The error seems to be related to this stacktrace
Tests run: 5, Failures: 0, Errors: 5, Skipped: 0, Time elapsed: 1.28 sec <<< FAILURE! - in org.genivi.faracon.tests.aspects_on_arrays.f2a.IDL1540_Tests multipleNamedArrayTypesUsingTheSameElementType(org.genivi.faracon.tests.aspects_on_arrays.f2a.IDL1540_Tests) Time elapsed: 0.48 sec <<< ERROR! java.lang.ExceptionInInitializerError: null at org.eclipse.emf.ecore.xml.namespace.impl.XMLNamespacePackageImpl.initializePackageContents(XMLNamespacePackageImpl.java:356) at org.eclipse.emf.ecore.xml.namespace.impl.XMLNamespacePackageImpl.init(XMLNamespacePackageImpl.java:128) at org.eclipse.emf.ecore.xml.namespace.XMLNamespacePackage.<clinit>(XMLNamespacePackage.java:69) at org.eclipse.sphinx.emf.resource.ExtendedXMLSaveImpl.addNamespaceDeclarations(ExtendedXMLSaveImpl.java:368) at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.traverse(XMLSaveImpl.java:607) at org.eclipse.sphinx.emf.resource.ExtendedXMLSaveImpl.traverse(ExtendedXMLSaveImpl.java:157) at org.eclipse.sphinx.emf.resource.ExtendedXMLSaveImpl.save(ExtendedXMLSaveImpl.java:121) at org.artop.aal.common.resource.impl.AutosarXMLResourceImpl.doSave(AutosarXMLResourceImpl.java:396) at org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(ResourceImpl.java:1430) at org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(ResourceImpl.java:999) at org.genivi.faracon.ARAConnector.saveARXML(ARAConnector.java:180) at org.genivi.faracon.ARAConnector.saveARXML(ARAConnector.java:191) at org.genivi.faracon.ARAConnector.saveModel(ARAConnector.java:78) at org.genivi.faracon.cli.Franca2AraConverter$7.accept(Franca2AraConverter.java:205) at org.genivi.faracon.cli.Franca2AraConverter$7.accept(Franca2AraConverter.java:1) at java.util.ArrayList.forEach(ArrayList.java:1257) at org.genivi.faracon.cli.Franca2AraConverter.saveAllGeneratedModels(Franca2AraConverter.java:208) at org.genivi.faracon.cli.AbstractFaraconConverter.convertModelContainersAndSaveResults(AbstractFaraconConverter.java:60) at org.genivi.faracon.cli.AbstractFaraconConverter.convertFiles(AbstractFaraconConverter.java:53) at org.genivi.faracon.tests.util.Franca2ARATestBase.transformAndCheckIntegrationTest(Franca2ARATestBase.java:66) at org.genivi.faracon.tests.aspects_on_arrays.f2a.IDL1540_Tests.multipleNamedArrayTypesUsingTheSameElementType(IDL1540_Tests.java:60)
That is same as this bug (scrool down to the comment from 30 Oct 2019 to see it)
OK – well it’s 100% reproducible for me. And there’s no obvious workaround?
From: Giovanni Vergine notifications@github.com Reply-To: GENIVI/franca_ara_tools reply@reply.github.com Date: Wednesday, January 22, 2020 at 5:21 AM To: GENIVI/franca_ara_tools franca_ara_tools@noreply.github.com Cc: "Keith Derrick/LGEUS Advanced Platform(keith.derrick@lge.com)" keith.derrick@lge.com, Author author@noreply.github.com Subject: Re: [GENIVI/franca_ara_tools] Tests fail when building (#148)
The error seems to be related to this stacktrace
Tests run: 5, Failures: 0, Errors: 5, Skipped: 0, Time elapsed: 1.28 sec <<< FAILURE! - in org.genivi.faracon.tests.aspects_on_arrays.f2a.IDL1540_Tests multipleNamedArrayTypesUsingTheSameElementType(org.genivi.faracon.tests.aspects_on_arrays.f2a.IDL1540_Tests) Time elapsed: 0.48 sec <<< ERROR! java.lang.ExceptionInInitializerError: null at org.eclipse.emf.ecore.xml.namespace.impl.XMLNamespacePackageImpl.initializePackageContents(XMLNamespacePackageImpl.java:356) at org.eclipse.emf.ecore.xml.namespace.impl.XMLNamespacePackageImpl.init(XMLNamespacePackageImpl.java:128) at org.eclipse.emf.ecore.xml.namespace.XMLNamespacePackage.
That is same as this bug (scrool down to the comment from 30 Oct 2019 to see it)
https://bugs.eclipse.org/bugs/show_bug.cgi?id=394659
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/GENIVI/franca_ara_tools/issues/148?email_source=notifications&email_token=AALYQVG4QMVRCJIK72K3MM3Q7BB5ZA5CNFSM4J444QVKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJTQXPY#issuecomment-577178559, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AALYQVAKJQVIXKXSQW3QZG3Q7BB5ZANCNFSM4J444QVA.
Hi,
we looked in to the problem. Unfortunately, we cannot reproduce it locally (and also not on the build server), yet.
If your goal is only to get an executable of the faracon-tool, you can use the following maven command to build the tool:
mvn clean install -Pwith-artop -DskipTests
This will skip all tests and should create the executable.
Best, Michael
I finally got a clean run of the full build: thanks to the "shelter in place" order I was able to bring my desktop home. It still didn't run initially ... but I did a fetch and pull and re-ran it and ti passed.
So, either
If it's the latter, the proxy must be well hidden as we make absolutely no configuration changes on our machines to allow for it.
Next problem, which may just be setup.
I used the VSS conversion tools to generate a .fidl file just for the ADAS vspec, then trie to covert it to ARXML. The converter crashed
$ faracon-linux-x86_64 -f ADAS.fidl
Command: Franca ARA Converter
Using ARA standard types path /home/keith/play/VSS/vehicle_signal_specification
Loading Franca IDL model input files...
Loading FrancaIDL file /home/keith/play/VSS/vehicle_signal_specification/ADAS.fidl
Converting Franca IDL models to Adaptive AUTOSAR IDL models...
Converting FrancaIDL file file:/home/keith/play/VSS/vehicle_signal_specification/ADAS.fidl
java.lang.NullPointerException
at org.genivi.faracon.franca2ara.ARAModelSkeletonCreator._init_createPackageHierarchy(ARAModelSkeletonCreator.java:78)
at org.genivi.faracon.franca2ara.ARAModelSkeletonCreator.createPackageHierarchy(ARAModelSkeletonCreator.java:71)
at org.genivi.faracon.franca2ara.ARAModelSkeletonCreator._init_createAutosarModelSkeleton(ARAModelSkeletonCreator.java:57)
at org.genivi.faracon.franca2ara.ARAModelSkeletonCreator.createAutosarModelSkeleton(ARAModelSkeletonCreator.java:50)
at org.genivi.faracon.Franca2ARATransformation.transform(Franca2ARATransformation.java:106)
at org.genivi.faracon.ARAConnector.fromFranca(ARAConnector.java:107)
at org.genivi.faracon.cli.Franca2AraConverter$8.apply(Franca2AraConverter.java:252)
at org.genivi.faracon.cli.Franca2AraConverter$8.apply(Franca2AraConverter.java:1)
at org.eclipse.xtext.xbase.lib.internal.FunctionDelegate.apply(FunctionDelegate.java:42)
at com.google.common.collect.Iterators$8.transform(Iterators.java:794)
at com.google.common.collect.TransformedIterator.next(TransformedIterator.java:48)
at com.google.common.collect.Iterators.addAll(Iterators.java:357)
at com.google.common.collect.Lists.newArrayList(Lists.java:146)
at com.google.common.collect.Lists.newArrayList(Lists.java:128)
at org.eclipse.xtext.xbase.lib.IterableExtensions.toList(IterableExtensions.java:600)
at org.genivi.faracon.cli.Franca2AraConverter.transform(Franca2AraConverter.java:258)
at org.genivi.faracon.cli.AbstractFaraconConverter.convertModelContainersAndSaveResults(AbstractFaraconConverter.java:98)
at org.genivi.faracon.cli.AbstractFaraconConverter.convertFiles(AbstractFaraconConverter.java:85)
at org.genivi.faracon.cli.ConverterCliCommand.convertFrancaFiles(ConverterCliCommand.java:126)
at org.genivi.faracon.cli.ConverterCliCommand.execute(ConverterCliCommand.java:115)
at org.genivi.faracon.cli.ConverterCliCommandHandler.execute(ConverterCliCommandHandler.java:31)
at org.genivi.faracon.console.CommandExecuter$1.run(CommandExecuter.java:220)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.genivi.faracon.console.CommandExecuter.executeCommand(CommandExecuter.java:210)
at org.genivi.faracon.console.internal.Application.start(Application.java:24)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:653)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:590)
at org.eclipse.equinox.launcher.Main.run(Main.java:1499)
at org.eclipse.equinox.launcher.Main.main(Main.java:1472)
keith@FPD6GZ1-LNX:/home/.../VSS/vehicle_signal_specification$ ^C
keith@FPD6GZ1-LNX:/home/.../VSS/vehicle_signal_specification$
Am I missing something? Do I need to translate the entire VSS to a .fidl file?
here is the .fidl file
// Copyright (C) 2016, GENIVI Alliance
//
// This program is licensed under the terms and conditions of the
// Mozilla Public License, version 2.0. The full text of the
// Mozilla Public License is at https://www.mozilla.org/MPL/2.0/
const UTF8String VSS_VERSION = "2.0.0-alpha+006"
struct SignalSpec {
UInt32 id
String name
String type
String description
}
const SignalSpec[] signal_spec = [
{
name: "CruiseControl.IsActive"
type: "actuator"
description: "Indicates if cruise control system is enabled. True = Enabled. False = Disabled."
datatype: boolean
uuid: dc4dd89ae9fa598f96eea82997fe7f2d
}
,
{
name: "CruiseControl.SpeedSet"
type: "actuator"
description: "Set cruise control speed in kilometers per hour"
datatype: int32
uuid: 35b910b5452f5fa0a5aa6bb630335c49
unit: km/h
}
,
{
name: "CruiseControl.Error"
type: "sensor"
description: "Indicates if cruise control system incurred and error condition. True = Error. False = NoError."
datatype: boolean
uuid: 83e3565f616951f9bfdd18889b2dbed1
}
{
name: "LaneDepartureDetection.IsActive"
type: "actuator"
description: "Indicates if lane departure detection system is enabled. True = Enabled. False = Disabled."
datatype: boolean
uuid: 6cc2848812e4512993532f90a04829a1
}
,
{
name: "LaneDepartureDetection.Warning"
type: "sensor"
description: "Indicates if lane departure detection registered a lane departure"
datatype: boolean
uuid: c74d091c300c5e0ab409962c642d1350
}
,
{
name: "LaneDepartureDetection.Error"
type: "sensor"
description: "Indicates if lane departure system incurred an error condition. True = Error. False = No Error."
datatype: boolean
uuid: f0e439658c695ecab96bef70fb417ca3
}
{
name: "ObstacleDetection.IsActive"
type: "actuator"
description: "Indicates if obstacle sensor system is enabled. True = Enabled. False = Disabled."
datatype: boolean
uuid: e1cf27aa393d5ad19a89b7be529737cd
}
,
{
name: "ObstacleDetection.Error"
type: "sensor"
description: "Indicates if obstacle sensor system incurred an error condition. True = Error. False = No Error."
datatype: boolean
uuid: b6123ba8e498510e9e257f9d29f2b62b
}
,
{
name: "ObstacleDetection.DistanceToObject"
type: "sensor"
description: "Distance to object in meters"
datatype: uint16
uuid: d43dca2e1f74571286cab9758f5beb84
unit: m
}
{
name: "ABS.IsActive"
type: "actuator"
description: "Indicates if ABS is enabled. True = Enabled. False = Disabled."
datatype: boolean
uuid: 4b1321eb6095599887777a73cd1fb56a
}
,
{
name: "ABS.Error"
type: "sensor"
description: "Indicates if ABS incurred an error condition. True = Error. False = No Error."
datatype: boolean
uuid: a10a3a600cf0527080be2fbee10486b3
}
,
{
name: "ABS.IsEngaged"
type: "sensor"
description: "Indicates if ABS is currently regulating brake pressure. True = Engaged. False = Not Engaged."
datatype: boolean
uuid: e9a8d53326335fae96468e8e43623de6
}
{
name: "TCS.IsActive"
type: "actuator"
description: "Indicates if TCS is enabled. True = Enabled. False = Disabled."
datatype: boolean
uuid: f84f8251aed15831841fae762fa68d7c
}
,
{
name: "TCS.Error"
type: "sensor"
description: "Indicates if TCS incurred an error condition. True = Error. False = No Error."
datatype: boolean
uuid: 3dac69256b0656c2b1f506b0336738e0
}
,
{
name: "TCS.IsEngaged"
type: "sensor"
description: "Indicates if TCS is currently regulating traction. True = Engaged. False = Not Engaged."
datatype: boolean
uuid: 4a645bbd443c561c8de2cc2587e38834
}
{
name: "ESC.IsActive"
type: "actuator"
description: "Indicates if ECS is enabled. True = Enabled. False = Disabled."
datatype: boolean
uuid: 5e3a4e1251125fd98ebe2d4c43deeb8a
}
,
{
name: "ESC.Error"
type: "sensor"
description: "Indicates if ESC incurred an error condition. True = Error. False = No Error."
datatype: boolean
uuid: ff3638171c5459ef94e062f570efdb28
}
,
{
name: "ESC.IsEngaged"
type: "sensor"
description: "Indicates if ESC is currently regulating vehicle stability. True = Engaged. False = Not Engaged."
datatype: boolean
uuid: fbf1adba966f5d3caa5d6700625c5f66
}
]
Nope -- same result if I pass it the full .fidl
file from make franca
Hi, I can reproduce the error. The fidl file you use seems not correct. It does not have a package/name, which leads the transformation to fail. As soon as the PR (https://github.com/GENIVI/franca_ara_tools/pull/155) is merged the nullpointer exception should be gone and replaced with a more useful error message. Nevertheless, the transformation cannot be continued after the point, because the model is broken. In oder to fix that you can add a line "package foo.bar" at the top of the fidl file so that your model has a valid name/package.
Also I am not sure if the Franca file you provided earlier will go through the transformatin as it is incomplete, for instance, the import to UTF8String is missing. Can you provide the full fidl-file you are using?
It is generated using vspec2franca
from https://github.com/GENIVI/vehicle_signal_specification/tree/master/tools
I'm trying to get the toolchain to work from VSS specification -> franca -> ARXML
OK. adding a package statement and commenting out the VSS_VERSION
statement let the converter run ... it didn't generate much though.
But I can close this now.
I've followed the instructions at https://github.com/GENIVI/franca_ara_tools/wiki/FARACON-Developer-Guide but the build fails when executing the tests
My environment is Ubuntu 18.04.3 LT, with
mvn -v
reporting