Git Product home page Git Product logo

capicxx-dbus-tools's Introduction

CommonAPI C++ D-Bus Tools

Copyright

Copyright (C) 2015-2023, Bayerische Motoren Werke Aktiengesellschaft (BMW AG). Copyright (C) 2015-2023, COVESA

This file is part of COVESA Project IPC Common API C++. Contributions are licensed to the COVESA under one or more Contribution License Agreements or MPL 2.0.

License

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, you can obtain one at http://mozilla.org/MPL/2.0/.

== CommonAPI C++ Specification and User Guide The specification document and the user guide can be found in the CommonAPI documentation directory of the CommonAPI-Tools project.

Further information

https://covesa.github.io/capicxx-core-tools/

Build Instructions for Linux

You can build all code generators by calling maven from the command-line. Open a console and change in the directory org.genivi.commonapi.dbus.releng of your CommonAPI-D-Bus-Tools directory. Then call:

mvn -DCOREPATH=<path to your CommonAPI-Tools dir> -Dtarget.id=org.genivi.commonapi.dbus.target clean verify

COREPATH is the directory, that contains the target definition folder: org.genivi.commonapi.dbus.target.

After the successful build you will find the commond-line generators archived in org.genivi.commonapi.dbus.cli.product/target/products/commonapi_dbus_generator.zip and the update-sites in org.genivi.commonapi.dbus.updatesite/target.

capicxx-dbus-tools's People

Contributors

dhuss avatar dibpinto avatar goncaloalmeida avatar juergengehring avatar lutzbichler avatar rauwolf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

capicxx-dbus-tools's Issues

Build failure :org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: Failed to load p2 repository with ID 'core.cli' from location file:/home/user/vsomeip1/capicxx-dbus-tools/org.genivi.commonapi.core.cli.product/target/repository/

while running :~/vsomeip1/capicxx-dbus-tools/org.genivi.commonapi.dbus.releng$ mvn -DCOREPATH=/home/v-mathaiyan/vsomeip1/capicxx-dbus-tools -Dtarget.id=org.genivi.commonapi.dbus.target clean verify
build is failing and shows the following error.

"org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: Failed to load p2 repository with ID 'core.cli' from location file:/home/v-mathaiyan/vsomeip1/capicxx-dbus-tools/org.genivi.commonapi.core.cli.product/target/repository/"

"Failed to load p2 repository with ID 'core.cli' from location file:/home/v-mathaiyan/vsomeip1/capicxx-dbus-tools/org.genivi.commonapi.core.cli.product/target/repository/"

"Caused by: org.eclipse.equinox.p2.core.ProvisionException: No repository found at file:/home/v-mathaiyan/vsomeip1/capicxx-dbus-tools/org.genivi.commonapi.core.cli.product/target/repository."

tutorial - obsolete path

this tutorial: https://github.com/GENIVI/capicxx-dbus-tools/wiki/CommonAPI-C---D-Bus-in-10-minutes

has:
<.>/dbus-1.10.10$ patch -p1 < ../common-api-dbus-runtime/src/dbus-patches/capi-dbus-....
it should have:
<.>/dbus-1.10.10$ patch -p1 < ../capicxx-dbus-runtime/src/dbus-patches/capi-dbus-....
or even better should have:
for i in ../capicxx-dbus-runtime/src/dbus-patches/*.patch; do patch -p1 < $i; done

has in CMakeList.txt:
$ENV{RUNTIME_PATH}/capicxx-runtime/
should have:
$ENV{RUNTIME_PATH}/capicxx-core-runtime/

has in HelloWorldClient.cpp and HelloWorldStubImpl.hpp:
#include <v1_0/commonapi/HelloWorldProxy.hpp>
should have:
#include <v1/commonapi/HelloWorldProxy.hpp>
(at least this is what was generated for me)

Error on auto code generation

[issue]
Following the tutorial on https://at.projects.genivi.org/wiki/pages/viewpage.action?pageId=5472316
when run the "CommonAPI code with the commonapi-generator and CommonAPI D-Bus code with the commonapi-dbus-generator", see the error code as follow:
~/project/commonapi$ ./cgen/commonapi-generator/commonapi-generator-linux-x86_64 -sk ./fidl/HelloWorld.fidl
OpenJDK 64-Bit Server VM warning: Ignoring option PermSize; support was removed in 8.0
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.eclipse.osgi.storage.FrameworkExtensionInstaller (file:/home/book/project/commonapi/cgen/commonapi-generator/plugins/org.eclipse.osgi_3.10.2.v20141020-1740.jar) to method java.net.URLClassLoader.addURL(java.net.URL)
WARNING: Please consider reporting this to the maintainers of org.eclipse.osgi.storage.FrameworkExtensionInstaller
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

[Evironment]
Linux 100ask 5.3.0-59-generic #53~18.04.1-Ubuntu SMP Thu Jun 4 14:58:26 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Java version:
openjdk version "11.0.7" 2020-04-14
OpenJDK Runtime Environment (build 11.0.7+10-post-Ubuntu-2ubuntu218.04)
OpenJDK 64-Bit Server VM (build 11.0.7+10-post-Ubuntu-2ubuntu218.04, mixed mode, sharing)
(Downgrade to Java 8, still see the same error)

Please provide a solution. Thanks.

Josh L

Build failed for the 3.2.14

Issue the command below but the build complain and output errors, while the core-tool and someip-tool work.

mvn -DCOREPATH=/home/github/capicxx-core-tools -Dtarget.id=org.genivi.commonapi.dbus.target clean verify

...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] org.genivi.commonapi.dbus.target ................... SUCCESS [ 1.494 s]
[INFO] org.genivi.commonapi.dbus.releng ................... SUCCESS [ 0.002 s]
[INFO] org.genivi.commonapi.dbus .......................... FAILURE [ 4.580 s]
[INFO] org.genivi.commonapi.dbus.cli ...................... SKIPPED
[INFO] org.genivi.commonapi.dbus.cli.feature .............. SKIPPED
[INFO] org.genivi.commonapi.dbus.cli.product .............. SKIPPED
[INFO] org.genivi.commonapi.dbus.ui ....................... SKIPPED
[INFO] org.genivi.commonapi.dbus.feature .................. SKIPPED
[INFO] org.genivi.commonapi.dbus.validator ................ SKIPPED
[INFO] org.genivi.commonapi.dbus.validator.feature ........ SKIPPED
[INFO] org.genivi.commonapi.dbus.updatesite ............... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 18:42 min
[INFO] Finished at: 2023-11-02T17:41:38+08:00
[INFO] Final Memory: 143M/816M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:0.22.0:compile (default-compile) on project org.genivi.commonapi.dbus: Compilation failure: Compilation failure:
[ERROR] /home/lijiejiang/github/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[21]
[ERROR] import org.genivi.commonapi.dbus.Deployment;
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] The import org.genivi.commonapi.dbus.Deployment cannot be resolved
[ERROR] /home/lijiejiang/github/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[25]
[ERROR] Deployment.IDataPropertyAccessor dbusDataAccessor_;
[ERROR] ^^^^^^^^^^
[ERROR] Deployment cannot be resolved to a type
[ERROR] /home/lijiejiang/github/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[26]
[ERROR] Deployment.ProviderPropertyAccessor dbusProvider_;
[ERROR] ^^^^^^^^^^
[ERROR] Deployment cannot be resolved to a type
[ERROR] /home/lijiejiang/github/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[40]
[ERROR] dbusDataAccessor_ = null;
[ERROR] ^^^^^^^^^^^^^^^^^
[ERROR] dbusDataAccessor_ cannot be resolved to a variable
[ERROR] /home/lijiejiang/github/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[41]
[ERROR] dbusProvider_ = null;
[ERROR] ^^^^^^^^^^^^^
[ERROR] dbusProvider_ cannot be resolved to a variable
[ERROR] /home/lijiejiang/github/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[48]
[ERROR] dbusDataAccessor_ = new Deployment.InterfacePropertyAccessor(target);
[ERROR] ^^^^^^^^^^^^^^^^^
[ERROR] dbusDataAccessor
cannot be resolved to a variable
[ERROR] /home/lijiejiang/github/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[48]
[ERROR] dbusDataAccessor_ = new Deployment.InterfacePropertyAccessor(target);
[ERROR] ^^^^^^^^^^
[ERROR] Deployment cannot be resolved to a type
[ERROR] /home/lijiejiang/github/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[49]
[ERROR] dbusProvider
= null;
[ERROR] ^^^^^^^^^^^^^
[ERROR] dbusProvider_ cannot be resolved to a variable
[ERROR] /home/lijiejiang/github/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[56]
[ERROR] dbusDataAccessor_ = new Deployment.TypeCollectionPropertyAccessor(target);
[ERROR] ^^^^^^^^^^^^^^^^^
[ERROR] dbusDataAccessor
cannot be resolved to a variable
[ERROR] /home/lijiejiang/github/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[56]
[ERROR] dbusDataAccessor_ = new Deployment.TypeCollectionPropertyAccessor(target);
[ERROR] ^^^^^^^^^^
[ERROR] Deployment cannot be resolved to a type
[ERROR] /home/lijiejiang/github/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[57]
[ERROR] dbusProvider
= null;
[ERROR] ^^^^^^^^^^^^^
[ERROR] dbusProvider_ cannot be resolved to a variable
[ERROR] /home/lijiejiang/github/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[64]
[ERROR] dbusProvider_ = new Deployment.ProviderPropertyAccessor(target);
[ERROR] ^^^^^^^^^^^^^
[ERROR] dbusProvider
cannot be resolved to a variable
[ERROR] /home/lijiejiang/github/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[64]
[ERROR] dbusProvider_ = new Deployment.ProviderPropertyAccessor(target);
[ERROR] ^^^^^^^^^^
[ERROR] Deployment cannot be resolved to a type
[ERROR] /home/lijiejiang/github/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[66]
[ERROR] dbusDataAccessor
= null;
[ERROR] ^^^^^^^^^^^^^^^^^
[ERROR] dbusDataAccessor_ cannot be resolved to a variable
[ERROR] /home/lijiejiang/github/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[71]
[ERROR] dbusProvider_ = null;
[ERROR] ^^^^^^^^^^^^^
[ERROR] dbusProvider_ cannot be resolved to a variable
[ERROR] /home/lijiejiang/github/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[72]
[ERROR] if (parent.type != DeploymentType.PROVIDER && parent != null && parent.dbusDataAccessor != null) {
[ERROR] ^^^^^^^^^^^^^^^^^
[ERROR] dbusDataAccessor
cannot be resolved or is not a field
[ERROR] /home/lijiejiang/github/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[73]
[ERROR] dbusDataAccessor_ = parent.dbusDataAccessor.getOverwriteAccessor(element);
[ERROR] ^^^^^^^^^^^^^^^^^
[ERROR] dbusDataAccessor
cannot be resolved to a variable
[ERROR] /home/lijiejiang/github/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[73]
[ERROR] dbusDataAccessor_ = parent.dbusDataAccessor.getOverwriteAccessor(element);
[ERROR] ^^^^^^^^^^^^^^^^^
[ERROR] dbusDataAccessor
cannot be resolved or is not a field
[ERROR] /home/lijiejiang/github/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[77]
[ERROR] dbusDataAccessor_ = null;
[ERROR] ^^^^^^^^^^^^^^^^^
[ERROR] dbusDataAccessor_ cannot be resolved to a variable
[ERROR] /home/lijiejiang/github/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[83]
[ERROR] dbusProvider_ = null;
[ERROR] ^^^^^^^^^^^^^
[ERROR] dbusProvider_ cannot be resolved to a variable
[ERROR] /home/lijiejiang/github/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[84]
[ERROR] if (parent.type != DeploymentType.PROVIDER && parent != null && parent.dbusDataAccessor != null) {
[ERROR] ^^^^^^^^^^^^^^^^^
[ERROR] dbusDataAccessor
cannot be resolved or is not a field
[ERROR] /home/lijiejiang/github/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[85]
[ERROR] dbusDataAccessor_ = parent.dbusDataAccessor.getOverwriteAccessor(element);
[ERROR] ^^^^^^^^^^^^^^^^^
[ERROR] dbusDataAccessor
cannot be resolved to a variable
[ERROR] /home/lijiejiang/github/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[85]
[ERROR] dbusDataAccessor_ = parent.dbusDataAccessor.getOverwriteAccessor(element);
[ERROR] ^^^^^^^^^^^^^^^^^
[ERROR] dbusDataAccessor
cannot be resolved or is not a field
[ERROR] /home/lijiejiang/github/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[89]
[ERROR] dbusDataAccessor_ = null;
[ERROR] ^^^^^^^^^^^^^^^^^
[ERROR] dbusDataAccessor_ cannot be resolved to a variable
[ERROR] /home/lijiejiang/github/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[95]
[ERROR] dbusProvider_ = null;
[ERROR] ^^^^^^^^^^^^^
[ERROR] dbusProvider_ cannot be resolved to a variable
[ERROR] /home/lijiejiang/github/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[97]
[ERROR] Deployment.InterfacePropertyAccessor ipa = (Deployment.InterfacePropertyAccessor) parent.dbusDataAccessor;
[ERROR] ^^^^^^^^^^
[ERROR] Deployment cannot be resolved to a type
[ERROR] /home/lijiejiang/github/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[97]
[ERROR] Deployment.InterfacePropertyAccessor ipa = (Deployment.InterfacePropertyAccessor) parent.dbusDataAccessor;
[ERROR] ^^^^^^^^^^
[ERROR] Deployment cannot be resolved to a type
[ERROR] /home/lijiejiang/github/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[97]
[ERROR] Deployment.InterfacePropertyAccessor ipa = (Deployment.InterfacePropertyAccessor) parent.dbusDataAccessor;
[ERROR] ^^^^^^^^^^^^^^^^^
[ERROR] dbusDataAccessor_ cannot be resolved or is not a field
[ERROR] /home/lijiejiang/github/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[98]
[ERROR] dbusDataAccessor_ = ipa.getOverwriteAccessor(element);
[ERROR] ^^^^^^^^^^^^^^^^^
[ERROR] dbusDataAccessor
cannot be resolved to a variable
[ERROR] /home/lijiejiang/github/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[101]
[ERROR] dbusDataAccessor_ = null;
[ERROR] ^^^^^^^^^^^^^^^^^
[ERROR] dbusDataAccessor_ cannot be resolved to a variable
[ERROR] /home/lijiejiang/github/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[107]
[ERROR] dbusProvider_ = null;
[ERROR] ^^^^^^^^^^^^^
[ERROR] dbusProvider_ cannot be resolved to a variable
[ERROR] /home/lijiejiang/github/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[109]
[ERROR] Deployment.InterfacePropertyAccessor ipa = (Deployment.InterfacePropertyAccessor) parent.dbusDataAccessor;
[ERROR] ^^^^^^^^^^
[ERROR] Deployment cannot be resolved to a type
[ERROR] /home/lijiejiang/github/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[109]
[ERROR] Deployment.InterfacePropertyAccessor ipa = (Deployment.InterfacePropertyAccessor) parent.dbusDataAccessor;
[ERROR] ^^^^^^^^^^
[ERROR] Deployment cannot be resolved to a type
[ERROR] /home/lijiejiang/github/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[109]
[ERROR] Deployment.InterfacePropertyAccessor ipa = (Deployment.InterfacePropertyAccessor) parent.dbusDataAccessor;
[ERROR] ^^^^^^^^^^^^^^^^^
[ERROR] dbusDataAccessor_ cannot be resolved or is not a field
[ERROR] /home/lijiejiang/github/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[110]
[ERROR] dbusDataAccessor_ = ipa.getOverwriteAccessor(element);
[ERROR] ^^^^^^^^^^^^^^^^^
[ERROR] dbusDataAccessor
cannot be resolved to a variable
[ERROR] /home/lijiejiang/github/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[113]
[ERROR] dbusDataAccessor_ = null;
[ERROR] ^^^^^^^^^^^^^^^^^
[ERROR] dbusDataAccessor_ cannot be resolved to a variable
[ERROR] /home/lijiejiang/github/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[144]
[ERROR] if (dbusDataAccessor_ != parent_.dbusDataAccessor_) {
[ERROR] ^^^^^^^^^^^^^^^^^
[ERROR] dbusDataAccessor_ cannot be resolved to a variable
[ERROR] /home/lijiejiang/github/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[144]
[ERROR] if (dbusDataAccessor_ != parent_.dbusDataAccessor_) {
[ERROR] ^^^^^^^^^^^^^^^^^
[ERROR] dbusDataAccessor_ cannot be resolved or is not a field
[ERROR] /home/lijiejiang/github/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[178]
[ERROR] return (type_ == DeploymentType.OVERWRITE && !hasSameAccessor(dbusDataAccessor_));
[ERROR] ^^^^^^^^^^^^^^^^^
[ERROR] dbusDataAccessor_ cannot be resolved to a variable
[ERROR] /home/lijiejiang/github/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[180]
[ERROR] protected boolean hasSameAccessor(Deployment.IDataPropertyAccessor accessor)
[ERROR] ^^^^^^^^^^
[ERROR] Deployment cannot be resolved to a type
[ERROR] /home/lijiejiang/github/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[184]
[ERROR] if (parent
.dbusDataAccessor_ == accessor)
[ERROR] ^^^^^^^^^^^^^^^^^
[ERROR] dbusDataAccessor
cannot be resolved or is not a field
[ERROR] /home/lijiejiang/github/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[191]
[ERROR] return from(((Deployment.InterfacePropertyAccessor)dbusDataAccessor_).getDBusDefaultAttributeType(obj));
[ERROR] ^^^^^^^^^^
[ERROR] Deployment cannot be resolved to a type
[ERROR] /home/lijiejiang/github/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[191]
[ERROR] return from(((Deployment.InterfacePropertyAccessor)dbusDataAccessor_).getDBusDefaultAttributeType(obj));
[ERROR] ^^^^^^^^^^^^^^^^^
[ERROR] dbusDataAccessor_ cannot be resolved to a variable
[ERROR] /home/lijiejiang/github/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[199]
[ERROR] private PropertiesType from(Deployment.Enums.DBusDefaultAttributeType source) {
[ERROR] ^^^^^^^^^^
[ERROR] Deployment cannot be resolved to a type
[ERROR] /home/lijiejiang/github/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[202]
[ERROR] case freedesktop:
[ERROR] ^^^^^^^^^^^
[ERROR] freedesktop cannot be resolved to a variable
[ERROR] /home/lijiejiang/github/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[216]
[ERROR] return dbusDataAccessor
.getIsObjectPath(obj);
[ERROR] ^^^^^^^^^^^^^^^^^
[ERROR] dbusDataAccessor_ cannot be resolved
[ERROR] /home/lijiejiang/github/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[226]
[ERROR] return dbusDataAccessor_.getIsUnixFD(obj);
[ERROR] ^^^^^^^^^^^^^^^^^
[ERROR] dbusDataAccessor_ cannot be resolved
[ERROR] /home/lijiejiang/github/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[234]
[ERROR] return from(dbusDataAccessor_.getDBusVariantType(obj));
[ERROR] ^^^^^^^^^^^^^^^^^
[ERROR] dbusDataAccessor_ cannot be resolved
[ERROR] /home/lijiejiang/github/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[240]
[ERROR] private DBusVariantType from(Deployment.Enums.DBusVariantType type)
[ERROR] ^^^^^^^^^^
[ERROR] Deployment cannot be resolved to a type
[ERROR] /home/lijiejiang/github/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[244]
[ERROR] case CommonAPI:
[ERROR] ^^^^^^^^^
[ERROR] CommonAPI cannot be resolved to a variable
[ERROR] /home/lijiejiang/github/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[246]
[ERROR] case DBus:
[ERROR] ^^^^
[ERROR] DBus cannot be resolved to a variable
[ERROR] /home/lijiejiang/github/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[256]
[ERROR] return dbusProvider_.getDBusInterfaceName(obj);
[ERROR] ^^^^^^^^^^^^^
[ERROR] dbusProvider_ cannot be resolved
[ERROR] /home/lijiejiang/github/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[265]
[ERROR] return dbusProvider_.getDBusObjectPath(obj);
[ERROR] ^^^^^^^^^^^^^
[ERROR] dbusProvider_ cannot be resolved
[ERROR] /home/lijiejiang/github/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[274]
[ERROR] return dbusProvider_.getDBusServiceName(obj);
[ERROR] ^^^^^^^^^^^^^
[ERROR] dbusProvider_ cannot be resolved
[ERROR] /home/lijiejiang/github/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[283]
[ERROR] return dbusProvider_.getDomain(obj);
[ERROR] ^^^^^^^^^^^^^
[ERROR] dbusProvider_ cannot be resolved
[ERROR] /home/lijiejiang/github/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[292]
[ERROR] return dbusProvider_.getInstanceId(obj);
[ERROR] ^^^^^^^^^^^^^
[ERROR] dbusProvider_ cannot be resolved
[ERROR] /home/lijiejiang/github/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[302]
[ERROR] isDBusPredefined = dbusProvider_.getDBusPredefined(obj);
[ERROR] ^^^^^^^^^^^^^
[ERROR] dbusProvider_ cannot be resolved
[ERROR] 57 problems (57 errors)
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :org.genivi.commonapi.dbus

CommonAPI C++ in 10 minutes (with D-Bus) Client and Service build failure

Description

Using the steps here: https://github.com/GENIVI/capicxx-dbus-tools/wiki/CommonAPI-C---D-Bus-in-10-minutes#step5 .
I am trying to build the Client and Service executables but I get the following failure while building the HelloWorldService.cpp:

error: invalid new-expression of abstract class type ‘HelloWorldStubImpl’
{ ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/dev/project/src/HelloWorldService.cpp:5:0:
/home/dev/project/src/HelloWorldStubImpl.hpp:7:7: note: because the following virtual functions are pure within ‘HelloWorldStubImpl’:
class HelloWorldStubImpl: public v1_0::commonapi::HelloWorldStubDefault {

What am I missing or doing wrong?

capicxx-dbus-tools build failed with "import org.genivi.commonapi.dbus.Deployment;"

Hello All,
I try build the capicxx-dbus-tools by myself, but failed. detailed info listed below.
What's wrong happened?
Thank you.

ubuntu 20.04 on VirtualBox

(base) XyXy@osboxes:~/workshop$ uname -a
Linux osboxes 5.11.0-22-generic #23-Ubuntu SMP Thu Jun 17 00:34:23 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Java version

(base) XyXy@osboxes:~/workshop$ java -version
openjdk version "1.8.0_292"
OpenJDK Runtime Environment Corretto-8.292.10.1 (build 1.8.0_292-b10)
OpenJDK 64-Bit Server VM Corretto-8.292.10.1 (build 25.292-b10, mixed mode)

maven version

(base) XyXy@osboxes:~/workshop/capicxx-dbus-tools$ mvn -version
Apache Maven 3.6.3
Maven home: /usr/share/maven
Java version: 1.8.0_292, vendor: Amazon.com Inc., runtime: /usr/lib/jvm/java-1.8.0-amazon-corretto/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "5.11.0-22-generic", arch: "amd64", family: "unix"

capicxx-core-tools already built successful with newest code

Also the capicxx-someip-tools built successful with newest code

the newest codes

https://github.com/GENIVI/capicxx-dbus-tools.git

start build process of capicxx-dbus-tools

(base) XyXy@osboxes:~/workshop/capicxx-dbus-tools/org.genivi.commonapi.dbus.releng$ mvn -DCOREPATH=/home/XyXy/workshop/capicxx-core-tools -Dtarget.id=org.genivi.commonapi.dbus.target clean verify
[INFO] Scanning for projects...
[INFO] Computing target platform for MavenProject: commonapi:org.genivi.commonapi.dbus:3.2.0-SNAPSHOT @ /home/XyXy/workshop/capicxx-dbus-tools/org.genivi.commonapi.dbus/pom.xml
[INFO] Fetching p2.index from http://download.eclipse.org/eclipse/updates/4.9/ (0B of 128B at 0B/s)
[INFO] Adding repository http://download.eclipse.org/eclipse/updates/4.9
[INFO] Fetching p2.index from http://download.eclipse.org/eclipse/updates/4.9/R-4.9-201809060745/ (0B of 142B at 0B/s)
[INFO] Fetching p2.index from http://download.eclipse.org/releases/2018-09/ (0B of 122B at 0B/s)
[INFO] Adding repository http://download.eclipse.org/releases/2018-09
...
...
--- maven-resources-plugin:2.4.3:resources (default-resources) @ org.genivi.commonapi.dbus ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/XyXy/workshop/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/main/resources
[INFO]
[INFO] --- tycho-compiler-plugin:0.22.0:compile (default-compile) @ org.genivi.commonapi.dbus ---
[INFO] Compiling 14 source files to /home/XyXy/workshop/capicxx-dbus-tools/org.genivi.commonapi.dbus/target/classes
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for org.genivi.commonapi.dbus.releng 3.2.0-SNAPSHOT:
[INFO]
[INFO] org.genivi.commonapi.dbus.target ................... SUCCESS [ 3.188 s]
[INFO] org.genivi.commonapi.dbus.releng ................... SUCCESS [ 0.023 s]
[INFO] org.genivi.commonapi.dbus .......................... FAILURE [ 8.597 s]
[INFO] org.genivi.commonapi.dbus.cli ...................... SKIPPED
[INFO] org.genivi.commonapi.dbus.cli.feature .............. SKIPPED
[INFO] org.genivi.commonapi.dbus.cli.product .............. SKIPPED
[INFO] org.genivi.commonapi.dbus.ui ....................... SKIPPED
[INFO] org.genivi.commonapi.dbus.feature .................. SKIPPED
[INFO] org.genivi.commonapi.dbus.validator ................ SKIPPED
[INFO] org.genivi.commonapi.dbus.validator.feature ........ SKIPPED
[INFO] org.genivi.commonapi.dbus.updatesite ............... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 03:54 min
[INFO] Finished at: 2021-07-01T02:37:25-04:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:0.22.0:compile (default-compile) on project org.genivi.commonapi.dbus: Compilation failure: Compilation failure:
[ERROR] /home/XyXy/workshop/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[21]
[ERROR] import org.genivi.commonapi.dbus.Deployment;
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] The import org.genivi.commonapi.dbus.Deployment cannot be resolved
[ERROR] /home/XyXy/workshop/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[25]
[ERROR] Deployment.IDataPropertyAccessor dbusDataAccessor_;
[ERROR] ^^^^^^^^^^
[ERROR] Deployment cannot be resolved to a type
[ERROR] /home/XyXy/workshop/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[26]
[ERROR] Deployment.ProviderPropertyAccessor dbusProvider_;
[ERROR] ^^^^^^^^^^
[ERROR] Deployment cannot be resolved to a type
[ERROR] /home/XyXy/workshop/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[40]
[ERROR] dbusDataAccessor_ = null;
[ERROR] ^^^^^^^^^^^^^^^^^
[ERROR] dbusDataAccessor_ cannot be resolved to a variable
[ERROR] /home/XyXy/workshop/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[41]
[ERROR] dbusProvider_ = null;
[ERROR] ^^^^^^^^^^^^^
[ERROR] dbusProvider_ cannot be resolved to a variable
[ERROR] /home/XyXy/workshop/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[48]
[ERROR] dbusDataAccessor_ = new Deployment.InterfacePropertyAccessor(target);
[ERROR] ^^^^^^^^^^^^^^^^^
[ERROR] dbusDataAccessor
cannot be resolved to a variable
[ERROR] /home/XyXy/workshop/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[48]
[ERROR] dbusDataAccessor_ = new Deployment.InterfacePropertyAccessor(target);
[ERROR] ^^^^^^^^^^
[ERROR] Deployment cannot be resolved to a type
[ERROR] /home/XyXy/workshop/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[49]
[ERROR] dbusProvider
= null;
[ERROR] ^^^^^^^^^^^^^
[ERROR] dbusProvider_ cannot be resolved to a variable
[ERROR] /home/XyXy/workshop/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[56]
[ERROR] dbusDataAccessor_ = new Deployment.TypeCollectionPropertyAccessor(target);
[ERROR] ^^^^^^^^^^^^^^^^^
[ERROR] dbusDataAccessor
cannot be resolved to a variable
[ERROR] /home/XyXy/workshop/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[56]
[ERROR] dbusDataAccessor_ = new Deployment.TypeCollectionPropertyAccessor(target);
[ERROR] ^^^^^^^^^^
[ERROR] Deployment cannot be resolved to a type
[ERROR] /home/XyXy/workshop/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[57]
[ERROR] dbusProvider
= null;
[ERROR] ^^^^^^^^^^^^^
[ERROR] dbusProvider_ cannot be resolved to a variable
[ERROR] /home/XyXy/workshop/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[64]
[ERROR] dbusProvider_ = new Deployment.ProviderPropertyAccessor(target);
[ERROR] ^^^^^^^^^^^^^
[ERROR] dbusProvider
cannot be resolved to a variable
[ERROR] /home/XyXy/workshop/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[64]
[ERROR] dbusProvider_ = new Deployment.ProviderPropertyAccessor(target);
[ERROR] ^^^^^^^^^^
[ERROR] Deployment cannot be resolved to a type
[ERROR] /home/XyXy/workshop/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[66]
[ERROR] dbusDataAccessor
= null;
[ERROR] ^^^^^^^^^^^^^^^^^
[ERROR] dbusDataAccessor_ cannot be resolved to a variable
[ERROR] /home/XyXy/workshop/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[71]
[ERROR] dbusProvider_ = null;
[ERROR] ^^^^^^^^^^^^^
[ERROR] dbusProvider_ cannot be resolved to a variable
[ERROR] /home/XyXy/workshop/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[72]
[ERROR] if (parent.type != DeploymentType.PROVIDER && parent != null && parent.dbusDataAccessor != null) {
[ERROR] ^^^^^^^^^^^^^^^^^
[ERROR] dbusDataAccessor
cannot be resolved or is not a field
[ERROR] /home/XyXy/workshop/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[73]
[ERROR] dbusDataAccessor_ = parent.dbusDataAccessor.getOverwriteAccessor(element);
[ERROR] ^^^^^^^^^^^^^^^^^
[ERROR] dbusDataAccessor
cannot be resolved to a variable
[ERROR] /home/XyXy/workshop/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[73]
[ERROR] dbusDataAccessor_ = parent.dbusDataAccessor.getOverwriteAccessor(element);
[ERROR] ^^^^^^^^^^^^^^^^^
[ERROR] dbusDataAccessor
cannot be resolved or is not a field
[ERROR] /home/XyXy/workshop/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[77]
[ERROR] dbusDataAccessor_ = null;
[ERROR] ^^^^^^^^^^^^^^^^^
[ERROR] dbusDataAccessor_ cannot be resolved to a variable
[ERROR] /home/XyXy/workshop/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[83]
[ERROR] dbusProvider_ = null;
[ERROR] ^^^^^^^^^^^^^
[ERROR] dbusProvider_ cannot be resolved to a variable
[ERROR] /home/XyXy/workshop/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[84]
[ERROR] if (parent.type != DeploymentType.PROVIDER && parent != null && parent.dbusDataAccessor != null) {
[ERROR] ^^^^^^^^^^^^^^^^^
[ERROR] dbusDataAccessor
cannot be resolved or is not a field
[ERROR] /home/XyXy/workshop/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[85]
[ERROR] dbusDataAccessor_ = parent.dbusDataAccessor.getOverwriteAccessor(element);
[ERROR] ^^^^^^^^^^^^^^^^^
[ERROR] dbusDataAccessor
cannot be resolved to a variable
[ERROR] /home/XyXy/workshop/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[85]
[ERROR] dbusDataAccessor_ = parent.dbusDataAccessor.getOverwriteAccessor(element);
[ERROR] ^^^^^^^^^^^^^^^^^
[ERROR] dbusDataAccessor
cannot be resolved or is not a field
[ERROR] /home/XyXy/workshop/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[89]
[ERROR] dbusDataAccessor_ = null;
[ERROR] ^^^^^^^^^^^^^^^^^
[ERROR] dbusDataAccessor_ cannot be resolved to a variable
[ERROR] /home/XyXy/workshop/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[95]
[ERROR] dbusProvider_ = null;
[ERROR] ^^^^^^^^^^^^^
[ERROR] dbusProvider_ cannot be resolved to a variable
[ERROR] /home/XyXy/workshop/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[97]
[ERROR] Deployment.InterfacePropertyAccessor ipa = (Deployment.InterfacePropertyAccessor) parent.dbusDataAccessor;
[ERROR] ^^^^^^^^^^
[ERROR] Deployment cannot be resolved to a type
[ERROR] /home/XyXy/workshop/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[97]
[ERROR] Deployment.InterfacePropertyAccessor ipa = (Deployment.InterfacePropertyAccessor) parent.dbusDataAccessor;
[ERROR] ^^^^^^^^^^
[ERROR] Deployment cannot be resolved to a type
[ERROR] /home/XyXy/workshop/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[97]
[ERROR] Deployment.InterfacePropertyAccessor ipa = (Deployment.InterfacePropertyAccessor) parent.dbusDataAccessor;
[ERROR] ^^^^^^^^^^^^^^^^^
[ERROR] dbusDataAccessor_ cannot be resolved or is not a field
[ERROR] /home/XyXy/workshop/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[98]
[ERROR] dbusDataAccessor_ = ipa.getOverwriteAccessor(element);
[ERROR] ^^^^^^^^^^^^^^^^^
[ERROR] dbusDataAccessor
cannot be resolved to a variable
[ERROR] /home/XyXy/workshop/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[101]
[ERROR] dbusDataAccessor_ = null;
[ERROR] ^^^^^^^^^^^^^^^^^
[ERROR] dbusDataAccessor_ cannot be resolved to a variable
[ERROR] /home/XyXy/workshop/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[107]
[ERROR] dbusProvider_ = null;
[ERROR] ^^^^^^^^^^^^^
[ERROR] dbusProvider_ cannot be resolved to a variable
[ERROR] /home/XyXy/workshop/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[109]
[ERROR] Deployment.InterfacePropertyAccessor ipa = (Deployment.InterfacePropertyAccessor) parent.dbusDataAccessor;
[ERROR] ^^^^^^^^^^
[ERROR] Deployment cannot be resolved to a type
[ERROR] /home/XyXy/workshop/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[109]
[ERROR] Deployment.InterfacePropertyAccessor ipa = (Deployment.InterfacePropertyAccessor) parent.dbusDataAccessor;
[ERROR] ^^^^^^^^^^
[ERROR] Deployment cannot be resolved to a type
[ERROR] /home/XyXy/workshop/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[109]
[ERROR] Deployment.InterfacePropertyAccessor ipa = (Deployment.InterfacePropertyAccessor) parent.dbusDataAccessor;
[ERROR] ^^^^^^^^^^^^^^^^^
[ERROR] dbusDataAccessor_ cannot be resolved or is not a field
[ERROR] /home/XyXy/workshop/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[110]
[ERROR] dbusDataAccessor_ = ipa.getOverwriteAccessor(element);
[ERROR] ^^^^^^^^^^^^^^^^^
[ERROR] dbusDataAccessor
cannot be resolved to a variable
[ERROR] /home/XyXy/workshop/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[113]
[ERROR] dbusDataAccessor_ = null;
[ERROR] ^^^^^^^^^^^^^^^^^
[ERROR] dbusDataAccessor_ cannot be resolved to a variable
[ERROR] /home/XyXy/workshop/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[144]
[ERROR] if (dbusDataAccessor_ != parent_.dbusDataAccessor_) {
[ERROR] ^^^^^^^^^^^^^^^^^
[ERROR] dbusDataAccessor_ cannot be resolved to a variable
[ERROR] /home/XyXy/workshop/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[144]
[ERROR] if (dbusDataAccessor_ != parent_.dbusDataAccessor_) {
[ERROR] ^^^^^^^^^^^^^^^^^
[ERROR] dbusDataAccessor_ cannot be resolved or is not a field
[ERROR] /home/XyXy/workshop/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[178]
[ERROR] return (type_ == DeploymentType.OVERWRITE && !hasSameAccessor(dbusDataAccessor_));
[ERROR] ^^^^^^^^^^^^^^^^^
[ERROR] dbusDataAccessor_ cannot be resolved to a variable
[ERROR] /home/XyXy/workshop/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[180]
[ERROR] protected boolean hasSameAccessor(Deployment.IDataPropertyAccessor accessor)
[ERROR] ^^^^^^^^^^
[ERROR] Deployment cannot be resolved to a type
[ERROR] /home/XyXy/workshop/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[184]
[ERROR] if (parent
.dbusDataAccessor_ == accessor)
[ERROR] ^^^^^^^^^^^^^^^^^
[ERROR] dbusDataAccessor
cannot be resolved or is not a field
[ERROR] /home/XyXy/workshop/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[191]
[ERROR] return from(((Deployment.InterfacePropertyAccessor)dbusDataAccessor_).getDBusDefaultAttributeType(obj));
[ERROR] ^^^^^^^^^^
[ERROR] Deployment cannot be resolved to a type
[ERROR] /home/XyXy/workshop/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[191]
[ERROR] return from(((Deployment.InterfacePropertyAccessor)dbusDataAccessor_).getDBusDefaultAttributeType(obj));
[ERROR] ^^^^^^^^^^^^^^^^^
[ERROR] dbusDataAccessor_ cannot be resolved to a variable
[ERROR] /home/XyXy/workshop/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[199]
[ERROR] private PropertiesType from(Deployment.Enums.DBusDefaultAttributeType source) {
[ERROR] ^^^^^^^^^^
[ERROR] Deployment cannot be resolved to a type
[ERROR] /home/XyXy/workshop/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[202]
[ERROR] case freedesktop:
[ERROR] ^^^^^^^^^^^
[ERROR] freedesktop cannot be resolved to a variable
[ERROR] /home/XyXy/workshop/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[216]
[ERROR] isObjectPath = dbusDataAccessor
.getIsObjectPath(obj);
[ERROR] ^^^^^^^^^^^^^^^^^
[ERROR] dbusDataAccessor_ cannot be resolved
[ERROR] /home/XyXy/workshop/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[226]
[ERROR] isUnixFD = dbusDataAccessor_.getIsUnixFD(obj);
[ERROR] ^^^^^^^^^^^^^^^^^
[ERROR] dbusDataAccessor_ cannot be resolved
[ERROR] /home/XyXy/workshop/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[236]
[ERROR] variantType = from(dbusDataAccessor_.getDBusVariantType(obj));
[ERROR] ^^^^^^^^^^^^^^^^^
[ERROR] dbusDataAccessor_ cannot be resolved
[ERROR] /home/XyXy/workshop/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[242]
[ERROR] private DBusVariantType from(Deployment.Enums.DBusVariantType type)
[ERROR] ^^^^^^^^^^
[ERROR] Deployment cannot be resolved to a type
[ERROR] /home/XyXy/workshop/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[246]
[ERROR] case CommonAPI:
[ERROR] ^^^^^^^^^
[ERROR] CommonAPI cannot be resolved to a variable
[ERROR] /home/XyXy/workshop/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[248]
[ERROR] case DBus:
[ERROR] ^^^^
[ERROR] DBus cannot be resolved to a variable
[ERROR] /home/XyXy/workshop/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[258]
[ERROR] return dbusProvider_.getDBusInterfaceName(obj);
[ERROR] ^^^^^^^^^^^^^
[ERROR] dbusProvider_ cannot be resolved
[ERROR] /home/XyXy/workshop/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[267]
[ERROR] return dbusProvider_.getDBusObjectPath(obj);
[ERROR] ^^^^^^^^^^^^^
[ERROR] dbusProvider_ cannot be resolved
[ERROR] /home/XyXy/workshop/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[276]
[ERROR] return dbusProvider_.getDBusServiceName(obj);
[ERROR] ^^^^^^^^^^^^^
[ERROR] dbusProvider_ cannot be resolved
[ERROR] /home/XyXy/workshop/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[285]
[ERROR] return dbusProvider_.getDomain(obj);
[ERROR] ^^^^^^^^^^^^^
[ERROR] dbusProvider_ cannot be resolved
[ERROR] /home/XyXy/workshop/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[294]
[ERROR] return dbusProvider_.getInstanceId(obj);
[ERROR] ^^^^^^^^^^^^^
[ERROR] dbusProvider_ cannot be resolved
[ERROR] /home/XyXy/workshop/capicxx-dbus-tools/org.genivi.commonapi.dbus/src/org/genivi/commonapi/dbus/deployment/PropertyAccessor.java:[304]
[ERROR] isDBusPredefined = dbusProvider_.getDBusPredefined(obj);
[ERROR] ^^^^^^^^^^^^^
[ERROR] dbusProvider_ cannot be resolved
[ERROR] 57 problems (57 errors)
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :org.genivi.commonapi.dbus

FIDL IsObjectPath property does not affect String array attributes

Hi,

Currently I'm using the CommonAPI-DBus to generate some bindings for a legacy DBus interface that has a couple of String [ ] properties.

The values in those properties are Object Path values, so the resulting Properties::Get call returns a DBus variant with "ao" signature inside. After some meddling with the .fidl/.fdepl files, the variant itself is handled all right, however it is the contents of the resulting variant that cause problems.

And the generator, creating the deployment code, specifies an ArrayDeployment for the property in question, which is all good and right. However, it passes a nullptr casted to StringDeployment to array deployment ctor, which omits any use of IsObjectPath. Thus, upon property value retrieval, the runtime expects to find an "as" in the reply message instead of "ao", which results in a failed call and an std::bad_cast exception getting thrown by the runtime code.

Can be easily reproduced on any gnome desktop using org.freedesktop.DisplayManager DBus service as a test subject.

Versions used:
org.genivi.commonapi.dbus 3.1.10.v201611111523
org.franca.core 0.9.1.201412191134

Thanks,
A.

Genivi audio manager plugin issue

I downloaded Common api 3.2.0 version from Git and i compiled AudioManger v8.0 sucessfully. But i cant able to compile AudioManager Plugins. Im getting below error,
33%] Built target CommandInterfaceProviderSomeIpStub
[ 50%] Building CXX object PluginCommandInterfaceCAPI/CMakeFiles/PluginCommandInterfaceCAPI.dir/src/CAmCommandSenderCAPI.cpp.o
In file included from /usr/include/x86_64-linux-gnu/c++/5/bits/c++allocator.h:33:0,
from /usr/include/c++/5/bits/allocator.h:46,
from /usr/include/c++/5/bits/stl_tree.h:64,
from /usr/include/c++/5/map:60,
from /home/guruprasath/Documents/GAM/AudioManagerPlugins/PluginCommandInterfaceCAPI/include/CAmCommandSenderCAPI.h:21,
from /home/guruprasath/Documents/GAM/AudioManagerPlugins/PluginCommandInterfaceCAPI/src/CAmCommandSenderCAPI.cpp:18:
/usr/include/c++/5/ext/new_allocator.h: In instantiation of ‘void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = am::CAmCommandSenderService; _Args = {am::IAmCommandReceive*&}; _Tp = am::CAmCommandSenderService]’:
/usr/include/c++/5/bits/alloc_traits.h:530:4: required from ‘static void std::allocator_traits<std::allocator<_Tp1> >::construct(std::allocator_traits<std::allocator<_Tp1> >::allocator_type&, _Up*, _Args&& ...) [with _Up = am::CAmCommandSenderService; _Args = {am::IAmCommandReceive*&}; _Tp = am::CAmCommandSenderService; std::allocator_traits<std::allocator<_Tp1> >::allocator_type = std::allocatoram::CAmCommandSenderService]’
/usr/include/c++/5/bits/shared_ptr_base.h:522:39: required from ‘std::_Sp_counted_ptr_inplace<_Tp, _Alloc, _Lp>::_Sp_counted_ptr_inplace(_Alloc, _Args&& ...) [with _Args = {am::IAmCommandReceive*&}; _Tp = am::CAmCommandSenderService; _Alloc = std::allocatoram::CAmCommandSenderService; __gnu_cxx::_Lock_policy _Lp = (__gnu_cxx::_Lock_policy)2u]’
/usr/include/c++/5/bits/shared_ptr_base.h:617:4: required from ‘std::__shared_count<_Lp>::__shared_count(std::_Sp_make_shared_tag, _Tp*, const _Alloc&, _Args&& ...) [with _Tp = am::CAmCommandSenderService; _Alloc = std::allocatoram::CAmCommandSenderService; _Args = {am::IAmCommandReceive*&}; __gnu_cxx::_Lock_policy _Lp = (__gnu_cxx::_Lock_policy)2u]’
/usr/include/c++/5/bits/shared_ptr_base.h:1097:35: required from ‘std::__shared_ptr<_Tp, _Lp>::__shared_ptr(std::_Sp_make_shared_tag, const _Alloc&, _Args&& ...) [with _Alloc = std::allocatoram::CAmCommandSenderService; _Args = {am::IAmCommandReceive*&}; _Tp = am::CAmCommandSenderService; __gnu_cxx::_Lock_policy _Lp = (__gnu_cxx::_Lock_policy)2u]’
/usr/include/c++/5/bits/shared_ptr.h:319:64: required from ‘std::shared_ptr<_Tp>::shared_ptr(std::_Sp_make_shared_tag, const _Alloc&, _Args&& ...) [with _Alloc = std::allocatoram::CAmCommandSenderService; _Args = {am::IAmCommandReceive*&}; _Tp = am::CAmCommandSenderService]’
/usr/include/c++/5/bits/shared_ptr.h:620:39: required from ‘std::shared_ptr<_Tp1> std::allocate_shared(const _Alloc&, _Args&& ...) [with _Tp = am::CAmCommandSenderService; _Alloc = std::allocatoram::CAmCommandSenderService; _Args = {am::IAmCommandReceive*&}]’
/usr/include/c++/5/bits/shared_ptr.h:635:39: required from ‘std::shared_ptr<_Tp1> std::make_shared(_Args&& ...) [with _Tp = am::CAmCommandSenderService; _Args = {am::IAmCommandReceive*&}]’
/home/guruprasath/Documents/GAM/AudioManagerPlugins/PluginCommandInterfaceCAPI/src/CAmCommandSenderCAPI.cpp:82:79: required from here
/usr/include/c++/5/ext/new_allocator.h:120:4: error: invalid new-expression of abstract class type ‘am::CAmCommandSenderService’
{ ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
^
In file included from /home/guruprasath/Documents/GAM/AudioManagerPlugins/PluginCommandInterfaceCAPI/include/CAmCommandSenderCAPI.h:24:0,
from /home/guruprasath/Documents/GAM/AudioManagerPlugins/PluginCommandInterfaceCAPI/src/CAmCommandSenderCAPI.cpp:18:
/home/guruprasath/Documents/GAM/AudioManagerPlugins/PluginCommandInterfaceCAPI/include/CAmCommandSenderService.h:34:7: note: because the following virtual functions are pure within ‘am::CAmCommandSenderService’:
class CAmCommandSenderService: public v1::org::genivi::am::commandinterface::CommandControlStubDefault {
^
In file included from /home/guruprasath/Documents/GAM/AudioManagerPlugins/build/PluginCommandInterfaceCAPI/src-gen/v320/Generic/v1/org/genivi/am/commandinterface/CommandControlStub.hpp:43:0,
from /home/guruprasath/Documents/GAM/AudioManagerPlugins/build/PluginCommandInterfaceCAPI/src-gen/v320/Generic/v1/org/genivi/am/commandinterface/CommandControlStubDefault.hpp:22,
from /home/guruprasath/Documents/GAM/AudioManagerPlugins/PluginCommandInterfaceCAPI/include/CAmCommandSenderService.h:22,
from /home/guruprasath/Documents/GAM/AudioManagerPlugins/PluginCommandInterfaceCAPI/include/CAmCommandSenderCAPI.h:24,
from /home/guruprasath/Documents/GAM/AudioManagerPlugins/PluginCommandInterfaceCAPI/src/CAmCommandSenderCAPI.cpp:18:
/usr/local/include/CommonAPI-3.2/CommonAPI/Stub.hpp:34:18: note: virtual bool CommonAPI::StubBase::hasElement(uint32_t) const
virtual bool hasElement(const uint32_t _id) const = 0;
^
/usr/local/include/CommonAPI-3.2/CommonAPI/Stub.hpp:34:18: note: virtual bool CommonAPI::StubBase::hasElement(uint32_t) const
cc1plus: warning: unrecognized command line option ‘-Wno-variadic-macro’
PluginCommandInterfaceCAPI/CMakeFiles/PluginCommandInterfaceCAPI.dir/build.make:110: recipe for target 'PluginCommandInterfaceCAPI/CMakeFiles/PluginCommandInterfaceCAPI.dir/src/CAmCommandSenderCAPI.cpp.o' failed
make[2]: *** [PluginCommandInterfaceCAPI/CMakeFiles/PluginCommandInterfaceCAPI.dir/src/CAmCommandSenderCAPI.cpp.o] Error 1
CMakeFiles/Makefile2:188: recipe for target 'PluginCommandInterfaceCAPI/CMakeFiles/PluginCommandInterfaceCAPI.dir/all' failed
make[1]: *** [PluginCommandInterfaceCAPI/CMakeFiles/PluginCommandInterfaceCAPI.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

how to change default DBusInterfaceName to a user choice DBusInterfaceName

Hi All,

i want my own choice DBusInterfaceName ;
CommonAPI-Dbus generatore alway adds suffix version no(minor,major ) to DBusInterfaceName .

i am trying to get my own choice of DBusInterfaceName .

i tried few of the suggestion found over internet provided by GENIVI forums over here .
https://github.com/GENIVI/capicxx-dbus-tools/blob/master/org.genivi.commonapi.dbus/deployment/CommonAPI-DBus_deployment_spec.fdepl
it didn't worked for me .
can you let me know if with latest CommonAPI D-bus version why above link solution is not working .

i have also tried to change interface name through Common-api-dbus.ini files
like mentioned here
https://github.com/GENIVI/navigation-application/blob/master/src/commonapi-dbus.ini
changing interface name from .ini as mentioned in the above link also didn't hel me .

i am attaching my .fdepl ->extension changed to .txt
file and .ini file(extension changed) to .ini) over here pls check and let me know if any correction there.
commonapi-dbus.txt
EchoFrancaService.txt

or there anything i am missing so far ?

thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.